Use movq for 64-bit operations
[jlayton/glibc.git] / ChangeLog
1 2013-05-15  Peter Collingbourne  <pcc@google.com>
2
3         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
4         (EXTRACT_WORDS64) Use where appropriate.
5         (INSERT_WORDS64) Likewise.
6
7         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
8         constraints with x constraints.
9         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
10
11         * malloc/obstack.c (_obstack_compat): Add initializer.
12
13 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
14
15         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
16         si_trapno and add si_addr_lsb to _sifields.sigfault.
17         (si_trapno): Remove macro.
18         (si_addr_lsb): Define new macro.
19         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
20
21 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
22
23         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
24         instead of TEST_f_l.
25         (llrint_test_tonearest): Likewise.
26         (llrint_test_towardzero): Likewise.
27         (llrint_test_downward): Likewise.
28         (llrint_test_upward): Likewise.
29         (llround_test): Likewise.
30
31         * math/libm-test.inc (struct test_f_i_data): Add comment.
32         (RUN_TEST_LOOP_f_b): New macro.
33         (RUN_TEST_LOOP_f_b_tg): Likewise.
34         (finite_test_data): New variable.
35         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
36         (isfinite_test_data): New variable.
37         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
38         (isinf_test_data): New variable.
39         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
40         (isnan_test_data): New variable.
41         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
42         (isnormal_test_data): New variable.
43         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
44         (issignaling_test_data): New variable.
45         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
46         (signbit_test_data): New variable.
47         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
48
49         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
50         with INVALID_EXCEPTION.
51         (acosh_test_data): Likewise.
52         (asin_test_data): Likewise.
53         (atanh_test_data): Likewise.
54         (fmod_test_data): Likewise.
55         (log_test_data): Likewise.
56         (log10_test_data): Likewise.
57         (log2_test_data): Likewise.
58         (pow_test_data): Likewise.
59         (sqrt_test_data): Likewise.
60         (y0_test_data): Likewise.
61         (y1_test_data): Likewise.
62         (yn_test_data): Likewise.
63
64         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
65         function contents.
66
67         * math/libm-test.inc (struct test_ff_i_data): New type.
68         (RUN_TEST_LOOP_ff_i_tg): New macro.
69         (isgreater_test_data): New variable.
70         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
71         (isgreaterequal_test_data): New variable.
72         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
73         (isless_test_data): New variable.
74         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
75         (islessequal_test_data): New variable.
76         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
77         (islessgreater_test_data): New variable.
78         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
79         (isunordered_test_data): New variable.
80         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
81
82 2013-05-14  David S. Miller  <davem@davemloft.net>
83
84         * sysdeps/sparc/fpu/libm-test-ulps: Update.
85
86 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
87
88         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
89
90         * math/libm-test.inc (struct test_fF_f1_data): Change type of
91         extra_test to int.
92         (struct test_f_i_data): Change type of max_ulp to int.
93
94         * math/libm-test.inc (test_ffI_f1_data): New type.
95         (RUN_TEST_LOOP_ffI_f1): New macro.
96         (remquo_test_data): New variable.
97         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
98
99         * setjmp/tst-setjmp-fp.c: New file.
100         * setjmp/Makefile (tests): Add tst-setjmp-fp.
101         (link-libm): New variable.
102         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
103
104         * math/libm-test.inc (struct test_f_i_data): New type.
105         (RUN_TEST_LOOP_f_i): New macro.
106         (RUN_TEST_LOOP_f_i_tg): Likewise.
107         (fpclassify_test_data): New variable.
108         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
109         (ilogb_test_data): New variable.
110         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
111
112         * math/libm-test.inc (scalbln_test): Correct function name in END
113         call.
114
115         * math/libm-test.inc (struct test_f_f1_data): Add comment.
116         (RUN_TEST_LOOP_fI_f1): New macro.
117         (frexp_test_data): New variable.
118         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
119
120         * math/libm-test.inc (struct test_fF_f1_data): New type.
121         (RUN_TEST_LOOP_fF_f1): New macro.
122         (modf_test_data): New variable.
123         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
124
125         * math/libm-test.inc (struct test_f_f1_data): New type.
126         (RUN_TEST_LOOP_f_f1): New macro.
127         (gamma_test_data): New variable.
128         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
129         (lgamma_test_data): New variable.
130         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
131
132 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
133
134         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
135         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
136         (main): Comment "tls" pseudo-hwcap.
137
138 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
139
140         * math/libm-test.inc (struct test_fl_f_data): New type.
141         (RUN_TEST_LOOP_fl_f): New variable.
142         (scalbln_test_data): New variable.
143         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
144
145         * math/libm-test.inc (struct test_fi_f_data): New type.
146         (RUN_TEST_LOOP_fi_f): New macro.
147         (ldexp_test_data): New variable.
148         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
149         (scalbn_test_data): New variable.
150         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
151
152         * math/libm-test.inc (struct test_c_f_data): New type.
153         (RUN_TEST_LOOP_c_f): New macro.
154         (cabs_test_data): New variable.
155         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
156         (carg_test_data): New variable.
157         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
158         (cimag_test_data): New variable.
159         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
160         (creal_test_data): New variable.
161         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
162
163         * math/libm-test.inc (struct test_if_f_data): New type.
164         (RUN_TEST_LOOP_if_f): New macro.
165         (jn_test_data): New variable.
166         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
167         (yn_test_data): New variable.
168         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
169
170         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
171
172 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
173
174         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
175         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
176
177 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
178
179         * benchtests/Makefile (CPPFLAGS-nonlib): Add
180         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
181         (bench-deps): Add bench-timing.h.
182         * benchtests-bench-skeleton.c: Include bench-timing.h.
183         (main): Use TIMING_* macros instead of clock_gettime.
184         * benchtests/bench-timing.h: New file.
185
186         [BZ #14582]
187         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
188         Renamed from _LIB_VERSION.
189         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
190
191 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
192
193         * math/libm-test.inc (struct test_fff_f_data): New type.
194         (RUN_TEST_LOOP_fff_f): New macro.
195         (fma_test_data): New variable.
196         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
197         (fma_towardzero_test_data): New variable.
198         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
199         (fma_downward_test_data): New variable.
200         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
201         (fma_upward_test_data): New variable.
202         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
203
204         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
205         (struct test_c_c_data): New type.
206         (RUN_TEST_LOOP_c_c): New macro.
207         (cacos_test_data): New variable.
208         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
209         (cacosh_test_data): New variable.
210         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
211         (casin_test_data): New variable.
212         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
213         (casinh_test_data): New variable.
214         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
215         (catan_test_data): New variable.
216         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
217         (catanh_test_data): New variable.
218         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
219         (ccos_test_data): New variable.
220         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
221         (ccosh_test_data): New variable.
222         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
223         (cexp_test_data): New variable.
224         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
225         (clog_test_data): New variable.
226         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
227         (clog10_test_data): New variable.
228         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
229         (conj_test_data): New variable.
230         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
231         (cproj_test_data): New variable.
232         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
233         (csin_test_data): New variable.
234         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
235         (csinh_test_data): New variable.
236         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
237         (csqrt_test_data): New variable.
238         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
239         (ctan_test_data): New variable.
240         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
241         (ctan_tonearest_test_data): New variable.
242         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
243         (ctan_towardzero_test_data): New variable.
244         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
245         (ctan_downward_test_data): New variable.
246         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
247         (ctan_upward_test_data): New variable.
248         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
249         (ctanh_test_data): New variable.
250         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
251         (ctanh_tonearest_test_data): New variable.
252         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
253         (ctanh_towardzero_test_data): New variable.
254         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
255         (ctanh_downward_test_data): New variable.
256         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
257         (ctanh_upward_test_data): New variable.
258         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
259         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
260         of BUILD_COMPLEX.
261
262         * math/libm-test.inc (struct test_ff_f_data): New type.
263         (struct test_ff_f_data_nexttoward): Likewise.
264         (RUN_TEST_LOOP_2_f): New macro.
265         (RUN_TEST_LOOP_ff_f): Likewise.
266         (atan2_test_data): New variable.
267         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
268         (copysign_test_data): New variable.
269         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
270         (fdim_test_data): New variable.
271         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
272         (fmax_test_data): New variable.
273         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
274         (fmin_test_data): New variable.
275         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
276         (fmod_test_data): New variable.
277         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
278         (hypot_test_data): New variable.
279         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
280         (nextafter_test_data): New variable.
281         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
282         (nexttoward_test_data): New variable.
283         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
284         (pow_test_data): New variable.
285         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
286         (pow_tonearest_test_data): New variable.
287         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
288         (pow_towardzero_test_data): New variable.
289         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
290         (pow_downward_test_data): New variable.
291         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
292         (pow_upward_test_data): New variable.
293         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
294         (remainder_test_data): New variable.
295         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
296         (scalb_test_data): New variable.
297         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
298         * sysdeps/i386/fpu/libm-test-ulps: Update.
299
300 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
301
302         * math/libm-test.inc (fma_test): Use max_value instead of local
303         variable fltmax.
304         (nextafter_test): Likewise.
305
306         * math/libm-test.inc (acos_towardzero_test_data): New variable.
307         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
308         (acos_downward_test_data): New variable.
309         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
310         (acos_upward_test_data): New variable.
311         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
312         (acosh_test_data): New variable.
313         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
314         (asin_test_data): New variable.
315         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
316         (asin_tonearest_test_data): New variable.
317         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
318         (asin_towardzero_test_data): New variable.
319         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
320         (asin_downward_test_data): New variable.
321         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
322         (asin_upward_test_data): New variable.
323         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
324         (asinh_test_data): New variable.
325         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
326         (atan_test_data): New variable.
327         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
328         (atanh_test_data): New variable.
329         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
330         (cbrt_test_data): New variable.
331         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
332         (ceil_test_data): New variable.
333         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
334         (cos_test_data): New variable.
335         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
336         (cos_tonearest_test_data): New variable.
337         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
338         (cos_towardzero_test_data): New variable.
339         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
340         (cos_downward_test_data): New variable.
341         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
342         (cos_upward_test_data): New variable.
343         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
344         (cosh_test_data): New variable.
345         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
346         (cosh_tonearest_test_data): New variable.
347         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
348         (cosh_towardzero_test_data): New variable.
349         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
350         (cosh_downward_test_data): New variable.
351         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
352         (cosh_upward_test_data): New variable.
353         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
354         (erf_test_data): New variable.
355         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
356         (erfc_test_data): New variable.
357         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
358         (exp_test_data): New variable.
359         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
360         (exp_tonearest_test_data): New variable.
361         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
362         (exp_towardzero_test_data): New variable.
363         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
364         (exp_downward_test_data): New variable.
365         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
366         (exp_upward_test_data): New variable.
367         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
368         (exp10_test_data): New variable.
369         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
370         (exp2_test_data): New variable.
371         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
372         (expm1_test_data): New variable.
373         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
374         (fabs_test_data): New variable.
375         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
376         (floor_test_data): New variable.
377         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
378         (j0_test_data): New variable.
379         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
380         (j1_test_data): New variable.
381         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
382         (log_test_data): New variable.
383         (log_test): Run tests with RUN_TEST_LOOP_f_f.
384         (log10_test_data): New variable.
385         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
386         (log1p_test_data): New variable.
387         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
388         (log2_test_data): New variable.
389         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
390         (logb_test_data): New variable.
391         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
392         (logb_downward_test_data): New variable.
393         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
394         (nearbyint_test_data): New variable.
395         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
396         (rint_test_data): New variable.
397         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
398         (rint_tonearest_test_data): New variable.
399         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
400         (rint_towardzero_test_data): New variable.
401         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
402         (rint_downward_test_data): New variable.
403         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
404         (rint_upward_test_data): New variable.
405         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
406         (round_test_data): New variable.
407         (round_test): Run tests with RUN_TEST_LOOP_f_f.
408         (sin_test_data): New variable.
409         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
410         (sin_tonearest_test_data): New variable.
411         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
412         (sin_towardzero_test_data): New variable.
413         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
414         (sin_downward_test_data): New variable.
415         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
416         (sin_upward_test_data): New variable.
417         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
418         (sinh_test_data): New variable.
419         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
420         (sinh_tonearest_test_data): New variable.
421         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
422         (sinh_towardzero_test_data): New variable.
423         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
424         (sinh_downward_test_data): New variable.
425         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
426         (sinh_upward_test_data): New variable.
427         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
428         (sqrt_test_data): New variable.
429         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
430         (tan_test_data): New variable.
431         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
432         (tan_tonearest_test_data): New variable.
433         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
434         (tan_towardzero_test_data): New variable.
435         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
436         (tan_downward_test_data): New variable.
437         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
438         (tan_upward_test_data): New variable.
439         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
440         (tanh_test_data): New variable.
441         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
442         (tgamma_test_data): New variable.
443         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
444         (trunc_test_data): New variable.
445         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
446         (y0_test_data): New variable.
447         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
448         (y1_test_data): New variable.
449         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
450         (significand_test_data): New variable.
451         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
452
453 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
454
455         [BZ #12387]
456         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
457
458 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
459
460         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
461
462 2013-05-10  Andreas Jaeger  <aj@suse.de>
463
464         [BZ #15448]
465         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
466         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
467
468 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
469
470         * math/gen-libm-test.pl (adjust_arg): New function.
471         (special_functions): Handle generating output in both functions
472         and arrays.
473         (parse_args): Likewise.
474         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
475         $in_func argument to parse_args.
476         * math/libm-test.inc (struct test_f_f_data): New type.
477         (IF_ROUND_INIT_): New macro.
478         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
479         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
480         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
481         (IF_ROUND_INIT_FE_UPWARD): Likewise.
482         (ROUND_RESTORE_): Likewise.
483         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
484         (ROUND_RESTORE_FE_TONEAREST): Likewise.
485         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
486         (ROUND_RESTORE_FE_UPWARD): Likewise.
487         (RUN_TEST_LOOP_f_f): New macro.
488         (acos_test_data): New variable.
489         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
490         (acos_tonearest_test_data): New variable.
491         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
492
493 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
494
495         * benchtests/bench-skeleton.c (startup): Fix coding style.
496
497 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
498
499         [BZ #6809]
500         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
501         negative infinity argument.
502         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
503         negative infinity argument.
504         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
505         negative infinity argument.
506         * math/libm-test.inc (tgamma_test): Expect errno to be set for
507         domain errors.
508
509 2013-05-10  Florian Weimer  <fweimer@redhat.com>
510
511         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
512         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
513         * iconv/iconv_prog.c (main): Likewise.
514         * locale/programs/charmap-dir.c (charmap_readdir)
515         (fopen_uncompressed): Likewise.
516         * locale/programs/locfile.c (siblings_uncached)
517         (write_locale_data): Use lstat64 instead of lstat.
518         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
519         stat.
520
521 2013-05-10  Andreas Jaeger  <aj@suse.de>
522
523         [BZ #15395]
524         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
525         localization.
526         Include <locale.h>.
527
528 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
529
530         * elf/dl-close.c (_dl_close_worker): Add comments.
531
532 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
533
534         [BZ #15359]
535         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
536         high part of pi/2.
537         (__ieee754_rem_pio2l): Update comments.
538
539         [BZ #15429]
540         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
541         high part of pi/2.
542         (__ieee754_rem_pio2l): Update comments.
543
544         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
545         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
546
547         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
548         M_PI_4l.
549
550         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
551         (M_PI_34_LOG10El): Likewise.
552         (M_PI2_LOG10El): Likewise.
553         (M_PI4_LOG10El): Likewise.
554         (M_PI_LOG10El): Likewise.
555
556 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
557
558         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
559
560 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
561
562         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
563         (MINUS_ZERO_INIT): Likewise.
564         (PLUS_INFTY_INIT): Likewise.
565         (MINUS_INFTY_INIT): Likewise.
566         (QNAN_VALUE_INIT): Likewise.
567         (MAX_VALUE_INIT): Likewise.
568         (MIN_VALUE_INIT): Likewise.
569         (MIN_SUBNORM_VALUE_INIT): Likewise.
570         (plus_zero): Initialize with PLUS_ZERO_INIT.
571         (minus_zero): Initialize with MINUS_ZERO_INIT.
572         (plus_infty): Initialize with PLUS_INFTY_INIT.
573         (minus_infty): Initialize with MINUS_INFTY_INIT.
574         (qnan_value): Initialize with QNAN_VALUE_INIT.
575         (max_value): Initialize with MAX_VALUE_INIT.
576         (min_value): Initialize with MIN_VALUE_INIT.
577         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
578
579         * math/libm-test.inc (RUN_TEST_if_f): New macro.
580         (jn_test): Use TEST_if_f instead of TEST_ff_f.
581         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
582         (yn_test): Use TEST_if_f instead of TEST_ff_f.
583
584         * math/libm-test.inc (RUN_TEST_f_f): New macro.
585         (RUN_TEST_2_f): Likewise.
586         (RUN_TEST_ff_f): Likewise.
587         (RUN_TEST_fi_f): Likewise.
588         (RUN_TEST_fl_f): Likewise.
589         (RUN_TEST_fff_f): Likewise.
590         (RUN_TEST_c_f): Likewise.
591         (RUN_TEST_f_f1): Likewise.
592         (RUN_TEST_fF_f1): Likewise.
593         (RUN_TEST_fI_f1): Likewise.
594         (RUN_TEST_ffI_f1): Likewise.
595         (RUN_TEST_c_c): Likewise.
596         (RUN_TEST_cc_c): Likewise.
597         (RUN_TEST_f_i): Likewise.
598         (RUN_TEST_f_i_tg): Likewise.
599         (RUN_TEST_ff_i_tg): Likewise.
600         (RUN_TEST_f_b): Likewise.
601         (RUN_TEST_f_b_tg): Likewise.
602         (RUN_TEST_f_l): Likewise.
603         (RUN_TEST_f_L): Likewise.
604         (RUN_TEST_sincos): Likewise.
605         * math/gen-libm-test.pl (new_test): Take new argument to indicate
606         whether to show exceptions.  Do not include ");\n" in return
607         value.
608         (special_functions): Output call to RUN_TEST_sincos instead of
609         check_float calls.  Update calls to new_test.
610         (parse_args): Output call to single RUN_TEST_* macro instead of
611         check_* calls and other assignments.  Update calls to new_test.
612
613         [BZ #2546]
614         [BZ #2560]
615         [BZ #5159]
616         [BZ #15426]
617         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
618         input to result for tgamma overflow.
619         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
620         (gamma_coeff): New variable.
621         (NCOEFF): New macro.
622         (gamma_positive): New function.
623         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
624         underflow here.  Use gamma_positive instead of exp (lgamma) for
625         other arguments.
626         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
627         (gamma_coeff): New variable.
628         (NCOEFF): New macro.
629         (gammaf_positive): New function.
630         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
631         underflow here.  Use gamma_positive instead of exp (lgamma) for
632         other arguments.
633         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
634         (gamma_coeff): New variable.
635         (NCOEFF): New macro.
636         (gammal_positive): New function.
637         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
638         underflow here.  Use gamma_positive instead of exp (lgamma) for
639         other arguments.
640         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
641         (gamma_coeff): New variable.
642         (NCOEFF): New macro.
643         (gammal_positive): New function.
644         (__ieee754_gammal_r): Handle positive infinity, overflow and
645         underflow here.  Handle NaN the same as positive infinity.  Remove
646         check x < 0xffffffff for negative integers.  Use gamma_positive
647         instead of exp (lgamma) for other arguments.
648         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
649         (gamma_coeff): New variable.
650         (NCOEFF): New macro.
651         (gammal_positive): New function.
652         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
653         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
654         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
655         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
656         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
657         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
658         * sysdeps/generic/math_private.h (__gamma_productf): New
659         prototype.
660         (__gamma_product): Likewise.
661         (__gamma_productl): Likewise.
662         * math/Makefile (libm-calls): Add gamma_product.
663         * math/libm-test.inc (tgamma_test): Add more tests.
664         * sysdeps/i386/fpu/libm-test-ulps: Update.
665         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
666
667 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
668
669         * benchtests/bench-skeleton.c (main): Preheat CPU.
670
671 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
672
673         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
674
675 2013-05-07  Roland McGrath  <roland@hack.frob.com>
676
677         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
678         and _dl_skip_args_internal.
679
680 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
681
682         * manual/message.texi (Message Translation): Talk about users.
683         Message to key mapping impacts design.
684
685 2013-05-06  Roland McGrath  <roland@hack.frob.com>
686
687         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
688
689         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
690
691         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
692         * sysdeps/wordsize-64/glob64.c: ... here.
693
694         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
695         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
696         New macros.
697
698         * debug/getlogin_r_chk.c: Moved to ...
699         * login/getlogin_r_chk.c: ... here.
700         * debug/Makefile (routines): Move getlogin_r_chk to ...
701         * login/Makefile (routines): ... here.
702         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
703         * login/Versions (libc: GLIBC_2.4): ... here.
704
705         * io/poll.c (__poll): Renamed from poll.
706         Add libc_hidden_def.
707         (poll): Define as weak alias.
708
709         * debug/ptsname_r_chk.c: Moved to ...
710         * login/ptsname_r_chk.c: ... here.
711         * debug/Makefile (routines): Move ptsname_r_chk to ...
712         * login/Makefile (routines): ... here.
713         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
714         * login/Versions (libc: GLIBC_2.4): ... here.
715
716         * posix/getlogin.c: Moved to ...
717         * login/getlogin.c: ... here.
718         * posix/getlogin_r.c: Moved to ...
719         * login/getlogin_r.c: ... here.
720         * posix/getlogin_r.c: Moved to ...
721         * login/getlogin_r.c: ... here.
722         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
723         * login/Makefile (routines): ... here.
724         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
725         * login/Versions (libc: GLIBC_2.0): ... here.
726
727         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
728         (setrlimit): Define as weak alias.
729
730         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
731         Call __ names for open, ftruncate, and close.
732         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
733         (truncate): Define as weak alias.
734
735 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
736
737         * math/gen-libm-test.pl (parse_args): Initialize x before each
738         test of frexp, modf and remquo.
739
740         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
741         test signgam value.
742
743 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
744
745         [BZ #15418]
746         [BZ #15419]
747         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
748         internal tests.
749         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
750
751 2013-05-06  Roland McGrath  <roland@hack.frob.com>
752
753         * elf/dl-writev.h: New file.
754         * elf/dl-misc.c: Include it.
755         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
756         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
757
758 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
759
760         * math/libm-test.inc (noXFails): Remove variable.
761         (noXPasses): Likewise.
762         (BUILD_COMPLEX_INT): Remove macro.
763         (print_screen): Remove xfail argument.
764         (print_screen_max_error): Likewise.
765         (update_stats): Likewise.
766         (print_max_error): Likewise.  Update calls to other affected
767         functions.
768         (print_complex_max_error): Likewise.
769         (test_single_exception): Update calls to print_screen.
770         (test_single_errno): Likewise.
771         (check_float_internal): Remove xfail argument.  Update calls to
772         other affected functions.
773         (check_float): Likewise.
774         (check_complex): Likewise.
775         (check_int): Likewise.
776         (check_long): Likewise.
777         (check_bool): Likewise.
778         (check_longlong): Likewise.
779         (main): Don't print noXFails and noXPasses.
780         * math/gen-libm-test.pl (top level): Don't mention expected
781         failure handling in comment.
782         (new_test): Don't handle expected failures.
783         (parse_args): Don't mention expected failure handling in comment.
784         (generate_testfile): Don't handle expected failures.
785         (parse_ulps): Likewise.
786         (print_ulps_file): Likewise.
787         (get_failure): Remove function.
788         (output_test): Don't handle expected failures.
789         * make/README.libm-test: Don't mention expected failure handling.
790
791         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
792         (minus_zero): Likewise.
793         (plus_infty): Likewise.
794         (minus_infty): Likewise.
795         (qnan_value): Likewise.
796         (max_value): Likewise.
797         (min_value): Likewise.
798         (min_subnorm_value): Likewise.
799         (initialize): Do not initialize those variables dynamically.
800
801 2013-05-03  Roland McGrath  <roland@hack.frob.com>
802
803         * io/open.c (__open_2): Moved to ...
804         * io/open_2.c: ... this new file.
805         * io/open64.c (__open64_2): Moved to ...
806         * io/open64_2.c: ... this new file.
807         * io/openat.c (__openat_2): Moved to ...
808         * io/openat_2.c: ... this new file.
809         * io/openat64.c (__openat64_2): Moved to ...
810         * io/openat64_2.c: ... this new file.
811         * io/Makefile (routines): Add them.
812         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
813         * sysdeps/unix/sysv/linux/open_2.c: File removed.
814         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
815         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
816         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
817         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
818         (__openat64): Add hidden_ver.
819         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
820         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
821
822         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
823         Separately conditionalize setting of GLRO(dl_sysinfo) so
824         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
825         as well, but the actual setting is only under [NEED_DL_SYSINFO].
826
827 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
828
829         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
830         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
831         definition.
832         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
833         * sysdeps/unix/sysv/linux/powerpc/init-first.c
834         (_libc_vdso_platform_setup): Add __vdso_time initialization.
835         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
836         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
837
838 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
839
840         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
841         test signgam value.
842
843         * math/libm-test.inc (hypot_test): Do not use
844         IGNORE_ZERO_INF_SIGN.
845
846 2013-05-03  Andreas Jaeger  <aj@suse.de>
847
848         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
849         Linux 3.9.
850         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
851         (PF_MAX): Adjust for VSOCK change.
852
853 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
854
855         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
856
857 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
858
859         [BZ #15264]
860         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
861         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
862         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
863
864 2013-05-02  David S. Miller  <davem@davemloft.net>
865
866         * sysdeps/sparc/fpu/libm-test-ulps: Update.
867
868 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
869
870         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
871
872 2013-05-01  Roland McGrath  <roland@hack.frob.com>
873
874         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
875
876 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
877
878         [BZ #14952]
879         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
880         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
881         Use __attribute__ ((__gnu_inline__)).
882         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
883         Don't use __attribute__ ((__gnu_inline__)).
884
885 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
886
887         [BZ #15423]
888         * math/s_catan.c (__catan): Handle small real or imaginary part of
889         input specially to avoid spurious underflow.
890         * math/s_catanf.c (__catanf): Likewise.
891         * math/s_catanh.c (__catanh): Likewise.
892         * math/s_catanhf.c (__catanhf): Likewise.
893         * math/s_catanhl.c (__catanhl): Likewise.
894         * math/s_catanl.c (__catanl): Likewise.
895         * math/libm-test.inc (catan_test): Add more tests.
896         (catanh_test): Likewise.
897         * sysdeps/i386/fpu/libm-test-ulps: Update.
898         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
899
900 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
901
902         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
903
904 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
905
906         [BZ #15416]
907         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
908         accurately for denominator in atan2.
909         * math/s_catanf.c (__catanf): Likewise.
910         * math/s_catanh.c (__catanh): Likewise.
911         * math/s_catanhf.c (__catanhf): Likewise.
912         * math/s_catanhl.c (__catanhl): Likewise.
913         * math/s_catanl.c (__catanl): Likewise.
914         * math/libm-test.inc (catan_test): Add more tests.
915         (catanh_test): Likewise.
916         * sysdeps/i386/fpu/libm-test-ulps: Update.
917         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
918
919 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
920
921         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
922
923         * benchtests/Makefile (bench): Remove slow benchmarks.
924         * benchtests/atan-inputs: Add slow benchmark inputs.
925         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
926         (BENCH_FUNC): Accept variant offset.
927         (VARIANT): Define.
928         * benchtests/bench-skeleton.c (main): Run benchmark for each
929         variant.
930         * benchtests/cos-inputs: Add slow benchmark inputs.
931         * benchtests/exp-inputs: Likewise.
932         * benchtests/pow-inputs: Likewise.
933         * benchtests/sin-inputs: Likewise.
934         * benchtests/slowatan-inputs: Remove.
935         * benchtests/slowatan.c: Remove.
936         * benchtests/slowcos-inputs: Remove.
937         * benchtests/slowcos.c: Remove.
938         * benchtests/slowexp-inputs: Remove.
939         * benchtests/slowexp.c: Remove.
940         * benchtests/slowpow-inputs: Remove.
941         * benchtests/slowpow.c: Remove.
942         * benchtests/slowsin-inputs: Remove.
943         * benchtests/slowsin.c: Remove.
944         * benchtests/slowtan-inputs: Remove.
945         * benchtests/slowtan.c: Remove.
946         * benchtests/tan-inputs: Add slow benchmark inputs.
947         * scripts/bench.pl: Parse comments and directives.
948
949         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
950         in CPPFLAGS.
951         ($(objpfx)bench-%.c): Remove *-ITER.
952         * benchtests/bench-modf.c: Remove definition of ITER.
953         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
954         (main): Loop for DURATION seconds instead of fixed number of
955         iterations.
956         * scripts/bench.pl: Don't expect iterations in parameters.
957
958 2013-04-29  Roland McGrath  <roland@hack.frob.com>
959
960         * io/fchdir.c (__fchdir): Renamed from fchdir.
961         (fchdir): Define as weak alias.
962
963 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
964
965         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
966         (ERRNO_EDOM): Likewise.
967         (ERRNO_ERANGE): Likewise.
968         (noErrnoTests): New variable.
969         (init_max_error): Set errno to 0.
970         (test_single_errno): New function.
971         (test_errno): Likewise.
972         (check_float_internal): Call test_errno.  Set errno to 0.
973         (check_complex): Refer to errno tests in comment.
974         (check_int): Call test_errno.  Set errno to 0.
975         (check_long): Likewise.
976         (check_bool): Likewise.
977         (check_longlong): Likewise.
978         (cos_test): Use ERRNO_* flags for errno tests instead of
979         check_int.
980         (expm1_test): Likewise.
981         (fmod_test): Likewise.
982         (ilogb_test): Likewise.
983         (lgamma_test): Likewise.
984         (pow_test): Likewise.
985         (remainder_test): Likewise.
986         (sin_test): Likewise.
987         (tan_test): Likewise.
988         (yn_test): Likewise.
989         (initialize): Set errno to 0.
990         (main): Print number of errno tests.
991         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
992
993 2013-04-29  Andreas Jaeger  <aj@suse.de>
994
995         [BZ #15084]
996         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
997         and RES_USEVC.
998
999         [BZ #15085]
1000         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
1001         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
1002         unimplemented.
1003
1004         [BZ #15380]
1005         * stdlib/random.c (__initstate): Return NULL if
1006         __initstate fails.
1007
1008         [BZ #15086]
1009         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
1010         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
1011         RES_SNGLKUPREOP.
1012
1013 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1014
1015         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1016
1017 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
1018
1019         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
1020         of individual tests.
1021         (casin_test): Likewise.
1022         (casinh_test): Likewise.
1023
1024 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
1025
1026         [BZ #15409]
1027         * math/s_catan.c (__catan): Handle arguments with large real or
1028         imaginary part separately without squaring.
1029         * math/s_catanf.c (__catanf): Likewise.
1030         * math/s_catanh.c (__catanh): Likewise.
1031         * math/s_catanhf.c (__catanhf): Likewise.
1032         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
1033         and redefine.
1034         (__catanhl): Handle arguments with large real or imaginary part
1035         separately without squaring.
1036         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
1037         and redefine.
1038         (__catanl): Handle arguments with large real or imaginary part
1039         separately without squaring.
1040         * math/libm-test.inc (catan_test): Add more tests.
1041         (catanh_test): Likewise.
1042         * sysdeps/i386/fpu/libm-test-ulps: Update.
1043         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1044
1045 2013-04-27  Andreas Jaeger  <aj@suse.de>
1046
1047         [BZ #15007]
1048         * stdlib/stdlib.h: Update guards for qecvt.
1049         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
1050         <stdlib.h>.
1051
1052 2013-04-27  Allan McRae  <allan@archlinux.org>
1053
1054         * sysdeps/i386/fpu/libm-test-ulps: Update.
1055
1056 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
1057
1058         [BZ #15406]
1059         * math/s_catan.c: Include <float.h>.
1060         (__catan): Ensure underflow exception occurs for underflowed
1061         result.
1062         * math/s_catanf.c: Include <float.h>.
1063         (__catanf): Ensure underflow exception occurs for underflowed
1064         result.
1065         * math/s_catanh.c: Include <float.h>.
1066         (__catanh): Ensure underflow exception occurs for underflowed
1067         result.
1068         * math/s_catanhf.c: Include <float.h>.
1069         (__catanhf): Ensure underflow exception occurs for underflowed
1070         result.
1071         * math/s_catanhl.c: Include <float.h>.
1072         (__catanhl): Ensure underflow exception occurs for underflowed
1073         result.
1074         * math/s_catanl.c: Include <float.h>.
1075         (__catanl): Ensure underflow exception occurs for underflowed
1076         result.
1077         * math/libm-test.inc (catan_test): Add more tests.
1078         (catanh_test): Likewise.
1079
1080         [BZ #15405]
1081         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
1082         underflowed result.
1083         * math/s_ccoshf.c (__ccoshf): Likewise.
1084         * math/s_ccoshl.c (__ccoshl): Likewise.
1085         * math/s_csin.c (__csin): Likewise.
1086         * math/s_csinf.c (__csinf): Likewise.
1087         * math/s_csinh.c (__csinh): Likewise.
1088         * math/s_csinhf.c (__csinhf): Likewise.
1089         * math/s_csinhl.c (__csinhl): Likewise.
1090         * math/s_csinl.c (__csinl): Likewise.
1091         * math/libm-test.inc (ccos_test): Add more tests.
1092         (ccosh_test): Likewise.
1093         (csin_test): Likewise.
1094         (csinh_test): Likewise.
1095
1096 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1097
1098         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
1099         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
1100         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
1101         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
1102         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
1103         powerpc/power5+/fpu folders.
1104         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
1105
1106
1107 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
1108
1109         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1110
1111 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
1112
1113         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
1114         additions to variable.
1115         [$(config-machine) = x86_64] (modules-names): Likewise.
1116         ($(objpfx)tst-audit3): Remove dependency.
1117         ($(objpfx)tst-audit3.out): Likewise.
1118         ($(objpfx)tst-audit4): Likewise.
1119         ($(objpfx)tst-audit4.out): Likewise.
1120         ($(objpfx)tst-audit5): Likewise.
1121         ($(objpfx)tst-audit5.out): Likewise.
1122         ($(objpfx)tst-audit6): Likewise.
1123         ($(objpfx)tst-audit6.out): Likewise.
1124         ($(objpfx)tst-audit7): Likewise.
1125         ($(objpfx)tst-audit7.out): Likewise.
1126         (tst-audit3-ENV): Remove variable.
1127         (tst-audit4-ENV): Likewise.
1128         (tst-audit5-ENV): Likewise.
1129         (tst-audit6-ENV): Likewise.
1130         (tst-audit7-ENV): Likewise.
1131         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
1132         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
1133         addition to variable.
1134         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
1135         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
1136         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
1137         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
1138         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
1139         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
1140         tst-audit3, tst-audit4 and tst-audit5.
1141         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
1142         tst-audit6 and tst-audit7.
1143         [$(subdir) = elf] (modules-names): Add audit modules for those
1144         tests.
1145         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
1146         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
1147         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
1148         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
1149         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
1150         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
1151         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
1152         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
1153         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
1154         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
1155         [$(subdir) = elf] (tst-audit3-ENV): New variable.
1156         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
1157         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
1158         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
1159         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
1160         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
1161         Likewise.
1162         [$(subdir) = elf && $(config-cflags-avx) = yes]
1163         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
1164         [$(subdir) = elf && $(config-cflags-avx) = yes]
1165         (CFLAGS-tst-auditmod4a.c): Likewise.
1166         [$(subdir) = elf && $(config-cflags-avx) = yes]
1167         (CFLAGS-tst-auditmod4b.c): Likewise.
1168         [$(subdir) = elf && $(config-cflags-avx) = yes]
1169         (CFLAGS-tst-auditmod6b.c): Likewise.
1170         [$(subdir) = elf && $(config-cflags-avx) = yes]
1171         (CFLAGS-tst-auditmod6c.c): Likewise.
1172         [$(subdir) = elf && $(config-cflags-avx) = yes]
1173         (CFLAGS-tst-auditmod7b.c): Likewise.
1174         * elf/tst-audit3.c: Move to ...
1175         * sysdeps/x86_64/tst-audit3.c: ... here.
1176         * elf/tst-audit4.c: Move to ...
1177         * sysdeps/x86_64/tst-audit4.c: ... here.
1178         * elf/tst-audit5.c: Move to ...
1179         * sysdeps/x86_64/tst-audit5.c: ... here.
1180         * elf/tst-audit6.c: Move to ...
1181         * sysdeps/x86_64/tst-audit6.c: ... here.
1182         * elf/tst-audit7.c: Move to ...
1183         * sysdeps/x86_64/tst-audit7.c: ... here.
1184         * elf/tst-auditmod3a.c: Move to ...
1185         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
1186         * elf/tst-auditmod3b.c: Move to ...
1187         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
1188         * elf/tst-auditmod4a.c: Move to ...
1189         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
1190         * elf/tst-auditmod4b.c: Move to ...
1191         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
1192         * elf/tst-auditmod5a.c: Move to ...
1193         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
1194         * elf/tst-auditmod5b.c: Move to ...
1195         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
1196         * elf/tst-auditmod6a.c: Move to ...
1197         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
1198         * elf/tst-auditmod6b.c: Move to ...
1199         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
1200         * elf/tst-auditmod6c.c: Move to ...
1201         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
1202         * elf/tst-auditmod7a.c: Move to ...
1203         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
1204         * elf/tst-auditmod7b.c: Move to ...
1205         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
1206
1207 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
1208
1209         [BZ #15366]
1210         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
1211         define unconditionally.
1212         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
1213         define unconditionally.
1214         (INT8_C, INT16_C, etc.): Likewise.
1215
1216 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
1217
1218         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
1219         __ehdr_start with hidden visibility.
1220
1221         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
1222
1223 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
1224
1225         * math/libm-test.inc (cos_test): Use accurate hex constants.
1226         (sincost_test): Likewise.
1227
1228 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
1229
1230         * math/libm-test.inc (catan_test): Add more tests.
1231         (catanh_test): Likewise.
1232
1233         * math/s_catanf.c (__catanf): Use suffixed floating-point
1234         constants.
1235         * math/s_catanhf.c (__catanhf): Likewise.
1236         * math/s_catanhl.c (__catanhl): Likewise.
1237         * math/s_catanl.c (__catanl): Likewise.
1238
1239         [BZ #15394]
1240         * math/s_catan.c (__catan): Calculate imaginary part of result
1241         with log1p not log unless computing log of number close to 0.
1242         * math/s_catanf.c (__catanf): Likewise.
1243         * math/s_catanl.c (__catanl): Likewise.
1244         * math/s_catanh.c (__catanh): Calculate real part of result with
1245         log1p not log unless computing log of number close to 0.
1246         * math/s_catanhf.c (__catanhf): Likewise.
1247         * math/s_catanhl.c (__catanhl): Likewise.
1248         * math/libm-test.inc (catan_test): Add more tests.
1249         (catanh_test): Likewise.
1250         * sysdeps/i386/fpu/libm-test-ulps: Update.
1251         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1252
1253 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
1254
1255         * benchtests/Makefile: Mention files in which fast and slow
1256         paths of math functions are implemented.
1257
1258 2013-04-23  Roland McGrath  <roland@hack.frob.com>
1259
1260         * sysdeps/posix/timespec_get.c: New file.
1261
1262 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1263
1264         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
1265         POWER.
1266         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
1267         for POWER.
1268         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
1269         powerpc/power5/fpu folders.
1270         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
1271         * benchtests/Makefile: Add modf testcase.
1272         * benchtests/bench-modf.c: New file: Benchmark test for mo
1273
1274 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
1275
1276         [BZ #14888]
1277         * time/Makefile (tests): Add tst-strptime-whitespace.
1278         * time/strptime_l.c (get_number): Use ISSPACE.
1279         (__strptime_internal): Likewise.
1280         * time/tst-strptime-whitespace.c: New test case.
1281
1282 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
1283
1284         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
1285         member.
1286         (_nss_files_init): Set it here.
1287
1288 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
1289
1290         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
1291         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
1292         unsigned.
1293
1294 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
1295
1296         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
1297
1298 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
1299
1300         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
1301         size just once.
1302
1303 2013-04-21  David S. Miller  <davem@davemloft.net>
1304
1305         * po/ru.po: Update Russion translation from translation project.
1306
1307 2013-04-17  Adam Conrad  <adconrad@0c3.net>
1308
1309         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
1310         and setfsgid.
1311
1312 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
1313
1314         * configure.in: Remove i386 configure warning. Remove i386 case.
1315         * configure: Regenerate.
1316         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
1317         Add example to error message.
1318         * sysdeps/i386/configure: Regenerate.
1319
1320 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
1321
1322         * benchtests/Makefile (bench): Add cos, tan, slowcos and
1323         slowtan.
1324         * benchtests/cos-inputs: New file.
1325         * benchtests/slowcos-inputs: New file.
1326         * benchtests/slowcos.c: New file.
1327         * benchtests/slowtan-inputs: New file.
1328         * benchtests/slowtan.c: New file.
1329         * benchtests/tan-inputs: New file.
1330
1331 2013-04-16  Roland McGrath  <roland@hack.frob.com>
1332
1333         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
1334         considered kosher.
1335
1336 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
1337
1338         * benchtests/Makefile: Include cppflags-iterator.mk to add
1339         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
1340
1341         * Makefile.in (bench-clean): New target.
1342         * benchtests/Makefile (bench-clean): Likewise.
1343
1344 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
1345
1346         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
1347
1348 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
1349
1350         * stdio-common/tstdiomisc.c: Fix coding-style violation.
1351
1352 2013-04-15  Andreas Schwab  <schwab@suse.de>
1353
1354         * nscd/grpcache.c (cache_addgr): Properly check for short write.
1355         * nscd/initgrcache.c (addinitgroupsX): Likewise.
1356         * nscd/pwdcache.c (cache_addpw): Likewise.
1357         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
1358         more than recsize.
1359
1360 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
1361
1362         * benchtests/Makefile (bench): Write all output to
1363         bench-out.tmp together.
1364
1365 2013-04-15  Andreas Schwab  <schwab@suse.de>
1366
1367         * nscd/nscd.c (main): Don't fork again after closing files.
1368
1369 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
1370
1371         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
1372
1373         * benchtests/Rules (bench-deps): Collect dependencies into a
1374         single variable.  Add Makefile to dependencies.
1375         ($(objpfx)bench-%.c): Depend on bench-deps.
1376
1377 2013-04-12  Roland McGrath  <roland@hack.frob.com>
1378             Xavier Roche  <roche+kml2@exalead.com>
1379
1380         [BZ #15361]
1381         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
1382         just that it's a file descriptor.
1383         * manual/llio.texi (Synchronizing AIO Operations): Update description
1384         for EBADF error from aio_fsync.
1385
1386 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
1387
1388         * Rules (bench): Move target definition...
1389         * benchtests/Makefile: ... here.
1390
1391 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
1392
1393         * math/libm-test.inc (cos_test): Fix PI/2 test.
1394         (sincos_test): Likewise.
1395         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
1396         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
1397
1398 2013-04-11  Andreas Schwab  <schwab@suse.de>
1399
1400         [BZ #13988]
1401         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
1402         accept exponent character only when digits were seen.
1403         * stdio-common/Makefile (tests): Add bug26.
1404         * stdio-common/bug26.c: New file.
1405
1406         [BZ #14293]
1407         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
1408         non-freeable.
1409
1410 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
1411
1412         * Makeconfig (rtld-prefix): Define built linker prefix.
1413         * Rules (run-bench): Use it.
1414         * math/Makefile (run-regen-ulps): Likewise.
1415
1416         * Rules (bench): Remove eval.
1417
1418 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
1419             Roland McGrath  <roland@hack.frob.com>
1420             Ondrej Bilka  <neleai@seznam.cz>
1421
1422         [BZ #15346]
1423         * time/getdate.c: Include ctype.h and alloca.h.
1424         (__getdate_r): Trim leading and trailing spaces of input.
1425         * time/tst-getdate.c (tests): Add tests with leading and
1426         trailing spaces.
1427
1428 2013-04-08  Roland McGrath  <roland@hack.frob.com>
1429
1430         [BZ #14280]
1431         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
1432         when computing value.
1433
1434 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
1435
1436         * math/README.libm-test (How can I generate "libm-test-ulps"?):
1437         Use testrun.sh to run libm tests.
1438
1439         [BZ #15309]
1440         * elf/dl-open.c (dl_open_worker): memset all of seen array.
1441
1442 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
1443
1444         [BZ #15264]
1445         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
1446
1447 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
1448
1449         * Makefile.in (regen-ulps): New target.
1450         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
1451         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
1452         [ifneq (no,$(PERL)] (regen-ulps): New target.
1453         [ifeq (no,$(PERL)] (regen-ulps): New target.
1454         * math/libm-test.inc (ulps_file_name): Define.
1455         (output_dir): New variable.
1456         (options): Add "output-dir" option.
1457         (parse_opt): Handle 'o' case.
1458         (main): If output_dir is non-NULL use it as a prefix
1459         otherwise use "".
1460         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
1461
1462 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
1463
1464         [BZ #10060, #10062]
1465         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
1466         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
1467         fail configure if __sync_val_compare_and_swap is not inlined.
1468         * sysdeps/i386/configure: Regenerate.
1469         * configure.in: Build for i686 when configured for i386.
1470         * configure: Regenerate.
1471         * README: Remove i386 reference.
1472
1473 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
1474
1475         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
1476         * sysdeps/s390/s390-64/sysdep.h: Likewise.
1477
1478 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
1479
1480         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
1481         (lmsnanval): New variables.
1482         (F): Add conversion tests.
1483         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
1484         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
1485
1486         * stdio-common/tstdiomisc.c (F): Properly collect individual
1487         tests' results.
1488
1489         [BZ #14686, #15336]
1490         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
1491         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
1492         Instead, use input NaN values or generate a qNaN by arithmetic
1493         operation.  Also fix bugs to comply with the standard.
1494         * math/libm-test.inc (remainder_test): Add more tests.
1495
1496         [BZ #15335, #15342]
1497         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
1498         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
1499         input NaN values or generate a qNaN by arithmetic operation.
1500
1501         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
1502         unreachable code.
1503
1504         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
1505         definitions.
1506
1507 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
1508
1509         [BZ #14478]
1510         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
1511         underflowed result.
1512         * math/s_cexpf.c (__cexpf): Likewise.
1513         * math/s_cexpl.c (__cexpl): Likewise.
1514         * math/libm-test.inc (cexp_test): Add more tests.
1515
1516 2013-04-03  Andreas Schwab  <schwab@suse.de>
1517
1518         [BZ #15330]
1519         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
1520         order arrays from heap if bigger than alloca cutoff.
1521
1522 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
1523
1524         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
1525         (SNAN_TESTS_double): Refer to GCC PR56831.
1526         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
1527         GCC PR56828.
1528
1529 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
1530
1531         * Rules (bench): Move bench.out after the run is complete.
1532
1533         * Rules (bench): Echo currently running benchmark.
1534
1535         * benchtests/Makefile (bench): Add atan and slowatan.
1536         * benchtests/atan-inputs: New file.
1537         * benchtests/slowatan-inputs: New file.
1538         * benchtests/slowatan.c: New file.
1539
1540         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
1541         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
1542         its value.
1543
1544         [BZ #15305]
1545         * sysdeps/unix/sysv/linux/kernel-features.h
1546         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
1547         __ASSUME_XFS_RESTRICTED_CHOWN.
1548         * sysdeps/unix/sysv/linux/pathconf.c
1549         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
1550         Save and restore errno.
1551
1552 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
1553
1554         [BZ #15327]
1555         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
1556         arguments using __kernel_casinh.
1557         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
1558         arguments using __kernel_casinhf.
1559         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
1560         arguments using __kernel_casinhl.
1561         * math/libm-test.inc (cacosh_test): Add more tests.
1562         * sysdeps/i386/fpu/libm-test-ulps: Update.
1563         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1564
1565 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
1566
1567         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
1568         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
1569
1570         * bench/Makefile (bench): Add sin and slowsin.
1571         * benchtests/sin-inputs: New file.
1572         * benchtests/slowsin-inputs: New file.
1573         * benchtests/slowsin.c: New file.
1574
1575         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
1576         (bench): Add slowexp and slowpow.
1577         (exp-ITER): Increase iterations.
1578         (pow-ITER): Likewise.
1579         * benchtests/exp-inputs: Change input.
1580         * benchtests/pow-inputs: Likewise.
1581         * benchtests/slowexp-inputs: New file.
1582         * benchtests/slowexp.c: New file.
1583         * benchtests/slowpow-inputs: New file.
1584         * benchtests/slowpow.c: New file.
1585
1586 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1587
1588         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
1589         instructions.
1590         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
1591         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
1592         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
1593         * benchtests/Makefile: Add rint benchtest.
1594         * benchtests/rint-inputs: Input for rint benchtest.
1595
1596 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
1597
1598         * Versions.def (libm): Add GLIBC_2.18.
1599         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
1600         hidden libm prototypes.
1601         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
1602         * math/Makefile (libm-calls): Add s_issignaling.
1603         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
1604         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
1605         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
1606         declaration.
1607         * math/math.h [__USE_GNU] (issignaling): New macro.
1608         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
1609         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
1610         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
1611         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
1612         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
1613         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
1614         * manual/arith.texi (issignaling): New section.
1615         * manual/libm-err-tab.pl (@all_functions): Update comment.
1616         * math/gen-libm-test.pl (parse_args): Apply special handling for
1617         issignaling.
1618         * math/libm-test.inc (print_float, issignaling_test): New
1619         functions.
1620         (check_float_internal): Add issignaling checks.
1621         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
1622         default definition.
1623         * sysdeps/powerpc/math-tests.h: New file.
1624         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
1625         tests.
1626         * math/test-snan.c (TEST_FUNC): Likewise.
1627
1628 2013-03-30  David S. Miller  <davem@davemloft.net>
1629
1630         * po/de.po: Update from translation team.
1631
1632 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
1633
1634         [BZ #10357]
1635         * math/k_casinh.c (__kernel_casinh): Handle arguments with
1636         imaginary part less than 1.0 and real part less than 0.5
1637         specially.
1638         * math/k_casinhf.c (__kernel_casinhf): Likewise.
1639         * math/k_casinhl.c (__kernel_casinhl): Likewise.
1640         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
1641         (cacos_test): Add more tests.
1642         (casin_test): Likewise.
1643         (casinh_test): Likewise.
1644         * sysdeps/i386/fpu/libm-test-ulps: Update.
1645         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1646
1647 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
1648
1649         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
1650         ONE with its value.
1651
1652         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
1653         (__pow_mp): Replace ONE and MONE with their values.
1654         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
1655         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
1656         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
1657         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
1658         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
1659         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
1660
1661         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
1662
1663         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
1664         (__pow_mp): Replace ZERO and MZERO with their values.
1665         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
1666         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
1667         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
1668         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
1669         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
1670         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
1671         (__sqr): Likewise.
1672
1673         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
1674
1675         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
1676
1677 2013-03-28  Roland McGrath  <roland@hack.frob.com>
1678
1679         * include/stdlib.h [!SHARED] (__call_tls_dtors):
1680         Declare with __attribute__ ((weak)).
1681         * stdlib/exit.c (__libc_atexit) [!SHARED]:
1682         Call __call_tls_dtors only if it's not NULL.
1683
1684 2013-03-28  Roland McGrath  <roland@hack.frob.com>
1685
1686         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
1687         didn't do it already, then set _dl_phdr and _dl_phnum based on the
1688         magic __ehdr_start linker symbol if it's defined.
1689         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
1690         them up here if it was already done.
1691
1692         * elf/dl-support.c (_dl_phdr): Make pointer to const.
1693         (_dl_aux_init): Use const in cast when setting it.
1694         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
1695         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
1696         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
1697
1698         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
1699         Declare them here.
1700         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
1701         * csu/libc-tls.c: Nor here.
1702         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
1703
1704         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
1705         (__libc_message): Never call vsyslog.
1706
1707 2013-03-28  Alan Modra  <amodra@gmail.com>
1708
1709         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
1710         Define as empty.
1711         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
1712         Likewise.
1713
1714 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1715
1716         [BZ #15214]
1717         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
1718         underflow.
1719         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1720
1721 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
1722
1723         [BZ #15304]
1724         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
1725         Don't add gid passed as argument.
1726
1727         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
1728
1729 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
1730
1731         [BZ #15307]
1732         * math/k_casinh.c (__kernel_casinh): Handle arguments with
1733         imaginary part between 1.0 and 1.5 and real part less than 0.5
1734         specially.
1735         * math/k_casinhf.c (__kernel_casinhf): Likewise.
1736         * math/k_casinhl.c (__kernel_casinhl): Likewise.
1737         * math/libm-test.inc (cacos_test): Add more tests.
1738         (casin_test): Likewise.
1739         (casinh_test): Likewise.
1740         * sysdeps/i386/fpu/libm-test-ulps: Update.
1741         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1742
1743 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
1744
1745         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
1746         constants.
1747         (norm): Likewise.
1748         (denorm): Likewise.
1749         (__dbl_mp): Likewise.
1750         (add_magnitudes): Likewise.
1751         (sub_magnitudes): Likewise.
1752         (__add): Likewise.
1753         (__sub): Likewise.
1754         (__mul): Likewise.
1755         (__sqr): Likewise.
1756         (__inv): Likewise.
1757         (__dvd): Likewise.
1758
1759         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
1760         commented code.
1761         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
1762         (__dubcos): Likewise.
1763         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
1764         (__ieee754_acos): Likewise.
1765         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
1766         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
1767         (__exp1): Likewise.
1768         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
1769         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
1770         (log1): Likewise.
1771         (my_log2): Likewise.
1772         (checkint): Likewise.
1773         * sysdeps/ieee754/dbl-64/e_remainder.c
1774         (__ieee754_remainder): Likewise.
1775         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
1776         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
1777         (bsloww): Likewise.
1778         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
1779
1780         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
1781         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
1782         MANTISSA_STORE_T to store computations on mantissa.  Use
1783         macros for rounding and division.
1784         (denorm): Likewise.
1785         (__dbl_mp): Likewise.
1786         (add_magnitudes): Likewise.
1787         (sub_magnitudes): Likewise.
1788         (__mul): Likewise.
1789         (__sqr): Likewise.
1790         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
1791         powers of two in terms of TWOPOW macro.
1792         (mp_no): Make type of mantissa as MANTISSA_T.
1793         [!RADIXI]: Define RADIXI.
1794         [!TWO52]: Define TWO52.
1795         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
1796
1797 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1798
1799         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
1800         llroundl symbol when building for PPC32.
1801
1802 2013-03-24  Mark H Weaver  <mhw@netris.org>
1803
1804         * manual/arith.texi (Normalization Functions): Fix prototypes for
1805         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
1806
1807 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1808
1809         [BZ #13889]
1810         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
1811         high value to check if expl overflow.
1812         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
1813         to check for underflow and overflow.
1814         * math/libm-test.inc: Add exp test.
1815
1816 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
1817
1818         [BZ #11120]
1819         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
1820         with NOT_IN_libc.
1821
1822 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1823
1824         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
1825         symbol.
1826
1827 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
1828
1829         * math/gen-libm-test.pl (parse_args, special_functions): Properly
1830         wrap blocks consisting of several statements.
1831
1832         * sysdeps/generic/math-tests.h: New file.
1833         * sysdeps/i386/fpu/math-tests.h: Likewise.
1834         * math/test-snan.c: Include it.
1835         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
1836
1837 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
1838
1839         [BZ #15285]
1840         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
1841         (__ieee754_j0l): Do not improve calculations using cos of twice
1842         input for inputs above LDBL_MAX / 2.0L.
1843         (__ieee754_y0l): Likewise.
1844         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
1845         (__ieee754_j1l): Do not improve calculations using cos of twice
1846         input for inputs above LDBL_MAX / 2.0L.
1847         (__ieee754_y1l): Likewise.
1848         * math/libm-test.inc (j0_test): Add another test.
1849         (j1_test): Likewise.
1850         (y0_test): Likewise.
1851         (y1_test): Likewise.
1852         * sysdeps/i386/fpu/libm-test-ulps: Update.
1853
1854 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
1855
1856         * Rules ($(objpfx)bench-%.c): Include code from a C source
1857         file.
1858
1859 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
1860
1861         [BZ #15287]
1862         * math/k_casinh.c (__kernel_casinh): Handle arguments with
1863         imaginary part 1.0 and real part less than 0.5 specially.
1864         * math/k_casinhf.c (__kernel_casinhf): Likewise.
1865         * math/k_casinhl.c (__kernel_casinhl): Likewise.
1866         * math/libm-test.inc (cacos_test): Add more tests.
1867         (casin_test): Likewise.
1868         (casinh_test): Likewise.
1869         * sysdeps/i386/fpu/libm-test-ulps: Update.
1870         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1871
1872 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
1873
1874         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
1875         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
1876
1877 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
1878
1879         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
1880         * config.make.in (config-cflags-sse4): Remove variable.
1881         (config-cflags-avx): Likewise.
1882         (config-cflags-sse2avx): Likewise.
1883         (config-cflags-novzeroupper): Likewise.
1884         (config-asflags-i686): Likewise.
1885         (have-mfma4): Likewise.
1886         (have-as-vis3): Likewise.
1887         (MIG): Likewise.
1888         * configure.in (MIG): Do not AC_SUBST.
1889         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
1890         (libc_cv_cc_sse4): Do not AC_SUBST.
1891         (libc_cv_cc_avx): Likewise.
1892         (libc_cv_cc_sse2avx): Likewise.
1893         (libc_cv_cc_novzeroupper): Likewise.
1894         (libc_cv_cc_fma4): Likewise.
1895         (libc_cv_as_i686): Likewise.
1896         (libc_cv_sparc_as_vis3): Likewise.
1897         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
1898         LIBC_CONFIG_VAR.
1899         (config-asflags-i686): Likewise.
1900         (config-cflags-avx): Likewise.
1901         (config-cflags-sse2avx): Likewise.
1902         (have-mfma4): Likewise.
1903         (config-cflags-novzeroupper): Likewise.
1904         * sysdeps/mach/configure.in (MIG): Likewise.
1905         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
1906         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
1907         LIBC_CONFIG_VAR.
1908         (config-cflags-avx): Likewise.
1909         (config-cflags-sse2avx): Likewise.
1910         (have-mfma4): Likewise.
1911         (config-cflags-novzeroupper): Likewise.
1912         * configure: Regenerated.
1913         * sysdeps/i386/configure: Likewise.
1914         * sysdeps/mach/configure: Likewise.
1915         * sysdeps/sparc/configure: Likewise.
1916         * sysdeps/x86_64/configure: Likewise.
1917
1918 2013-03-20  Roland McGrath  <roland@hack.frob.com>
1919
1920         [BZ #14812]
1921         * locale/programs/localedef.c (options): Put N_ translation marker
1922         on argument names, not just descriptions.
1923
1924 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
1925
1926         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
1927
1928 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
1929
1930         [BZ #14176]
1931         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
1932
1933 2013-03-19  Roland McGrath  <roland@hack.frob.com>
1934
1935         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
1936         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
1937         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
1938         [!BEFORE_ABORT] (before_abort): New function.
1939         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
1940         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
1941         (writev_for_fatal): New function.
1942         (WRITEV_FOR_FATAL): New macro; call that.
1943         (backtrace_and_maps): New function.
1944         (BEFORE_ABORT): New macro; call that.
1945         (struct str_list): Type removed.
1946         (__libc_message, __libc_fatal): Functions removed.
1947         Include <sysdeps/posix/libc_fatal.c> instead.
1948
1949 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
1950
1951         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
1952         constants.
1953         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
1954         double constants.
1955
1956 2013-03-19  Andreas Schwab  <schwab@suse.de>
1957
1958         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
1959         * sysdeps/gnu/configure: Regenerate.
1960
1961         * configure.in: Substitute libc_cv_rtlddir.
1962         * configure: Regenerate.
1963         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
1964         * Makeconfig (rtlddir, inst_rtlddir): New variables.
1965         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
1966         * elf/Makefile (install-others, CFLAGS-interp.c)
1967         (ldso_install, common-ldd-rewrite): Likewise.
1968         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
1969         $(inst_slibdir)/$(rtld-installed-name).
1970         * scripts/rellns-sh: Add -p option.
1971         * Makerules (make-shlib-link): Use rellns-sh to get relative name
1972         for source.
1973
1974 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
1975
1976         * manual/nptl.texi: Renamed to ...
1977         * manual/threads.texi: ... this.
1978         * manual/Makefile (chapters): Update.
1979
1980 2013-03-18  Roland McGrath  <roland@hack.frob.com>
1981
1982         [BZ #14812]
1983         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
1984         on argument names, not just descriptions.
1985         * malloc/memusagestat.c (options): Likewise.
1986         * nss/getent.c (options): Likewise.
1987
1988 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
1989
1990         [BZ #14812]
1991         * iconv/iconv_prog.c (options): Put N_ translation marker
1992         on argument names, not just descriptions.
1993         * iconv/iconvconfig.c (options): Likewise.
1994
1995 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
1996
1997         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
1998         implementation which is faster on all x86_64 architectures.
1999         Tested on AMD, Intel Nehalem, SNB, IVB.
2000         * sysdeps/x86_64/strnlen.S: Likewise.
2001
2002         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
2003         Remove all multiarch strlen and strnlen versions.
2004         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
2005         Remove strlen and strnlen related parts.
2006
2007         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
2008         Inline strlen part.
2009         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
2010
2011         * sysdeps/x86_64/multiarch/strlen.S: Remove.
2012         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
2013         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
2014         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
2015         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
2016         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
2017
2018 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
2019
2020         * manual/memory.texi (Malloc Tunable Parameters):
2021         Sort parameters alphabetically. Add comments for missing entries.
2022
2023 2013-03-17  David S. Miller  <davem@davemloft.net>
2024
2025         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2026
2027 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
2028
2029         [BZ #15283]
2030         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
2031         for arguments at most half maximum finite value.
2032         * math/libm-test.inc (j0_test): Add more tests.
2033         (j1_test): Likewise.
2034         (y0_test): Likewise.
2035         (y1_test): Likewise.
2036         * sysdeps/i386/fpu/libm-test-ulps: Update.
2037         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2038
2039         [BZ #14155]
2040         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
2041         1 / x and functions P and Q for arguments above 0x1p256L.
2042         (__ieee754_y0l): Likewise.
2043         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
2044         (__ieee754_y1l): Likewise.
2045         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
2046         (j1_test): Likewise.
2047         (y0_test): Likewise.
2048         (y1_test): Likewise.
2049
2050 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
2051
2052         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
2053         variable.
2054
2055 2013-03-15  Roland McGrath  <roland@hack.frob.com>
2056
2057         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
2058         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
2059         zero since it's initialized to EXEC_PAGESIZE.
2060
2061         * sysdeps/unix/sysv/linux/ldsodefs.h
2062         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
2063         * sysdeps/generic/ldsodefs.h: ... here.
2064
2065 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
2066
2067         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
2068
2069         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
2070         math/test-snan.c.
2071         * math/test-snan.c: Renamed from
2072         sysdeps/powerpc/fpu/test-powerpc-snan.c.
2073         * math/Makefile (tests): Add test-snan.
2074         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
2075         test-powerpc-snan.
2076
2077         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
2078         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
2079         functions.
2080         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
2081         __builtin_nan family of functions.
2082         * math/libm-test.inc (initialize): Initialize qnan_value with
2083         __builtin_nan family of functions.
2084         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
2085         Remove variables.
2086         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
2087         Remove functions.
2088         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
2089         storage class.  Initialize qNaN_var and sNaN_var with
2090         __builtin_nan and __builtin_nans families of functions,
2091         respectively.
2092
2093         * math/libm-test.inc (acosh_test): Also test with qNaN input.
2094         (sqrt_test): Remove duplicate test with qNaN input.
2095         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
2096         (round_test, signbit_test, significand_test): Note missing +/-Inf
2097         as well as qNaN tests.
2098
2099         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
2100         qNaN_var.  Fix a few strings, too.
2101         * math/libm-test.inc (nan_value): Rename to qnan_value.
2102         * math/gen-libm-test.pl (%beautify): Adjust to that.
2103         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
2104         * math/test-misc.c (main): Likewise.
2105         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
2106         to __qnan_bytes, and __qnan_union, respectively.
2107         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
2108         Likewise.
2109         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
2110         and lqnanval, respectively.
2111         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
2112         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
2113         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
2114         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
2115
2116         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
2117         * math/test-misc.c (main) [__x86_64__]: Enable test for long
2118         doubles.
2119
2120         * math/test-misc.c (main): Fix copy'n'pastos.
2121         * misc/tst-efgcvt.c (special): Likewise.
2122
2123         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
2124         Remove declarations.
2125
2126 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
2127
2128         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
2129         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
2130         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
2131         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
2132
2133 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2134
2135         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
2136         macro to return vdso values correctly in IFUNC implementations.
2137         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
2138         Optimization by using IFUNC.
2139
2140 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
2141             Richard Henderson  <rth@redhat.com>
2142             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2143
2144         * Makefile.in (bench): New target.
2145         * NEWS: Mention the benchmark framework.
2146         * Rules (bench): Likewise.
2147         (binaries-bench): Generate binaries for functions to
2148         benchmark.
2149         * benchtests/Makefile: New makefile for benchmark tests.
2150         * benchtests/bench-skeleton.c: New skeleton file for benchmark
2151         programs.
2152         * benchtests/exp-inputs: New input file for EXP function.
2153         * benchtests/pow-inputs: New input file for POW function.
2154         * scripts/bench.pl: New script to generate source files for
2155         benchmark programs.
2156
2157 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
2158
2159         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
2160         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
2161         computations on mantissa.  Use macros for rounding and
2162         division.
2163         (denorm): Likewise.
2164         (__dbl_mp): Likewise.
2165         (add_magnitudes): Likewise.
2166         (sub_magnitudes): Likewise.
2167         (__mul): Likewise.
2168         (__sqr): Likewise.
2169         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
2170         powers of two in terms of TWOPOW macro.
2171         (mp_no): Make type of mantissa as MANTISSA_T.
2172         [!RADIXI]: Define RADIXI.
2173         [!TWO52]: Define TWO52.
2174         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
2175
2176         * manual/nptl.texi (cindex): Modify threads to pthreads.
2177
2178 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
2179
2180         * sysdeps/x86_64/preconfigure: Regenerated.
2181
2182 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
2183
2184         [BZ #14155]
2185         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
2186         0x1p28 and above.
2187         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
2188         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
2189         0x1p28 and above.
2190         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
2191         * math/libm-test.inc (j0_test): Do not allow one spurious
2192         underflow exception.
2193         (y1_test): Likewise.
2194
2195 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
2196
2197         * manual/Makefile (chapters): Add nptl.
2198         * manual/debug.texi (Debugging Support): Add link to Threads
2199         chapter.
2200         * manual/nptl.texi: New file.
2201
2202         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
2203
2204 2013-03-14  Petr Baudis  <pasky@ucw.cz>
2205
2206         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
2207         for non-NULL pointer before the memory validity test. Pointed
2208         out by Holger Brunck <holger.brunck@keymile.com>.
2209
2210 2013-03-13  Andreas Schwab  <schwab@suse.de>
2211
2212         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
2213         instead of .os.
2214
2215 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
2216
2217         * timezone/zic.c: Update from tzcode 2013b.
2218
2219 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
2220
2221         * manual/install.texi (Configuring and compiling):
2222         Mention i686 and i586.
2223         * INSTALL: Regenerate.
2224
2225 2013-03-12  Roland McGrath  <roland@hack.frob.com>
2226
2227         * sysdeps/init_array/elf-init.c: New file.
2228         * csu/elf-init.c
2229         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
2230         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
2231
2232         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
2233         __gmon_start__ as global, but as static with a .preinit_array pointer.
2234         * sysdeps/init_array/gmon-start.c: New file.  Use that.
2235         * sysdeps/init_array/crti.S: New file, empty except for comments.
2236         * sysdeps/init_array/crtn.S: Likewise.
2237
2238 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
2239
2240         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
2241         definining bcopy.
2242         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
2243         Remove Prefer_SSE_for_memop.
2244         * sysdeps/x86_64/multiarch/init-arch.h: Remove
2245         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
2246         HAS_PREFER_SSE_FOR_MEMOP.
2247         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
2248         memset-x86-64.
2249         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
2250         Remove bzero, memset ifunc support.
2251         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
2252         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
2253         * sysdeps/x86_64/multiarch/memset.S: Likewise.
2254         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
2255
2256 2013-03-11  Andreas Schwab  <schwab@suse.de>
2257
2258         [BZ #15234]
2259         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
2260         by SHLIB_COMPAT.
2261         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
2262         (GLIBC_2.16): Remove pthread_atfork.
2263
2264 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
2265
2266         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
2267         (ptestcases.h): Likewise.
2268
2269 2013-03-08  Roland McGrath  <roland@hack.frob.com>
2270
2271         * Makeconfig ($(common-objpfx)config.status): Depend on
2272         sysdeps/*/preconfigure{,.in} too.
2273
2274 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
2275
2276         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
2277         (__free_hook): Use void * instead of __malloc_ptr_t.
2278         (__malloc_hook): Likewise.
2279         (__realloc_hook): Likewise.
2280         (__memalign_hook): Likewise.
2281         (__after_morecore_hook): Likewise.
2282         * malloc/arena.c (save_malloc_hook): Likewise.
2283         (save_free_hook): Likewise.
2284         * malloc/hooks.c (malloc_hook_ini): Likewise.
2285         (realloc_hook_ini): Likewise.
2286         (memalign_hook_ini): Likewise.
2287         * malloc/malloc.c (malloc_hook_ini): Likewise.
2288         (realloc_hook_ini): Likewise.
2289         (memalign_hook_ini): Likewise.
2290         (__free_hook): Likewise.
2291         (__malloc_hook): Likewise.
2292         (__realloc_hook): Likewise.
2293         (__memalign_hook): Likewise.
2294         (__libc_malloc): Likewise.
2295         (__libc_free): Likewise.
2296         (__libc_realloc): Likewise.
2297         (__libc_memalign): Likewise.
2298         (__libc_valloc): Likewise.
2299         (__libc_pvalloc): Likewise.
2300         (__libc_calloc): Likewise.
2301         (__posix_memalign): Likewise.
2302         * malloc/morecore.c (__sbrk): Likewise.
2303         (__default_morecore): Likewise.
2304
2305         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
2306
2307         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
2308         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
2309         __malloc_ptrdiff_t.
2310
2311         * malloc/malloc.h (__malloc_size_t): Remove macro.
2312         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
2313         __malloc_size_t.
2314         (old_memalign_hook): Likewise.
2315         (old_realloc_hook): Likewise.
2316         (struct hdr): Likewise.
2317         (flood): Likewise.
2318         (mallochook): Likewise.
2319         (memalignhook): Likewise.
2320         (reallochook): Likewise.
2321         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
2322         (tr_old_realloc_hook): Likewise.
2323         (tr_old_memalign_hook): Likewise.
2324         (tr_mallochook): Likewise.
2325         (tr_reallochook): Likewise.
2326         (tr_memalignhook): Likewise.
2327
2328 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2329
2330         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
2331         default_ldbl_pack and using as default implementation.
2332         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
2333         implementation.
2334         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
2335         redundant definition.
2336         (ldbl_insert_mantissa): Likewise.
2337         (ldbl_canonicalize): Likewise.
2338         (ldbl_nearbyint): Likewise.
2339         (ldbl_pack): Rename to ldbl_pack_ppc.
2340         (ldbl_unpack): Rename to ldbl_unpack_ppc.
2341         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
2342         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
2343
2344 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
2345
2346         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
2347         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
2348         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
2349         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
2350         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
2351         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
2352         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
2353         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
2354
2355 2013-03-07  Andreas Jaeger  <aj@suse.de>
2356
2357         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2358         bits/mman-linux.h.
2359
2360 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
2361
2362         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
2363         Include mpa.h and declare __MPEXP.
2364         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
2365         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
2366         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
2367         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
2368         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
2369         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
2370         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
2371
2372         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
2373         (__slowpow): Use long double EXPL and LOGL functions to
2374         compute POW.
2375         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
2376         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
2377         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
2378         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
2379         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
2380         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
2381
2382         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
2383         intermediate variable to calculate exponent.
2384         (__sqr): Likewise.
2385         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
2386         Likewise.
2387         (__sqr): Likewise.
2388
2389         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
2390         [!NO__SQR]: Define __sqr.
2391         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
2392         and NO__SQR.  Remove all code except __mul and __sqr.  Include
2393         sysdeps/ieee754/dbl-64/mpa.c.
2394         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
2395
2396         [BZ #12723]
2397         * posix/Makefile (tests): Add tst-pathconf.
2398         * posix/tst-pathconf.c: New test case.
2399         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
2400         _PC_PIPE_BUF.
2401         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
2402
2403 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
2404
2405         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
2406
2407 2013-03-06  Andreas Jaeger  <aj@suse.de>
2408
2409         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
2410         definition via __MAP_ANONYMOUS.
2411
2412         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
2413         it's not part of Linux headers.
2414
2415         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
2416         (MAP_HUGE_MASK): Define.
2417
2418         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
2419         Define.
2420         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
2421         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
2422         Define.
2423         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
2424         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
2425         Define.
2426         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
2427         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
2428         Define.
2429         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
2430
2431         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
2432         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
2433         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
2434         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
2435         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
2436         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
2437
2438         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
2439         Handle f2fs.
2440
2441         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
2442         Handle f2fs and efivarfs.
2443
2444         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
2445         f2fs.
2446
2447         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
2448         (EFIVARFS_MAGIC): Add.
2449         (F2FS_LINK_MAX): Add.
2450
2451 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
2452
2453         * stdio-common/vfprintf.c: Replace __builtin_expect with
2454         __glibc_unlikely.
2455
2456 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
2457
2458         [BZ #13550]
2459         * sysdeps/generic/bp-sym.h: Remove file.
2460         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
2461         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
2462         <bp-sym.h> and <bp-asm.h>.
2463         (__longjmp): Don't use BP_SYM.
2464         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
2465         and <bp-asm.h>.
2466         (memcpy): Don't use BP_SYM.
2467         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
2468         <bp-sym.h> and <bp-asm.h>.
2469         (memcpy): Don't use BP_SYM.
2470         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
2471         <bp-asm.h>.
2472         (memcpy): Don't use BP_SYM.
2473         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
2474         <bp-asm.h>.
2475         (memset): Don't use BP_SYM.
2476         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
2477         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
2478         (__bzero): Don't use BP_SYM.
2479         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
2480         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
2481         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
2482         <bp-sym.h> and <bp-asm.h>.
2483         (memcmp): Don't use BP_SYM.  Remove comment about bounded
2484         pointers.
2485         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
2486         <bp-sym.h> and <bp-asm.h>.
2487         (memcpy): Don't use BP_SYM.
2488         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
2489         <bp-sym.h> and <bp-asm.h>.
2490         (memset): Don't use BP_SYM.
2491         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
2492         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
2493         (__bzero): Don't use BP_SYM.
2494         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
2495         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
2496         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
2497         <bp-sym.h> and <bp-asm.h>.
2498         (strncmp): Don't use BP_SYM.  Remove comment about bounded
2499         pointers.
2500         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
2501         <bp-sym.h> and <bp-asm.h>.
2502         (memcpy): Don't use BP_SYM.
2503         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
2504         <bp-sym.h> and <bp-asm.h>.
2505         (memset): Don't use BP_SYM.
2506         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
2507         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
2508         (__bzero): Don't use BP_SYM.
2509         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
2510         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
2511         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
2512         <bp-sym.h> and <bp-asm.h>.
2513         (__memchr): Don't use BP_SYM.
2514         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
2515         <bp-sym.h> and <bp-asm.h>.
2516         (memcmp): Don't use BP_SYM.  Remove comment about bounded
2517         pointers.
2518         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
2519         <bp-sym.h> and <bp-asm.h>.
2520         (memcpy): Don't use BP_SYM.
2521         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
2522         <bp-sym.h> and <bp-asm.h>.
2523         (__mempcpy): Don't use BP_SYM.
2524         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
2525         <bp-sym.h> and <bp-asm.h>.
2526         (__memrchr): Don't use BP_SYM.
2527         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
2528         <bp-sym.h> and <bp-asm.h>.
2529         (memset): Don't use BP_SYM.
2530         (__bzero): Likewise.
2531         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
2532         <bp-sym.h> and <bp-asm.h>.
2533         (__rawmemchr): Don't use BP_SYM.
2534         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
2535         <bp-sym.h> and <bp-asm.h>.
2536         (__STRCMP): Don't use BP_SYM.
2537         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
2538         <bp-sym.h> and <bp-asm.h>.
2539         (strchr): Don't use BP_SYM.
2540         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
2541         <bp-sym.h> and <bp-asm.h>.
2542         (__strchrnul): Don't use BP_SYM.
2543         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
2544         <bp-sym.h> and <bp-asm.h>.
2545         (strlen): Don't use BP_SYM.
2546         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
2547         <bp-sym.h> and <bp-asm.h>.
2548         (strncmp): Don't use BP_SYM.  Remove comment about bounded
2549         pointers.
2550         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
2551         <bp-sym.h> and <bp-asm.h>.
2552         (__strnlen): Don't use BP_SYM.
2553         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
2554         <bp-sym.h> and <bp-asm.h>.
2555         (__GI__setjmp): Don't use BP_SYM.
2556         (_setjmp): Likewise.
2557         (__sigsetjmp): Likewise.
2558         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
2559         (L(start_addresses)): Don't use BP_SYM.
2560         (_start): Likewise.
2561         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
2562         <bp-asm.h>.
2563         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
2564         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
2565         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
2566         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
2567         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
2568         <bp-asm.h>.
2569         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
2570         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
2571         about bounded pointers.
2572         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
2573         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
2574         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
2575         <bp-asm.h>.
2576         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
2577         about bounded pointers.  Remove GKM FIXME comments.
2578         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
2579         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
2580         <bp-asm.h>.
2581         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
2582         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
2583         Remove GKM FIXME comments.
2584         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
2585         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
2586         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
2587         <bp-asm.h>.
2588         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
2589         about bounded pointers.  Remove GKM FIXME comment.
2590         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
2591         and <bp-asm.h>.
2592         (strncmp): Don't use BP_SYM.  Remove comment about bounded
2593         pointers.
2594         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
2595         <bp-sym.h> and <bp-asm.h>.
2596         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
2597         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
2598         <bp-sym.h> and <bp-asm.h>.
2599         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
2600         comment.
2601
2602 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
2603
2604         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
2605         call free(NULL).
2606
2607 2013-03-05  David S. Miller  <davem@davemloft.net>
2608
2609         * po/es.po: Update from translation team.
2610
2611 2013-03-05  Andreas Jaeger  <aj@suse.de>
2612
2613         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
2614         <bits/mman-linux.h>.
2615         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
2616         is fine.
2617         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
2618         <bits/mman-linux.h> to end of file.
2619         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
2620         is fine.
2621         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
2622         <bits/mman-linux.h> to end of file.
2623         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
2624         is fine.
2625         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
2626         <bits/mman-linux.h> to end of file.
2627
2628         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
2629         (MCL_CURRENT, MCL_FUTURE): Define here.
2630
2631 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2632
2633         [BZ #15232]
2634         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
2635         attribute_hidden.
2636         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
2637
2638 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2639
2640         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
2641         fourth parameter needed for rt_sigprocmask syscall.
2642         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
2643         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
2644         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
2645         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
2646         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
2647         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
2648
2649 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
2650
2651         [BZ #13550]
2652         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
2653         comment about bounded pointers.
2654         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
2655         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
2656
2657 2013-03-04  Andreas Jaeger  <aj@suse.de>
2658
2659         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
2660         common definitions.
2661
2662         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
2663         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
2664         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
2665         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
2666         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
2667         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
2668
2669 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2670
2671         [BZ #15055]
2672         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
2673         __ieee754_sqrl instead of __sqrl.
2674
2675 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
2676
2677         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
2678         * sysdeps/powerpc/fpu_control.h: ... here.
2679         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
2680         * sysdeps/powerpc/bits/fenvinline.h: ... here.
2681         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
2682         * sysdeps/powerpc/bits/mathinline.h: ... here.
2683
2684 2013-03-01  Roland McGrath  <roland@hack.frob.com>
2685
2686         * elf/dl-hwcaps.c (_dl_important_hwcaps):
2687         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
2688         to just [NEED_DL_SYSINFO_DSO].
2689         * elf/dl-support.c: Likewise.
2690         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
2691         * elf/rtld.c (dl_main): Likewise.
2692         * elf/setup-vdso.h (setup_vdso): Likewise.
2693         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
2694         * sysdeps/unix/sysv/linux/dl-sysdep.c
2695         (_dl_discover_osversion): Likewise.
2696
2697 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
2698
2699         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
2700         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
2701
2702 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
2703
2704         * NEWS: Mention libm performance improvements and non-x86 PI
2705         futex support.
2706
2707         * csu/libc-start.c (__pthread_initialize_minimal): Change
2708         function arguments.
2709         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
2710
2711 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
2712
2713         [BZ #13550]
2714         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
2715         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
2716         <bp-sym.h> and <bp-asm.h>.
2717         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
2718         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
2719         and <bp-asm.h>.
2720         (memcpy): Don't use BP_SYM.
2721         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
2722         <bp-asm.h>.
2723         (__mpn_add_n): Don't use BP_SYM.
2724         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
2725         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
2726         and <bp-asm.h>.
2727         (__mpn_addmul_1): Don't use BP_SYM.
2728         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
2729         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
2730         <bp-sym.h>.
2731         (_setjmp): Don't use BP_SYM.
2732         (__novmx_setjmp): Likewise.
2733         (__GI__setjmp): Likewise.
2734         (__vmx_setjmp): Likewise.
2735         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
2736         <bp-sym.h>.
2737         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
2738         (__bzero): Don't use BP_SYM.
2739         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
2740         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
2741         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
2742         <bp-sym.h> and <bp-asm.h>.
2743         (memcpy): Don't use BP_SYM.
2744         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
2745         <bp-sym.h> and <bp-asm.h>.
2746         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
2747         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
2748         <bp-sym.h> and <bp-asm.h>.
2749         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
2750         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
2751         <bp-asm.h>.
2752         (__mpn_lshift): Don't use BP_SYM.
2753         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
2754         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
2755         <bp-asm.h>.
2756         (memset): Don't use BP_SYM.
2757         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
2758         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
2759         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
2760         <bp-asm.h>.
2761         (__mpn_mul_1): Don't use BP_SYM.
2762         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
2763         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
2764         <bp-sym.h> and <bp-asm.h>.
2765         (memcmp): Don't use BP_SYM.
2766         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
2767         <bp-sym.h> and <bp-asm.h>.
2768         (memcpy): Don't use BP_SYM.
2769         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
2770         <bp-sym.h> and <bp-asm.h>.
2771         (memset): Don't use BP_SYM.
2772         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
2773         <bp-sym.h> and <bp-asm.h>.
2774         (strncmp): Don't use BP_SYM.
2775         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
2776         <bp-sym.h> and <bp-asm.h>.
2777         (memcpy): Don't use BP_SYM.
2778         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
2779         <bp-sym.h> and <bp-asm.h>.
2780         (memset): Don't use BP_SYM.
2781         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
2782         <bp-sym.h> and <bp-asm.h>.
2783         (__memchr): Don't use BP_SYM.
2784         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
2785         <bp-sym.h> and <bp-asm.h>.
2786         (memcmp): Don't use BP_SYM.
2787         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
2788         <bp-sym.h> and <bp-asm.h>.
2789         (memcpy): Don't use BP_SYM.
2790         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
2791         <bp-sym.h> and <bp-asm.h>.
2792         (__mempcpy): Don't use BP_SYM.
2793         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
2794         <bp-sym.h> and <bp-asm.h>.
2795         (__memrchr): Don't use BP_SYM.
2796         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
2797         <bp-sym.h> and <bp-asm.h>.
2798         (memset): Don't use BP_SYM.
2799         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
2800         <bp-sym.h> and <bp-asm.h>.
2801         (__rawmemchr): Don't use BP_SYM.
2802         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
2803         <bp-sym.h> and <bp-asm.h>.
2804         (__STRCMP): Don't use BP_SYM.
2805         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
2806         <bp-sym.h> and <bp-asm.h>.
2807         (strchr): Don't use BP_SYM.
2808         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
2809         <bp-sym.h> and <bp-asm.h>.
2810         (__strchrnul): Don't use BP_SYM.
2811         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
2812         <bp-sym.h> and <bp-asm.h>.
2813         (strlen): Don't use BP_SYM.
2814         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
2815         <bp-sym.h> and <bp-asm.h>.
2816         (strncmp): Don't use BP_SYM.
2817         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
2818         <bp-sym.h> and <bp-asm.h>.
2819         (__strnlen): Don't use BP_SYM.
2820         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
2821         <bp-asm.h>.
2822         (__mpn_rshift): Don't use BP_SYM.
2823         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
2824         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
2825         <bp-sym.h> and <bp-asm.h>.
2826         (__sigsetjmp): Don't use BP_SYM.
2827         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
2828         (L(start_addresses)): Don't use BP_SYM.
2829         (_start): Likewise.
2830         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
2831         <bp-asm.h>.
2832         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
2833         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
2834         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
2835         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
2836         <bp-asm.h>.
2837         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
2838         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
2839         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
2840         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
2841         <bp-asm.h>.
2842         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
2843         comments.
2844         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
2845         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
2846         <bp-asm.h>.
2847         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
2848         FIXME comments.
2849         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
2850         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
2851         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
2852         <bp-asm.h>.
2853         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
2854         comment.
2855         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
2856         and <bp-asm.h>.
2857         (strncmp): Don't use BP_SYM,
2858         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
2859         <bp-asm.h>.
2860         (__mpn_sub_n): Don't use BP_SYM.
2861         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
2862         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
2863         and <bp-asm.h>.
2864         (__mpn_submul_1): Don't use BP_SYM.
2865         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
2866         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
2867         <bp-sym.h> and <bp-asm.h>.
2868         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
2869         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
2870         <bp-sym.h> and <bp-asm.h>.
2871         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
2872         comment.
2873
2874 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2875
2876         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
2877         Use ZK to minimize writes to Z.
2878         (sub_magnitudes): Simplify code a bit.
2879         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
2880         Use ZK to minimize writes to Z.
2881         (sub_magnitudes): Simplify code a bit.
2882
2883 2013-02-27  Roland McGrath  <roland@hack.frob.com>
2884
2885         * csu/gmon-start.c: Add special exception to license text.
2886
2887 2013-02-27  Richard Henderson  <rth@redhat.com>
2888
2889         * scripts/config.guess: Update from config.git.
2890         * scripts/config.sub: Likewise.
2891
2892 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
2893
2894         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
2895
2896         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
2897
2898         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
2899
2900         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
2901
2902         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
2903
2904 2013-02-26  Roland McGrath  <roland@hack.frob.com>
2905
2906         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
2907         [$(build-shared = yes].
2908
2909 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2910
2911         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
2912         (__mul): Reduce iterations for calculating mantissa.
2913
2914         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
2915         MPTWO.
2916         (__mpranred): Likewise.
2917
2918         [BZ #15160]
2919         * malloc/memusagestat.c (main): Draw graphs for heap and stack
2920         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
2921
2922 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
2923
2924         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
2925         Define __attribute__.
2926
2927 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2928
2929         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
2930         unused.
2931         * posix/regex_internal.h (__attribute): Remove.
2932         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
2933         (re_string_context_at): Likewise.
2934         (bitset_not): Use __attribute__ and mark function as possibly
2935         unused.
2936         (bitset_merge): Likewise.
2937         (bitset_mask): Likewise.
2938         (re_string_char_size_at): Likewise.
2939         (re_string_wchar_at): Likewise.
2940         (re_string_elem_size_at): Likewise.
2941
2942 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
2943
2944         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
2945         code.
2946         (cc32): Likewise.
2947
2948         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
2949         (__acr): Likewise.
2950         (__cpy): Likewise.
2951         (norm): Likewise.
2952         (denorm): Likewise.
2953         (__dbl_mp): Likewise.
2954         (add_magnitudes): Likewise.
2955         (sub_magnitudes): Likewise.
2956         (__mul): Likewise.
2957         (__inv): Likewise.
2958
2959         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
2960         style.
2961
2962         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
2963         style.
2964
2965         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
2966         code.
2967
2968         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
2969         up changes with default code.
2970         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
2971         Likewise.
2972
2973 2013-02-24  Allan McRae  <allan@archlinux.org>
2974
2975         * manual/socket.texi (The Internet Namespace): Order menu items
2976         to match that in the file.
2977
2978         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
2979         node listing of the info page menu.
2980
2981 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
2982
2983         [BZ #13550]
2984         * sysdeps/i386/bp-asm.h: Remove file.
2985         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
2986         (PARMS): Do not use macros from bp-asm.h.
2987         (S1): Likewise.
2988         (S2): Likewise.
2989         (SIZE): Likewise.
2990         (__mpn_add_n): Do not use BP_SYM
2991         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
2992         "bp-asm.h".
2993         (PARMS): Do not use macros from bp-asm.h.
2994         (S1): Likewise.
2995         (SIZE): Likewise.
2996         (__mpn_addmul_1): Do not use BP_SYM
2997         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
2998         "bp-asm.h".
2999         (PARMS): Do not use macros from bp-asm.h.
3000         (SIGMSK): Likewise.
3001         (_setjmp): Likewise.  Do not use BP_SYM.
3002         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
3003         "bp-asm.h".
3004         (PARMS): Do not use macros from bp-asm.h.
3005         (SIGMSK): Likewise.
3006         (setjmp): Likewise.  Do not use BP_SYM.
3007         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
3008         "bp-asm.h".
3009         (PARMS): Do not use macros from bp-asm.h.
3010         (__frexp): Do not use BP_SYM.
3011         (frexp): Likewise.
3012         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
3013         "bp-asm.h".
3014         (PARMS): Do not use macros from bp-asm.h.
3015         (__frexpf): Do not use BP_SYM.
3016         (frexpf): Likewise.
3017         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
3018         "bp-asm.h".
3019         (PARMS): Do not use macros from bp-asm.h.
3020         (__frexpl): Do not use BP_SYM.
3021         (frexpl): Likewise.
3022         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
3023         "bp-asm.h".
3024         (PARMS): Do not use macros from bp-asm.h.
3025         (__remquo): Do not use BP_SYM.
3026         (remquo): Likewise.
3027         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
3028         "bp-asm.h".
3029         (PARMS): Do not use macros from bp-asm.h.
3030         (__remquof): Do not use BP_SYM.
3031         (remquof): Likewise.
3032         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
3033         "bp-asm.h".
3034         (PARMS): Do not use macros from bp-asm.h.
3035         (__remquol): Do not use BP_SYM.
3036         (remquol): Likewise.
3037         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
3038         "bp-asm.h".
3039         (PARMS): Do not use macros from bp-asm.h.
3040         (DEST): Likewise.
3041         (SRC): Likewise.
3042         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
3043         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
3044         "bp-asm.h".
3045         (PARMS): Do not use macros from bp-asm.h.
3046         (strlen): Do not use BP_SYM.
3047         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
3048         "bp-asm.h".
3049         (PARMS): Do not use macros from bp-asm.h.
3050         (S1): Likewise.
3051         (S2): Likewise.
3052         (SIZE): Likewise.
3053         (__mpn_add_n): Do not use BP_SYM.
3054         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
3055         "bp-asm.h".
3056         (PARMS): Do not use macros from bp-asm.h.
3057         (S1): Likewise.
3058         (SIZE): Likewise.
3059         (__mpn_addmul_1): Do not use BP_SYM.
3060         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
3061         weak_alias.
3062         (bzero): Likewise.
3063         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
3064         "bp-asm.h".
3065         (PARMS): Do not use macros from bp-asm.h.
3066         (S): Likewise.
3067         (SIZE): Likewise.
3068         (__mpn_lshift): Do not use BP_SYM.
3069         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
3070         "bp-asm.h".
3071         (PARMS): Do not use macros from bp-asm.h.
3072         (DEST): Likewise.
3073         (SRC): Likewise.
3074         (LEN): Likewise.
3075         (memcpy): Likewise.  Do not use BP_SYM.
3076         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
3077         libc_hidden_def and weak_alias.
3078         (mempcpy): Do not use BP_SYM in weak_alias.
3079         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
3080         "bp-asm.h".
3081         (PARMS): Do not use macros from bp-asm.h.
3082         (DEST): Likewise.
3083         (LEN): Likewise.
3084         [!BZERO_P] (CHR): Likewise.
3085         (memset): Likewise.  Do not use BP_SYM.
3086         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
3087         "bp-asm.h".
3088         (PARMS): Do not use macros from bp-asm.h.
3089         (S1): Likewise.
3090         (SIZE): Likewise.
3091         (__mpn_mul_1): Do not use BP_SYM.
3092         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
3093         "bp-asm.h".
3094         (PARMS): Do not use macros from bp-asm.h.
3095         (S): Likewise.
3096         (SIZE): Likewise.
3097         (__mpn_rshift): Do not use BP_SYM.
3098         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
3099         "bp-asm.h".
3100         (PARMS): Do not use macros from bp-asm.h.
3101         (STR): Likewise.
3102         (CHR): Likewise.
3103         (strchr): Likewise.  Do not use BP_SYM.
3104         (index): Do not use BP_SYM in weak_alias.
3105         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
3106         "bp-asm.h".
3107         (PARMS): Do not use macros from bp-asm.h.
3108         (DEST): Likewise.
3109         (SRC): Likewise.
3110         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
3111         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
3112         "bp-asm.h".
3113         (PARMS): Do not use macros from bp-asm.h.
3114         (strlen): Do not use BP_SYM.
3115         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
3116         "bp-asm.h".
3117         (PARMS): Do not use macros from bp-asm.h.
3118         (S1): Likewise.
3119         (S2): Likewise.
3120         (SIZE): Likewise.
3121         (__mpn_sub_n): Do not use BP_SYM.
3122         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
3123         "bp-asm.h".
3124         (PARMS): Do not use macros from bp-asm.h.
3125         (S1): Likewise.
3126         (SIZE): Likewise.
3127         (__mpn_submul_1): Do not use BP_SYM.
3128         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
3129         "bp-asm.h".
3130         (PARMS): Do not use macros from bp-asm.h.
3131         (S1): Likewise.
3132         (S2): Likewise.
3133         (SIZE): Likewise.
3134         (__mpn_add_n): Do not use BP_SYM.
3135         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
3136         weak_alias.
3137         (bzero): Likewise.
3138         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
3139         "bp-asm.h".
3140         (PARMS): Do not use macros from bp-asm.h.
3141         (BLK2): Likewise.
3142         (LEN): Likewise.
3143         (memcmp): Do not use BP_SYM.
3144         (bcmp): Do not use BP_SYM in weak_alias.
3145         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
3146         "bp-asm.h".
3147         (PARMS): Do not use macros from bp-asm.h.
3148         (DEST): Likewise.
3149         (SRC): Likewise.
3150         (LEN): Likewise.
3151         (memcpy): Likewise.  Do not use BP_SYM.
3152         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
3153         "bp-asm.h".
3154         (PARMS): Do not use macros from bp-asm.h.
3155         (DEST): Likewise.
3156         (SRC): Likewise.
3157         (LEN): Likewise.
3158         (memmove): Likewise.  Do not use BP_SYM.
3159         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
3160         "bp-asm.h".
3161         (PARMS): Do not use macros from bp-asm.h.
3162         (DEST): Likewise.
3163         (SRC): Likewise.
3164         (LEN): Likewise.
3165         (__mempcpy): Likewise.  Do not use BP_SYM.
3166         (mempcpy): Do not use BP_SYM in weak_alias.
3167         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
3168         "bp-asm.h".
3169         (PARMS): Do not use macros from bp-asm.h.
3170         (DEST): Likewise.
3171         (LEN): Likewise.
3172         [!BZERO_P] (CHR): Likewise.
3173         (memset): Likewise.  Do not use BP_SYM.
3174         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
3175         "bp-asm.h".
3176         (PARMS): Do not use macros from bp-asm.h.
3177         (STR2): Likewise.
3178         (strcmp): Do not use BP_SYM.
3179         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
3180         "bp-asm.h".
3181         (PARMS): Do not use macros from bp-asm.h.
3182         (STR): Likewise.
3183         (DELIM): Likewise.
3184         [USE_AS_STRTOK_R] (SAVE): Likewise.
3185         (FUNCTION): Likewise.  Do not use BP_SYM.
3186         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
3187         aliases.
3188         (strtok_r): Likewise.
3189         (__GI___strtok_r): Likewise.
3190         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
3191         (PARMS): Do not use macros from bp-asm.h.
3192         (S): Likewise.
3193         (SIZE): Likewise.
3194         (__mpn_lshift): Do not use BP_SYM.
3195         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
3196         (PARMS): Do not use macros from bp-asm.h.
3197         (STR): Likewise.
3198         (CHR): Likewise.
3199         (__memchr): Do not use BP_SYM.
3200         (memchr): Do not use BP_SYM in weak_alias.
3201         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
3202         (PARMS): Do not use macros from bp-asm.h.
3203         (BLK2): Likewise.
3204         (LEN): Likewise.
3205         (memcmp): Do not use BP_SYM.
3206         (bcmp): Do not use BP_SYM in weak_alias.
3207         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
3208         (PARMS): Do not use macros from bp-asm.h.
3209         (S1): Likewise.
3210         (SIZE): Likewise.
3211         (__mpn_mul_1): Do not use BP_SYM.
3212         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
3213         "bp-asm.h".
3214         (PARMS): Do not use macros from bp-asm.h.
3215         (STR): Likewise.
3216         (CHR): Likewise.
3217         (__rawmemchr): Do not use BP_SYM.
3218         (rawmemchr): Do not use BP_SYM in weak_alias.
3219         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
3220         (PARMS): Do not use macros from bp-asm.h.
3221         (S): Likewise.
3222         (SIZE): Likewise.
3223         (__mpn_rshift): Do not use BP_SYM.
3224         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
3225         (PARMS): Do not use macros from bp-asm.h.
3226         (SIGMSK): Likewise.
3227         (__sigsetjmp): Likewise.  Do not use BP_SYM.
3228         * sysdeps/i386/start.S: Do not include "bp-sym.h".
3229         (_start): Do not use BP_SYM.
3230         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
3231         (PARMS): Do not use macros from bp-asm.h.
3232         (DEST): Likewise.
3233         (SRC): Likewise.
3234         (__stpcpy): Likewise.  Do not use BP_SYM.
3235         (stpcpy): Do not use BP_SYM in weak_alias.
3236         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
3237         "bp-asm.h".
3238         (PARMS): Do not use macros from bp-asm.h.
3239         (DEST): Likewise.
3240         (SRC): Likewise.
3241         (LEN): Likewise.
3242         (__stpncpy): Likewise.  Do not use BP_SYM.
3243         (stpncpy): Do not use BP_SYM in weak_alias.
3244         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
3245         (PARMS): Do not use macros from bp-asm.h.
3246         (STR): Likewise.
3247         (CHR): Likewise.
3248         (strchr): Likewise.  Do not use BP_SYM.
3249         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
3250         "bp-asm.h".
3251         (PARMS): Do not use macros from bp-asm.h.
3252         (STR): Likewise.
3253         (CHR): Likewise.
3254         (__strchrnul): Likewise.  Do not use BP_SYM.
3255         (strchrnul): Do not use BP_SYM in weak_alias.
3256         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
3257         "bp-asm.h".
3258         (PARMS): Do not use macros from bp-asm.h.
3259         (STOP): Likewise.
3260         (strcspn): Do not use BP_SYM.
3261         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
3262         "bp-asm.h".
3263         (PARMS): Do not use macros from bp-asm.h.
3264         (STR): Likewise.
3265         (STOP): Likewise.
3266         (strpbrk): Likewise.  Do not use BP_SYM.
3267         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
3268         "bp-asm.h".
3269         (PARMS): Do not use macros from bp-asm.h.
3270         (STR): Likewise.
3271         (CHR): Likewise.
3272         (strrchr): Likewise.  Do not use BP_SYM.
3273         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
3274         (PARMS): Do not use macros from bp-asm.h.
3275         (SKIP): Likewise.
3276         (strspn): Do not use BP_SYM.
3277         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
3278         (PARMS): Do not use macros from bp-asm.h.
3279         (STR): Likewise.
3280         (DELIM): Likewise.
3281         (SAVE): Likewise.
3282         (FUNCTION): Likewise.  Do not use BP_SYM.
3283         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
3284         aliases.
3285         (strtok_r): Likewise.
3286         (__GI___strtok_r): Likewise.
3287         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
3288         (PARMS): Do not use macros from bp-asm.h.
3289         (S1): Likewise.
3290         (S2): Likewise.
3291         (SIZE): Likewise.
3292         (__mpn_sub_n): Do not use BP_SYM.
3293         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
3294         "bp-asm.h".
3295         (PARMS): Do not use macros from bp-asm.h.
3296         (S1): Likewise.
3297         (SIZE): Likewise.
3298         (__mpn_submul_1): Do not use BP_SYM.
3299         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
3300         <bp-sym.h>.
3301         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
3302         and <bp-asm.h>.
3303         (PARMS): Do not use macros from bp-asm.h.
3304         (FLAGS): Likewise.
3305         (PTID): Likewise.
3306         (TLS): Likewise.
3307         (CTID): Likewise.
3308         (__clone): Do not use BP_SYM.
3309         (clone): Do not use BP_SYM in weak_alias.
3310         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
3311         and <bp-asm.h>.
3312         (PARMS): Do not use macros from bp-asm.h.
3313         (LEN): Likewise.
3314         (__mmap64): Do not use BP_SYM.
3315         (mmap64): Do not use BP_SYM in weak_alias.
3316         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
3317         <bp-sym.h> and <bp-asm.h>.
3318         (PARMS): Do not use macros from bp-asm.h.
3319         (__posix_fadvise64_l64): Do not use BP_SYM.
3320         * sysdeps/unix/sysv/linux/i386/semtimedop.S
3321         (PARMS): Do not use macros from bp-asm.h.
3322         (NSOPS): Likewise.
3323         (semtimedop): Do not use BP_SYM.
3324         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
3325         and <bp-asm.h>.
3326
3327 2013-02-21  Allan McRae  <allan@archlinux.org>
3328
3329         * manual/message.texi (Charset conversion in gettext):
3330         Move @end statement to beginning of line.
3331
3332 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
3333
3334         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
3335         static.
3336         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
3337         Likewise.
3338
3339         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
3340         (denorm): Likewise.
3341         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
3342         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
3343
3344 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3345
3346         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
3347         tail-call to the resolved function if pltexit isn't needed.
3348
3349 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
3350
3351         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
3352         or Y being zero as being unlikely.
3353         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
3354         Likewise.
3355
3356 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
3357
3358         * manual/nss.texi (System Databases and Name Service Switch):
3359         Remove frobnicate @pxref.
3360
3361 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
3362
3363         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
3364         __attribute__ ((unused)) to __attribute__ ((__unused__)).
3365
3366 2013-02-20  Petr Machata  <pmachata@redhat.com>
3367
3368         * elf/elf.h (R_ARM_TARGET1): New macro.
3369         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
3370         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
3371         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
3372         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
3373         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
3374         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
3375         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
3376         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
3377         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
3378         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
3379         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
3380         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
3381         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
3382         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
3383         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
3384         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
3385         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
3386         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
3387         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
3388         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
3389         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
3390         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
3391         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
3392         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
3393         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
3394         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
3395         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
3396         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
3397         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
3398         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
3399         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
3400         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
3401         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
3402         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
3403         (R_ARM_THM_GOT_BREL12): Likewise.
3404         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
3405         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
3406         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
3407         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
3408         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
3409         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
3410         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
3411         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
3412         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
3413
3414 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
3415
3416         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
3417         __attribute_used__ to __attribute__ ((unused)).
3418
3419 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
3420
3421         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
3422         powerpc mpa.c.
3423         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
3424         comment formatting.
3425         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
3426
3427 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
3428
3429         [BZ #13550]
3430         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
3431         Remove macro.
3432         (ENTER): Remove both macro definitions.
3433         (LEAVE): Likewise.
3434         (CHECK_BOUNDS_LOW): Likewise.
3435         (CHECK_BOUNDS_HIGH): Likewise.
3436         (CHECK_BOUNDS_BOTH): Likewise.
3437         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
3438         (RETURN_BOUNDED_POINTER): Likewise.
3439         (RETURN_NULL_BOUNDED_POINTER): Likewise.
3440         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
3441         (POP_ERRNO_LOCATION_RETURN): Likewise.
3442         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
3443         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
3444         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
3445         macros.
3446         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
3447         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
3448         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
3449         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
3450         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
3451         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
3452         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
3453         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
3454         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
3455         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
3456         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
3457         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
3458         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
3459         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
3460         removed macros.
3461         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
3462         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
3463         macros.
3464         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
3465         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
3466         * sysdeps/i386/i586/memset.S (memset): Likewise.
3467         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
3468         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
3469         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
3470         macros.
3471         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
3472         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
3473         Change uses of L(2) to L(out).
3474         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
3475         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
3476         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
3477         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
3478         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
3479         removed macros.
3480         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
3481         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
3482         macros.
3483         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
3484         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
3485         (RETURN): Do not use macro LEAVE.
3486         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
3487         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
3488         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
3489         * sysdeps/i386/i686/memset.S (memset): Likewise.
3490         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
3491         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
3492         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
3493         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
3494         Likewise.
3495         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
3496         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
3497         L(1_2) and L(1_3) into L(1).
3498         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
3499         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
3500         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
3501         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
3502         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
3503         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
3504         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
3505         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
3506         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
3507         macros.
3508         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
3509         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
3510         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
3511         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
3512         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
3513         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
3514         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
3515         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
3516         * sysdeps/i386/strcspn.S (strcspn): Likewise.
3517         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
3518         * sysdeps/i386/strrchr.S (strrchr): Likewise.
3519         * sysdeps/i386/strspn.S (strspn): Likewise.
3520         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
3521         conditional code.
3522         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
3523         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
3524         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
3525         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
3526         L(1_3) into L(1_1).
3527         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
3528         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
3529         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
3530         macros.
3531         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
3532
3533 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
3534
3535         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
3536         macro.
3537
3538 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
3539
3540         * math/atest-exp.c (exp_mpn): Remove ROUND.
3541         * math/atest-exp2.c (exp_mpn): Likewise.
3542         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
3543
3544         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
3545         * stdlib/tst-tls-atexit-lib.c: Likewise.
3546         * stdlib/tst-tls-atexit.c: Likewise.
3547
3548 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
3549
3550         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
3551         and __attribute_alloc_size__.
3552
3553 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
3554
3555         * include/programs/xmalloc.h: Change __attribute_alloc_size to
3556         __attribute_alloc_size__.
3557         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
3558         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
3559
3560 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
3561
3562         * include/programs/xmalloc.h: New file.
3563         * catgets/gencat.c: Include it.
3564         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
3565         * elf/pldd.c: Likewise.
3566         * iconv/iconv_charmap.c: Likewise.
3567         * iconv/iconvconfig.c: Likewise.
3568         * iconv/strtab.c: Likewise.
3569         * locale/programs/locale.c: Likewise.
3570         * locale/programs/localedef.h: Likewise.
3571         * locale/programs/simple-hash.c: Likewise.
3572         * nscd/nscd.h: Likewise.
3573         * nss/makedb.c: Likewise.
3574         * sysdeps/generic/ldconfig.h: Likewise.
3575
3576 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
3577
3578         * Versions.def: Add GLIBC_2.18.
3579         * include/link.h (struct link_map): New member l_tls_dtor_count.
3580         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
3581         (__call_tls_dtors): Likewise.
3582         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
3583         __cxa_thread_atexit_impl.
3584         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
3585         Likewise.
3586         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
3587         Likewise.
3588         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
3589         Likewise.
3590         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
3591         Likewise.
3592         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
3593         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
3594         Likewise.
3595         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
3596         Likewise.
3597         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
3598         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
3599         Likewise.
3600         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
3601         (tests): Add test case tst-tls-atexit.
3602         (modules-names): Add shared library for tst-tls-atexit.
3603         * stdlib/Versions (GLIBC_2.17): Add __cxa_thread_atexit_impl.
3604         (GLIBC_PRIVATE): Add __call_tls_dtors.
3605         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
3606         for libstdc++.
3607         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
3608         * stdlib/tst-tls-atexit.c: New test case.
3609         * stdlib/tst-tls-atexit-lib.c: New test case.
3610
3611         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
3612
3613         * elf/Versions (ld): Add _dl_find_dso_for_object.
3614         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
3615         * elf/dl-open.c (_dl_find_dso_for_object): New function.
3616         (dl_open_worker): Use _dl_find_dso_for_object.
3617         * elf/dl-sym.c (do_sym): Likewise.
3618         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
3619
3620 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3621
3622         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
3623         Syntactic changes only.
3624         (_dl_runtime_profile): Do a tail-call to the resolved function.
3625
3626 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
3627
3628         [BZ #13550]
3629         * sysdeps/x86_64/bp-asm.h: Remove file.
3630         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
3631         <bp-sym.h> and <bp-asm.h>.
3632         (__clone): Do not use BP_SYM.
3633         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
3634         <bp-sym.h> and <bp-asm.h>.
3635         * sysdeps/unix/x86_64/sysdep.S: Likewise.
3636         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
3637         "bp-asm.h".
3638         (_setjmp): Do not use BP_SYM.
3639         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
3640         "bp-asm.h".
3641         (setjmp): Do not use BP_SYM.
3642         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
3643         libc_hidden_def.
3644         (mempcpy): Do not use BP_SYM in weak_alias.
3645         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
3646         "bp-asm.h".
3647         (strchr): Do not use BP_SYM.
3648         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
3649         "bp-asm.h".
3650         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
3651         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
3652         (_start): Do not use BP_SYM.
3653         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
3654         "bp-asm.h".
3655         (strcat): Do not use BP_SYM.
3656         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
3657         "bp-asm.h".
3658         (STRCMP): Do not use BP_SYM.
3659         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
3660         "bp-asm.h".
3661         (STRCPY): Do not use BP_SYM.
3662         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
3663         "bp-asm.h".
3664         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
3665         "bp-asm.h".
3666         (FUNCTION): Do not use BP_SYM.
3667         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
3668         weak_alias.
3669         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
3670
3671 2013-02-17  Andreas Jaeger  <aj@suse.de>
3672
3673         * time/Versions: Sort entries.
3674         * string/Versions: Likewise.
3675         * resolv/Versions: Likewise.
3676         * posix/Versions: Likewise.
3677         * iconv/Versions: Likewise.
3678         * elf/Versions: Likewise.
3679         * wcsmbs/Versions: Likewise.
3680
3681 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
3682
3683         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
3684         loop termination condition.
3685
3686         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
3687         variable to calculate EZ.
3688         (__sqr): Likewise.
3689
3690         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
3691         the lower precision input.
3692
3693 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
3694
3695         [BZ #13550]
3696         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
3697         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
3698         (run-via-rtld-prefix): Do not handle %-bp tests.
3699         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
3700         (all-object-suffixes): Remove .ob.
3701         (bppfx): Remove variable.
3702         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
3703         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
3704         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
3705         [$(build-bounded) = yes] (libtype.ob): Likewise.
3706         * Makerules (elide-routines.ob): Remove variable.
3707         (do-tests-clean): Do not handle *-bp.out.
3708         (common-mostlyclean): Do not handle *-bp and *-bp.out.
3709         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
3710         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
3711         (tests): Do not include $(tests-bp.out).
3712         (xtests): Do not include $(xtests-bp.out).
3713         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
3714         [$(build-bounded) = yes] ($(addprefix
3715         $(objpfx),$(binaries-bounded))): Remove rule.
3716         ($(objpfx)%-bp.out): Remove rule.
3717         * config.make.in (build-bounded): Remove variable.
3718         * crypt/Makefile [$(build-bounded) = yes]
3719         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
3720         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
3721         append to variable.
3722         [$(build-bounded) = yes] (install-lib): Likewise.
3723         [$(build-bounded) = yes] (generated): Likewise.
3724         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
3725         Remove rule.
3726         * intl/Makefile [$(build-bounded) = yes]
3727         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
3728         * math/Makefile [$(build-bounded) = yes]
3729         ($(tests:%=$(objpfx)%-bp): Likewise.
3730         * misc/Makefile [$(build-bounded) = yes]
3731         ($(objpfx)tst-tsearch-bp): Likewise.
3732         * nptl/Makeconfig (bounded-thread-library): Remove variable.
3733         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
3734         Remove dependency.
3735         * string/Makefile (o-objects.ob): Remove variable.
3736         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
3737         (CFLAGS-.ob): Remove variable.
3738         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
3739         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
3740         both definitions of variable.
3741         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
3742         (ASFLAGS-.ob): Remove variable.
3743
3744 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
3745
3746         [BZ #13550]
3747         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
3748         Remove __BOUNDED_POINTERS__ from condition.
3749         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
3750         * string/bits/string2.h [!__NO_STRING_INLINES &&
3751         !__BOUNDED_POINTERS__]: Likewise.
3752         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
3753         Likewise.
3754         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
3755         Remove conditional code.
3756         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
3757         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
3758         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
3759         condition.
3760
3761         [BZ #13550]
3762         * csu/libc-start.c: Do not include <bp-sym.h>.
3763         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
3764         * elf/dl-open.c: Do not include <bp-sym.h>.
3765         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
3766         * math/fegetenv.c: Do not include <bp-sym.h>.
3767         (fegetenv): Do not use BP_SYM in versioned symbols.
3768         * nptl/sysdeps/pthread/bits/libc-lockP.h
3769         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
3770         <bp-sym.h>.
3771         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3772         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
3773         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3774         (__pthread_mutex_destroy): Likewise.
3775         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3776         (__pthread_mutex_lock): Likewise.
3777         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3778         (__pthread_mutex_trylock): Likewise.
3779         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3780         (__pthread_mutex_unlock): Likewise.
3781         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3782         (__pthread_mutexattr_init): Likewise.
3783         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3784         (__pthread_mutexattr_destroy): Likewise.
3785         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3786         (__pthread_mutexattr_settype): Likewise.
3787         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3788         (__pthread_rwlock_init): Likewise.
3789         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3790         (__pthread_rwlock_destroy): Likewise.
3791         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3792         (__pthread_rwlock_rdlock): Likewise.
3793         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3794         (__pthread_rwlock_tryrdlock): Likewise.
3795         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3796         (__pthread_rwlock_wrlock): Likewise.
3797         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3798         (__pthread_rwlock_trywrlock): Likewise.
3799         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3800         (__pthread_rwlock_unlock): Likewise.
3801         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3802         (__pthread_key_create): Likewise.
3803         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3804         (__pthread_setspecific): Likewise.
3805         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3806         (__pthread_getspecific): Likewise.
3807         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
3808         Likewise.
3809         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3810         (_pthread_cleanup_push_defer): Likewise.
3811         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3812         (_pthread_cleanup_pop_restore): Likewise.
3813         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3814         (pthread_setcancelstate): Likewise.
3815         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
3816         <bp-sym.h>.
3817         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
3818         (memchr): Do not use BP_SYM in weak_alias.
3819         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
3820         (fegetenv): Do not use BP_SYM in versioned symbols.
3821         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
3822         (fesetenv): Do not use BP_SYM in versioned symbols.
3823         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
3824         (feupdateenv): Do not use BP_SYM in versioned symbols.
3825         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
3826         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
3827         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
3828         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
3829         (open64): Do not use BP_SYM in weak_alias.
3830         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
3831         (fegetenv): Do not use BP_SYM in versioned symbols.
3832         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
3833         (fesetenv): Do not use BP_SYM in versioned symbols.
3834         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
3835         (feupdateenv): Do not use BP_SYM in versioned symbols.
3836         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
3837         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
3838         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
3839         (feraiseexcept): Do not use BP_SYM in versioned symbols.
3840         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
3841         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
3842         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
3843         <bp-sym.h>.
3844         (__libc_start_main): Do not use BP_SYM.
3845
3846 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
3847
3848         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
3849         redundant return line.
3850         (norm): Likewise.
3851         (denorm): Likewise.
3852         (dbl_mp): Likewise.
3853         (sub_magnitudes): Likewise.
3854         (__add): Likewise.
3855         (__sub): Likewise.
3856         (__mul): Likewise.
3857         (__inv): Likewise.
3858         (__dvd): Likewise.
3859         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
3860         (norm): Likewise.
3861         (denorm): Likewise.
3862         (dbl_mp): Likewise.
3863         (sub_magnitudes): Likewise.
3864         (__add): Likewise.
3865         (__sub): Likewise.
3866         (__mul): Likewise.
3867         (__inv): Likewise.
3868         (__dvd): Likewise.
3869
3870         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
3871         instead of __mul.
3872         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
3873         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
3874         (cc32): Likewise.
3875
3876         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
3877         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
3878         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
3879         of __mul for squares.
3880         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
3881         function
3882         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
3883         Likewise.
3884         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
3885         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
3886
3887 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
3888
3889         [BZ #13550]
3890         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
3891         code.
3892         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
3893         prototype or function definition.  Rename ubp_* variables and
3894         parameters.  Remove argv definitions conditional on
3895         [__BOUNDED_POINTERS__].
3896         * debug/backtrace.c (__backtrace): Do not use __unbounded.
3897         * elf/dl-runtime.c (_dl_fixup): Likewise.
3898         * include/set-hooks.h (RUN_HOOK): Likewise.
3899         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
3900         definition.
3901         * string/strcpy.c (strcpy): Do not use __unbounded.
3902         * sysdeps/generic/frame.h (struct layout): Likewise.
3903         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
3904         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
3905         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
3906         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
3907         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
3908         (__backtrace): Likewise.
3909         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
3910         use __ptrvalue.
3911         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
3912         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
3913         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
3914         Likewise.
3915         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
3916         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
3917         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
3918         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
3919         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
3920         Do not use __unbounded.
3921         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
3922         Rename __unboundedrlimits parameter to rlimits in prototype.
3923         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
3924         Do not use __unbounded.
3925         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
3926         not use __ptrvalue.
3927         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
3928         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
3929         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
3930         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
3931         __ptrvalue or __unbounded.
3932         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
3933         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
3934         use __unbounded.
3935         (__new_msgctl): Do not use __ptrvalue.
3936         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
3937         __unbounded.
3938         (__libc_msgrcv): Do not use __ptrvalue.
3939         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
3940         startup_info): Do not use __unbounded.
3941         (__libc_start_main): Likewise.  Rename ubp_* variables and
3942         parameters.  Remove argv definitions conditional on
3943         [__BOUNDED_POINTERS__].
3944         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
3945         __ptrvalue.
3946         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
3947         use __unbounded.
3948         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
3949         or __ptrvalue.
3950         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
3951         use __unbounded.
3952         (__new_shmctl): Do not use __ptrvalue.
3953         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
3954         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
3955         Likewise.
3956         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
3957         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
3958         (__libc_sigaction): Likewise.
3959         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
3960         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
3961         Likewise.
3962         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
3963
3964 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
3965
3966         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
3967
3968         * string/mempcpy.c: Implement by calling memcpy.
3969
3970 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
3971
3972         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
3973
3974         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
3975         evaluation.
3976
3977         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
3978         values in the mantissa.
3979
3980         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
3981         minimize writes to Z.
3982         (sub_magnitudes): Simplify code a bit.
3983
3984 2013-02-12  Roland McGrath  <roland@hack.frob.com>
3985
3986         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
3987         from the message.  The linker prefixes all warnings with that already.
3988
3989 2013-02-12  Andreas Schwab  <schwab@suse.de>
3990
3991         [BZ #15078]
3992         * posix/regexec.c (extend_buffers): Add parameter min_len.
3993         (check_matching): Pass minimum needed length.
3994         (clean_state_log_if_needed): Likewise.
3995         (get_subexp): Likewise.
3996         * posix/Makefile (tests): Add bug-regex34.
3997         (bug-regex34-ENV): Define.
3998         * posix/bug-regex34.c: New file.
3999
4000         [BZ #11561]
4001         * posix/regcomp.c (parse_bracket_exp): When looking up collating
4002         elements compare against the byte sequence of it, not its name.
4003         * posix/Makefile (tests): Add bug-regex35.
4004         (bug-regex35-ENV): Define.
4005         * posix/bug-regex35.c: New file.
4006
4007 2013-02-11  Tom de Vries  <tom@codesourcery.com>
4008
4009         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
4010         comment.
4011         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
4012         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
4013         (CHECK_EOL): Add undef.
4014
4015 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
4016
4017         * bits/stdlib-bsearch.h: New file.
4018         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
4019         * stdlib/stdlib.h: Likewise.
4020
4021 2013-02-11  Roland McGrath  <roland@hack.frob.com>
4022
4023         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
4024         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
4025         declaration.
4026         * manual/search.texi (Array Search Function): Add missing const in
4027         lfind prototype.
4028         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
4029         declaration to use rlim_t.
4030         (Basic Scheduling Functions): Remove erroneous const from
4031         sched_getparam prototype.  Remove erroneous * from
4032         sched_get_priority_max and sched_get_priority_min prototypes.
4033         (Resource Usage): Fix summary @comment on vtimes to refer to
4034         sys/vtimes.h rather than vtimes.h.
4035         Add missing *s in vtimes prototype.
4036         (Limits on Resources): Fix ulimit prototype to return long int.
4037         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
4038         prototypes to use long int rather than double.
4039         (BSD Random): Fix initstate and setstate to use char *, not void *.
4040         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
4041         prototype to make second argument 'struct aiocb64 *const[]'.
4042         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
4043         (Status of AIO Operations): Remove erroneous const in aio_return and
4044         aio_return64 prototypes.
4045         (Synchronizing I/O): Fix sync prototype to return void.
4046         * manual/startup.texi (Suboptions): Remove an erroneous const in
4047         getsubopt prototype.
4048         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
4049         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
4050         use size_t rather than int.
4051         (Scanning All Users): Likewise for getpwent_r.
4052         (Setting Groups): Add missing const to setgroups prototype.
4053         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
4054         * manual/socket.texi (Host Names): Fix gethostbyaddr and
4055         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
4056         'const void *' rather than 'const char *'.
4057         (Host Address Functions): Likewise for inet_ntop.
4058         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
4059         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
4060         ssize_t for return value.
4061         (Sending Data): Likewise for send, sendto, sendmsg.
4062         (Socket Option Functions): Add a missing const in setsockopt prototype.
4063         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
4064         use wchar_t for the argument.
4065         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
4066         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
4067         take no arguments.
4068         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
4069         double/float/long double for second argument.
4070         Fix return types of significand, significandf, significandl.
4071         * manual/filesys.texi (Setting Permissions): Use mode_t for second
4072         argument in fchmod prototype.
4073         (File Owner): Use uid_t and gid_t in fchown prototype.
4074         (File Times): Add const to utimes, futimes, and lutimes prototypes.
4075         (Making Special Files): Use mode_t and dev_t in mknod prototype.
4076         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
4077         use 'const struct dirent **' as argument types to CMP function pointer
4078         argument.
4079         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
4080         (File Times): Fix summary magic @comment for struct utimbuf and utime
4081         to refer to utime.h, not time.h.
4082         * manual/string.texi (Argz Functions): Add missing const in
4083         argz_extract and argz_next prototypes.
4084         (Finding Tokens in a String): Likewise for basename.
4085         (String/Array Comparison): Fix typo in wcscasecmp prototype.
4086         (Copying and Concatenation): Fix typo in wmemmove prototype.
4087         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
4088         (Signal Stack): Remove erroneous const in sigstack prototype.
4089         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
4090         prototype.
4091         (Simple Calendar Time): Likewise for stime.
4092         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
4093         prototype.
4094         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
4095         say sys/sysctl.h instead.
4096         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
4097         and vsyslog prototypes.
4098
4099 2013-02-11  Tom de Vries  <tom@codesourcery.com>
4100
4101         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
4102         Remove.
4103
4104 2013-02-11  Roland McGrath  <roland@hack.frob.com>
4105
4106         * misc/sys/mman.h: Fix typo in mremap comment.
4107
4108 2013-02-08  Roland McGrath  <roland@hack.frob.com>
4109
4110         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
4111         the '\0' terminator.
4112
4113 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
4114
4115         [BZ #13550]
4116         * debug/segfault.c: Don't include <bp-checks.h>.
4117         * sysdeps/generic/bp-checks.h: Remove file.
4118         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
4119         (__GETDENTS): Don't use CHECK_N.
4120         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
4121         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
4122         (__getgroups): Don't use CHECK_N.
4123         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
4124         (setgroups): Don't use CHECK_N.
4125         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
4126         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
4127         (__libc_msgrcv): Don't use CHECK_N.
4128         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
4129         (__libc_msgsnd): Don't use CHECK_N.
4130         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
4131         <bp-checks.h>.
4132         (__libc_pread): Don't use CHECK_N.
4133         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
4134         include <bp-checks.h>.
4135         (__libc_pread64): Don't use CHECK_N.
4136         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
4137         include <bp-checks.h>.
4138         (__libc_pwrite): Don't use CHECK_N.
4139         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
4140         include <bp-checks.h>.
4141         (__libc_pwrite64): Don't use CHECK_N.
4142         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
4143         <bp-checks.h>.
4144         (__libc_pread): Don't use CHECK_N.
4145         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
4146         include <bp-checks.h>.
4147         (__libc_pread64): Don't use CHECK_N.
4148         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
4149         include <bp-checks.h>.
4150         (__libc_pwrite): Don't use CHECK_N.
4151         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
4152         include <bp-checks.h>.
4153         (__libc_pwrite64): Don't use CHECK_N.
4154         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
4155         (do_pread): Don't use CHECK_N.
4156         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
4157         (do_pread64): Don't use CHECK_N.
4158         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
4159         (do_pwrite): Don't use CHECK_N.
4160         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
4161         (do_pwrite64): Don't use CHECK_N.
4162         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
4163         (__libc_readv): Don't use CHECK_N.
4164         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
4165         (semop): Don't use CHECK_N.
4166         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
4167         <bp-checks.h>.
4168         (semtimedop): Don't use CHECK_N.
4169         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
4170         (__libc_pread): Don't use CHECK_N.
4171         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
4172         <bp-checks.h>.
4173         (__libc_pread64): Don't use CHECK_N.
4174         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
4175         <bp-checks.h>.
4176         (__libc_pwrite): Don't use CHECK_N.
4177         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
4178         <bp-checks.h>.
4179         (__libc_pwrite64): Don't use CHECK_N.
4180         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
4181         <bp-checks.h>.
4182         (__libc_msgrcv): Don't use CHECK_N.
4183         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
4184         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
4185         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
4186         (__libc_writev): Don't use CHECK_N.
4187
4188 2013-02-08  Roland McGrath  <roland@hack.frob.com>
4189
4190         * string/strcpy.c: Removed unused variable.
4191
4192         * Makeconfig (+sysdep-includes): Define with := rather than =.
4193         Use an existing include/ subdir of each sysdeps dir before it.
4194
4195 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
4196
4197         * nscd/connection.c (register_traced_file): Comment function.
4198         [HAVE_INOTIFY] (union __inev): Define.
4199         [HAVE_INOTIFY] (inotify_check_files): New function.
4200         [HAVE_INOTIFY] (clear_db_cache): Likewise.
4201         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
4202         clear_db_cache.
4203         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
4204
4205 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
4206
4207         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
4208         loaded if not already and that a failure is permanent.
4209
4210 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
4211
4212         [BZ #15006]
4213         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
4214         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
4215
4216 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
4217
4218         [BZ #13550]
4219         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
4220         (CHECK_1_NULL_OK): Likewise.
4221         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
4222         (__fxstat): Do not use CHECK_1.
4223         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
4224         <bp-checks.h>.
4225         (___fxstat64): Do not use CHECK_1.
4226         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
4227         <bp-checks.h>.
4228         (__fxstatat): Do not use CHECK_1.
4229         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
4230         <bp-checks.h>.
4231         (__fxstatat64): Do not use CHECK_1.
4232         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
4233         <bp-checks.h>.
4234         (__fxstat): Do not use CHECK_1.
4235         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
4236         <bp-checks.h>.
4237         (__fxstatat): Do not use CHECK_1.
4238         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
4239         <bp-checks.h>.
4240         (__getresgid): Do not use CHECK_1.
4241         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
4242         <bp-checks.h>.
4243         (__getresuid): Do not use CHECK_1.
4244         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
4245         <bp-checks.h>.
4246         (__lxstat): Do not use CHECK_1.
4247         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
4248         <bp-checks.h>.
4249         (__old_msgctl): Do not use CHECK_1.
4250         (__new_msgctl): Likewise.
4251         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
4252         <bp-checks.h>.
4253         (__new_setrlimit): Do not use CHECK_1.
4254         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
4255         <bp-checks.h>.
4256         (__old_shmctl): Do not use CHECK_1.
4257         (__new_shmctl): Likewise.
4258         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
4259         <bp-checks.h>.
4260         (__xstat): Do not use CHECK_1.
4261         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
4262         (__lxstat): Do not use CHECK_1.
4263         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
4264         <bp-checks.h>.
4265         (___lxstat64): Do not use CHECK_1.
4266         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
4267         (__old_msgctl): Do not use CHECK_1.
4268         (__new_msgctl): Likewise.
4269         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
4270         <bp-checks.h>.
4271         (__gettimeofday): Do not use CHECK_1.
4272         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
4273         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
4274         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
4275         <bp-checks.h>.
4276         (__gettimeofday): Do not use CHECK_1.
4277         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
4278         (__old_shmctl): Do not use CHECK_1_NULL_OK.
4279         (__new_shmctl): Do not use CHECK_1.
4280         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
4281         <bp-checks.h>.
4282         (do_sigtimedwait): Do not use CHECK_1.
4283         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
4284         <bp-checks.h>.
4285         (do_sigwaitinfo): Do not use CHECK_1.
4286         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
4287         <bp-checks.h>.
4288         (msgctl): Do not use CHECK_1.
4289         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
4290         <bp-checks.h>.
4291         (shmctl): Do not use CHECK_1.
4292         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
4293         (ustat): Do not use CHECK_1.
4294         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
4295         <bp-checks.h>.
4296         (__fxstat): Do not use CHECK_1.
4297         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
4298         <bp-checks.h>.
4299         (__fxstatat): Do not use CHECK_1.
4300         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
4301         <bp-checks.h>.
4302         (__lxstat): Do not use CHECK_1.
4303         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
4304         <bp-checks.h>.
4305         (__xstat): Do not use CHECK_1.
4306         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
4307         (__xstat): Do not use CHECK_1.
4308         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
4309         (___xstat64): Do not use CHECK_1.
4310
4311         [BZ #13550]
4312         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
4313         definitions.
4314         (CHECK_BOUNDS_HIGH): Likewise.
4315         * string/strcpy.c: Do not include <bp-checks.h>.
4316         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
4317
4318 2013-02-07  Roland McGrath  <roland@hack.frob.com>
4319
4320         * nscd/nscd-client.h (__nscd_drop_map_ref):
4321         Add __attribute__ ((unused)).
4322         * nis/nss-nisplus.h (niserr2nss): Likewise.
4323
4324         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
4325         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
4326
4327         * csu/libc-tls.c (init_static_tls, init_slotinfo):
4328         Remove inline keyword.
4329         * include/rounding-mode.h (round_away): Likewise.
4330         * libio/wfileops.c (adjust_wide_data): Likewise.
4331         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
4332         (__m128i_strloadu_tolower): Likewise.
4333         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
4334         (__m128i_strloadu_tolower): Likewise.
4335         * time/mktime.c (ydhms_diff): Likewise.
4336         * locale/elem-hash.h (elem_hash): Likewise.
4337         * locale/setlocale.c (setdata): Likewise.
4338         * posix/regex_internal.h (re_string_char_size_at): Likewise.
4339         (re_string_wchar_at): Likewise.
4340         (bitset_not, bitset_merge, bitset_mask): Likewise.
4341         [!(__GNUC__ > 3)] (inline): Remove macro.
4342         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
4343         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
4344         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
4345         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
4346         * string/memcmp.c (memcmp_bytes): Likewise.
4347         * locale/programs/locarchive.c (compute_hashval): Likewise.
4348         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
4349         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
4350         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
4351         * nss/getent.c (print_rpc, print_protocols): Likewise.
4352         (print_passwd, print_group, print_aliases): Likewise.
4353         * nis/nss-nisplus.h (niserr2nss): Likewise.
4354         * nscd/connections.c (restart_p): Likewise.
4355         Change return type to bool.
4356
4357 2013-02-05  Roland McGrath  <roland@hack.frob.com>
4358
4359         * Makeconfig (all-Depend-files): Add existing
4360         $(sorted-subdirs:=/Depend) files.
4361         (all-subdirs): Remove nss.
4362         * sysdeps/unix/inet/Subdirs: Add it here instead.
4363         * hesiod/Depend: New file.
4364
4365         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
4366         instead of calling alloca.
4367
4368         * io/lseek.c (__lseek): Rename to __libc_lseek.
4369         Define __lseek as an alias.
4370
4371         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
4372
4373 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
4374
4375         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
4376         else clause and remove check for non-standard endianness.
4377
4378 2013-02-04  David S. Miller  <davem@davemloft.net>
4379
4380         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4381
4382 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
4383
4384         [BZ #13550]
4385         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
4386         (__ubp_memchr): Remove prototype.
4387         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
4388         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
4389         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
4390         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
4391         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
4392         Remove alias.
4393         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
4394         (__ubp_memchr): Likewise.
4395         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
4396         (__ubp_memchr): Likewise.
4397         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
4398         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
4399         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
4400         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
4401         CHECK_STRING.
4402         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
4403         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
4404         (__getcwd): Do not use CHECK_STRING.
4405         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
4406         <bp-checks.h>.
4407         (__real_chown): Do not use CHECK_STRING.
4408         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
4409         <bp-checks.h>.
4410         (fchownat): Do not use CHECK_STRING.
4411         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
4412         CHECK_STRING.
4413         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
4414         <bp-checks.h>.
4415         (__lchown): Do not use CHECK_STRING.
4416         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
4417         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
4418         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
4419         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
4420         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
4421         include <bp-checks.h>.
4422         (truncate64): Do not use CHECK_STRING.
4423         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
4424         <bp-checks.h>.
4425         (__real_chown): Do not use CHECK_STRING.
4426         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
4427         <bp-checks.h>.
4428         (__lchown): Do not use CHECK_STRING.
4429         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
4430         <bp-checks.h>.
4431         (__chown): Do not use CHECK_STRING.
4432         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
4433         <bp-checks.h>.
4434         (truncate64): Do not use CHECK_STRING.
4435         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
4436         Likewise.
4437         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
4438         (__xmknod): Do not use CHECK_STRING.
4439         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
4440         <bp-checks.h>.
4441         (__xmknodat): Do not use CHECK_STRING.
4442         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
4443         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
4444
4445 2013-02-04  Andreas Schwab  <schwab@suse.de>
4446
4447         [BZ #14142]
4448         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
4449         * include/netdb.h: Likewise for h_errno.
4450         * elf/tst-stackguard1.c: Include <tls.h>.
4451
4452 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
4453
4454         * elf/link.h (struct link_map): Extend the l_addr comment.
4455         * include/link.h (struct link_map): Likewise.
4456
4457 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
4458
4459         [BZ #13550]
4460         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
4461         (BOUNDED_1): Remove macro.
4462         * debug/backtrace.c: Don't include <bp-checks.h>.
4463         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
4464         (__backtrace): Likewise.
4465         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
4466         <bp-checks.h>.
4467         (__backtrace): Don't use BOUNDED_1.
4468         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
4469         <bp-checks.h>.
4470         (__backtrace): Don't use BOUNDED_1.
4471         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
4472         (__backtrace): Don't use BOUNDED_1.
4473         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
4474         (shmat): Don't use BOUNDED_N.
4475
4476 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
4477
4478         [BZ #13550]
4479         * sysdeps/generic/bp-start.h: Remove file.
4480         * csu/libc-start.c: Don't include <bp-start.h>.
4481         (LIBC_START_MAIN): Set up __environ directly instead of using
4482         INIT_ARGV_and_ENVIRON.
4483         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
4484         <bp-start.h>.
4485
4486         [BZ #13550]
4487         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
4488         definitions.
4489         (CHECK_FCNTL): Likewise.
4490         (CHECK_N_PAGES): Likewise.
4491
4492         [BZ #13550]
4493         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
4494         definitions.
4495         (CHECK_SIGSET_NULL_OK): Likewise.
4496         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
4497         <bp-checks.h>.
4498         (sigpending): Don't use CHECK_SIGSET.
4499         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
4500         <bp-checks.h>.
4501         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
4502         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
4503         <bp-checks.h>.
4504         (do_sigsuspend): Don't use CHECK_SIGSET.
4505         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
4506         use CHECK_SIGSET.
4507         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
4508         (do_sigwait): Don't use CHECK_SIGSET.
4509         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
4510         use CHECK_SIGSET.
4511         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
4512         include <bp-checks.h>.
4513         (sigpending): Don't use CHECK_SIGSET.
4514         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
4515         include <bp-checks.h>.
4516         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
4517         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
4518         <bp-checks.h>.
4519         (sigpending): Don't use CHECK_SIGSET.
4520         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
4521         <bp-checks.h>.
4522         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
4523
4524         [BZ #13550]
4525         * sysdeps/generic/bp-semctl.h: Remove file.
4526         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
4527         <bp-checks.h> and <bp-semctl.h>.
4528         (__old_semctl): Don't use CHECK_SEMCTL.
4529         (__new_semctl): Likewise.
4530         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
4531         and <bp-semctl.h>.
4532         (__old_semctl): Don't use CHECK_SEMCTL.
4533         (__new_semctl): Likewise.
4534         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
4535         <bp-checks.h> and <bp-semctl.h>.
4536         (__old_semctl): Don't use CHECK_SEMCTL.
4537         (__new_semctl): Likewise.
4538         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
4539         <bp-checks.h> and <bp-semctl.h>.
4540         (semctl): Don't use CHECK_SEMCTL.
4541
4542         [BZ #13550]
4543         * Makerules (elide-bp-thunks): Remove variable.
4544         (elide-routines.oS): Don't use $(elide-bp-thunks).
4545         (elide-routines.os): Likewise.
4546         (elide-routines.o): Likewise.
4547         (elide-routines.op): Likewise.
4548         (elide-routines.og): Likewise.
4549         (objects): Don't use $(bp-thunks).
4550         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
4551         include.
4552         (common-generated): Do not add s-proto-bp.d.
4553         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
4554         (int): Likewise.
4555         (typ): Likewise.
4556         Do not generate makefile rules for bounded-pointer thunks.
4557         * sysdeps/generic/bp-thunks.h: Remove file.
4558         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
4559         * sysdeps/unix/s-proto-bp.S: Likewise.
4560
4561         [BZ #15062]
4562         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
4563         parts of result separately when argument is not close to line from
4564         -i to i and one part of argument is small.
4565         * math/k_casinhf.c (__kernel_casinhf): Likewise.
4566         * math/k_casinhl.c (__kernel_casinhl): Likewise.
4567         * math/libm-test.inc (cacos_test): Add more tests.
4568         (casin_test): Likewise.
4569         (casinh_test): Likewise.
4570         * sysdeps/i386/fpu/libm-test-ulps: Update.
4571         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4572
4573 2013-01-31  David S. Miller  <davem@davemloft.net>
4574
4575         * po/de.po: Update from translation team.
4576
4577 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
4578
4579         * time/tzfile.c: Include stdint.h for SIZE_MAX.
4580
4581 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
4582
4583         * configure.in (_AC_PROG_CC_C89): New definition.
4584         * configure: Regenerate.
4585
4586         * configure.in (AC_PROG_CPP): New definition.
4587         * configure: Regenerate.
4588
4589 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
4590
4591         * debug/tst-backtrace.h: New file.
4592         * debug/tst-backtrace2.c: Include tst-backtrace.h.
4593         (ret): Remove variable.
4594         (x): Likewise.
4595         (FAIL): Remove macro.
4596         (NO_INLINE): Likewise.
4597         (fn1): Use match function instead of strstr.
4598         * debug/tst-backtrace3.c: Include tst-backtrace.h.
4599         (ret): Remove variable.
4600         (x): Likewise.
4601         (FAIL): Remove macro.
4602         (NO_INLINE): Likewise.
4603         (fn): Use match function instead of strstr.
4604         * debug/tst-backtrace4.c: Include tst-backtrace.h.
4605         (ret): Remove variable.
4606         (x): Likewise.
4607         (FAIL): Remove macro.
4608         (NO_INLINE): Likewise.
4609         (handle_signal): Use match function instead of strstr.
4610         * debug/tst-backtrace5.c: Include tst-backtrace.h.
4611         (ret): Remove variable.
4612         (x): Likewise.
4613         (FAIL): Remove macro.
4614         (NO_INLINE): Likewise.
4615         (handle_signal): Use match function instead of strstr.
4616
4617 2013-01-23  Roland McGrath  <roland@hack.frob.com>
4618
4619         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
4620
4621 2013-01-23  David S. Miller  <davem@davemloft.net>
4622
4623         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
4624         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
4625         argument of CAS if possible.
4626         * sysdeps/sparc/sparc64/bits/atomic.h
4627         (__arch_compare_and_exchange_val_32_acq): Likewise.
4628         (__arch_compare_and_exchange_val_64_acq): Likewise.
4629
4630 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
4631
4632         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
4633         * sysdeps/posix/ulimit.c: ... this.
4634         Include <limits.h>.
4635         * sysdeps/unix/bsd/ulimit.c: Remove file.
4636
4637 2013-01-23  Adam Conrad  <adconrad@0c3.net>
4638
4639         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
4640         (LDFLAGS-tst-array5): Likewise.
4641
4642 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
4643
4644         [BZ #15036]
4645         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
4646         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
4647         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
4648         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
4649
4650 2013-01-21  David S. Miller  <davem@davemloft.net>
4651
4652         * sysdeps/sparc/backtrace.c: New file.
4653         * sysdeps/sparc/sparc32/backtrace.h: New file.
4654         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
4655         * sysdeps/sparc/sparc64/backtrace.h: New file.
4656         * sysdeps/sparc/sparc64/backtrace.c: Delete.
4657         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
4658         -funwind-tables.
4659
4660 2013-01-21  Andreas Schwab  <schwab@suse.de>
4661
4662         [BZ #15020]
4663         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
4664         closed its stdout.
4665
4666 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
4667
4668         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
4669         "mpa2.h".
4670         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
4671
4672 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
4673             Mark Mitchell  <mark@codesourcery.com>
4674             Tom de Vries  <tom@codesourcery.com>
4675             Paul Pluzhnikov  <ppluzhnikov@google.com>
4676
4677         * debug/tst-backtrace2.c: New file.
4678         * debug/tst-backtrace3.c: Likewise.
4679         * debug/tst-backtrace4.c: Likewise.
4680         * debug/tst-backtrace5.c: Likewise.
4681         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
4682         (CFLAGS-tst-backtrace3.c): Likewise.
4683         (CFLAGS-tst-backtrace4.c): Likewise.
4684         (CFLAGS-tst-backtrace5.c): Likewise.
4685         (LDFLAGS-tst-backtrace2): Likewise.
4686         (LDFLAGS-tst-backtrace3): Likewise.
4687         (LDFLAGS-tst-backtrace4): Likewise.
4688         (LDFLAGS-tst-backtrace5): Likewise.
4689         (tests): Add new tests tst-backtrace2, tst-backtrace3,
4690         tst-backtrace4 and tst-backtrace5.
4691
4692 2013-01-18  Anton Blanchard  <anton@samba.org>
4693             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
4694
4695         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
4696         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
4697         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
4698         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
4699         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
4700         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
4701         "+r" and remove output regs list as redundant.  Add explicit inline
4702         asm to specify register of return val to work around compiler codegen
4703         bug.  Remove (int) cast on return value.  Add return type parameter to
4704         use in macro so that this macro does not truncate return value for
4705         64-bit values.
4706         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
4707         pass to INTERNAL_VSYSCALL_NCS.
4708         (INLINE_VSYSCALL): Add 'long int' as return type to
4709         INTERNAL_VSYSCALL_NCS macro invocation.
4710         (INTERNAL_VSYSCALL): Add 'long int' as return type to
4711         INTERNAL_VSYSCALL_NCS macro invocation.
4712         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
4713
4714 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
4715
4716         [BZ #14496]
4717         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
4718         Fix application of SIMD FP exception mask.
4719
4720         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
4721         mp_no from a power of two.
4722         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
4723         __mpexp_twomm1.  Use __pow_mp.
4724
4725         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
4726         multiplication.
4727
4728 2013-01-17  David S. Miller  <davem@davemloft.net>
4729
4730         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4731
4732 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
4733
4734         [BZ #15023]
4735         * include/complex.h: Condition contents on [!_COMPLEX_H].
4736         (__kernel_casinhf): New prototype.
4737         (__kernel_casinh): Likewise.
4738         (__kernel_casinhl): Likewise.
4739         * math/Makefile (libm_calls): Add k_casinh.
4740         * math/k_casinh.c: New file.
4741         * math/k_casinhf.c: Likewise.
4742         * math/k_casinhl.c: Likewise.
4743         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
4744         finite nonzero arguments.
4745         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
4746         finite nonzero arguments.
4747         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
4748         finite nonzero arguments.
4749         * math/s_casinh.c: Do not include <float.h>.
4750         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
4751         * math/s_casinhf.c: Do not include <float.h>.
4752         (__casinhf): Move code for finite nonzero arguments to
4753         k_casinhf.c.
4754         * math/s_casinhl.c: Do not include <float.h>.
4755         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
4756         redefine.
4757         (__casinhl): Move code for finite nonzero arguments to
4758         k_casinhl.c.
4759         * math/libm-test.inc (cacos_test): Add more tests.
4760         * sysdeps/i386/fpu/libm-test-ulps: Update.
4761         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4762
4763 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
4764
4765         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
4766         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
4767         [!HAVE_MREMAP]: Remove [defined linux] case.
4768         * malloc/arena.c: Do not include <malloc-sysdep.h>.
4769
4770 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
4771
4772         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
4773
4774 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
4775
4776         * elf/elf.h (R_386_SIZE32): New relocation.
4777         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
4778         R_386_SIZE32.
4779         (elf_machine_rela): Likewise.
4780         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
4781         R_X86_64_SIZE64 and R_X86_64_SIZE32.
4782
4783 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
4784
4785         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
4786         (FP_FAST_FMA): Do not define.
4787         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
4788         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
4789         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
4790         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
4791         !_SOFT_FLOAT]: Likewise.
4792         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
4793         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
4794         value.
4795         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
4796         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
4797         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
4798         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
4799         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
4800         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
4801         file.
4802
4803 2013-01-16  Andreas Schwab  <schwab@suse.de>
4804
4805         [BZ #14327]
4806         * include/stdlib.h (__mktemp): Add declaration.
4807         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
4808         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
4809
4810 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
4811
4812         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
4813         definitions.
4814         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
4815         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
4816         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
4817         definitions here.
4818         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
4819         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
4820         definitions.
4821         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
4822         and ONE.
4823         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
4824         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
4825         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
4826         definitions.
4827         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
4828         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
4829         definitions.
4830         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
4831
4832         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
4833
4834 2013-01-15  David S. Miller  <davem@davemloft.net>
4835
4836         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
4837         trunc{,f} to libm-sysdep_routes.
4838         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
4839         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
4840         file.
4841         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
4842         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
4843         file.
4844         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
4845         file.
4846         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
4847         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
4848         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
4849         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
4850         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
4851         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
4852         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
4853         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
4854
4855         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
4856         nearbyint{,f} to libm-sysdep_routes.
4857         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
4858         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
4859         New file.
4860         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
4861         file.
4862         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
4863         New file.
4864         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
4865         file.
4866         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
4867         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
4868         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
4869         file.
4870         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
4871         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
4872         file.
4873         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
4874         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
4875         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
4876
4877         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
4878         libc_feholdexcept and libc_fesetenv.
4879
4880 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
4881
4882         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
4883
4884 2013-01-14  David S. Miller  <davem@davemloft.net>
4885
4886         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
4887         (SPARC_ASM_VIS2_IFUNC): Likewise.
4888         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
4889         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
4890         use of 'siam' instruction.
4891         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
4892         Likewise.
4893         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
4894         Likewise.
4895         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
4896         Likewise.
4897         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
4898         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
4899         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
4900         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
4901         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
4902         file.
4903         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
4904         file.
4905         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
4906         file.
4907         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
4908         file.
4909         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
4910         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
4911         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
4912         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
4913         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
4914         new VIS2 routines.
4915         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
4916         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
4917         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
4918         Likewise.
4919         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
4920         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
4921         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
4922         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
4923         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
4924         routines to libm-sysdep_routines.
4925         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
4926
4927         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
4928         fdim/fdimf to libm-sysdep_routines.
4929         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
4930         file.
4931         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
4932         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
4933         file.
4934         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
4935         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
4936         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
4937         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
4938         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
4939         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
4940         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
4941
4942 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
4943
4944         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
4945         to optimize copies.
4946
4947         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
4948         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
4949         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
4950
4951         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
4952         local variable MPTWO.
4953         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
4954         Likewise.
4955
4956 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
4957
4958         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
4959         GLOB_NOESCAPE.
4960
4961 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
4962
4963         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
4964
4965 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
4966
4967         * manual/pattern.texi (glob_t): Document gl_flags.
4968         (glob64_t): Likewise.
4969
4970 2013-01-11  David S. Miller  <davem@davemloft.net>
4971
4972         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
4973         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
4974         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
4975         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
4976         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
4977         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
4978         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
4979         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
4980         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
4981         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
4982         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
4983         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
4984         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
4985
4986         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
4987         sparc V9 rather than using V8 code.
4988         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
4989         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
4990
4991         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
4992         Move to...
4993         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
4994         Here.
4995
4996 2013-01-11  Roland McGrath  <roland@hack.frob.com>
4997
4998         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
4999         not in the main loop.
5000         * configure: Regenerated.
5001
5002 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
5003
5004         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
5005         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
5006         to just #else.
5007         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
5008         [!__GLIBC_HAVE_LONG_LONG] case.
5009         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
5010         condition to just #else.
5011         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
5012         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
5013         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
5014         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
5015         unconditional.
5016         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
5017         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
5018         #elif condition to just #else.
5019         * sysdeps/unix/sysv/linux/sys/sysmacros.h
5020         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
5021         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
5022         #elif condition to just #else.
5023
5024 2013-01-11  Steve Ellcey  <sellcey@mips.com>
5025
5026         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
5027         (EF_MIPS_ARCH_64): Fix value.
5028         (EF_MIPS_ARCH_32R2): New.
5029         (EF_MIPS_ARCH_64R2): New.
5030
5031 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
5032
5033         * Makeconfig (+link-pie-before-libc): New.
5034         (+link-pie-after-libc): Likewise.
5035         (+link-pie-tests): Likewise.
5036         (+link-pie): Rewritten.
5037         (link-before-libc): Remove $(config-LDFLAGS).
5038         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
5039         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
5040         (config-LDFLAGS): Renamed to ...
5041         (rtld-LDFLAGS): This.
5042         (rtld-tests-LDFLAGS): New macro.
5043         (link-libc-rpath-link): Likewise.
5044         (link-libc-tests-rpath-link): Likewise.
5045         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
5046         (link-libc): Prepand $(link-libc-rpath-link).
5047         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
5048         (test-program-prefix): New macro.
5049         (test-via-rtld-prefix): Likewise.
5050         (test-program-cmd): Likewise.
5051         (host-test-program-cmd): Likewise.
5052         * Makefile ($(common-objpfx)testrun.sh): Replace
5053         $(run-program-prefix) with $(test-program-prefix).
5054         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
5055         $(rtld-LDFLAGS).
5056         ($(common-objpfx)shlib.lds): Likewise.
5057         (build-module-helper): Likewise.
5058         ($(common-objpfx)format.lds): Likewise.
5059         * Rules (binaries-pie-tests): New.
5060         (binaries-pie-notests): Likewise.
5061         (binaries-pie): Rewritten.
5062         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
5063         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
5064         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
5065         (make-test-out): Replace $(host-built-program-cmd) with
5066         $(host-test-program-cmd).
5067         * config.make.in (build-hardcoded-path-in-tests): New variable.
5068         * configure.in (--enable-hardcoded-path-in-tests): New configure
5069         option.
5070         (hardcoded_path_in_tests): New AC_SUBST.
5071         * configure: Regenerated.
5072         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
5073         $(built-program-cmd) with $(test-program-cmd).
5074         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
5075         (test_program_cmd): This.
5076         * elf/Makefile ($(objpfx)order.out): Run test with
5077         $(test-program-prefix).
5078         ($(objpfx)order2.out): Likewise.
5079         ($(objpfx)tst-initorder.out): Likewise.
5080         ($(objpfx)tst-initorder2.out): Likewise.
5081         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
5082         $(test-program-cmd).
5083         ($(objpfx)tst-array1-static.out): Likewise.
5084         ($(objpfx)tst-array2.out): Likewise.
5085         ($(objpfx)tst-array3.out): Likewise.
5086         ($(objpfx)tst-array4.out): Likewise.
5087         ($(objpfx)tst-array5.out): Likewise.
5088         ($(objpfx)tst-array5-static.out): Likewise.
5089         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
5090         $(test-program-cmd).
5091         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
5092         $(run-program-prefix) with $(test-program-prefix).
5093         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
5094         (test_program_prefix): This.
5095         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
5096         $(run-program-prefix) with $(test-program-prefix).
5097         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
5098         (test_program_prefix): This.
5099         * iconvdata/tst-tables.sh: Likewise.
5100         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
5101         $(run-program-prefix) with $(test-program-prefix).
5102         ($(objpfx)tst-translit.out): Likewise.
5103         ($(objpfx)tst-gettext2.out): Likewise.
5104         ($(objpfx)tst-gettext4.out): Likewise.
5105         ($(objpfx)tst-gettext6.out): Likewise.
5106         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
5107         (test_program_prefix): This.
5108         * intl/tst-gettext2.sh: Likewise.
5109         * intl/tst-gettext4.sh  Likewise.
5110         * intl/tst-gettext6.sh: Likewise.
5111         * intl/tst-translit.sh: Likewise.
5112         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
5113         with $(test-program-cmd).
5114         * libio/Makefile ($(objpfx)test-freopen.out): Replace
5115         $(run-program-prefix) with $(test-program-prefix).
5116         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
5117         (test_program_prefix): This.
5118         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
5119         $(run-program-prefix) with $(test-program-prefix).
5120         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
5121         (test_program_prefix): This.
5122         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
5123         * posix/Makefile ($(objpfx)globtest.out): Replace
5124         $(run-via-rtld-prefix) and $(test-wrapper) with
5125         $(test-program-prefix) and $(test-via-rtld-prefix).
5126         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
5127         $(test-program-prefix).
5128         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
5129         $(host-test-program-cmd).
5130         (tst-spawn-ARGS): Likewise.
5131         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
5132         $(test-program-prefix).
5133         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
5134         (test_via_rtld_prefix): This.
5135         (test_wrapper): Renamed to ...
5136         (test_program_prefix): This.
5137         (run_program_prefix): Replaced by test_program_prefix.
5138         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
5139         (test_program_prefix): This.
5140         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
5141         with $(host-test-program-cmd).
5142         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
5143         $(run-program-prefix) with $(test-program-prefix).
5144         ($(objpfx)tst-printf.out): Likewise.
5145         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
5146         $(test-program-cmd).
5147         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
5148         (test_program_prefix): This.
5149         * stdio-common/tst-unbputc.sh: Likewise.
5150         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
5151         $(run-program-prefix) with $(test-program-prefix).
5152         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
5153         (test_program_prefix): This.
5154         * string/Makefile ($(objpfx)tst-svc.out):  Replace
5155         $(built-program-cmd) with $(test-program-cmd).
5156
5157 2013-01-11  Andreas Jaeger  <aj@suse.de>
5158
5159         [BZ #15003]
5160         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
5161         value. Sync with Linux 3.7.
5162
5163 2013-01-10  David S. Miller  <davem@davemloft.net>
5164
5165         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
5166         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
5167         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
5168
5169 2013-01-10  Roland McGrath  <roland@hack.frob.com>
5170
5171         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
5172         never set.
5173         * configure: Regenerated.
5174
5175 2013-01-10  David S. Miller  <davem@davemloft.net>
5176
5177         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
5178         sparc V9 rather than using V8 code.
5179         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
5180         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
5181
5182 2013-01-10  Roland McGrath  <roland@hack.frob.com>
5183
5184         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
5185         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
5186         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
5187         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
5188         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
5189         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
5190         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
5191         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
5192         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
5193         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
5194         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
5195         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
5196         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
5197         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
5198         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
5199         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
5200         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
5201         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
5202         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
5203         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
5204         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
5205         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
5206         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
5207         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
5208         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
5209         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
5210         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
5211
5212 2013-01-10  David S. Miller  <davem@davemloft.net>
5213
5214         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5215
5216 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
5217
5218         * posix/Makefile (tests-static): New variable.
5219         (tests): Add $(tests-static).
5220         (tst-exec-static-ARGS): New variable.
5221         (tst-spawn-static-ARGS): Likewise.
5222         * posix/tst-exec-static.c: New file.
5223         * posix/tst-spawn-static.c: Likewise.
5224         * posix/tst-exec.c: Support run directly.
5225         * posix/tst-spawn.c: Likewise.
5226
5227 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
5228
5229         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
5230         long.
5231         * math/bits/mathcalls.h (llrint): Likewise.
5232         (llround): Likewise.
5233         * stdlib/stdlib.h (struct drand48_data): Likewise.
5234         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
5235         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
5236         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
5237         Likewise.
5238         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
5239         Likewise.
5240         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
5241         (elf_greg_t): Likewise.
5242         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
5243         (__jmp_buf): Likewise.
5244         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
5245         definitions.
5246         (llrint): Likewise, for all definitions.
5247         (llrintl): Likewise.
5248
5249         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
5250         Remove [__GNUC__] condition.
5251         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
5252         condition to just [__USE_ISOC99].
5253         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
5254
5255 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
5256
5257         [BZ #14200]
5258         * sysdeps/unix/sysv/linux/x86/bits/environments.h
5259         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
5260         defined.
5261         (_POSIX_V6_ILP32_OFF32): Likewise.
5262         (_XBS5_ILP32_OFF32): Likewise.
5263         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
5264         (__ILP32_OFFBIG_LDFLAGS): Likewise.
5265
5266 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
5267
5268         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
5269
5270         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
5271         doubles __mpexp_twomm1.  Adjust usage.
5272         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
5273         Remove.
5274
5275 2013-01-10  Andreas Schwab  <schwab@suse.de>
5276
5277         [BZ #14964]
5278         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
5279         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
5280
5281 2013-01-09  David S. Miller  <davem@davemloft.net>
5282
5283         [BZ #15003]
5284         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS,
5285         TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT,
5286         TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS,
5287         TCP_FASTOPEN): Define.
5288         (tcp_repair_opt): New structure.
5289         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
5290         enum values.
5291         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE,
5292         TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN,
5293         TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
5294         (tcp_cookie_transactions): New structure.
5295
5296 2013-01-09  Anton Blanchard  <anton@samba.org>
5297
5298         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
5299         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
5300         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
5301         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
5302
5303 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
5304
5305         * include/features.h (__USE_ANSI): Remove.
5306
5307 2013-01-09  Roland McGrath  <roland@hack.frob.com>
5308
5309         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
5310
5311         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
5312
5313 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
5314
5315         * sysdeps/s390/fpu/libm-test-ulps: Update.
5316
5317         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5318
5319         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
5320         (__acr): Likewise.
5321         (__cpy): Likewise.
5322         (norm): Likewise.
5323         (denorm): Likewise.
5324         (__mp_dbl): Likewise.
5325         (__dbl_mp): Likewise.
5326         (add_magnitudes): Likewise.
5327         (sub_magnitudes): Likewise.
5328         (__add): Likewise.
5329         (__sub): Likewise.
5330         (__mul): Likewise.
5331         (__inv): Likewise.
5332         (__dvd): Likewise.
5333         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
5334         (__acr): Likewise.
5335         (__cpy): Likewise.
5336         (norm): Likewise.
5337         (denorm): Likewise.
5338         (__mp_dbl): Likewise.
5339         (__dbl_mp): Likewise.
5340         (add_magnitudes): Likewise.
5341         (sub_magnitudes): Likewise.
5342         (__add): Likewise.
5343         (__sub): Likewise.
5344         (__mul): Likewise.
5345         (__inv): Likewise.
5346         (__dvd): Likewise.
5347         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
5348         (__acr): Likewise.
5349         (__cpy): Likewise.
5350         (norm): Likewise.
5351         (denorm): Likewise.
5352         (__mp_dbl): Likewise.
5353         (__dbl_mp): Likewise.
5354         (add_magnitudes): Likewise.
5355         (sub_magnitudes): Likewise.
5356         (__add): Likewise.
5357         (__sub): Likewise.
5358         (__mul): Likewise.
5359         (__inv): Likewise.
5360         (__dvd): Likewise.
5361
5362 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
5363
5364         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
5365         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
5366         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
5367         2 && __USE_EXTERN_INLINES]: Likewise.
5368
5369 2013-01-08  Andreas Jaeger  <aj@suse.de>
5370
5371         [BZ# 14985]
5372         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
5373         Remove.
5374         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
5375         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
5376
5377 2013-01-07  Anton Blanchard  <anton@samba.org>
5378
5379         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
5380         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
5381         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
5382         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
5383         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
5384         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
5385         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
5386         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
5387         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
5388         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
5389         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
5390         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
5391         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
5392         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
5393         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
5394         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
5395         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
5396         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
5397         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
5398         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
5399         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
5400         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
5401         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
5402         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
5403         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
5404         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
5405         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
5406         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
5407         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
5408         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
5409         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
5410         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
5411         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
5412         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
5413         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
5414         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
5415         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
5416         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
5417         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
5418         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
5419         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
5420         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
5421         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
5422
5423 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
5424
5425         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
5426         (__MALLOC_PMT): Likewise.
5427         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
5428         [__GNUC__], only on [_LIBC].
5429         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
5430         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
5431         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
5432         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
5433         forward declaration.
5434         (realloc_hook_ini): Likewise.
5435         (memalign_hook_ini): Likewise.
5436         (__libc_memalign): Do not use __MALLOC_PMT in variable
5437         declaration.
5438         (__libc_valloc): Likewise.
5439         (__libc_pvalloc): Likewise.
5440         (__libc_calloc): Likewise.
5441         (__posix_memalign): Likewise.
5442
5443         [BZ #14996]
5444         * math/s_casinh.c: Include <float.h>.
5445         (__casinh): Do not do computation with squaring and square root
5446         for large arguments.
5447         * math/s_casinhf.c: Include <float.h>.
5448         (__casinhf): Do not do computation with squaring and square root
5449         for large arguments.
5450         * math/s_casinhl.c: Include <float.h>.
5451         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
5452         (__casinhl): Do not do computation with squaring and square root
5453         for large arguments.
5454         * math/libm-test.inc (casin_test): Add more tests.
5455         (casinh_test): Likewise.
5456         * sysdeps/i386/fpu/libm-test-ulps: Update.
5457         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5458
5459 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
5460
5461         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
5462         (__x86_64_raw_data_cache_size): Likewise.
5463         (__x86_64_data_cache_size_half): Likewise.
5464         (__x86_64_raw_data_cache_size_half): Likewise.
5465         (__x86_64_shared_cache_size): Likewise.
5466         (__x86_64_raw_shared_cache_size): Likewise.
5467         (__x86_64_shared_cache_size_half): Likewise.
5468         (__x86_64_raw_shared_cache_size_half): Likewise.
5469         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
5470         to ...
5471         (__x86_data_cache_size): This.
5472         (__x86_64_raw_data_cache_size): Renamed to ...
5473         (__x86_raw_data_cache_size): This.
5474         (__x86_64_data_cache_size_half): Renamed to ...
5475         (__x86_data_cache_size_half): This.
5476         (__x86_64_raw_data_cache_size_half): Renamed to ...
5477         (__x86_raw_data_cache_size_half): This.
5478         (__x86_64_shared_cache_size): Renamed to ...
5479         (__x86_shared_cache_size): This.
5480         (__x86_64_raw_shared_cache_size): Renamed to ...
5481         (__x86_raw_shared_cache_size): This.
5482         (__x86_64_shared_cache_size_half): Renamed to ...
5483         (__x86_shared_cache_size_half): This.
5484         (__x86_64_raw_shared_cache_size_half): Renamed to ...
5485         (__x86_raw_shared_cache_size_half): This.
5486         * sysdeps/x86_64/memcpy.S: Updated.
5487         * sysdeps/x86_64/memset.S: Likewise.
5488         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
5489         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
5490         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
5491
5492 2013-01-04  David S. Miller  <davem@davemloft.net>
5493
5494         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5495
5496 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
5497
5498         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
5499         1 to avoid redefinition warning.
5500         (__USE_GNU): Don't define.
5501         (init_signaling_nan): Protoize.
5502
5503         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5504
5505 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
5506
5507         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
5508         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
5509         (__cpymn): Likewise.
5510         (norm): Remove commented code.
5511         (denorm): Likewise.
5512         (__mp_dbl): Likewise.
5513         (__inv): Likewise.
5514         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
5515         (__cpymn): Likewise.
5516         (norm): Remove commented code.
5517         (denorm): Likewise.
5518         (__mp_dbl): Likewise.
5519         (__inv): Likewise.
5520
5521         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
5522         mp_no value for 1.0 and 2.0.
5523         (norm): Use RADIXI instead of radixi.d.
5524         (denorm): Likewise.
5525         (__mul): Use 0.0 instead of zero.d.
5526         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
5527         mp_no value for 1.0 and 2.0.
5528         (norm): Use RADIXI instead of radixi.d.
5529         (denorm): Likewise.
5530         (__mul): Use 0.0 instead of zero.d.
5531
5532 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
5533
5534         [BZ #14994]
5535         * math/s_casinh.c (__casinh): Reduce finite argument to first
5536         quadrant then set signs of results at the end.
5537         * math/s_casinhf.c (__casinhf): Likewise.
5538         * math/s_casinhl.c (__casinhl): Likewise.
5539         * math/libm-test.inc (casin_test): Add more tests.
5540         (casinh_test): Likewise.
5541         * sysdeps/i386/fpu/libm-test-ulps: Update.
5542         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5543
5544 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
5545
5546         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
5547
5548         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
5549
5550         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
5551         declarations.
5552         (denorm): Likewise.
5553         (__mp_dbl): Likewise.
5554         (__inv): Likewise.
5555
5556         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
5557         and adjust the header comment.
5558
5559         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
5560         variable name from declaration.
5561
5562 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
5563
5564         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
5565         Initialize COMMON_CPUID_INDEX_7 element.
5566         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
5567         (CPUID_RTM): Likewise.
5568         (HAS_RTM): Likewise.
5569         (COMMON_CPUID_INDEX_7): New enum.
5570
5571 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
5572
5573         [BZ #14981]
5574         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
5575         size is zero, record memory as freed.
5576
5577 2013-01-03  Andreas Jaeger  <aj@suse.de>
5578
5579         * po/ia.po: Add new Interlingua translation.
5580
5581 2012-01-03  Allan McRae  <allan@archlinux.org>
5582
5583         * locale/programs/localedef.c: Fix description of '--posix' flag.
5584
5585 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
5586
5587         * NEWS: Update dates in second copyright notice.
5588         * README: Update copyright dates in example.
5589         * manual/libc.texinfo: Update copyright dates.
5590         * scripts/test-installation.pl: Update copyright date in --version
5591         output.
5592
5593         * hurd/ctty-input.c: Fix copyright notice formatting.
5594         * hurd/ctty-output.c: Likewise.
5595         * hurd/dtable.c: Likewise.
5596         * hurd/hurd-raise.c: Likewise.
5597         * hurd/hurdprio.c: Likewise.
5598         * hurd/msgportdemux.c: Likewise.
5599         * misc/sys/file.h: Likewise.
5600         * misc/sys/ioctl.h: Likewise.
5601         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
5602         * sysdeps/mach/hurd/chdir.c: Likewise.
5603         * sysdeps/mach/hurd/fchdir.c: Likewise.
5604         * sysdeps/mach/hurd/rename.c: Likewise.
5605         * sysdeps/mach/hurd/rmdir.c: Likewise.
5606         * sysdeps/mach/hurd/seekdir.c: Likewise.
5607         * sysdeps/mach/hurd/setsid.c: Likewise.
5608         * sysdeps/posix/wait3.c: Likewise.
5609
5610         * All files with FSF copyright notices: Update copyright dates
5611         using scripts/update-copyrights.
5612         * intl/plural.c: Regenerated.
5613         * locale/programs/charmap-kw.h: Likewise.
5614         * locale/programs/locfile-kw.h: Likewise.
5615
5616 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
5617
5618         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
5619         four values.
5620
5621         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
5622         calculation loop and add branch prediction.
5623
5624         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
5625         check access beyond bounds of m1np.
5626
5627         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
5628         MPTWO.
5629         (__inv): Remove local variable MPTWO to use the global
5630         constant.
5631         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
5632         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
5633         variable MPTWO.
5634         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
5635         MP3HALFS static const.
5636
5637 2013-01-01  David S. Miller  <davem@davemloft.net>
5638
5639         * po/ca.po: Update from translation team.
5640
5641 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
5642
5643         * scripts/update-copyrights: New file.
5644         * Makeconfig: Reformat copyright notice.
5645         * ctype/ctype.h: Likewise.
5646         * debug/swprintf_chk.c: Likewise.
5647         * elf/dl-cache.c: Likewise.
5648         * elf/dl-debug.c: Likewise.
5649         * elf/dl-object.c: Likewise.
5650         * grp/initgroups.c: Likewise.
5651         * hurd/Makefile: Likewise.
5652         * hurd/hurd/signal.h: Likewise.
5653         * hurd/hurdfault.c: Likewise.
5654         * hurd/hurdioctl.c: Likewise.
5655         * hurd/hurdlookup.c: Likewise.
5656         * hurd/intr-msg.c: Likewise.
5657         * iconv/gconv_open.c: Likewise.
5658         * libio/swprintf.c: Likewise.
5659         * locale/lc-ctype.c: Likewise.
5660         * locale/nl_langinfo.c: Likewise.
5661         * mach/Machrules: Likewise.
5662         * mach/Makefile: Likewise.
5663         * malloc/obstack.h: Likewise.
5664         * manual/Makefile: Likewise.
5665         * manual/tsort.awk: Likewise.
5666         * misc/bits/stab.def: Likewise.
5667         * nis/nis_print_group_entry.c: Likewise.
5668         * nis/nis_table.c: Likewise.
5669         * nis/nss_compat/compat-pwd.c: Likewise.
5670         * nis/nss_compat/compat-spwd.c: Likewise.
5671         * po/Makefile: Likewise.
5672         * posix/fnmatch.c: Likewise.
5673         * posix/regex.h: Likewise.
5674         * resolv/Makefile: Likewise.
5675         * resolv/nss_dns/dns-network.c: Likewise.
5676         * resolv/res_hconf.c: Likewise.
5677         * scripts/gen-sorted.awk: Likewise.
5678         * soft-fp/soft-fp.h: Likewise.
5679         * stdio-common/printf.h: Likewise.
5680         * stdlib/monetary.h: Likewise.
5681         * stdlib/random.c: Likewise.
5682         * stdlib/random_r.c: Likewise.
5683         * sysdeps/generic/Makefile: Likewise.
5684         * sysdeps/gnu/Makefile: Likewise.
5685         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
5686         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
5687         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
5688         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
5689         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
5690         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
5691         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
5692         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
5693         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
5694         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
5695         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
5696         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
5697         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
5698         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
5699         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
5700         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
5701         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
5702         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5703         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
5704         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
5705         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
5706         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
5707         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
5708         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
5709         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
5710         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
5711         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
5712         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
5713         * sysdeps/mach/hurd/errnos.awk: Likewise.
5714         * sysdeps/mach/hurd/fork.c: Likewise.
5715         * sysdeps/mach/hurd/getcwd.c: Likewise.
5716         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
5717         * sysdeps/mach/hurd/mmap.c: Likewise.
5718         * sysdeps/mach/hurd/utimes.c: Likewise.
5719         * sysdeps/mach/hurd/xmknod.c: Likewise.
5720         * sysdeps/posix/profil.c: Likewise.
5721         * sysdeps/posix/readdir_r.c: Likewise.
5722         * sysdeps/powerpc/bits/mathdef.h: Likewise.
5723         * sysdeps/powerpc/bits/setjmp.h: Likewise.
5724         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
5725         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
5726         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
5727         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
5728         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
5729         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
5730         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
5731         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
5732         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
5733         * sysdeps/pthread/lio_listio.c: Likewise.
5734         * sysdeps/sparc/dl-procinfo.h: Likewise.
5735         * sysdeps/unix/i386/sysdep.S: Likewise.
5736         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
5737         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
5738         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
5739         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
5740         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
5741         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
5742         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
5743         * sysdeps/unix/sysv/linux/speed.c: Likewise.
5744         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
5745         * sysdeps/wordsize-32/divdi3.c: Likewise.
5746         * time/sys/time.h: Likewise.
5747         * wcsmbs/Makefile: Likewise.
5748
5749 2013-01-01  David S. Miller  <davem@davemloft.net>
5750
5751         * po/fr.po: Update from translation team.
5752
5753         * catgets/gencat.c: Update copyright year.
5754         * csu/version.c: Likewise.
5755         * debug/catchsegv.sh: Likewise.
5756         * debug/pcprofiledump.c: Likewise.
5757         * debug/xtrace.sh: Likewise.
5758         * elf/ldconfig.c: Likewise.
5759         * elf/ldd.bash.in: Likewise.
5760         * elf/pldd.c: Likewise.
5761         * elf/sotruss.ksh: Likewise.
5762         * elf/sprof.c: Likewise.
5763         * iconv/iconv_prog.c: Likewise.
5764         * iconv/iconvconfig.c: Likewise.
5765         * locale/programs/locale.c: Likewise.
5766         * locale/programs/localedef.c: Likewise.
5767         * login/programs/pt_chown.c: Likewise.
5768         * malloc/memusage.sh: Likewise.
5769         * malloc/memusagestat.c: Likewise.
5770         * malloc/mtrace.pl: Likewise.
5771         * nscd/nscd.c: Likewise.
5772         * nss/getent.c: Likewise.
5773         * nss/makedb.c: Likewise.
5774         * posix/getconf.c: Likewise.
5775
5776 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
5777
5778         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
5779         numbers.
5780
5781 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
5782
5783         * math/bits/mathcalls.h (modf): Use __nonnull.
5784
5785 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
5786
5787         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
5788         (split): Use macro CN instead of the bare value.
5789         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
5790         could be used.
5791         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
5792         instead of the bare value.
5793         (power1): Likewise.
5794
5795 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
5796
5797         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
5798         __ATAN_TWOM.
5799         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
5800
5801         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
5802         their values.
5803         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
5804         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
5805         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
5806         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
5807
5808 2012-12-28  Andreas Jaeger  <aj@suse.de>
5809
5810         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
5811         values are from Linux 3.7.
5812
5813         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
5814         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
5815
5816 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
5817
5818         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
5819         TRUE case.
5820
5821         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
5822         (norm): Likewise.
5823         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
5824         variables with preprocessor constants.
5825         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
5826         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
5827         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
5828
5829 2012-12-27  Bruno Haible  <bruno@clisp.org>
5830
5831         [BZ #14317]
5832         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
5833         only if needed.
5834
5835 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
5836
5837         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
5838         and use variable directly.
5839         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
5840
5841         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
5842         MPONE.
5843         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
5844         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
5845         variable MPONE.
5846         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
5847         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
5848         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
5849         include directive.  Remove local variable MPONE.
5850         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
5851         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
5852         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
5853
5854 2012-12-25  David S. Miller  <davem@davemloft.net>
5855
5856         * version.h (RELEASE): Set to "development".
5857         (VERSION): Set to "2.17.90".
5858         * NEWS: Add 2.18 section.
5859
5860 2012-12-21  David S. Miller  <davem@davemloft.net>
5861
5862         * po/hr.po: Update from translation team.
5863
5864 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5865
5866         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
5867
5868 2012-12-19  Steve Ellcey  <sellcey@mips.com>
5869
5870         * NEWS:  Mention new memcpy for MIPS.
5871
5872 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
5873
5874         * manual/contrib.texi (Contributors): Spelling correction.
5875
5876 2012-12-15  David S. Miller  <davem@davemloft.net>
5877
5878         * po/ru.po: Update from translation team.
5879
5880 2012-12-13  David S. Miller  <davem@davemloft.net>
5881
5882         * NEWS: Mention IFUNC testsuite enhancements.
5883
5884         * po/pl.po: Update from translation team.
5885         * po/bg.po: Likewise.
5886
5887         * manual/contrib.texi (Contributors): Update entries for Hongjiu
5888         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
5889
5890 2012-12-11  David S. Miller  <davem@davemloft.net>
5891
5892         * po/sv.po: Update from translation team.
5893
5894         * po/vi.po: Update from translation team.
5895
5896         * po/cs.po: Update from translation team.
5897
5898         * po/de.po: Update from translation team.
5899         * po/eo.po: Likewise.
5900         * po/nl.po: Likewise.
5901
5902 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
5903
5904         [BZ #14246]
5905         * manual/argp.texi (Argp Helper Functions): Move node to follow
5906         Argp Parsing State.
5907
5908         [BZ #14872]
5909         * manual/conf.texi (Limits on File System Capacity): Mention if
5910         terminating null is included in the max size.
5911
5912 2012-12-10  Andreas Jaeger  <aj@suse.de>
5913
5914         * po/cs.po: Update from translation team.
5915
5916 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
5917
5918         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
5919         void pointer and cast to uintptr_t.
5920         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
5921         path.
5922         * sysdeps/s390/s390-64/memcpy.S: Likewise.
5923         * sysdeps/s390/s390-64/memset.S: Likewise.
5924
5925 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
5926
5927         [BZ #14833]
5928         * menual/message.texi (Message Translation): Fix typos.
5929         (Helper programs for gettext): Likewise.
5930
5931 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
5932
5933         [BZ #14898]
5934         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
5935         Change to -1.
5936
5937 2012-12-07  David S. Miller  <davem@davemloft.net>
5938
5939         * po/libc.pot: Update.
5940
5941 2012-12-07  Richard Henderson  <rth@redhat.com>
5942
5943         [BZ #10114]
5944         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
5945         normal/normal case to before the switch.
5946         (_FP_DIV): Likewise.
5947
5948 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
5949             Mike Frysinger  <vapier@gentoo.org>
5950
5951         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
5952         check for __NR_fadvise64_64.
5953
5954 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
5955
5956         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
5957         0, not just to plain "0" as a statement.
5958         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
5959         with cw.
5960
5961 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
5962
5963         * NEWS: Use sourceware.org in Bugzilla URL.
5964
5965 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
5966
5967         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
5968         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
5969
5970         * stdio-common/tst-put-error.c (do_test): Add newline to the
5971         padded test to ensure flush.
5972
5973 2012-12-05  Jeff Law  <law@redhat.com>
5974
5975         * sunrpc/etc.rpc (fedfs_admin): Add entry.
5976
5977 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
5978
5979         * README: Don't refer to ports add-on as distributed separately.
5980         Mention AArch64 in list of systems supported in the ports add-on.
5981
5982         * LICENSES: Add more non-FSF copyright and license notices.
5983
5984         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
5985         ((unused)).
5986
5987         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
5988
5989         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
5990         10000 as width of padded output.
5991
5992 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
5993
5994         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
5995
5996         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
5997         variable LX with __attribute__ ((unused)).
5998         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
5999         Likewise.
6000         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
6001         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
6002         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
6003         with __attribute__ ((unused)).
6004
6005 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
6006
6007         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
6008
6009 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
6010
6011         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
6012         (CFLAGS-nldbl-acos.c): New variable.
6013         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
6014         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
6015         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
6016         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
6017         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
6018         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
6019         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
6020         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
6021         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
6022         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
6023         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
6024         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
6025         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
6026         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
6027         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
6028         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
6029         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
6030         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
6031         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
6032         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
6033         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
6034         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
6035         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
6036         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
6037         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
6038         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
6039         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
6040         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
6041         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
6042         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
6043         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
6044         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
6045         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
6046         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
6047         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
6048         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
6049         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
6050         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
6051         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
6052         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
6053         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
6054         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
6055         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
6056         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
6057         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
6058         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
6059         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
6060         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
6061         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
6062         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
6063         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
6064         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
6065         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
6066         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
6067         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
6068         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
6069         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
6070         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
6071         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
6072         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
6073         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
6074         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
6075         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
6076         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
6077         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
6078         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
6079         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
6080         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
6081         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
6082         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
6083         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
6084         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
6085         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
6086         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
6087         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
6088         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
6089         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
6090         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
6091         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
6092         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
6093         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
6094         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
6095         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
6096         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
6097         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
6098         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
6099         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
6100         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
6101         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
6102         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
6103         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
6104         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
6105         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
6106         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
6107         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
6108         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
6109         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
6110
6111         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
6112         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
6113
6114         [BZ #14914]
6115         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
6116         whole low double instead of just low 47 bits when splitting values
6117         into two parts.
6118
6119 2012-12-03  Allan McRae  <allan@archlinux.org>
6120
6121         * manual/stdio.texi (Predefined Printf Handlers): Remove
6122         @hsep and @vsep usage.
6123
6124 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
6125
6126         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
6127         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
6128
6129 2012-12-03  Jeff Law  <law@redhat.com>
6130
6131         * time/sys/time.h (settimeofday): Do not mark TV argument
6132         as __nonnull.
6133
6134 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
6135
6136         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
6137         when currently writing and seek to current position when not.
6138         * libio/Makefile (tests): Remove bug-fclose1.
6139         * libio/bug-fclose1.c: Delete.
6140
6141 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
6142
6143         * manual/arith.texi (feenableexcept): Fix typo.
6144         (fedisableexcept): Likewise.
6145
6146 2012-11-30  Roland McGrath  <roland@hack.frob.com>
6147
6148         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
6149         second, differently-typed declaration, rather than a cast.
6150
6151 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
6152
6153         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
6154         * include/rpc/svc.h: ... here.
6155
6156 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
6157
6158         [BZ #13013]
6159         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
6160         depending n and resplen2 to catch cases where answer
6161         equals answerp2.
6162
6163 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
6164
6165         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
6166         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
6167
6168 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
6169
6170         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
6171
6172 2012-11-29  Roland McGrath  <roland@hack.frob.com>
6173
6174         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
6175
6176 2012-11-28  Jeff Law  <law@redhat.com>
6177
6178         [BZ #13761]
6179         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
6180         dataset_temporary.  Track alloca usage into alloca_used.
6181         If dataset is large allocate and release it via malloc/free.
6182
6183 2012-06-04  Florian Weimer  <fweimer@redhat.com>
6184
6185         [BZ #14197]
6186         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
6187
6188 2012-11-28  David S. Miller  <davem@davemloft.net>
6189
6190         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6191
6192 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
6193
6194         [BZ #14803]
6195         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
6196         of pi/2 rounded to nearest to 64 bits.
6197         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
6198         nearest to 64 bits.
6199         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
6200         bits.
6201
6202 2012-11-28  Jeff Law <law@redhat.com>
6203             Martin Osvald <mosvald@redhat.com>
6204
6205         [BZ #14889]
6206         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
6207         * sunrpc/svc.c: Include time.h.
6208         (__svc_accept_failed): New function.
6209         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
6210         any reason other than EINTR, call __svc_accept_failed.
6211         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
6212         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
6213
6214 2012-11-28  Andreas Schwab  <schwab@suse.de>
6215
6216         * scripts/abilist.awk: Also handle indirect functions in .opd
6217         section.
6218
6219 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
6220
6221         [BZ #13881]
6222         * sysdeps/x86/fpu/powl_helper.c: New file.
6223         * sysdeps/x86/fpu/Makefile: Likewise.
6224         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
6225         (p3): New object.
6226         (__ieee754_powl): Use __powl_helper for finite arguments except
6227         integer exponents below 8.
6228         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
6229         (p3): New object.
6230         (__ieee754_powl): Use __powl_helper for finite arguments except
6231         integer exponents below 8.
6232         * math/libm-test.inc (pow_test): Add more tests and enable some
6233         previously disabled tests.
6234         * sysdeps/i386/fpu/libm-test-ulps: Update.
6235         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6236
6237 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
6238             Carlos O'Donell  <carlos_odonell@mentor.com>
6239
6240         * nss/makedb.c (is_prime): Assert that input is odd and greater
6241         than 4.  Note that fact in a comment too.
6242         (next_prime): Add 4 to input.
6243
6244 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
6245
6246         [BZ #11741]
6247         * libio/Makefile (tests): Add test case tst-fwrite-error.
6248         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
6249         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
6250         * libio/tst-fwrite-error.c: New test case.
6251
6252 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
6253
6254         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
6255         before casting to void *.
6256         * include/libc-internal.h (__pointer_type): New macro.
6257         (__integer_if_pointer_type_sub): Likewise.
6258         (__integer_if_pointer_type): Likewise.
6259         (cast_to_integer): Likewise.
6260         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
6261         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
6262         before casting to atomic64_t.
6263         (atomic_exchange_acq): Likewise.
6264         (__arch_exchange_and_add_body): Likewise.
6265         (__arch_add_body): Likewise.
6266         (atomic_add_negative): Likewise.
6267         (atomic_add_zero): Likewise.
6268
6269 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
6270
6271         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
6272         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
6273         (add_fdes): Likewise.
6274         (linear_search_fdes): Likewise.
6275         (binary_search_unencoded_fdes): Likewise.
6276
6277 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
6278
6279         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
6280
6281 2012-11-24  Adam Conrad  <adconrad@0c3.net>
6282
6283         * configure.in: Autodetect C++ header directories.
6284         * configure: Regenerated.
6285
6286 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
6287
6288         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
6289
6290 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
6291
6292         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6293
6294 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
6295
6296         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
6297         LDBL_MANT_DIG == 106]: Disable some tests.
6298         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
6299         Likewise.
6300         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
6301         Likewise.
6302
6303         [BZ #14871]
6304         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
6305         input for small inputs.  Return +/- pi/2 for large inputs.
6306         * math/libm-test.inc (atan_test): Add more tests.
6307
6308         * sysdeps/generic/unwind-dw2-fde-glibc.c
6309         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
6310         __attribute__ ((unused)).
6311
6312         [BZ #14645]
6313         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
6314         x * y if x and y are nonzero and z is zero.
6315
6316         [BZ #14811]
6317         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
6318         nonzero exponents with absolute value below 0x1p-117 to +/-
6319         0x1p-117.
6320
6321         [BZ #14869]
6322         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
6323         up arguments below 2**-450, not just those below 2**-500.
6324         * math/libm-test.inc (hypot_test): Add another test.
6325
6326         [BZ #14868]
6327         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
6328         Return a+b for ratio over 2**120, not 2**60.
6329         * math/libm-test.inc (hypot_test): Add another test.
6330
6331         * math/libm-test.inc (clog_test): Use
6332         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
6333         (clog10_test): Likewise.
6334
6335         [BZ #6778]
6336         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
6337
6338 2012-11-22  Andreas Schwab  <schwab@suse.de>
6339
6340         * sysdeps/i386/fpu/libm-test-ulps: Update.
6341
6342 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
6343
6344         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
6345         printf output with newline.
6346
6347 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
6348
6349         [BZ #14865]
6350         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
6351         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
6352         -z nodlopen, -z initfirst and -z execstack support.
6353         * configure: Regenerated.
6354
6355         * elf/elf.h (DF_1_NODIRECT): New macro.
6356         (DF_1_IGNMULDEF): Likewise.
6357         (DF_1_NOKSYMS): Likewise.
6358         (DF_1_NOHDR): Likewise.
6359         (DF_1_EDITED): Likewise.
6360         (DF_1_NORELOC): Likewise.
6361         (DF_1_SYMINTPOSE): Likewise.
6362         (DF_1_GLOBAUDIT): Likewise.
6363         (DF_1_SINGLETON): Likewise.
6364         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
6365         DT_1_SUPPORTED_MASK bits.
6366         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
6367
6368 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
6369
6370         * sysdeps/unix/make-syscalls.sh: Document prefixes.
6371
6372 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
6373
6374         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
6375         macro.
6376
6377         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
6378         (sendmmsg): Move declarations...
6379         * socket/sys/socket.h: ... here.
6380         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
6381         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
6382         include it from...
6383         * socket/recvmmsg.c: ... this new file.
6384         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
6385         (sendmmsg): Rename to __sendmmsg, create weak alias and make
6386         definition of __sendmmsg hidden.
6387         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
6388         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
6389         Move ENOSYS stub into and include it from...
6390         * socket/sendmmsg.c: ... this new file.
6391         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
6392         (sysdep_routines): Move recvmmsg and sendmmsg...
6393         * socket/Makefile (routines): ... here.
6394         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
6395         (GLIBC_PRIVATE): Add __sendmmsg.
6396         * include/sys/socket.h (__sendmmsg): Add declarations.
6397         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
6398         sendmmsg.
6399
6400 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
6401
6402         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
6403         variable I1 with __attribute__ ((unused)).
6404         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
6405
6406 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
6407
6408         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
6409         DUMMY variables with __attribute__ ((unused)).
6410
6411         * bits/byteswap.h: Include <bits/types.h>.
6412         (__bswap_64): Use __uint64_t instead of unsigned long long int.
6413
6414 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
6415
6416         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
6417         string_t.  Do not manually set errno.
6418         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
6419         length with __strnlen.  Make sure to both set errno and return it on
6420         failure.
6421
6422 2012-11-19  David S. Miller  <davem@davemloft.net>
6423
6424         With help from Joseph Myers.
6425         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
6426         very large arguments properly.
6427         * math/libm-test.inc (atan_test): New tests.
6428         (atan2_test): New tests.
6429         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6430         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6431
6432 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
6433
6434         [BZ #14856]
6435         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
6436         Define to 3.
6437
6438         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
6439         [POSIX] (EADDRNOTAVAIL): Likewise.
6440         [POSIX] (EAFNOSUPPORT): Likewise.
6441         [POSIX] (EALREADY): Likewise.
6442         [POSIX] (ECONNABORTED): Likewise.
6443         [POSIX] (ECONNREFUSED): Likewise.
6444         [POSIX] (ECONNRESET): Likewise.
6445         [POSIX] (EDESTADDRREQ): Likewise.
6446         [POSIX] (EDQUOT): Likewise.
6447         [POSIX] (EHOSTUNREACH): Likewise.
6448         [POSIX] (EIDRM): Likewise.
6449         [POSIX] (EISCONN): Likewise.
6450         [POSIX] (ELOOP): Likewise.
6451         [POSIX] (EMULTIHOP): Likewise.
6452         [POSIX] (ENETDOWN): Likewise.
6453         [POSIX] (ENETUNREACH): Likewise.
6454         [POSIX] (ENOBUFS): Likewise.
6455         [POSIX] (ENODATA): Likewise.
6456         [POSIX] (ENOLINK): Likewise.
6457         [POSIX] (ENOMSG): Likewise.
6458         [POSIX] (ENOPROTOOPT): Likewise.
6459         [POSIX] (ENOSR): Likewise.
6460         [POSIX] (ENOSTR): Likewise.
6461         [POSIX] (ENOTCONN): Likewise.
6462         [POSIX] (ENOTSOCK): Likewise.
6463         [POSIX] (EOPNOTSUPP): Likewise.
6464         [POSIX] (EOVERFLOW): Likewise.
6465         [POSIX] (EPROTO): Likewise.
6466         [POSIX] (EPROTONOSUPPORT): Likewise.
6467         [POSIX] (EPROTOTYPE): Likewise.
6468         [POSIX] (ESTALE): Likewise.
6469         [POSIX] (ETIME): Likewise.
6470         [POSIX] (ETXTBSY): Likewise.
6471         [POSIX] (EWOULDBLOCK): Likewise.
6472         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
6473         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
6474         [POSIX] (SEEK_CUR): Likewise.
6475         [POSIX] (SEEK_END): Likewise.
6476         [POSIX || UNIX98] (mode_t): Do not require.
6477         [POSIX] (off_t): Likewise.
6478         [POSIX] (pid_t): Likewise.
6479         [POSIX] (sys/stat.h): Do not allow header.
6480         [POSIX] (unistd.h): Likewise.
6481         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
6482         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
6483         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
6484         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
6485         require.
6486         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
6487         sigevent): Specify elements.
6488         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
6489         entry.
6490         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
6491         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
6492
6493         * conform/data/cpio.h-data [POSIX]: Disable whole file.
6494         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
6495         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
6496         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
6497         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
6498         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
6499         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
6500         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
6501         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
6502         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
6503         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
6504         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
6505         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
6506         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
6507         Likewise.
6508         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
6509         Likewise.
6510         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
6511         Likewise.
6512         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
6513         Likewise.
6514         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
6515         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
6516         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
6517         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
6518         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
6519         Specify lower bound on value.
6520         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
6521         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
6522         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
6523         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
6524         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
6525         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise
6526         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
6527         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
6528         value.
6529         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
6530         as optional.
6531         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
6532         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
6533         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
6534         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
6535         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
6536         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
6537         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
6538         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
6539         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
6540         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
6541         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
6542         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
6543         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
6544         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
6545         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
6546         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
6547         entry.
6548         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
6549         optional.
6550         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
6551         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
6552         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
6553         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
6554         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
6555         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
6556         Likewise.
6557         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
6558         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
6559         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
6560         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
6561         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
6562         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
6563         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
6564         as optional.
6565         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
6566         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
6567         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
6568         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
6569         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
6570         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
6571         specify as optional.
6572         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
6573         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
6574         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
6575         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
6576         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
6577         [XPG3] (NL_LANGMAX): Likewise.
6578         [POSIX || XPG3] (NL_MSGMAX): Likewise.
6579         [POSIX || XPG3] (NL_NMAX): Likewise.
6580         [POSIX || XPG3] (NL_SETMAX): Likewise.
6581         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
6582         [XPG3] (NZERO): Likewise.
6583         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
6584         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
6585         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
6586         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
6587         (REG_ERANGE): Expect.
6588         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
6589         optional-constant.
6590         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
6591         Use (void) in prototype.
6592         [POSIX] (*_t): Allow.
6593         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
6594         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
6595         (WRDE_BADVAL): Expect.
6596
6597         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
6598         expect.
6599         [XPG3 || XPG4] (O_RSYNC): Likewise.
6600         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
6601         Likewise.
6602         [XPG3 || XPG4] (pthread_sigmask): Likewise.
6603         [XPG3 || XPG4] (sigqueue): Likewise.
6604         [XPG3 || XPG4] (sigtimedwait): Likewise.
6605         [XPG3 || XPG4] (sigwaitinfo): Likewise.
6606         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
6607         [XPG3 || XPG4] (vsnprintf): Likewise.
6608         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
6609         Likewise.
6610         [XPG3 || XPG4] (blksize_t): Likewise.
6611         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
6612         Likewise.
6613         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
6614         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
6615         [XPG3 || XPG4] (struct itimerspec): Likewise.
6616         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
6617         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
6618         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
6619         [XPG3 || XPG4] (clockid_t): Likewise.
6620         [XPG3 || XPG4] (timer_t): Likewise.
6621         [XPG3 || XPG4] (clock_getres): Likewise.
6622         [XPG3 || XPG4] (clock_gettime): Likewise.
6623         [XPG3 || XPG4] (clock_settime): Likewise.
6624         [XPG3 || XPG4] (nanosleep): Likewise.
6625         [XPG3 || XPG4] (timer_create): Likewise.
6626         [XPG3 || XPG4] (timer_delete): Likewise.
6627         [XPG3 || XPG4] (timer_gettime): Likewise.
6628         [XPG3 || XPG4] (timer_getoverrun): Likewise.
6629         [XPG3 || XPG4] (timer_settime): Likewise.
6630         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
6631         [XPG3 || XPG4] (getlogin_r): Likewise.
6632         [XPG3 || XPG4] (pread): Likewise.
6633         [XPG3 || XPG4] (pthread_atfork): Likewise.
6634         [XPG3 || XPG4] (pwrite): Likewise.
6635
6636         [BZ #14835]
6637         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
6638         <bits/siginfo.h>.
6639
6640 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
6641
6642         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
6643         finalizing MALLSTREAM.
6644
6645         * sysdeps/mach/hurd/syncfs.c: New file.
6646
6647 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
6648
6649         [BZ #14719]
6650         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
6651         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
6652         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
6653         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
6654         (_nss_dns_gethostbyname4_r): Likewise.
6655         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
6656         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
6657
6658 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
6659
6660         [BZ #13763]
6661         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
6662
6663 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
6664
6665         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
6666         * elf/cache.c (print_entry): Print ",AArch64" for
6667         FLAG_AARCH64_LIB64
6668
6669         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
6670         * elf/cache.c (print_entry): Print ",hard-float" for
6671         FLAG_ARM_LIBHF.
6672
6673 2012-11-18  David S. Miller  <davem@davemloft.net>
6674
6675         With help from Joseph Myers.
6676         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
6677         cutoff to 2**-13.
6678         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
6679         cutoff to 2**-25.
6680         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
6681         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
6682         small.
6683         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
6684         * math/libm-test.inc (y0_test): New tests.
6685         (y1_test): New tests.
6686         * sysdeps/i386/fpu/libm-test-ulps: Update.
6687         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6688         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6689
6690 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
6691
6692         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
6693         64-bit targets.
6694         * configure: Regenerated.
6695
6696 2012-11-17  David S. Miller  <davem@davemloft.net>
6697
6698         [BZ #14811]
6699         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
6700         nonzero exponents with absolute value below 0x1p-128 to +/-
6701         0x1p-128.
6702
6703 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
6704
6705         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
6706
6707         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
6708
6709         * posix/getconf-speclist.c: New file.
6710         * posix/posix-envs.def: Likewise.
6711         * posix/confstr.c (START_ENV_GROUP): New macro.
6712         (END_ENV_GROUP): Likewise.
6713         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
6714         (KNOWN_PRESENT_ENV_STRING): Likewise.
6715         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
6716         (UNKNOWN_ENVIRONMENT): Likewise.
6717         (confstr): Include posix-envs.def instead of handling
6718         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
6719         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
6720         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
6721         (END_ENV_GROUP): Likewise.
6722         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
6723         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
6724         (UNKNOWN_ENVIRONMENT): Likewise.
6725         (__sysconf): Include posix-envs.def instead of handling associated
6726         cases directly here.
6727         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
6728         preprocessing getconf-speclist.c rather than running getconf or
6729         generating empty file.
6730
6731 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
6732
6733         * scripts/check-local-headers.sh: Ignore 'mach' headers.
6734
6735 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
6736
6737         [BZ #14672]
6738         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
6739
6740 2012-11-16  David S. Miller  <davem@davemloft.net>
6741
6742         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
6743         smaller than LDBL_EPSILON/2.0L, just return xm1.
6744
6745 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
6746
6747         * elf/tst-array1.c (init): Set constructor priority to 1000.
6748         (fini): Set destructor priority to 1000.
6749         * elf/tst-array2dep.c: Likewise.
6750
6751 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
6752
6753         [BZ #11741]
6754         * libio/fileops.c (_IO_new_file_write): Correctly return error.
6755         (_IO_new_file_xsputn): Also return EOF if none of the input
6756         data was written when overflow failed.
6757         * libio/iopadn.c (_IO_padn): Likewise.
6758         * libio/iowpadn.c (_IO_wpadn): Likewise.
6759         * stdio-common/tst-put-error.c: Add copyright notice.
6760         (do_test): Add case for printing padded string.
6761         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
6762         _IO_padn returned error.
6763         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
6764         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
6765         return EOF.
6766
6767 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
6768
6769         * libio/libioP.h: Add comment note that the references to C++
6770         bits are now obsolete.
6771
6772 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
6773
6774         * math/libm-test.inc (check_complex): Use asprintf.
6775
6776 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
6777
6778         * debug/pcprofiledump.c (print_version): Update copyright year.
6779         * malloc/memusagestat.c (print_version): Likewise.
6780
6781 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
6782
6783         [BZ #14831]
6784         * elf/Makefile (tests): Add tst-audit8.
6785         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
6786         ($(objpfx)tst-audit8.out): New target.
6787         (tst-audit8-ENV): New variable.
6788         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
6789         audit if l_reloc_result is NULL.
6790         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
6791         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
6792         * elf/tst-audit8.c: New file.
6793
6794 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
6795
6796         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
6797         * misc/Makefile (CFLAGS-select.c): Define.
6798         * posix/Makefile (CFLAGS-pause.c): Define.
6799
6800 2012-11-13  David S. Miller  <davem@davemloft.net>
6801
6802         * crypt/Makefile: Move test targets after toplevel Rules
6803         inclusion.  Grab any necessary sysdep routines when linking.
6804         * crypt/md5.c (md5_process_block): Remove define, we will always
6805         name it __md5_process_block.
6806         (md5_finish_ctx): Update md5_process_block call.
6807         (md5_stream): Likewise.
6808         (md5_process_bytes): Likewise.
6809         (md5_process_block): Rename to __md5_process_block and move to ...
6810         * crypt/md5-block.c: ... here.
6811         * crypt/sha256.c (sha256_process_block): Move to ...
6812         * crypt/sha256-block.c: ... here.
6813         * crypt/sha512.c (sha512_process_block): Move to ...
6814         * crypt/sha512-block.c: ... here.
6815         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
6816         path.
6817         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
6818         * sysdeps/sparc/sparc64/multiarch/Makefile
6819         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
6820         crypt subdir.
6821         (localedef-aux): Add md5 crypto assembler when in locale subdir.
6822         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
6823         multiarch changes.
6824         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
6825         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
6826         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
6827         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
6828         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
6829         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
6830         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
6831         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
6832         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
6833         file.
6834         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
6835         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
6836         file.
6837         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
6838
6839 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
6840
6841         * timezone/tzselect.ksh: Update from tzcode git revision
6842         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
6843         * timezone/zdump.c: Likewise.
6844         * timezone/zic.c: Likewise.
6845         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
6846         in TZVERSION setting, not $(PKGVERSION).
6847         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
6848         REPORT_BUGS_TO settings.
6849
6850         [BZ #14838]
6851         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
6852         macro.
6853
6854 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
6855
6856         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
6857         detection to immediately after _FP_ROUND().
6858         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
6859         bits are 0.
6860
6861 2012-11-11  David S. Miller  <davem@davemloft.net>
6862
6863         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
6864         inttypes.h
6865         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
6866         __close rather than their public counterparts.
6867
6868 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
6869
6870         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
6871         file.
6872         [UNIX98] (sem_timedwait): Do not expect.
6873         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
6874         [XPG4 || UNIX98] (sockatmark): Do not expect.
6875         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
6876         (clock_getcpuclockid): Do not expect.
6877         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
6878         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
6879         Do not expect.
6880         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
6881         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
6882         [UNIX98] (vwscanf): Likewise.
6883         [UNIX98] (vswscanf): Likewise.
6884
6885 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
6886
6887         * timezone/version.h: Remove file.
6888         * timezone/README: Do not refer to version.h.
6889         * timezone/Makefile ($(objpfx)zic.o): New dependency on
6890         $(objpfx)version.h.
6891         ($(objpfx)zdump.o): Likewise.
6892         ($(objpfx)version.h): New target.
6893
6894         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
6895         2012i.
6896         * timezone/README: Don't mention modification to tzselect.ksh.
6897         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
6898         work on unmodified tzselect.ksh.  Substitute version numbers in
6899         tzselect.ksh.
6900
6901         * Makefile (format-me): Remove.
6902         (INSTALL): Adjust indentation.  Use commands directly instead of
6903         using $(format-me).
6904
6905         * aclocal.m4 (ACX_PKGVERSION): New macro.
6906         (ACX_BUGURL): Likewise.
6907         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
6908         (PKGVERSION): New AC_DEFINE_UNQUOTED.
6909         (REPORT_BUGS_TO): Likewise.
6910         * configure: Regenerated.
6911         * config.h.in (PKGVERSION): New macro.
6912         (REPORT_BUGS_TO): Likewise.
6913         * config.make.in (PKGVERSION): New variable.
6914         (PKGVERSION_TEXI): Likewise.
6915         (REPORT_BUGS_TO): Likewise.
6916         (REPORT_BUGS_TEXI): Likewise.
6917         * Makefile (format-me): Use -I$(common-objpfx)manual.
6918         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
6919         ($(common-objpfx)manual/%): New target.
6920         (manual/%): Remove target.
6921         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
6922         (print_version): Use PKGVERSION.
6923         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
6924         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
6925         and REPORT_BUGS_TO.
6926         ($(objpfx)xtrace): Likewise.
6927         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
6928         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
6929         (print_version): Use PKGVERSION.
6930         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
6931         (do_version): Use PKGVERSION.
6932         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
6933         REPORT_BUGS_TO.
6934         (common-ldd-rewrite): Likewise.
6935         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
6936         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
6937         (print_version): Use PKGVERSION.
6938         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
6939         * elf/pldd.c (argp_program_bug_address): Remove variable.
6940         (more_help): New function.
6941         (argp): Use more_help.
6942         (print_version): Use PKGVERSION.
6943         * elf/sln.c (main): Use PKGVERSION.
6944         (usage): Use REPORT_BUGS_TO.
6945         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
6946         (top level): Use PKGVERSION.
6947         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
6948         (print_version): Use PKGVERSION.
6949         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
6950         (print_version): Use PKGVERSION.
6951         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
6952         (print_version): Use PKGVERSION.
6953         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
6954         (print_version): Use PKGVERSION.
6955         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
6956         (print_version): Use PKGVERSION.
6957         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
6958         (print_version): Use PKGVERSION.
6959         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
6960         and BUGURL.
6961         ($(objpfx)memusage): Likewise.
6962         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
6963         (do_version): Use PKGVERSION.
6964         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
6965         (print_version): Use PKGVERSION.
6966         * malloc/mtrace.pl ($PACKAGE): Remove variable.
6967         ($PKGVERSION): New variable.
6968         ($REPORT_BUGS_TO): Likewise.
6969         (usage): Use $REPORT_BUGS_TO.
6970         (top level): Use $PKGVERSION.
6971         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
6972         ($(objpfx)pkgvers.texi): New rule.
6973         ($(objpfx)stamp-pkgvers): Likewise.
6974         * manual/install.texi: Include pkgvers.texi.
6975         (--with-pkgversion): Document new configure option.
6976         (--with-bugurl): Likewise.
6977         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
6978         than necessarily for this particular distribution.  Use
6979         REPORT_BUGS_TO for where to report bugs.
6980         * INSTALL: Regenerated.
6981         * manual/libc.texinfo: Include pkgvers.texi.
6982         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
6983         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
6984         (print_version): Use PKGVERSION.
6985         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
6986         (print_version): Use PKGVERSION.
6987         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
6988         (print_version): Use PKGVERSION.
6989         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
6990         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
6991         macro.
6992         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
6993         (print_version): Use PKGVERSION.
6994         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
6995         (print_version): Use PKGVERSION.
6996         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
6997         and PKGVERSION.
6998
6999         * timezone/checktab.awk: Update from tzcode 2012i.
7000         * timezone/ialloc.c: Likewise.
7001         * timezone/private.h: Likewise.
7002         * timezone/scheck.c: Likewise.
7003         * timezone/tzfile.h: Likewise.
7004         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
7005         (TZVERSION): Hardcode tzcode version number.
7006         * timezone/zdump.c: Update from tzcode 2012i.
7007         * timezone/zic.c: Likewise.
7008         * timezone/version.h: New file.
7009         * timezone/README: Describe version.h.  Update upstream location.
7010
7011         [BZ #14824]
7012         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
7013         (mktemp): Enable declaration.
7014         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
7015         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
7016         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
7017         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
7018         Likewise.
7019         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
7020         Likewise.
7021         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
7022         Likewise.
7023         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
7024         Likewise.
7025         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
7026         Likewise.
7027         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
7028         Likewise.
7029
7030         [BZ #14821]
7031         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
7032         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
7033         for copies of such integer values.
7034         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
7035         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
7036
7037 2012-11-09  Andreas Jaeger  <aj@suse.de>
7038
7039         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
7040         definitions and declarations that are provided by
7041         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
7042
7043 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7044
7045         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
7046         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
7047         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
7048         definition.
7049
7050 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
7051
7052         * elf/elf.h: Update comment before AArch64 relocations.
7053
7054 2012-11-07  David S. Miller  <davem@davemloft.net>
7055
7056         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
7057         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
7058         (__start_context): Declare.
7059         (__makecontext_ret): Delete.
7060         (__makecontext): Hook up __start_context instead of
7061         __makecontext_ret.
7062         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
7063         (sysdep_routines): Add __start_context when in stdlib.
7064
7065 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
7066
7067         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
7068         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
7069         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
7070         hardcoded "nm".
7071         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
7072         (READELF): New variable.  Use it instead of hardcoded "readelf".
7073
7074 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
7075
7076         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
7077         * sysdeps/x86/Makefile: Here.
7078         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
7079         * sysdeps/x86/tst-xmmymm.sh: This.
7080
7081 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
7082
7083         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
7084         expectations.
7085         [UNIX98] (pthread_barrier_t): Do not expect.
7086         [UNIX98] (pthread_barrierattr_t): Likewise.
7087         [UNIX98] (pthread_spinlock_t): Likewise.
7088         [UNIX98] (pthread_barrier_destroy): Likewise.
7089         [UNIX98] (pthread_barrier_init): Likewise.
7090         [UNIX98] (pthread_barrier_wait): Likewise.
7091         [UNIX98] (pthread_barrierattr_destroy): Likewise.
7092         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
7093         [UNIX98] (pthread_barrierattr_init): Likewise.
7094         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
7095         [UNIX98] (pthread_getcpuclockid): Likewise.
7096         [UNIX98] (pthread_mutex_timedlock): Likewise.
7097         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
7098         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
7099         [UNIX98] (pthread_sigmask): Likewise.
7100         [UNIX98] (pthread_spin_destroy): Likewise.
7101         [UNIX98] (pthread_spin_init): Likewise.
7102         [UNIX98] (pthread_spin_lock): Likewise.
7103         [UNIX98] (pthread_spin_trylock): Likewise.
7104         [UNIX98] (pthread_spin_unlock): Likewise.
7105         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
7106         Do not expect.
7107         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
7108         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
7109         [XPG3 || XPG4] (pthread_cond_t): Likewise.
7110         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
7111         [XPG3 || XPG4] (pthread_key_t): Likewise.
7112         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
7113         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
7114         [XPG3 || XPG4] (pthread_once_t): Likewise.
7115         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
7116         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
7117         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
7118         [XPG3 || XPG4] (pthread_t): Likewise.
7119
7120         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
7121         not expect.
7122         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
7123
7124         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
7125         Change function return type to int.
7126
7127         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
7128         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
7129         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
7130         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
7131         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
7132         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
7133         [!POSIX] (posix_madvise): Likewise.
7134         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
7135         && !UNIX98].
7136         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
7137         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
7138         (mode_t): Likewise.
7139         (posix_mem_offset): Likewise.
7140         (posix_typed_mem_get_info): Likewise.
7141         (posix_typed_mem_open): Likewise.
7142
7143         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
7144         Change condition to [XOPEN2K8].
7145
7146         * conform/conformtest.pl: Preprocess allow-header data with -x c
7147         instead of from stdin.
7148         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
7149         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
7150         [C99-based standards] (cerfc): Likewise.
7151         [C99-based standards] (cexp2): Likewise.
7152         [C99-based standards] (cexpm1): Likewise.
7153         [C99-based standards] (clog10): Likewise.
7154         [C99-based standards] (clog1p): Likewise.
7155         [C99-based standards] (clog2): Likewise.
7156         [C99-based standards] (clgamma): Likewise.
7157         [C99-based standards] (ctgamma): Likewise.
7158         [C99-based standards] (cerff): Likewise.
7159         [C99-based standards] (cerfcf): Likewise.
7160         [C99-based standards] (cexp2f): Likewise.
7161         [C99-based standards] (cexpm1f): Likewise.
7162         [C99-based standards] (clog10f): Likewise.
7163         [C99-based standards] (clog1pf): Likewise.
7164         [C99-based standards] (clog2f): Likewise.
7165         [C99-based standards] (clgammaf): Likewise.
7166         [C99-based standards] (ctgammaf): Likewise.
7167         [C99-based standards] (cerfl): Likewise.
7168         [C99-based standards] (cerfcl): Likewise.
7169         [C99-based standards] (cexp2l): Likewise.
7170         [C99-based standards] (cexpm1l): Likewise.
7171         [C99-based standards] (clog10l): Likewise.
7172         [C99-based standards] (clog1pl): Likewise.
7173         [C99-based standards] (clog2l): Likewise.
7174         [C99-based standards] (clgammal): Likewise.
7175         [C99-based standards] (ctgammal): Likewise.
7176         * conform/data/inttypes.h-data [C99-based standards]: Include
7177         stdint.h-data.  Remove all expectations for stdint.h contents.
7178         [C99-based standards] (PRI*): Do not allow.
7179         [C99-based standards] (SCN*): Likewise.
7180         [C99-based standards] (*_t): Likewise.
7181         [C99-based-standards] (PRId8): Expect macro.
7182         [C99-based-standards] (PRIi8): Likewise.
7183         [C99-based-standards] (PRIo8): Likewise.
7184         [C99-based-standards] (PRIu8): Likewise.
7185         [C99-based-standards] (PRIx8): Likewise.
7186         [C99-based-standards] (PRIX8): Likewise.
7187         [C99-based-standards] (SCNd8): Likewise.
7188         [C99-based-standards] (SCNi8): Likewise.
7189         [C99-based-standards] (SCNo8): Likewise.
7190         [C99-based-standards] (SCNu8): Likewise.
7191         [C99-based-standards] (SCNx8): Likewise.
7192         [C99-based-standards] (PRIdLEAST8): Likewise.
7193         [C99-based-standards] (PRIiLEAST8): Likewise.
7194         [C99-based-standards] (PRIoLEAST8): Likewise.
7195         [C99-based-standards] (PRIuLEAST8): Likewise.
7196         [C99-based-standards] (PRIxLEAST8): Likewise.
7197         [C99-based-standards] (PRIXLEAST8): Likewise.
7198         [C99-based-standards] (SCNdLEAST8): Likewise.
7199         [C99-based-standards] (SCNiLEAST8): Likewise.
7200         [C99-based-standards] (SCNoLEAST8): Likewise.
7201         [C99-based-standards] (SCNuLEAST8): Likewise.
7202         [C99-based-standards] (SCNxLEAST8): Likewise.
7203         [C99-based-standards] (PRIdFAST8): Likewise.
7204         [C99-based-standards] (PRIiFAST8): Likewise.
7205         [C99-based-standards] (PRIoFAST8): Likewise.
7206         [C99-based-standards] (PRIuFAST8): Likewise.
7207         [C99-based-standards] (PRIxFAST8): Likewise.
7208         [C99-based-standards] (PRIXFAST8): Likewise.
7209         [C99-based-standards] (SCNdFAST8): Likewise.
7210         [C99-based-standards] (SCNiFAST8): Likewise.
7211         [C99-based-standards] (SCNoFAST8): Likewise.
7212         [C99-based-standards] (SCNuFAST8): Likewise.
7213         [C99-based-standards] (SCNxFAST8): Likewise.
7214         [C99-based-standards] (PRId16): Likewise.
7215         [C99-based-standards] (PRIi16): Likewise.
7216         [C99-based-standards] (PRIo16): Likewise.
7217         [C99-based-standards] (PRIu16): Likewise.
7218         [C99-based-standards] (PRIx16): Likewise.
7219         [C99-based-standards] (PRIX16): Likewise.
7220         [C99-based-standards] (SCNd16): Likewise.
7221         [C99-based-standards] (SCNi16): Likewise.
7222         [C99-based-standards] (SCNo16): Likewise.
7223         [C99-based-standards] (SCNu16): Likewise.
7224         [C99-based-standards] (SCNx16): Likewise.
7225         [C99-based-standards] (PRIdLEAST16): Likewise.
7226         [C99-based-standards] (PRIiLEAST16): Likewise.
7227         [C99-based-standards] (PRIoLEAST16): Likewise.
7228         [C99-based-standards] (PRIuLEAST16): Likewise.
7229         [C99-based-standards] (PRIxLEAST16): Likewise.
7230         [C99-based-standards] (PRIXLEAST16): Likewise.
7231         [C99-based-standards] (SCNdLEAST16): Likewise.
7232         [C99-based-standards] (SCNiLEAST16): Likewise.
7233         [C99-based-standards] (SCNoLEAST16): Likewise.
7234         [C99-based-standards] (SCNuLEAST16): Likewise.
7235         [C99-based-standards] (SCNxLEAST16): Likewise.
7236         [C99-based-standards] (PRIdFAST16): Likewise.
7237         [C99-based-standards] (PRIiFAST16): Likewise.
7238         [C99-based-standards] (PRIoFAST16): Likewise.
7239         [C99-based-standards] (PRIuFAST16): Likewise.
7240         [C99-based-standards] (PRIxFAST16): Likewise.
7241         [C99-based-standards] (PRIXFAST16): Likewise.
7242         [C99-based-standards] (SCNdFAST16): Likewise.
7243         [C99-based-standards] (SCNiFAST16): Likewise.
7244         [C99-based-standards] (SCNoFAST16): Likewise.
7245         [C99-based-standards] (SCNuFAST16): Likewise.
7246         [C99-based-standards] (SCNxFAST16): Likewise.
7247         [C99-based-standards] (PRId32): Likewise.
7248         [C99-based-standards] (PRIi32): Likewise.
7249         [C99-based-standards] (PRIo32): Likewise.
7250         [C99-based-standards] (PRIu32): Likewise.
7251         [C99-based-standards] (PRIx32): Likewise.
7252         [C99-based-standards] (PRIX32): Likewise.
7253         [C99-based-standards] (SCNd32): Likewise.
7254         [C99-based-standards] (SCNi32): Likewise.
7255         [C99-based-standards] (SCNo32): Likewise.
7256         [C99-based-standards] (SCNu32): Likewise.
7257         [C99-based-standards] (SCNx32): Likewise.
7258         [C99-based-standards] (PRIdLEAST32): Likewise.
7259         [C99-based-standards] (PRIiLEAST32): Likewise.
7260         [C99-based-standards] (PRIoLEAST32): Likewise.
7261         [C99-based-standards] (PRIuLEAST32): Likewise.
7262         [C99-based-standards] (PRIxLEAST32): Likewise.
7263         [C99-based-standards] (PRIXLEAST32): Likewise.
7264         [C99-based-standards] (SCNdLEAST32): Likewise.
7265         [C99-based-standards] (SCNiLEAST32): Likewise.
7266         [C99-based-standards] (SCNoLEAST32): Likewise.
7267         [C99-based-standards] (SCNuLEAST32): Likewise.
7268         [C99-based-standards] (SCNxLEAST32): Likewise.
7269         [C99-based-standards] (PRIdFAST32): Likewise.
7270         [C99-based-standards] (PRIiFAST32): Likewise.
7271         [C99-based-standards] (PRIoFAST32): Likewise.
7272         [C99-based-standards] (PRIuFAST32): Likewise.
7273         [C99-based-standards] (PRIxFAST32): Likewise.
7274         [C99-based-standards] (PRIXFAST32): Likewise.
7275         [C99-based-standards] (SCNdFAST32): Likewise.
7276         [C99-based-standards] (SCNiFAST32): Likewise.
7277         [C99-based-standards] (SCNoFAST32): Likewise.
7278         [C99-based-standards] (SCNuFAST32): Likewise.
7279         [C99-based-standards] (SCNxFAST32): Likewise.
7280         [C99-based-standards] (PRId64): Likewise.
7281         [C99-based-standards] (PRIi64): Likewise.
7282         [C99-based-standards] (PRIo64): Likewise.
7283         [C99-based-standards] (PRIu64): Likewise.
7284         [C99-based-standards] (PRIx64): Likewise.
7285         [C99-based-standards] (PRIX64): Likewise.
7286         [C99-based-standards] (SCNd64): Likewise.
7287         [C99-based-standards] (SCNi64): Likewise.
7288         [C99-based-standards] (SCNo64): Likewise.
7289         [C99-based-standards] (SCNu64): Likewise.
7290         [C99-based-standards] (SCNx64): Likewise.
7291         [C99-based-standards] (PRIdLEAST64): Likewise.
7292         [C99-based-standards] (PRIiLEAST64): Likewise.
7293         [C99-based-standards] (PRIoLEAST64): Likewise.
7294         [C99-based-standards] (PRIuLEAST64): Likewise.
7295         [C99-based-standards] (PRIxLEAST64): Likewise.
7296         [C99-based-standards] (PRIXLEAST64): Likewise.
7297         [C99-based-standards] (SCNdLEAST64): Likewise.
7298         [C99-based-standards] (SCNiLEAST64): Likewise.
7299         [C99-based-standards] (SCNoLEAST64): Likewise.
7300         [C99-based-standards] (SCNuLEAST64): Likewise.
7301         [C99-based-standards] (SCNxLEAST64): Likewise.
7302         [C99-based-standards] (PRIdFAST64): Likewise.
7303         [C99-based-standards] (PRIiFAST64): Likewise.
7304         [C99-based-standards] (PRIoFAST64): Likewise.
7305         [C99-based-standards] (PRIuFAST64): Likewise.
7306         [C99-based-standards] (PRIxFAST64): Likewise.
7307         [C99-based-standards] (PRIXFAST64): Likewise.
7308         [C99-based-standards] (SCNdFAST64): Likewise.
7309         [C99-based-standards] (SCNiFAST64): Likewise.
7310         [C99-based-standards] (SCNoFAST64): Likewise.
7311         [C99-based-standards] (SCNuFAST64): Likewise.
7312         [C99-based-standards] (SCNxFAST64): Likewise.
7313         [C99-based-standards] (PRIdMAX): Likewise.
7314         [C99-based-standards] (PRIiMAX): Likewise.
7315         [C99-based-standards] (PRIoMAX): Likewise.
7316         [C99-based-standards] (PRIuMAX): Likewise.
7317         [C99-based-standards] (PRIxMAX): Likewise.
7318         [C99-based-standards] (PRIXMAX): Likewise.
7319         [C99-based-standards] (SCNdMAX): Likewise.
7320         [C99-based-standards] (SCNiMAX): Likewise.
7321         [C99-based-standards] (SCNoMAX): Likewise.
7322         [C99-based-standards] (SCNuMAX): Likewise.
7323         [C99-based-standards] (SCNxMAX): Likewise.
7324         [C99-based-standards] (PRIdPTR): Likewise.
7325         [C99-based-standards] (PRIiPTR): Likewise.
7326         [C99-based-standards] (PRIoPTR): Likewise.
7327         [C99-based-standards] (PRIuPTR): Likewise.
7328         [C99-based-standards] (PRIxPTR): Likewise.
7329         [C99-based-standards] (PRIXPTR): Likewise.
7330         [C99-based-standards] (SCNdPTR): Likewise.
7331         [C99-based-standards] (SCNiPTR): Likewise.
7332         [C99-based-standards] (SCNoPTR): Likewise.
7333         [C99-based-standards] (SCNuPTR): Likewise.
7334         [C99-based-standards] (SCNxPTR): Likewise.
7335         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
7336         allow.
7337         * conform/data/stdint.h-data: Update comments to clarify
7338         requirements.
7339         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
7340         type.
7341         [C99-based standards] (INT8_MAX): Likewise.
7342         [C99-based standards] (INT16_MIN): Likewise.
7343         [C99-based standards] (INT16_MAX): Likewise.
7344         [C99-based standards] (INT32_MIN): Likewise.
7345         [C99-based standards] (INT32_MAX): Likewise.
7346         [C99-based standards] (INT64_MIN): Likewise.
7347         [C99-based standards] (INT64_MAX): Likewise.
7348         [C99-based standards] (UINT8_MAX): Likewise.
7349         [C99-based standards] (UINT16_MAX): Likewise.
7350         [C99-based standards] (UINT32_MAX): Likewise.
7351         [C99-based standards] (UINT64_MAX): Likewise.
7352         [C99-based standards] (INT_LEAST8_MIN): Likewise.
7353         [C99-based standards] (INT_LEAST8_MAX): Likewise.
7354         [C99-based standards] (INT_LEAST16_MIN): Likewise.
7355         [C99-based standards] (INT_LEAST16_MAX): Likewise.
7356         [C99-based standards] (INT_LEAST32_MIN): Likewise.
7357         [C99-based standards] (INT_LEAST32_MAX): Likewise.
7358         [C99-based standards] (INT_LEAST64_MIN): Likewise.
7359         [C99-based standards] (INT_LEAST64_MAX): Likewise.
7360         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
7361         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
7362         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
7363         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
7364         [C99-based standards] (INT_FAST8_MIN): Likewise.
7365         [C99-based standards] (INT_FAST8_MAX): Likewise.
7366         [C99-based standards] (INT_FAST16_MIN): Likewise.
7367         [C99-based standards] (INT_FAST16_MAX): Likewise.
7368         [C99-based standards] (INT_FAST32_MIN): Likewise.
7369         [C99-based standards] (INT_FAST32_MAX): Likewise.
7370         [C99-based standards] (INT_FAST64_MIN): Likewise.
7371         [C99-based standards] (INT_FAST64_MAX): Likewise.
7372         [C99-based standards] (UINT_FAST8_MAX): Likewise.
7373         [C99-based standards] (UINT_FAST16_MAX): Likewise.
7374         [C99-based standards] (UINT_FAST32_MAX): Likewise.
7375         [C99-based standards] (UINT_FAST64_MAX): Likewise.
7376         [C99-based standards] (INTPTR_MIN): Likewise.
7377         [C99-based standards] (INTPTR_MAX): Likewise.
7378         [C99-based standards] (UINTPTR_MAX): Likewise.
7379         [C99-based standards] (INTMAX_MIN): Likewise.
7380         [C99-based standards] (INTMAX_MAX): Likewise.
7381         [C99-based standards] (UINTMAX_MAX): Likewise.
7382         [C99-based standards] (PTRDIFF_MIN): Likewise.
7383         [C99-based standards] (PTRDIFF_MAX): Likewise.
7384         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
7385         [C99-based standards] (SIZE_MAX): Likewise.
7386         [C99-based standards] (WCHAR_MAX): Likewise.
7387         [C99-based standards] (WINT_MAX): Likewise.
7388         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
7389         constraint on value.
7390         [C99-based standards] (WCHAR_MIN): Likewise.
7391         [C99-based standards] (WINT_MIN): Likewise.
7392         [C99-based standards] (*_t): Allow.
7393         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
7394         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
7395         Include math.h-data and complex.h-data.  Remove all expectations
7396         of math.h and complex.h contents.
7397         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
7398         at end of line.
7399         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
7400         (struct tm): Expect tag.
7401         [C99-based-standards] (wcstof): Expect function.
7402         [C99-based-standards] (wcstold): Likewise.
7403         [C99-based-standards] (wcstoll): Likewise.
7404         [C99-based-standards] (wcstoull): Likewise.
7405         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
7406         macro-int-constant.  Specify type.
7407         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
7408         constraint on value.
7409         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
7410         Specify type.
7411         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
7412         Specify value.
7413         [ISO C standards]: Do not allow headers.
7414         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
7415         wcs[abcdefghijklmnopqrstuvwxyz]*.
7416         [ISO C standards] (*_t): Do not allow.
7417         * conform/data/wctype.h-data [C99-based standards] (iswblank):
7418         Expect function.
7419         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
7420         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
7421         Specify type.
7422         [ISO C standards]: Do not allow headers.
7423         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
7424         is[abcdefghijklmnopqrstuvwxyz]*.
7425         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
7426         to[abcdefghijklmnopqrstuvwxyz]*.
7427         [ISO C standards] (*_t): Do not allow.
7428         * conform/data/stdalign.h-data: New file.
7429         * conform/data/stdbool.h-data: Likewise.
7430         * conform/data/stdnoreturn.h-data: Likewise.
7431
7432 2012-11-07  Roland McGrath  <roland@hack.frob.com>
7433
7434         [BZ #14815]
7435         * manual/filesys.texi (Directory Entries): Typo fix.
7436         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
7437
7438 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
7439
7440         * elf/elf.h (EM_AARCH64): New macro.
7441         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
7442         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
7443         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
7444         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
7445         (R_AARCH64_TLSDESC): Likewise.
7446         (NT_ARM_TLS): Likewise.
7447         (NT_ARM_HW_BREAK): Likewise.
7448         (NT_ARM_HW_WATCH): Likewise.
7449
7450 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
7451
7452         [BZ #14811]
7453         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
7454         (__ieee754_powl): Saturate nonzero exponents with absolute value
7455         below 0x1p-79 to +/- 0x1p-79.
7456         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
7457         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
7458         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
7459         nonzero exponents with absolute value below 0x1p-32 to +/-
7460         0x1p-32.
7461         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
7462         (__ieee754_powl): Saturate nonzero exponents with absolute value
7463         below 0x1p-79 to +/- 0x1p-79.
7464         * math/libm-test.inc (pow_test): Add more tests.
7465
7466 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7467
7468         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
7469         _dl_s390_cap_flags with kernel. Increase string length.
7470         (_dl_s390_platforms): Add z196 and zEC12.
7471
7472 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
7473
7474         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
7475         Change XOPEN21K to XOPEN2K.
7476
7477 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
7478
7479         * string/memmove.c: Use memcpy when possible.
7480
7481 2012-11-06  Andreas Jaeger  <aj@suse.de>
7482
7483         * po/eo.po: Update from translation team.
7484
7485 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
7486
7487         [BZ #14793]
7488         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
7489         exponent and small x and y exponents, scale x or y up.  Increase
7490         by 2 the exponent used in scaling up.
7491         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
7492         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
7493         * math/libm-test.inc (fma_test): Add more tests.
7494         (fma_test_towardzero): Likewise.
7495         (fma_test_downward): Likewise.
7496         (fma_test_upward): Likewise.
7497
7498 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
7499
7500         [BZ #14805]
7501         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
7502         fenv_t *.
7503
7504         [BZ #14801]
7505         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
7506         namespace for names of struct fields.
7507         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
7508         fenv_t fields.
7509         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
7510         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
7511
7512 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7513
7514         [BZ #3665]
7515         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
7516
7517 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
7518
7519         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
7520         PTR_DEMANGLE.
7521
7522         [BZ #5246]
7523         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
7524         PTR_DEMANGLE.
7525
7526 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
7527
7528         [BZ #14797]
7529         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
7530         definitely overflow as x * y not x * y + z.
7531         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
7532         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
7533         * math/libm-test.inc (fma_test): Add more tests.
7534         (fma_test_towardzero): Likewise.
7535         (fma_test_downward): Likewise.
7536         (fma_test_upward): Likewise.
7537
7538 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
7539
7540         [BZ #157]
7541
7542         * include/stub-tag.h: Remove file.
7543         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
7544         '#include' of it.
7545         * manual/maint.texi (Porting): Don't reference it.
7546         * Makerules ($(objpfx)stubs): Likewise.
7547         * dirent/closedir.c: Don't include <stub-tag.h>.
7548         * dirent/dirfd.c: Likewise.
7549         * dirent/fdopendir.c: Likewise.
7550         * dirent/getdents.c: Likewise.
7551         * dirent/getdents64.c: Likewise.
7552         * dirent/opendir.c: Likewise.
7553         * dirent/readdir.c: Likewise.
7554         * dirent/readdir64.c: Likewise.
7555         * dirent/readdir64_r.c: Likewise.
7556         * dirent/readdir_r.c: Likewise.
7557         * dirent/rewinddir.c: Likewise.
7558         * dirent/seekdir.c: Likewise.
7559         * dirent/telldir.c: Likewise.
7560         * gmon/profil.c: Likewise.
7561         * grp/setgroups.c: Likewise.
7562         * inet/if_index.c: Likewise.
7563         * io/access.c: Likewise.
7564         * io/chdir.c: Likewise.
7565         * io/chmod.c: Likewise.
7566         * io/chown.c: Likewise.
7567         * io/close.c: Likewise.
7568         * io/dup.c: Likewise.
7569         * io/dup2.c: Likewise.
7570         * io/dup3.c: Likewise.
7571         * io/euidaccess.c: Likewise.
7572         * io/faccessat.c: Likewise.
7573         * io/fchdir.c: Likewise.
7574         * io/fchmod.c: Likewise.
7575         * io/fchmodat.c: Likewise.
7576         * io/fchown.c: Likewise.
7577         * io/fchownat.c: Likewise.
7578         * io/fcntl.c: Likewise.
7579         * io/flock.c: Likewise.
7580         * io/fstatfs.c: Likewise.
7581         * io/fstatfs64.c: Likewise.
7582         * io/fstatvfs.c: Likewise.
7583         * io/fstatvfs64.c: Likewise.
7584         * io/futimens.c: Likewise.
7585         * io/fxstat.c: Likewise.
7586         * io/fxstat64.c: Likewise.
7587         * io/fxstatat.c: Likewise.
7588         * io/fxstatat64.c: Likewise.
7589         * io/getcwd.c: Likewise.
7590         * io/isatty.c: Likewise.
7591         * io/lchmod.c: Likewise.
7592         * io/lchown.c: Likewise.
7593         * io/link.c: Likewise.
7594         * io/linkat.c: Likewise.
7595         * io/lseek.c: Likewise.
7596         * io/lseek64.c: Likewise.
7597         * io/lxstat64.c: Likewise.
7598         * io/mkdir.c: Likewise.
7599         * io/mkdirat.c: Likewise.
7600         * io/mkfifo.c: Likewise.
7601         * io/mkfifoat.c: Likewise.
7602         * io/open.c: Likewise.
7603         * io/open64.c: Likewise.
7604         * io/openat.c: Likewise.
7605         * io/openat64.c: Likewise.
7606         * io/pipe.c: Likewise.
7607         * io/pipe2.c: Likewise.
7608         * io/poll.c: Likewise.
7609         * io/posix_fadvise.c: Likewise.
7610         * io/posix_fadvise64.c: Likewise.
7611         * io/posix_fallocate.c: Likewise.
7612         * io/posix_fallocate64.c: Likewise.
7613         * io/read.c: Likewise.
7614         * io/readlink.c: Likewise.
7615         * io/readlinkat.c: Likewise.
7616         * io/rmdir.c: Likewise.
7617         * io/sendfile.c: Likewise.
7618         * io/sendfile64.c: Likewise.
7619         * io/statfs.c: Likewise.
7620         * io/statfs64.c: Likewise.
7621         * io/statvfs.c: Likewise.
7622         * io/statvfs64.c: Likewise.
7623         * io/symlink.c: Likewise.
7624         * io/symlinkat.c: Likewise.
7625         * io/ttyname.c: Likewise.
7626         * io/ttyname_r.c: Likewise.
7627         * io/umask.c: Likewise.
7628         * io/unlink.c: Likewise.
7629         * io/unlinkat.c: Likewise.
7630         * io/utime.c: Likewise.
7631         * io/utimensat.c: Likewise.
7632         * io/write.c: Likewise.
7633         * io/xmknod.c: Likewise.
7634         * io/xmknodat.c: Likewise.
7635         * io/xstat.c: Likewise.
7636         * io/xstat64.c: Likewise.
7637         * login/getpt.c: Likewise.
7638         * login/grantpt.c: Likewise.
7639         * login/unlockpt.c: Likewise.
7640         * math/e_acoshl.c: Likewise.
7641         * math/e_acosl.c: Likewise.
7642         * math/e_asinl.c: Likewise.
7643         * math/e_atan2l.c: Likewise.
7644         * math/e_atanhl.c: Likewise.
7645         * math/e_coshl.c: Likewise.
7646         * math/e_expl.c: Likewise.
7647         * math/e_fmodl.c: Likewise.
7648         * math/e_gammal_r.c: Likewise.
7649         * math/e_hypotl.c: Likewise.
7650         * math/e_j0l.c: Likewise.
7651         * math/e_j1l.c: Likewise.
7652         * math/e_jnl.c: Likewise.
7653         * math/e_lgammal_r.c: Likewise.
7654         * math/e_log10l.c: Likewise.
7655         * math/e_log2l.c: Likewise.
7656         * math/e_logl.c: Likewise.
7657         * math/e_powl.c: Likewise.
7658         * math/e_rem_pio2l.c: Likewise.
7659         * math/e_sinhl.c: Likewise.
7660         * math/e_sqrtl.c: Likewise.
7661         * math/fclrexcpt.c: Likewise.
7662         * math/fedisblxcpt.c: Likewise.
7663         * math/feenablxcpt.c: Likewise.
7664         * math/fegetenv.c: Likewise.
7665         * math/fegetexcept.c: Likewise.
7666         * math/fegetround.c: Likewise.
7667         * math/feholdexcpt.c: Likewise.
7668         * math/fesetenv.c: Likewise.
7669         * math/fesetround.c: Likewise.
7670         * math/feupdateenv.c: Likewise.
7671         * math/fgetexcptflg.c: Likewise.
7672         * math/fraiseexcpt.c: Likewise.
7673         * math/fsetexcptflg.c: Likewise.
7674         * math/ftestexcept.c: Likewise.
7675         * math/k_cosl.c: Likewise.
7676         * math/k_rem_pio2l.c: Likewise.
7677         * math/k_sinl.c: Likewise.
7678         * math/k_tanl.c: Likewise.
7679         * math/s_asinhl.c: Likewise.
7680         * math/s_atanl.c: Likewise.
7681         * math/s_cbrtl.c: Likewise.
7682         * math/s_erfl.c: Likewise.
7683         * math/s_expm1l.c: Likewise.
7684         * math/s_log1pl.c: Likewise.
7685         * math/s_tanhl.c: Likewise.
7686         * misc/acct.c: Likewise.
7687         * misc/brk.c: Likewise.
7688         * misc/chflags.c: Likewise.
7689         * misc/chroot.c: Likewise.
7690         * misc/fchflags.c: Likewise.
7691         * misc/fgetxattr.c: Likewise.
7692         * misc/flistxattr.c: Likewise.
7693         * misc/fremovexattr.c: Likewise.
7694         * misc/fsetxattr.c: Likewise.
7695         * misc/fsync.c: Likewise.
7696         * misc/ftruncate.c: Likewise.
7697         * misc/futimes.c: Likewise.
7698         * misc/futimesat.c: Likewise.
7699         * misc/getdomain.c: Likewise.
7700         * misc/getdtsz.c: Likewise.
7701         * misc/gethostid.c: Likewise.
7702         * misc/gethostname.c: Likewise.
7703         * misc/getloadavg.c: Likewise.
7704         * misc/getpagesize.c: Likewise.
7705         * misc/getsysstats.c: Likewise.
7706         * misc/getxattr.c: Likewise.
7707         * misc/gtty.c: Likewise.
7708         * misc/ioctl.c: Likewise.
7709         * misc/lgetxattr.c: Likewise.
7710         * misc/listxattr.c: Likewise.
7711         * misc/llistxattr.c: Likewise.
7712         * misc/lremovexattr.c: Likewise.
7713         * misc/lsetxattr.c: Likewise.
7714         * misc/lutimes.c: Likewise.
7715         * misc/madvise.c: Likewise.
7716         * misc/mincore.c: Likewise.
7717         * misc/mlock.c: Likewise.
7718         * misc/mlockall.c: Likewise.
7719         * misc/mmap.c: Likewise.
7720         * misc/mprotect.c: Likewise.
7721         * misc/msync.c: Likewise.
7722         * misc/munlock.c: Likewise.
7723         * misc/munlockall.c: Likewise.
7724         * misc/munmap.c: Likewise.
7725         * misc/preadv.c: Likewise.
7726         * misc/preadv64.c: Likewise.
7727         * misc/ptrace.c: Likewise.
7728         * misc/pwritev.c: Likewise.
7729         * misc/pwritev64.c: Likewise.
7730         * misc/readv.c: Likewise.
7731         * misc/reboot.c: Likewise.
7732         * misc/remap_file_pages.c: Likewise.
7733         * misc/removexattr.c: Likewise.
7734         * misc/revoke.c: Likewise.
7735         * misc/select.c: Likewise.
7736         * misc/setdomain.c: Likewise.
7737         * misc/setegid.c: Likewise.
7738         * misc/seteuid.c: Likewise.
7739         * misc/sethostid.c: Likewise.
7740         * misc/sethostname.c: Likewise.
7741         * misc/setregid.c: Likewise.
7742         * misc/setreuid.c: Likewise.
7743         * misc/setxattr.c: Likewise.
7744         * misc/sstk.c: Likewise.
7745         * misc/stty.c: Likewise.
7746         * misc/swapoff.c: Likewise.
7747         * misc/swapon.c: Likewise.
7748         * misc/sync.c: Likewise.
7749         * misc/syncfs.c: Likewise.
7750         * misc/syscall.c: Likewise.
7751         * misc/truncate.c: Likewise.
7752         * misc/ualarm.c: Likewise.
7753         * misc/usleep.c: Likewise.
7754         * misc/ustat.c: Likewise.
7755         * misc/utimes.c: Likewise.
7756         * misc/vhangup.c: Likewise.
7757         * misc/writev.c: Likewise.
7758         * posix/_exit.c: Likewise.
7759         * posix/alarm.c: Likewise.
7760         * posix/execve.c: Likewise.
7761         * posix/fexecve.c: Likewise.
7762         * posix/fork.c: Likewise.
7763         * posix/fpathconf.c: Likewise.
7764         * posix/getaddrinfo.c: Likewise.
7765         * posix/getegid.c: Likewise.
7766         * posix/geteuid.c: Likewise.
7767         * posix/getgid.c: Likewise.
7768         * posix/getgroups.c: Likewise.
7769         * posix/getlogin.c: Likewise.
7770         * posix/getlogin_r.c: Likewise.
7771         * posix/getpgid.c: Likewise.
7772         * posix/getpid.c: Likewise.
7773         * posix/getppid.c: Likewise.
7774         * posix/getresgid.c: Likewise.
7775         * posix/getresuid.c: Likewise.
7776         * posix/getsid.c: Likewise.
7777         * posix/getuid.c: Likewise.
7778         * posix/glob64.c: Likewise.
7779         * posix/nanosleep.c: Likewise.
7780         * posix/pathconf.c: Likewise.
7781         * posix/pause.c: Likewise.
7782         * posix/posix_madvise.c: Likewise.
7783         * posix/pread.c: Likewise.
7784         * posix/pread64.c: Likewise.
7785         * posix/pwrite.c: Likewise.
7786         * posix/pwrite64.c: Likewise.
7787         * posix/sched_getaffinity.c: Likewise.
7788         * posix/sched_getp.c: Likewise.
7789         * posix/sched_gets.c: Likewise.
7790         * posix/sched_primax.c: Likewise.
7791         * posix/sched_primin.c: Likewise.
7792         * posix/sched_rr_gi.c: Likewise.
7793         * posix/sched_setaffinity.c: Likewise.
7794         * posix/sched_setp.c: Likewise.
7795         * posix/sched_sets.c: Likewise.
7796         * posix/sched_yield.c: Likewise.
7797         * posix/setgid.c: Likewise.
7798         * posix/setlogin.c: Likewise.
7799         * posix/setpgid.c: Likewise.
7800         * posix/setresgid.c: Likewise.
7801         * posix/setresuid.c: Likewise.
7802         * posix/setsid.c: Likewise.
7803         * posix/setuid.c: Likewise.
7804         * posix/sleep.c: Likewise.
7805         * posix/spawni.c: Likewise.
7806         * posix/sysconf.c: Likewise.
7807         * posix/times.c: Likewise.
7808         * posix/wait.c: Likewise.
7809         * posix/wait3.c: Likewise.
7810         * posix/wait4.c: Likewise.
7811         * posix/waitpid.c: Likewise.
7812         * resolv/gai_sigqueue.c: Likewise.
7813         * resource/getpriority.c: Likewise.
7814         * resource/getrlimit.c: Likewise.
7815         * resource/getrusage.c: Likewise.
7816         * resource/nice.c: Likewise.
7817         * resource/setpriority.c: Likewise.
7818         * resource/setrlimit.c: Likewise.
7819         * resource/ulimit.c: Likewise.
7820         * rt/aio_cancel.c: Likewise.
7821         * rt/aio_fsync.c: Likewise.
7822         * rt/aio_read.c: Likewise.
7823         * rt/aio_sigqueue.c: Likewise.
7824         * rt/aio_suspend.c: Likewise.
7825         * rt/aio_write.c: Likewise.
7826         * rt/clock_getres.c: Likewise.
7827         * rt/clock_gettime.c: Likewise.
7828         * rt/clock_nanosleep.c: Likewise.
7829         * rt/clock_settime.c: Likewise.
7830         * rt/lio_listio.c: Likewise.
7831         * rt/mq_close.c: Likewise.
7832         * rt/mq_getattr.c: Likewise.
7833         * rt/mq_notify.c: Likewise.
7834         * rt/mq_open.c: Likewise.
7835         * rt/mq_receive.c: Likewise.
7836         * rt/mq_send.c: Likewise.
7837         * rt/mq_setattr.c: Likewise.
7838         * rt/mq_timedreceive.c: Likewise.
7839         * rt/mq_timedsend.c: Likewise.
7840         * rt/mq_unlink.c: Likewise.
7841         * rt/shm_open.c: Likewise.
7842         * rt/shm_unlink.c: Likewise.
7843         * rt/timer_create.c: Likewise.
7844         * rt/timer_delete.c: Likewise.
7845         * rt/timer_getoverr.c: Likewise.
7846         * rt/timer_gettime.c: Likewise.
7847         * rt/timer_settime.c: Likewise.
7848         * setjmp/__longjmp.c: Likewise.
7849         * setjmp/setjmp.c: Likewise.
7850         * signal/kill.c: Likewise.
7851         * signal/killpg.c: Likewise.
7852         * signal/raise.c: Likewise.
7853         * signal/sigaction.c: Likewise.
7854         * signal/sigaltstack.c: Likewise.
7855         * signal/sigblock.c: Likewise.
7856         * signal/sigignore.c: Likewise.
7857         * signal/sigintr.c: Likewise.
7858         * signal/signal.c: Likewise.
7859         * signal/sigpause.c: Likewise.
7860         * signal/sigpending.c: Likewise.
7861         * signal/sigqueue.c: Likewise.
7862         * signal/sigreturn.c: Likewise.
7863         * signal/sigset.c: Likewise.
7864         * signal/sigsetmask.c: Likewise.
7865         * signal/sigstack.c: Likewise.
7866         * signal/sigsuspend.c: Likewise.
7867         * signal/sigtimedwait.c: Likewise.
7868         * signal/sigvec.c: Likewise.
7869         * signal/sigwait.c: Likewise.
7870         * signal/sigwaitinfo.c: Likewise.
7871         * signal/sysv_signal.c: Likewise.
7872         * socket/accept.c: Likewise.
7873         * socket/accept4.c: Likewise.
7874         * socket/bind.c: Likewise.
7875         * socket/connect.c: Likewise.
7876         * socket/getpeername.c: Likewise.
7877         * socket/getsockname.c: Likewise.
7878         * socket/getsockopt.c: Likewise.
7879         * socket/isfdtype.c: Likewise.
7880         * socket/listen.c: Likewise.
7881         * socket/recv.c: Likewise.
7882         * socket/recvfrom.c: Likewise.
7883         * socket/recvmsg.c: Likewise.
7884         * socket/send.c: Likewise.
7885         * socket/sendmsg.c: Likewise.
7886         * socket/sendto.c: Likewise.
7887         * socket/setsockopt.c: Likewise.
7888         * socket/shutdown.c: Likewise.
7889         * socket/sockatmark.c: Likewise.
7890         * socket/socket.c: Likewise.
7891         * socket/socketpair.c: Likewise.
7892         * stdio-common/ctermid.c: Likewise.
7893         * stdio-common/cuserid.c: Likewise.
7894         * stdio-common/remove.c: Likewise.
7895         * stdio-common/rename.c: Likewise.
7896         * stdio-common/renameat.c: Likewise.
7897         * stdio-common/tempname.c: Likewise.
7898         * stdlib/getcontext.c: Likewise.
7899         * stdlib/makecontext.c: Likewise.
7900         * stdlib/setcontext.c: Likewise.
7901         * stdlib/swapcontext.c: Likewise.
7902         * stdlib/system.c: Likewise.
7903         * streams/fattach.c: Likewise.
7904         * streams/fdetach.c: Likewise.
7905         * streams/getmsg.c: Likewise.
7906         * streams/getpmsg.c: Likewise.
7907         * streams/putmsg.c: Likewise.
7908         * streams/putpmsg.c: Likewise.
7909         * sysdeps/unix/bsd/getpt.c: Likewise.
7910         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
7911         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
7912         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
7913         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
7914         Likewise.
7915         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
7916         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
7917         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
7918         * sysvipc/msgctl.c: Likewise.
7919         * sysvipc/msgget.c: Likewise.
7920         * sysvipc/msgrcv.c: Likewise.
7921         * sysvipc/msgsnd.c: Likewise.
7922         * sysvipc/semctl.c: Likewise.
7923         * sysvipc/semget.c: Likewise.
7924         * sysvipc/semop.c: Likewise.
7925         * sysvipc/semtimedop.c: Likewise.
7926         * sysvipc/shmat.c: Likewise.
7927         * sysvipc/shmctl.c: Likewise.
7928         * sysvipc/shmdt.c: Likewise.
7929         * sysvipc/shmget.c: Likewise.
7930         * termios/tcdrain.c: Likewise.
7931         * termios/tcflow.c: Likewise.
7932         * termios/tcflush.c: Likewise.
7933         * termios/tcgetattr.c: Likewise.
7934         * termios/tcgetpgrp.c: Likewise.
7935         * termios/tcsendbrk.c: Likewise.
7936         * termios/tcsetattr.c: Likewise.
7937         * termios/tcsetpgrp.c: Likewise.
7938         * time/adjtime.c: Likewise.
7939         * time/clock.c: Likewise.
7940         * time/getitimer.c: Likewise.
7941         * time/gettimeofday.c: Likewise.
7942         * time/setitimer.c: Likewise.
7943         * time/settimeofday.c: Likewise.
7944         * time/stime.c: Likewise.
7945         * time/time.c: Likewise.
7946
7947 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
7948
7949         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
7950         /usr/old/bin.
7951
7952         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
7953         instead of spaces.
7954         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
7955
7956 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
7957
7958         [BZ #14796]
7959         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
7960         FE_TONEAREST before applying Dekker multiplication and Knuth
7961         addition.  Clear inexact exceptions and check for exact zero
7962         results afterwards.
7963         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
7964         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
7965         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
7966         * math/libm-test.inc (fma_test): Add more tests.
7967         (fma_test_towardzero): Likewise.
7968         (fma_test_downward): Likewise.
7969         (fma_test_upward): Likewise.
7970         * sysdeps/generic/math_private.h (default_libc_fesetround): New
7971         function.
7972         (libc_fesetround): New macro.
7973         (libc_fesetroundf): Likewise.
7974         (libc_fesetroundl): Likewise.
7975         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
7976         function.
7977         (libc_fesetround_387): Likewise.
7978         (libc_fesetroundf): New macro.
7979         (libc_fesetround): Likewise.
7980         (libc_fesetroundl): Likewise.
7981         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
7982         function.
7983         (libc_fesetroundf): New macro.
7984         (libc_fesetround): Likewise.
7985         (libc_fesetroundl): Likewise.
7986         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
7987         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
7988         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
7989         libm_hidden_ver.
7990         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
7991         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
7992         libm_hidden_def.
7993         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
7994         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
7995         libm_hidden_ver.
7996         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
7997         libm_hidden_def.
7998
7999         [BZ #3439]
8000         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
8001         integer constant usable in #if and use that to give value to enum
8002         constant.
8003         (FE_DIVBYZERO): Likewise.
8004         (FE_UNDERFLOW): Likewise.
8005         (FE_OVERFLOW): Likewise.
8006         (FE_INVALID): Likewise.
8007         (FE_INVALID_SNAN): Likewise.
8008         (FE_INVALID_ISI): Likewise.
8009         (FE_INVALID_IDI): Likewise.
8010         (FE_INVALID_ZDZ): Likewise.
8011         (FE_INVALID_IMZ): Likewise.
8012         (FE_INVALID_COMPARE): Likewise.
8013         (FE_INVALID_SOFTWARE): Likewise.
8014         (FE_INVALID_SQRT): Likewise.
8015         (FE_INVALID_INTEGER_CONVERSION): Likewise.
8016         (FE_TONEAREST): Likewise.
8017         (FE_TOWARDZERO): Likewise.
8018         (FE_UPWARD): Likewise.
8019         (FE_DOWNWARD): Likewise.
8020         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
8021         (FE_DIVBYZERO): Likewise.
8022         (FE_OVERFLOW): Likewise.
8023         (FE_UNDERFLOW): Likewise.
8024         (FE_INEXACT): Likewise.
8025         (FE_TONEAREST): Likewise.
8026         (FE_DOWNWARD): Likewise.
8027         (FE_UPWARD): Likewise.
8028         (FE_TOWARDZERO): Likewise.
8029         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
8030         (FE_UNDERFLOW): Likewise.
8031         (FE_OVERFLOW): Likewise.
8032         (FE_DIVBYZERO): Likewise.
8033         (FE_INVALID): Likewise.
8034         (FE_TONEAREST): Likewise.
8035         (FE_TOWARDZERO): Likewise.
8036         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
8037         (FE_OVERFLOW): Likewise.
8038         (FE_UNDERFLOW): Likewise.
8039         (FE_DIVBYZERO): Likewise.
8040         (FE_INEXACT): Likewise.
8041         (FE_TONEAREST): Likewise.
8042         (FE_TOWARDZERO): Likewise.
8043         (FE_UPWARD): Likewise.
8044         (FE_DOWNWARD): Likewise.
8045         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
8046         (FE_DIVBYZERO): Likewise.
8047         (FE_OVERFLOW): Likewise.
8048         (FE_UNDERFLOW): Likewise.
8049         (FE_INEXACT): Likewise.
8050         (FE_TONEAREST): Likewise.
8051         (FE_DOWNWARD): Likewise.
8052         (FE_UPWARD): Likewise.
8053         (FE_TOWARDZERO): Likewise.
8054
8055 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
8056
8057         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
8058
8059 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
8060
8061         * scripts/cross-test-ssh.sh (command): Use newlines to separate
8062         commands.  Quote $PWD.
8063         (blacklist_exports): Don't use remove_newlines.  Replace "declare
8064         -x" by "export".
8065         (remove_newlines): Remove.
8066
8067 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
8068
8069         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
8070         * stdlib/stdlib.h (atof): Moved to ...
8071         * include/bits/stdlib-float.h: Here.  New file.
8072         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
8073         * stdlib/bits/stdlib-float.h: New file.
8074         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
8075         -mno-sse -mno-mmx.
8076         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
8077         <xmmintrin.h>.
8078
8079 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
8080
8081         * conform/conformtest.pl (@headers): Add fenv.h.
8082         * conform/data/fenv.h-data: New file.
8083         * include/fenv.h [_ISOMAC]: Disable all contents of file except
8084         include of <math/fenv.h>.
8085
8086         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
8087         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
8088         && !UNIX98].  Enables tests for XOPEN2K8.
8089         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
8090         POSIX2008]: Likewise.
8091
8092         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
8093         (struct rusage): Do not expect type or its members.
8094
8095         [BZ #3439]
8096         * math/math.h (FP_NAN): Define macro to integer constant usable in
8097         #if and use that to give value to enum constant.
8098         (FP_INFINITE): Likewise.
8099         (FP_ZERO): Likewise.
8100         (FP_SUBNORMAL): Likewise.
8101         (FP_NORMAL): Likewise.
8102
8103 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
8104
8105         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
8106         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
8107         arguments.
8108
8109 2012-11-02  Roland McGrath  <roland@hack.frob.com>
8110
8111         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
8112         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
8113         autoconf-time if not.
8114         * configure.in: Remove AC_PREREQ.
8115
8116 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8117
8118         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
8119         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
8120         of the internal implementation.
8121
8122 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
8123
8124         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
8125         except include of <misc/sys/syslog.h>.
8126
8127 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
8128
8129         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
8130         function returns with a NULL context exit with zero.
8131
8132 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8133
8134         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
8135
8136 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
8137
8138         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
8139         (run_program_cmd): This.
8140         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
8141         (tst_langinfo): New variable.  Use it.
8142
8143 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
8144
8145         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
8146         floating point opcodes.
8147
8148 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
8149
8150         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
8151         variable.
8152
8153         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
8154
8155         * sysdeps/mach/hurd/powerpc: Remove directory.
8156         * sysdeps/mach/powerpc: Likewise.
8157
8158 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
8159
8160         * scripts/check-local-headers.sh: Ignore c++ headers.
8161
8162 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
8163
8164         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
8165         __libc_cleanup_region_start argument.
8166
8167 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
8168
8169         [BZ #14784]
8170         [BZ #14785]
8171         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
8172         x * y using scaling, not as x * y + z.
8173         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
8174         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
8175         * math/libm-test.inc (fma_test): Add more tests.
8176         (fma_test_towardzero): Likewise.
8177         (fma_test_downward): Likewise.
8178         (fma_test_upward): Likewise.
8179
8180 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
8181
8182         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
8183
8184 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
8185
8186         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
8187         New variable.
8188
8189 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
8190
8191         * rt/tst-shm.c (worker): Correct checking for mmap failure.
8192
8193 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
8194
8195         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
8196         Fix sort order.
8197         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
8198         Likewise.
8199
8200 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8201
8202         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
8203         Fix the order of the list for glibc 2.17.
8204         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
8205         Likewise.
8206
8207 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
8208
8209         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8210
8211 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
8212
8213         [BZ #14610]
8214         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
8215         for low part of x being zero before using __atanl (y).
8216         * math/libm-test.inc (atan2_test): Add another test.
8217
8218         * manual/install.texi (Configuring and compiling): Document
8219         general use of test-wrapper and test-wrapper-env.
8220         * INSTALL: Regenerated.
8221
8222         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
8223         (__fma): Do not extract and scale down low bits on after-rounding
8224         systems when result rounded to normal precision would have normal
8225         exponent.
8226         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
8227         (__fmal): Do not extract and scale down low bits on after-rounding
8228         systems when result rounded to normal precision would have normal
8229         exponent.
8230         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
8231         (__fmal): Do not extract and scale down low bits on after-rounding
8232         systems when result rounded to normal precision would have normal
8233         exponent.
8234         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
8235         macro.
8236         (fma_test): Add more tests.
8237         (fma_test_towardzero): Likewise.
8238         (fma_test_downward): Likewise.
8239         (fma_test_upward): Likewise.
8240
8241 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
8242
8243         * sysdeps/i386/tininess.h: Renamed to ...
8244         * sysdeps/x86/tininess.h: This.
8245         * sysdeps/x86_64/tininess.h: Removed.
8246
8247 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
8248
8249         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
8250         input.  Use $(build-program-cmd).
8251         ($(objpfx)tst-array1-static.out): Likewise.
8252         ($(objpfx)tst-array2.out): Likewise.
8253         ($(objpfx)tst-array3.out): Likewise.
8254         ($(objpfx)tst-array4.out): Likewise.
8255         ($(objpfx)tst-array5.out): Likewise.
8256         ($(objpfx)tst-array5-static.out): Likewise.
8257
8258 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
8259
8260         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
8261         if defined.
8262
8263         * nss/nsswitch.h (nss_interface_function): Provide new
8264         macro for use with NSS functions.
8265         * grp/initgroups.c: Use new macro.
8266         * nss/getXXbyYY.c: Likewise.
8267         * nss/getXXbyYY_r.c: Likewise.
8268         * nss/getXXent.c: Likewise.
8269         * nss/getXXent_r.c: Likewise.
8270         * sysdeps/posix/getaddrinfo.c: Likewise.
8271
8272 2012-10-30  Andreas Jaeger  <aj@suse.de>
8273
8274         * po/ru.po: Update Russion translation from translation project.
8275
8276 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
8277
8278         [BZ #14152]
8279         [BZ #14783]
8280         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
8281         result and shift together with sticky bit instead of replicating
8282         round-to-nearest rounding.
8283         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
8284         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
8285         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
8286         missing underflow exceptions.
8287         (fma_test_towardzero): Add more tests.
8288         (fma_test_downward): Likewise.
8289         (fma_test_upward): Likewise.
8290
8291         [BZ #14047]
8292         * sysdeps/generic/tininess.h: New file.
8293         * sysdeps/i386/tininess.h: Likewise.
8294         * sysdeps/sh/tininess.h: Likewise.
8295         * sysdeps/x86_64/tininess.h: Likewise.
8296         * stdlib/tst-strtod-underflow.c: Likewise.
8297         * stdlib/tst-tininess.c: Likewise.
8298         * stdlib/strtod_l.c: Include <tininess.h>.
8299         (round_and_return): Do not set errno for exact underflow cases.
8300         Force an underflow exception when setting errno for underflow.
8301         Determine underflow based on rounding to normal precision if
8302         TININESS_AFTER_ROUNDING.
8303         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
8304         ERANGE for exact underflow cases.
8305         * stdlib/Makefile (tests): Add tst-tininess and
8306         tst-strtod-underflow.
8307         ($(objpfx)tst-tininess): Use $(link-libm).
8308         ($(objpfx)tst-strtod-underflow): Likewise.
8309
8310 2012-10-30  Andreas Jaeger  <aj@suse.de>
8311
8312         [BZ#14767]
8313         * elf/Makefile (tests): Remove conditional for have-initfini-array
8314         since this is now always required and the variable does not exist
8315         anymore.
8316         (tests-static): Likewise.
8317         (modules-names): Likewise.
8318
8319         * po/eo.po: Add Esperanto translation from translation project.
8320
8321         * elf/tst-array1.c (fini_array): Make writeable so that it can be
8322         merged with constructor/destructor.
8323         (init_array): Likewise.
8324         * elf/tst-array2dep.c (fini_array): Likewise.
8325         (init_array): Likewise.
8326
8327 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
8328
8329         * manual/message.texi: Delete @cartouche tags.
8330
8331 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
8332
8333         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
8334         EOPNOTSUPP.
8335         * sysdeps/mach/hurd/fsync.c: Likewise.
8336
8337         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
8338         [_POSIX_REALTIME_SIGNALS]: Change condition to
8339         [_POSIX_REALTIME_SIGNALS > 0].
8340
8341 2012-10-27  Andreas Jaeger  <aj@suse.de>
8342
8343         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
8344         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
8345         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
8346         [__WORDSIZE != 64]: Likewise.
8347
8348 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
8349
8350         *  iconvdata/tst-table.sh: Remove ${SHELL}.
8351         *  iconvdata/tst-tables.sh: Likewise.
8352
8353 2012-10-25  David S. Miller  <davem@davemloft.net>
8354
8355         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
8356         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
8357         of strtoull.
8358
8359         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
8360         ifunc-impl-list.c
8361         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
8362         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
8363         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
8364         file.
8365
8366 2012-10-25  Roland McGrath  <roland@hack.frob.com>
8367
8368         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
8369         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
8370         __getdirentries.
8371
8372 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
8373             Jim Blandy  <jimb@codesourcery.com>
8374
8375         * scripts/cross-test-ssh.sh: New file.
8376         * manual/install.texi (Configuring and compiling): Document use of
8377         cross-test-ssh.sh.
8378         * INSTALL: Regenerated.
8379
8380 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
8381
8382         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
8383         EOPNOTSUPP.
8384
8385 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
8386
8387         * Makeconfig (run-program-prefix): Fix comment.
8388
8389 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
8390             Jim Blandy  <jimb@codesourcery.com>
8391
8392         * Makeconfig (test-wrapper): New variable,
8393         (test-wrapper-env): Likewise.
8394         [$(cross-compiling) = yes && $(test-wrapper) != ""]
8395         (run-built-tests): Define to yes.
8396         (run-program-prefix): Use $(test-wrapper).
8397         (built-program-cmd): Likewise.
8398         * Rules (make-test-out): Use $(test-wrapper-env) and
8399         $(host-built-program-cmd).
8400         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
8401         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
8402         tst-pathopt.sh.
8403         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
8404         $(test-wrapper-env) to tst-rtld-load-self.sh.
8405         ($(objpfx)order2.out): Use $(test-wrapper).
8406         ($(objpfx)tst-initorder.out): Likewise.
8407         ($(objpfx)tst-initorder2.out): Likewise.
8408         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
8409         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
8410         (test_wrapper_env): New variable.  Use it to run ld.so.
8411         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
8412         Use it to run ld.so.
8413         (test_wrapper_env): Likewise.
8414         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
8415         $(test-wrapper) to run-iconv-test.sh.
8416         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
8417         (ICONV): Use $test_wrapper.
8418         * posix/Makefile ($(objpfx)globtest.out): Pass
8419         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
8420         globtest.sh, not $(run-program-prefix).
8421         * posix/globtest.sh (run_via_rtld_prefix): New variable.
8422         (test_wrapper): Likewise.
8423         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
8424         set together with run_via_rtld_prefix.
8425         (run_program_prefix): Define in terms of test_wrapper and
8426         run_via_rtld_prefix.
8427
8428 2012-10-24  Roland McGrath  <roland@hack.frob.com>
8429
8430         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
8431         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
8432         Targets removed.
8433
8434         [BZ #14743]
8435         * include/time.h: Remove librt_hidden_proto (clock_gettime).
8436         Declare __clock_getres, __clock_gettime, __clock_settime,
8437         __clock_nanosleep, and __clock_getcpuclockid.
8438         * rt/clock_gettime.c: Define __clock_gettime as an alias.
8439         Remove librt_hidden_def (clock_gettime).
8440         * sysdeps/unix/clock_gettime.c: Likewise.
8441         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
8442         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
8443         * rt/clock_getres.c: Define __clock_getres as an alias.
8444         * sysdeps/posix/clock_getres.c: Likewise.
8445         * rt/clock_settime.c: Define __clock_settime as an alias.
8446         * sysdeps/unix/clock_settime.c: Likewise.
8447         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
8448         * sysdeps/unix/clock_nanosleep.c: Likewise.
8449         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
8450         * rt/clock-compat.c: New file.
8451         * rt/Makefile (librt-routines): Add clock-compat and move
8452         $(clock-routines) to ...
8453         (routines): ... here, new variable.
8454         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
8455         Don't add get_clockfreq here.
8456         * rt/Versions (libc: GLIBC_2.17): New version set.
8457         Add clock_* symbols here.
8458         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
8459         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
8460         (GLIBC_2.17): Add clock_* symbols.
8461         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
8462         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
8463         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
8464         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
8465         Likewise.
8466         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
8467         Likewise.
8468         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
8469         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
8470         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
8471         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
8472         * NEWS: Mention the move.
8473
8474         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
8475         Use __open, __read, __close rather than their public counterparts.
8476         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
8477         (__get_clockfreq_via_cpuinfo): Likewise.
8478         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
8479         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
8480
8481         * config.h.in (HAVE_IFUNC): New #undef.
8482         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
8483         was successful.
8484         * configure: Regenerated.
8485
8486 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
8487
8488         * configure.in: Move READELF check to start of file.
8489         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
8490         libc_cv_asm_gnu_indirect_function in the process.
8491         * configure: Regenerated.
8492
8493 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
8494
8495         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
8496         send the output to /dev/null.
8497         (libc_cv_cc_with_libunwind): Likewise.
8498         (libc_cv_as_noexecstack): Likewise.
8499         * configure: Regenerate.
8500
8501 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
8502
8503         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
8504
8505         * posix/globtest.sh (TMPDIR): Do not set.
8506         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
8507         (testout): Likewise.
8508
8509 2012-10-24  Andreas Jaeger  <aj@suse.de>
8510
8511         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
8512         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
8513         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
8514         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
8515         posix_fadvise64, posix_fallocate64.
8516
8517         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
8518         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
8519         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
8520         Likewise.
8521         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
8522         Likewise.
8523         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
8524
8525         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
8526         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
8527         <bits/fcntl-linux.h>.
8528         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
8529
8530         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
8531         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
8532         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
8533         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
8534         [__WORDSIZE != 64]: Likewise.
8535
8536 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
8537
8538         * Makeconfig (run-built-tests): New variable.
8539         * Rules [$(cross-compiling) = yes]: Change condition to
8540         [$(run-built-tests) = no].
8541         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
8542         to [$(run-built-tests) = yes].
8543         * elf/Makefile [$(cross-compiling) = no]: Likewise
8544         * grp/Makefile [$(cross-compiling) = no]: Likewise.
8545         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
8546         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
8547         * intl/Makefile [$(cross-compiling) = no]: Likewise.
8548         * io/Makefile [$(cross-compiling) = no]: Likewise.
8549         * libio/Makefile [$(cross-compiling) = no]: Likewise.
8550         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
8551         * misc/Makefile [$(cross-compiling) = no]: Likewise.
8552         * posix/Makefile [$(cross-compiling) = no]: Likewise.
8553         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
8554         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
8555         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
8556         * string/Makefile [$(cross-compiling) = no]: Likewise.
8557
8558         * posix/Makefile ($(objpfx)globtest.out): Pass
8559         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
8560         $(rtld-installed-name).
8561         * posix/globtest.sh (elf_objpfx): Remove variable.
8562         (rtld_installed_name): Likewise.
8563         (library_path): Likewise.
8564         (run_program_prefix): New variable.  Use for running globtest
8565         binary.
8566
8567 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
8568             Joseph Myers  <joseph@codesourcery.com>
8569
8570         * Makeconfig (host-built-program-cmd): New variable.
8571         * elf/Makefile (tst-stackguard1-ARGS): Use
8572         $(host-built-program-cmd).
8573         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
8574         (tst-spawn-ARGS): Likewise.
8575         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
8576
8577 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
8578             Jim Blandy  <jimb@codesourcery.com>
8579
8580         * Makeconfig (run-via-rtld-prefix): New variable.
8581         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
8582         (built-program-cmd): Likewise.
8583
8584 2012-10-22  Andreas Jaeger  <aj@suse.de>
8585
8586         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
8587         __O_RSYNC if it exists, otherwise to O_SYNC.
8588
8589 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
8590             Joseph Myers  <joseph@codesourcery.com>
8591
8592         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
8593         /dev/null.
8594         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
8595         from /dev/null
8596         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
8597         /dev/null.
8598
8599 2012-10-22  Andreas Jaeger  <aj@suse.de>
8600
8601         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
8602         Define always.
8603         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
8604
8605         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8606         bits/fcntl-linux.h.
8607
8608         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
8609         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
8610
8611         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
8612         to __O_LARGEFILE.
8613         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
8614         to __O_LARGEFILE.
8615
8616 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
8617             Joseph Myers  <joseph@codesourcery.com>
8618
8619         * config.make.in (NM): New variable.
8620
8621 2012-10-21  Andreas Jaeger  <aj@suse.de>
8622
8623         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
8624         definitions and declarations that are provided by
8625         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
8626
8627 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
8628
8629         [BZ #14683]
8630         * elf/Makefile (tests-static): Add tst-leaks1-static.
8631         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
8632         ($(objpfx)tst-leaks1-static): New rule.
8633         ($(objpfx)tst-leaks1-static-mem): Likewise.
8634         (tst-leaks1-static-ENV): New macro.
8635         * elf/dl-open.c (dl_open_worker): Check the main application
8636         only if SHARED is defined.
8637         * elf/tst-leaks1-static.c: New file.
8638
8639 2012-10-20  Andreas Jaeger  <aj@suse.de>
8640
8641         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
8642         generic values for Linux.
8643         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
8644         and declarations that are provided by <bits/fcntl-linux.h> and
8645         include <bits/fcntl-linux.h>.
8646         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8647         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
8648
8649 2012-10-20  Roland McGrath  <roland@hack.frob.com>
8650
8651         * io/fcntl.h: Move include of <bits/types.h> to the top and
8652         include it unconditionally.
8653
8654 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
8655
8656         * wcsmbs/Makefile (tests-ifunc): New variable.
8657         (tests): Add $(tests-ifunc).
8658         * wcsmbs/test-wcschr-ifunc.c: New file.
8659         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
8660         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
8661         * wcsmbs/test-wcslen-ifunc.c: Likewise.
8662         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
8663         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
8664
8665         * string/Makefile (tests-ifunc): New variable.
8666         (tests): Add $(tests-ifunc).
8667         * string/test-memccpy.c (TEST_NAME): New macro.
8668         * string/test-memchr.c (TEST_NAME): Likewise.
8669         * string/test-memcmp.c (TEST_NAME): Likewise.
8670         * string/test-memcpy.c (TEST_NAME): Likewise.
8671         * string/test-memmem.c (TEST_NAME): Likewise.
8672         * string/test-memmove.c (TEST_NAME): Likewise.
8673         * string/test-memset.c (TEST_NAME): Likewise.
8674         * string/test-rawmemchr.c (TEST_NAME): Likewise.
8675         * string/test-stpcpy.c (TEST_NAME): Likewise.
8676         * string/test-stpncpy.c (TEST_NAME): Likewise.
8677         * string/test-strcasecmp.c (TEST_NAME): Likewise.
8678         * string/test-strcasestr.c (TEST_NAME): Likewise.
8679         * string/test-strcat.c (TEST_NAME): Likewise.
8680         * string/test-strchr.c (TEST_NAME): Likewise.
8681         * string/test-strcmp.c(TEST_NAME): Likewise.
8682         * string/test-strcpy.c (TEST_NAME): Likewise.
8683         * string/test-strcspn.c (TEST_NAME): Likewise.
8684         * string/test-strlen.c (TEST_NAME): Likewise.
8685         * string/test-strncasecmp.c (TEST_NAME): Likewise.
8686         * string/test-strncmp.c (TEST_NAME): Likewise.
8687         * string/test-strncpy.c (TEST_NAME): Likewise.
8688         * string/test-strnlen.c (TEST_NAME): Likewise.
8689         * string/test-strpbrk.c (TEST_NAME): Likewise.
8690         * string/test-strrchr.c (TEST_NAME): Likewise.
8691         * string/test-strspn.c (TEST_NAME): Likewise.
8692         * string/test-strstr.c (TEST_NAME): Likewise.
8693         * string/test-bcopy-ifunc.c: New file.
8694         * string/test-bzero-ifunc.c: Likewise.
8695         * string/test-memccpy-ifunc.c: Likewise.
8696         * string/test-memchr-ifunc.c: Likewise.
8697         * string/test-memcmp-ifunc.c: Likewise.
8698         * string/test-memcpy-ifunc.c: Likewise.
8699         * string/test-memmem-ifunc.c: Likewise.
8700         * string/test-memmove-ifunc.c: Likewise.
8701         * string/test-mempcpy-ifunc.c: Likewise.
8702         * string/test-memset-ifunc.c: Likewise.
8703         * string/test-rawmemchr-ifunc.c: Likewise.
8704         * string/test-stpcpy-ifunc.c: Likewise.
8705         * string/test-stpncpy-ifunc.c: Likewise.
8706         * string/test-strcasecmp-ifunc.c: Likewise.
8707         * string/test-strcasestr-ifunc.c: Likewise.
8708         * string/test-strcat-ifunc.c: Likewise.
8709         * string/test-strchr-ifunc.c: Likewise.
8710         * string/test-strchrnul-ifunc.c: Likewise.
8711         * string/test-strcmp-ifunc.c: Likewise.
8712         * string/test-strcpy-ifunc.c: Likewise.
8713         * string/test-strcspn-ifunc.c: Likewise.
8714         * string/test-strlen-ifunc.c: Likewise.
8715         * string/test-strncasecmp-ifunc.c: Likewise.
8716         * string/test-strncat-ifunc.c: Likewise.
8717         * string/test-strncmp-ifunc.c: Likewise.
8718         * string/test-strncpy-ifunc.c: Likewise.
8719         * string/test-strnlen-ifunc.c: Likewise.
8720         * string/test-strpbrk-ifunc.c: Likewise.
8721         * string/test-strrchr-ifunc.c: Likewise.
8722         * string/test-strspn-ifunc.c: Likewise.
8723         * string/test-strstr-ifunc.c: Likewise.
8724
8725         * debug/Makefile (tests-ifunc): New variable.
8726         (tests): Add $(tests-ifunc).
8727         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
8728         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
8729         * debug/test-stpcpy_chk-ifunc.c: New file.
8730         * debug/test-strcpy_chk-ifunc.c: Likewise.
8731
8732 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
8733
8734         [BZ #13601]
8735         * elf/dl-load.c (open_verify): Retry read if the entire ELF
8736         header is not read in.
8737
8738 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
8739
8740         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
8741         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
8742         directly.  Pass built executable to script as
8743         $(built-program-cmd).
8744         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
8745         $testprogram without using LD_LIBRARY_PATH and $ldso.
8746
8747         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
8748         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
8749         $(rtld-installed-name).
8750         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
8751         (rtld_installed_name): Likewise.
8752         (library_path): Likewise.
8753         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
8754         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
8755         $(run-program-prefix) to tst-tables.sh.
8756         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
8757         it to run tst-table-from and tst-table-to.
8758         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
8759         Pass it to tst-table.sh.
8760         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
8761         $(run-program-prefix) to tst-gettext.sh.
8762         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
8763         tst-translit.sh.
8764         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
8765         tst-gettext2.sh.
8766         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
8767         to run tst-gettext.
8768         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
8769         to run tst-gettext2.
8770         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
8771         to run tst-translit.
8772         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
8773         $(run-program-prefix) to tst-mtrace.sh.
8774         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
8775         to run tst-mtrace.
8776         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
8777         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
8778         $(rtld-installed-name).
8779         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
8780         (rtld_installed_name): Likewise.
8781         (run_program_prefix): New variable.  Use it to run wordexp-test.
8782
8783         * Makeconfig (ARCH): Remove all definitions.
8784         (machine): Likewise.
8785         [ARCH]: Remove conditional code.
8786         [!objdir]: Give error.
8787         [!objdir] (objpfx): Remove.
8788         [!objdir] (common-objpfx): Likewise.
8789         [!objdir] (common-objdir): Likewise.
8790         * configure.in (config_makefile): Remove.  Hardcode Makefile in
8791         AC_CONFIG_FILES call.
8792         * configure: Regenerated.
8793
8794         [BZ #13888]
8795         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
8796         or TMPDIR.
8797         (testout): Likewise.
8798
8799         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
8800         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
8801         $(rtld-installed-name).
8802         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
8803         (rtld_installed_name): Likwise.
8804         (runit): Remove function.
8805         (run_getconf): New variable,  Use it for running getconf binary.
8806
8807 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
8808
8809         [BZ #14716]
8810         * string/test-memmem.c (check_result): New function.
8811         (do_one_test): Use it.
8812         (check1): New function.
8813         (test_main): Use it.
8814
8815 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
8816
8817         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
8818
8819 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
8820
8821         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
8822         (_G_LSEEK64): Likewise.
8823         (_G_MMAP64): Likewise.
8824         (_G_FSTAT64): Likewise.
8825         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
8826         (_G_LSEEK64): Likewise.
8827         (_G_MMAP64): Likewise.
8828         (_G_FSTAT64): Likewise.
8829         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
8830         unconditional.  Call __mmap64 directly.
8831         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
8832         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
8833         __lseek64 directly.
8834         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
8835         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
8836         __mmap64 directly.
8837         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
8838         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
8839         __lseek64 directly.
8840         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
8841         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
8842         __lseek64 directly.
8843         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
8844         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
8845         __lseek64 directly.
8846         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
8847         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
8848         __fxstat64 directly.
8849         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
8850         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
8851         unconditional.
8852         (freopen64) [!_G_OPEN64]: Remove conditional code.
8853         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
8854         unconditional.
8855         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
8856         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
8857         unconditional.
8858         (ftello64) [!_G_LSEEK64]: Remove conditional code.
8859         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
8860         unconditional.
8861         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
8862         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
8863         unconditional.
8864         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
8865         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
8866         unconditional.
8867         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
8868         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
8869         unconditional.
8870         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
8871         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
8872         unconditional.
8873         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
8874
8875 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
8876
8877         [BZ #12140]
8878         * manual/memory.texi (Malloc Tunable Parameters): Add note
8879         about free list pointers overwriting some perturb bytes.
8880         Wording suggested by Roland McGrath.
8881
8882 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
8883
8884         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
8885         (lgamma_test): Likewise.
8886         (tgamma_test): Likewise.
8887
8888 2012-10-16  Florian Weimer  <fweimer@redhat.com>
8889
8890         [BZ #14700]
8891         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
8892         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
8893
8894 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
8895
8896         * NEWS: Mention BZ #14716.
8897         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
8898         when removing AVAILABLE1_USES_J macro.
8899
8900 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
8901
8902         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
8903         (__bswap_64): __uint64_t for unsigned 64-bit int.
8904
8905 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
8906
8907         * include/string.h (memmem): Declare libc hidden alias.
8908         * string/memmem.c (memmem): Define libc hidden alias.
8909         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
8910         __read, __close instead of open, read, close.
8911
8912 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
8913
8914         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
8915         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
8916         global and hidden.
8917         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
8918         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
8919         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
8920         Likewise.
8921         (__rawmemchr_sse2): Likewise.
8922         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
8923         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
8924         (__strchr_sse2): Likewise.
8925         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
8926         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
8927         (__strcasecmp_sse2): Likewise.
8928         (__strncasecmp_sse2): Likewise.
8929         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
8930         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
8931         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
8932         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
8933         (__strrchr_sse2): Likewise.
8934         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
8935         ifunc-impl-list.c.
8936         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
8937         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
8938         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
8939         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
8940         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
8941         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
8942         * sysdeps/x86_64/multiarch/memset.S: Likewise.
8943         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
8944         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
8945         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
8946         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
8947         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
8948         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
8949         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
8950         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
8951         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
8952         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
8953         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
8954         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
8955         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
8956         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
8957         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
8958         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
8959         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
8960         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
8961         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
8962         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
8963         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
8964         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
8965         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
8966
8967         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
8968         global and hidden.
8969         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
8970         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
8971         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
8972         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
8973         Likewise.
8974         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
8975         Likewise.
8976         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
8977         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
8978         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
8979         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
8980         ifunc-impl-list.c.
8981         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
8982         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
8983         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
8984         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
8985         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
8986         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
8987         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
8988         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
8989         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
8990         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
8991         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
8992         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
8993         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
8994         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
8995         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
8996         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
8997         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
8998         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
8999         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
9000         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
9001         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
9002         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
9003         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
9004         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
9005         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
9006         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
9007         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
9008         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
9009         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
9010         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
9011         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
9012         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
9013         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
9014         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
9015         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
9016         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
9017         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
9018         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
9019         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
9020         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
9021         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
9022
9023         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
9024         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
9025         * include/ifunc-impl-list.h: New file.
9026         * misc/ifunc-impl-list.c: Likewise.
9027         * misc/Makefile (routines): Add ifunc-impl-list.
9028         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
9029         * string/test-string.h: Include <ifunc-impl-list.h>.
9030         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
9031         impl_array): New variables.
9032         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
9033         are defined.
9034         (test_init): Call __libc_ifunc_impl_list to initialize
9035         func_list if TEST_IFUNC and TEST_NAME are defined.
9036
9037         * string/Makefile (strop-tests): Add bcopy and bzero.
9038         * string/test-bcopy.c: New file.
9039         * string/test-bzero.c: Likewise.
9040         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
9041         defined.
9042         * string/test-memset.c: Support bzero test if TEST_BZERO is
9043         defined.
9044         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
9045         __libc_memmove.
9046         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
9047         __libc_memset.
9048         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
9049         of memset.
9050
9051 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
9052
9053         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
9054         * configure: Regenerated.
9055
9056         * Makeconfig (+link-static-before-libc): Don't include
9057         $(link-static-libc).
9058
9059         * libio/libio.h (_IO_pos_t): Remove.
9060
9061 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
9062
9063         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
9064         McGrath.
9065
9066 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
9067
9068         * crypt/crypt-entry.c: Include fips-private.h.
9069         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
9070         * crypt/md5c-test.c (main): Tolerate disabled MD5.
9071         * sysdeps/unix/sysv/linux/fips-private.h: New file.
9072         * sysdeps/generic/fips-private.h: New file, dummy fallback.
9073
9074 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
9075
9076         * crypt/crypt-private.h: Include stdbool.h.
9077         (_ufc_setup_salt_r): Return bool.
9078         * crypt/crypt-entry.c: Include errno.h.
9079         (__crypt_r): Return NULL with EINVAL for bad salt.
9080         * crypt/crypt_util.c (bad_for_salt): New.
9081         (_ufc_setup_salt_r): Check that salt is long enough and within
9082         the specified alphabet.
9083         * crypt/badsalttest.c: New file.
9084         * crypt/Makefile (tests): Add it.
9085         ($(objpfx)badsalttest): New.
9086
9087 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
9088
9089         * NEWS: Add entry for BZ #14602.
9090
9091 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
9092
9093         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
9094         type-generic.
9095         * math/libm-test.inc: Update comment listing what functions and
9096         macros are tested.
9097         (isgreater_test): New function.
9098         (isgreaterequal_test): Likewise.
9099         (isless_test): Likewise.
9100         (islessequal_test): Likewise.
9101         (islessgreater_test): Likewise.
9102         (isunordered_test): Likewise.
9103         (main): Call the new functions.
9104
9105 2012-10-09  Roland McGrath  <roland@hack.frob.com>
9106
9107         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
9108         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
9109         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
9110         * sysdeps/i386/configure: Regenerated.
9111         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
9112         * sysdeps/mach/configure: Regenerated.
9113         * sysdeps/mach/hurd/configure: Regenerated.
9114         * sysdeps/powerpc/configure: Regenerated.
9115         * sysdeps/powerpc/powerpc32/configure: Regenerated.
9116         * sysdeps/powerpc/powerpc64/configure: Regenerated.
9117         * sysdeps/s390/s390-32/configure: Regenerated.
9118         * sysdeps/s390/s390-64/configure: Regenerated.
9119         * sysdeps/sh/configure: Regenerated.
9120         * sysdeps/sparc/configure: Regenerated.
9121         * sysdeps/unix/sysv/linux/configure: Regenerated.
9122         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
9123         * sysdeps/x86_64/configure: Regenerated.
9124
9125         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
9126         defined.  Don't check if MAP is NULL.
9127
9128 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
9129
9130         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
9131         (_G_stat64): Likewise.
9132         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
9133         (_G_stat64): Likewise.
9134         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
9135         instead of struct _G_stat64.
9136         * libio/fileops.c (mmap_remap_check): Likewise.
9137         (decide_maybe_mmap): Likewise.
9138         (_IO_new_file_seekoff): Likewise.
9139         (_IO_file_stat): Likewise.
9140         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
9141         _G_off64_t.
9142         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
9143         instead of struct _G_stat64.
9144         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
9145
9146 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
9147
9148         [BZ #14602]
9149         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
9150         Replace with ...
9151         (CHECK_EOL): New macro.
9152         (two_way_short_needle): Check beginning of haystack for EOL.  Use
9153         CHECK_EOL.
9154         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
9155         Replace with CHECK_EOL.
9156         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
9157         Replace with CHECK_EOL.
9158
9159 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
9160
9161         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
9162         type-generic.
9163         * math/libm-test.inc: Update comment listing what functions and
9164         macros are tested.
9165         (finite_test): New function.
9166         (isinf_test): Likewise.
9167         (isnan_test): Likewise.
9168         (fpclassify_test): Test subnormal input.
9169         (isfinite_test): Likewise.
9170         (isnormal_test): Likewise.
9171         (main): Call the new functions.
9172
9173 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
9174
9175         [BZ #14660]
9176         * Makerules (%.dynsym): Force C locale when running
9177         $(OBJDUMP) --dynamic-syms.
9178
9179 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
9180
9181         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
9182         <stdint.h>.
9183
9184 2012-10-06  David S. Miller  <davem@davemloft.net>
9185
9186         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
9187         upper 32-bits of the length value in %o2 since we use branch-on-register
9188         tests which consider the entire 64-bit register.
9189
9190 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
9191
9192         * string/test-strstr.c (check2): Add a test for page boundary.
9193
9194 2012-10-05  David S. Miller  <davem@davemloft.net>
9195
9196         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
9197         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
9198         file.
9199         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
9200         sysdep_routines.
9201         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
9202         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
9203         and bzero when HWCAP_SPARC_CRYPTO is present.
9204
9205 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
9206
9207         [BZ #14602]
9208         * string/test-strstr.c (check2): New function.
9209         (test_main): Call check2.
9210
9211         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
9212         and bug-strchr1.
9213         * string/bug-strcasestr1.c (do_test): Moved to ...
9214         * string/test-strcasestr.c (check1): Here.  New function.
9215         (do_one_test): Break out result checking code into ...
9216         (check_result): This.  New function.
9217         (do_one_test): Call check_result.
9218         (test_main): Call check1.
9219         * string/bug-strchr1.c (do_test): Moved to ...
9220         * string/test-strchr.c (check1): Here.  New function.
9221         (do_one_test): Break out result checking code into ...
9222         (check_result): This.  New function.
9223         (do_one_test): Call check_result.
9224         (test_main): Call check1.
9225         * string/bug-strstr1.c (main): Moved to ...
9226         * string/test-strstr.c (check1): Here.  New function.
9227         (do_one_test): Break out result checking code into ...
9228         (check_result): This.  New function.
9229         (do_one_test): Call check_result.
9230         (test_main): Call check1.
9231         * string/bug-strcasestr1.c: Removed.
9232         * string/bug-strchr1.c: Likewise.
9233         * string/bug-strstr1.c: Likewise.
9234
9235         * elf/Makefile (dl-routines): Add hwcaps.
9236         * elf/dl-support.c (_dl_important_hwcaps): Removed.
9237         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
9238         (_dl_important_hwcaps): Moved to ...
9239         * elf/dl-hwcaps.c: Here.  New file.
9240         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
9241
9242         [BZ #14557]
9243         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
9244         if IS_IN_rtld isn't defined.
9245
9246         * elf/dl-support.c (_dl_sysinfo_map): New.
9247         Include "get-dynamic-info.h" and "setup-vdso.h".
9248         (_dl_non_dynamic_init): Call setup_vdso.
9249         * elf/dynamic-link.h: Don't include <assert.h>.
9250         (elf_get_dynamic_info): Moved to ...
9251         * elf/get-dynamic-info.h: Here.  New file.
9252         * elf/dynamic-link.h: Include "get-dynamic-info.h".
9253         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
9254         * elf/setup-vdso.h: Here.  New file.
9255         * elf/rtld.c: Include "setup-vdso.h".
9256         (dl_main): Call setup_vdso.
9257
9258 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
9259
9260         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
9261         creal in comment listing functions tested.  List finite, isinf,
9262         isnan, isless, islessequal, isgreater, isgreaterequal,
9263         islessgreater, isunordered, lgamma_r and pow10 as functions and
9264         macros not tested.  Mention which functions not tested are aliases
9265         for other functions.  Fix typo.  Note that signs of NaNs are not
9266         tested.
9267
9268         * scripts/config.guess: Update from config.git.
9269         * scripts/config.sub: Likewise.
9270
9271 2012-10-04  Roland McGrath  <roland@hack.frob.com>
9272
9273         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
9274         * misc/madvise.c (madvise): Renamed to __madvise.
9275         Make madvise a weak alias.
9276         * include/sys/mman.h: Declare __madvise.
9277         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
9278         * sysdeps/unix/syscalls.list
9279         (madvise): Make __madvise the strong name, and madvise a weak alias.
9280         * sysdeps/unix/sysv/linux/syscalls.list
9281         (madvise, mmap): Remove redundant entries.
9282         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
9283         * malloc/malloc.c (mtrim): Likewise.
9284         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
9285
9286 2012-10-03  Roland McGrath  <roland@hack.frob.com>
9287
9288         * sysdeps/mach/hurd/dl-cache.c: File removed.
9289         * config.h.in (USE_LDCONFIG): New #undef.
9290         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
9291         * configure: Regenerated.
9292         * elf/Makefile (dl-routines): Add dl-cache only under
9293         [$(use-ldconfig) = yes].
9294         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
9295         cache on [USE_LDCONFIG].
9296         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
9297         [USE_LDCONFIG].
9298         * elf/rtld.c (dl_main): Likewise.
9299
9300 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
9301
9302         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
9303         _SC_LEVEL4_CACHE_LINESIZE.
9304
9305 2012-10-03  Roland McGrath  <roland@hack.frob.com>
9306
9307         * sysdeps/unix/bsd/confstr.h: File removed.
9308
9309 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
9310
9311         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
9312         sys/sdt-config.h.
9313
9314 2012-10-02  Roland McGrath  <roland@hack.frob.com>
9315
9316         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
9317         Make 'mapoff' field ElfW(Off) rather than off_t.
9318
9319 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
9320
9321         * nscd/Makefile: Remove nscd-cflags and all its users.
9322         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
9323         (CFLAGS-nonlib): Add compiler flags for nscd modules.
9324
9325         [BZ #10631]
9326         * malloc.c (malloc_printerr): Clarify error message.
9327
9328 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
9329
9330         [BZ #14648]
9331         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
9332         Set bit_FMA_Usable if FMA is supported.
9333         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
9334         macro.
9335         (bit_FMA4_Usable): Updated.
9336         (index_FMA_Usable): New macro.
9337         (CPUID_FMA): Likewise
9338         (HAS_FMA): Defined with bit_FMA_Usable.
9339
9340 2012-10-01  Roland McGrath  <roland@hack.frob.com>
9341
9342         * bits/types.h (__swblk_t): Type removed.
9343         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
9344         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
9345         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
9346         (__SWBLK_T_TYPE): Likewise.
9347         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
9348         (__SWBLK_T_TYPE): Likewise.
9349         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
9350         (__SWBLK_T_TYPE): Likewise.
9351         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
9352         (__SWBLK_T_TYPE): Likewise.
9353
9354 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
9355             Honza Horak <hhorak@redhat.com>
9356
9357         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
9358         (xdr_mapname): Use YPMAXMAP as maxsize.
9359         (xdr_peername): Use YPMAXPEER as maxsize.
9360         (xdr_keydat): Use YPAXRECORD as maxsize.
9361         (xdr_valdat): Use YPMAXRECORD as maxsize.
9362
9363 2012-10-01  Roland McGrath  <roland@hack.frob.com>
9364
9365         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
9366
9367         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
9368         * csu/init-first.c: ... here.
9369         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
9370         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
9371         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
9372         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
9373         * sysdeps/i386/init-first.c: File removed.
9374         * sysdeps/sh/init-first.c: File removed.
9375
9376 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
9377
9378         [BZ #14645]
9379         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
9380         if x * y might underflow to zero and z is zero.
9381         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
9382         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
9383         * math/libm-test.inc (min_subnorm_value): New variable.
9384         (fma_test): Add more tests.
9385         (fma_test_towardzero): Likewise.
9386         (fma_test_downward): Likewise
9387         (fma_test_upward): Likewise.
9388         (initialize): Set min_subnorm_value.
9389
9390 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
9391
9392         [BZ #14638]
9393         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
9394         0 + 0.
9395         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
9396         mode for addition resulting in exact zero.
9397         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
9398         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
9399         exact 0 + 0.
9400         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
9401         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
9402         * math/libm-test.inc (fma_test): Add more tests.
9403         (fma_test_towardzero): New function.
9404         (fma_test_downward): Likewise.
9405         (fma_test_upward): Likewise.
9406         (main): Call the new functions.
9407
9408 2012-09-28  David S. Miller  <davem@davemloft.net>
9409
9410         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
9411
9412 2012-09-28  Roland McGrath  <roland@hack.frob.com>
9413
9414         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
9415         instead of SIGALRM.
9416
9417         * sysdeps/gnu/_G_config.h: Moved to ...
9418         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
9419         * sysdeps/mach/hurd/_G_config.h: Moved to ...
9420         * sysdeps/generic/_G_config.h: ... here.
9421
9422         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
9423
9424         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
9425
9426         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
9427         Conditionalize target on [libnss_test1.so-version].
9428
9429         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
9430
9431         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
9432         (elfobjdir): Move out of conditionals.
9433
9434         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
9435         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
9436         (__nss_lookup_function): Conditionalize label remove_from_tree on
9437         [!DO_STATIC_NSS || SHARED], matching its only use.
9438
9439 2012-09-28  David S. Miller  <davem@davemloft.net>
9440
9441         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
9442         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
9443         file.
9444         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
9445         sysdep_routines.
9446         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
9447         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
9448         when HWCAP_SPARC_CRYPTO is present.
9449
9450 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
9451
9452         * io/tst-mknodat.c: Create a FIFO instead of a socket.
9453
9454 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
9455
9456         [BZ #6530]
9457         * stdio-common/vfprintf.c (process_string_arg): Revert
9458         2000-07-22 change.
9459
9460 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
9461
9462         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
9463         for testcase.
9464         * stdio-common/tst-sprintf.c: Include <locale.h>
9465         (main): Test sprintf's handling of incomplete multibyte
9466         characters.
9467
9468 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
9469
9470         * elf/dl-runtime.c (VERSYMIDX): Removed.
9471         * elf/dl-version.c (VERSYMIDX): Likewise.
9472         * elf/do-rel.h (VERSYMIDX): Likewise.
9473         (VALIDX): Likewise.
9474         * elf/dynamic-link.h (VERSYMIDX): Likewise.
9475         * elf/rtld.c (VALIDX): Likewise.
9476         (ADDRIDX): Likewise.
9477         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
9478         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
9479         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
9480         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
9481         (VALIDX): Likewise.
9482         (ADDRIDX): Likewise.
9483
9484 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
9485
9486         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
9487
9488 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
9489
9490         [BZ #11438]
9491         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
9492         to global scope.
9493         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
9494         addresses are in the same scope as 192.0.2/24.
9495         * posix/gai.conf: Document new scope table defaults.
9496
9497 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
9498
9499         [BZ #5298]
9500         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
9501         for ftell.  Compute offsets from write pointers instead.
9502         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
9503
9504 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
9505
9506         [BZ #14543]
9507         * libio/Makefile (tests): New test case tst-fseek.
9508         * libio/tst-fseek.c: New test case to verify that fseek/ftell
9509         combination works in wide mode.
9510         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
9511         state when the external buffer state changes.
9512
9513 2012-09-27  David S. Miller  <davem@davemloft.net>
9514
9515         [BZ #14376]
9516         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
9517         pass reloc->r_addend in as the 'high' argument to
9518         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
9519
9520         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9521
9522 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
9523
9524         * rt/tst-aio2.c: Include <pthread.h>.
9525         * rt/tst-aio3.c: Likewise.
9526
9527 2012-09-27  Steve Ellcey  <sellcey@mips.com>
9528
9529         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
9530
9531 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
9532
9533         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
9534         contents on [SHARED].
9535
9536 2012-09-26  Marek Polacek  <polacek@redhat.com>
9537
9538         [BZ #14530]
9539         [BZ #13741]
9540         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
9541         for C++ and GCC <4.3 as well as for non GCC compilers.
9542
9543 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
9544
9545         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9546
9547 2012-09-25  Roland McGrath  <roland@hack.frob.com>
9548
9549         * Makefile.in (all, install): Declare with .PHONY.
9550         Reported by Michael Hope <michael.hope@linaro.org>.
9551
9552 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
9553
9554         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
9555         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
9556         system header.
9557         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
9558         Likewise.
9559         (sydep_routines): Add the new and the internal functions.
9560         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
9561         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
9562         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
9563         (GLIBC_2.17): Add the new function.
9564         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
9565         (GLIBC_2.17): Likewise.
9566         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
9567         (GLIBC_2.17): Likewise.
9568         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
9569         (GLIBC_2.17): Likewise.
9570         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
9571
9572 2012-09-25  Alan Modra  <amodra@gmail.com>
9573
9574         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
9575         Add release barrier before setting once_control to say
9576         initialisation is done.  Add hints on lwarx.  Use macro in
9577         place of isync.
9578         (clear_once_control): Add release barrier.
9579
9580 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
9581
9582         [BZ #13629]
9583         * math/s_clog.c (__clog): Handle more values close to |z| = 1
9584         specially.
9585         * math/s_clog10.c (__clog10): Likewise.
9586         * math/s_clog10f.c (__clog10f): Likewise.
9587         * math/s_clog10l.c (__clog10l): Likewise.
9588         * math/s_clogf.c (__clogf): Likewise.
9589         * math/s_clogl.c (__clogl): Likewise.
9590         * math/Makefile (libm-calls): Add x2y2m1.
9591         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
9592         (__x2y2m1): Likewise.
9593         (__x2y2m1l): Likewise.
9594         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
9595         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
9596         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
9597         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
9598         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
9599         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
9600         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
9601         * sysdeps/i386/fpu/libm-test-ulps: Update.
9602         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9603
9604         [BZ #14621]
9605         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
9606         int as type of variable DEPTH.
9607         (glob): Use size_t instead of int as type of variables NEWCOUNT
9608         and OLD_PATHC.
9609
9610 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9611
9612         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
9613         Add s_sincosf-sse2.
9614         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
9615         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
9616         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
9617         macros for using routine as __sincosf_ia32.
9618         Use macro for function declaration and weak_alias.
9619         * sysdeps/i386/fpu/libm-test-ulps: Update.
9620
9621         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
9622         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9623
9624         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
9625         subnormal argument.
9626         * math/s_cexpf.c (__cexpf): Likewise.
9627         * math/s_csinf.c (__csinf): Likewise.
9628         * math/s_csinhf.c (__csinhf): Likewise.
9629         * math/s_ctanf.c (__ctanf): Likewise.
9630         * math/s_ctanhf.c (__ctanhf): Likewise.
9631         * math/s_ccosh.c (__ccoshf): Likewise.
9632         * math/s_cexp.c (__cexpl): Likewise.
9633         * math/s_csin.c (__csin): Likewise.
9634         * math/s_csinh.c (__csinh): Likewise.
9635         * math/s_ctan.c (__ctan): Likewise.
9636         * math/s_ctanh.c (ctanh): Likewise.
9637         * math/s_ccoshl.c (__ccoshl): Likewise.
9638         * math/s_cexpl.c (__cexpl): Likewise.
9639         * math/s_csinl.c (__csinl): Likewise.
9640         * math/s_csinhl.c (__csinhl): Likewise.
9641         * math/s_ctanl.c (__ctanl): Likewise.
9642         * math/s_ctanhl.c (__ctanhl): Likewise.
9643
9644 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
9645
9646         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
9647         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
9648         (_IO_off_t): Define to __off_t, not _G_off_t.
9649         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
9650         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
9651         (_IO_wint_t): Define to wint_t, not _G_wint_t.
9652         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
9653         type of __dummy and __dummy2 fields.
9654         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
9655         (_G_ssize_t): Likewise.
9656         (_G_off_t): Likewise.
9657         (_G_pid_t): Likewise.
9658         (_G_uid_t): Likewise.
9659         (_G_wchar_t): Likewise.
9660         (_G_wint_t): Likewise.
9661         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
9662         (_G_ssize_t): Likewise.
9663         (_G_off_t): Likewise.
9664         (_G_pid_t): Likewise.
9665         (_G_uid_t): Likewise.
9666         (_G_wchar_t): Likewise.
9667         (_G_wint_t): Likewise.
9668         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
9669         (_G_ssize_t): Likewise.
9670         (_G_off_t): Likewise.
9671         (_G_pid_t): Likewise.
9672         (_G_uid_t): Likewise.
9673         (_G_wchar_t): Likewise.
9674         (_G_wint_t): Likewise.
9675
9676 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
9677
9678         * malloc/arena.c: Include malloc-sysdep.h.
9679         (shrink_heap): Use check_may_shrink_heap to decide if madvise
9680         is sufficient to shrink the heap or an unmap is needed.
9681         * sysdeps/generic/malloc-sysdep.h: New file.  Define
9682         new function check_may_shrink_heap.
9683         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
9684         new function check_may_shrink_heap.
9685
9686 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
9687
9688         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
9689         comments.
9690
9691 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
9692
9693         * catgets/test-gencat.sh: Add "set -e".
9694         * elf/tst-pathopt.sh: Likewise.
9695         * grp/tst_fgetgrent.sh: Likewise.
9696         * iconvdata/run-iconv-test.sh: Likewise.
9697         * intl/tst-gettext.sh: Likewise.
9698         * intl/tst-gettext2.sh: Likewise.
9699         * intl/tst-gettext4.sh: Likewise.
9700         * intl/tst-gettext6.sh: Likewise.
9701         * intl/tst-translit.sh: Likewise.
9702         * io/ftwtest-sh: Likewise.
9703         * libio/test-freopen.sh: Likewise.
9704         * malloc/tst-mtrace.sh: Likewise.
9705         * posix/globtest.sh: Likewise.
9706         * posix/tst-getconf.sh: Likewise.
9707         * posix/wordexp-tst.sh: Likewise.
9708         * stdio-common/tst-printf.sh: Likewise.
9709         * stdio-common/tst-unbputc.sh: Likewise.
9710         * stdlib/tst-fmtmsg.sh: Likewise.
9711         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
9712         * catgets/Makefile: Do not specify -e option when running
9713         testsuite shell scripts.
9714         * elf/Makefile: Likewise.
9715         * grp/Makefile: Likewise.
9716         * iconvdata/Makefile: Likewise.
9717         * intl/Makefile: Likewise.
9718         * io/Makefile: Likewise.
9719         * libio/Makefile: Likewise.
9720         * malloc/Makefile: Likewise.
9721         * posix/Makefile: Likewise.
9722         * stdio-common/Makefile: Likewise.
9723         * stdlib/Makefile: Likewise.
9724         * sysdeps/x86_64/Makefile: Likewise.
9725
9726         * io/ftwtest-sh: Add copyright header.
9727         * posix/globtest.sh: Likewise.
9728         * posix/tst-getconf.sh: Likewise.
9729         * posix/wordexp-tst.sh: Likewise.
9730         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
9731
9732 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
9733
9734         [BZ #13679]
9735         * Makeconfig (+link): Defined as $(+link-static) if
9736         $(build-shared) isn't yes.
9737         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
9738         isn't yes.
9739         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
9740
9741         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
9742
9743         [BZ #14562]
9744         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
9745         new chunk size with MALLOC_ALIGN_MASK.
9746
9747 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
9748
9749         [BZ #5044]
9750         * stdio-common/printf_fphex.c: Include <stdbool.h> and
9751         <rounding-mode.h>.
9752         (__printf_fphex): Determine rounding using get_rounding_mode and
9753         round_away.
9754         * stdio-common/tst-printf-round.c (struct hex_test): New
9755         structure.
9756         (hex_tests): New variable.
9757         (test_hex_in_one_mode): New function.
9758         (do_test): Also run tests for hex float output.
9759
9760 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
9761
9762         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
9763         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
9764         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
9765         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
9766         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
9767         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
9768         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
9769         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
9770
9771 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
9772
9773         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
9774         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
9775         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
9776         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
9777
9778 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
9779
9780         [BZ #14579]
9781         * elf/rtld.c (dl_main): Limit the check for self loading to normal
9782         mode only.
9783         * elf/tst-rtld-load-self.sh: New test.
9784         * elf/Makefile: Run it.
9785
9786 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
9787
9788         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
9789         (tst-writev-ENV): Remove.
9790         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
9791
9792 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
9793
9794         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
9795
9796 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
9797
9798         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
9799         unconditional.
9800         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
9801         Likewise.
9802         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
9803         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
9804         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
9805         Likewise.
9806
9807 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
9808
9809         [BZ #14587]
9810         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
9811         * config.make.in (have-cpp-asm-debuginfo): Removed.
9812         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
9813         * configure: Regenerated.
9814
9815 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
9816
9817         [BZ #5044]
9818         * stdio-common/printf_fp.c: Include <stdbool.h> and
9819         <rounding-mode.h>.
9820         (___printf_fp): Determine rounding using get_rounding_mode and
9821         round_away.
9822         * stdio-common/tst-printf-round.c: New file.
9823         * stdio-common/Makefile (tests): Add tst-printf-round.
9824         (link-libm): New variable.
9825         ($(objpfx)tst-printf-round): Depend in $(link-libm).
9826
9827 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
9828
9829         [BZ #14576]
9830         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
9831         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
9832         Likewise.
9833         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
9834         Likewise.
9835
9836 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
9837
9838         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
9839         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
9840         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
9841         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
9842
9843 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
9844
9845         [BZ #14518]
9846         * include/rounding-mode.h: New file.
9847         * sysdeps/generic/get-rounding-mode.h: Likewise.
9848         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
9849         * stdlib/strtod_l.c: Include <rounding-mode.h>.
9850         (MAX_VALUE): New macro.
9851         (MIN_VALUE): Likewise.
9852         (overflow_value): New function.
9853         (underflow_value): Likewise.
9854         (round_and_return): Use overflow_value and underflow_value to
9855         determine return values in overflow and underflow cases.  Use
9856         round_away to determine rounding depending on rounding mode.
9857         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
9858         determine return values in overflow and underflow cases.
9859         * stdlib/tst-strtod-round.c: Include <fenv.h>.
9860         (struct test_results): New structure.
9861         (struct test): Use struct test_results to store expected results
9862         for all rounding modes.
9863         (TEST): Include expected results for all rounding modes.
9864         (test_in_one_mode): New function.
9865         (do_test): Use test_in_one_mode to compute and check results.
9866         Check results for all rounding modes.
9867         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
9868         $(link-libm).
9869
9870 2012-12-09  Allan McRae  <allan@archlinux.org>
9871
9872         * sysdeps/i386/fpu/libm-test-ulps: Update
9873
9874 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
9875
9876         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
9877         (_G_int32_t): Likewise.
9878         (_G_uint16_t): Likewise.
9879         (_G_uint32_t): Likewise.
9880         (_G_HAVE_BOOL): Likewise.
9881         (_G_HAVE_ATEXIT): Likewise.
9882         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
9883         (_G_HAVE_IO_FILE_OPEN): Likewise.
9884         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
9885         (_G_int32_t): Likewise.
9886         (_G_uint16_t): Likewise.
9887         (_G_uint32_t): Likewise.
9888         (_G_HAVE_BOOL): Likewise.
9889         (_G_HAVE_ATEXIT): Likewise.
9890         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
9891         (_G_HAVE_IO_FILE_OPEN): Likewise.
9892         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
9893         (_G_int32_t): Likewise.
9894         (_G_uint16_t): Likewise.
9895         (_G_uint32_t): Likewise.
9896         (_G_HAVE_BOOL): Likewise.
9897         (_G_HAVE_ATEXIT): Likewise.
9898         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
9899         (_G_HAVE_IO_FILE_OPEN): Likewise.
9900
9901 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
9902
9903         * csu/libc-tls.c: Update copyright years.
9904
9905 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
9906
9907         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
9908         [!_G_USING_THUNKS]: Remove conditional code.
9909         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
9910         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
9911
9912         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
9913         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
9914         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
9915         (_G_VTABLE_LABEL_PREFIX): Likewise.
9916         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
9917         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
9918         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
9919         (_G_VTABLE_LABEL_PREFIX): Likewise.
9920         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
9921         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
9922         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
9923         (_G_VTABLE_LABEL_PREFIX): Likewise.
9924         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
9925
9926 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
9927
9928         * libio/Makefile: Include ../Makeconfig before tests.
9929         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
9930         only if $(build-shared) is yes.
9931
9932         * iconv/gconv_db.c: Update copyright years.
9933
9934 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9935
9936         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
9937         unwind info if defined PIC. Fix special cases description.
9938         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
9939
9940         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
9941         DP_HI_MASK entry.
9942         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
9943
9944 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
9945
9946         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
9947
9948         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
9949         is NULL.
9950
9951         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
9952         (LDLIBS-tst-chk4): This.
9953         (LDFLAGS-tst-chk5): Renamed to ...
9954         (LDLIBS-tst-chk5): This.
9955         (LDFLAGS-tst-chk6): Renamed to ...
9956         (LDLIBS-tst-chk6): This.
9957         (LDFLAGS-tst-lfschk4): Renamed to ...
9958         (LDLIBS-tst-lfschk4): This.
9959         (LDFLAGS-tst-lfschk5): Renamed to ...
9960         (LDLIBS-tst-lfschk5): This.
9961         (LDFLAGS-tst-lfschk6): Renamed to ...
9962         (LDLIBS-tst-lfschk6): This.
9963
9964         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
9965         on $(common-objpfx)soversions.mk.
9966
9967 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
9968
9969         [BZ #10014]
9970         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
9971         example host name.
9972
9973 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
9974
9975         * malloc/arena.c (arena_get_retry): New function that gets
9976         another arena for the caller to try its request on.
9977         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
9978         current arena cannot fulfill the request.
9979         (__libc_memalign): Likewise.
9980         (__libc_memalign): Likewise.
9981         (__libc_pvalloc): Likewise.
9982         (__libc_calloc): Likewise.
9983
9984 2012-09-05  John Tobey  <john.tobey@gmail.com>
9985
9986         [BZ #13542]
9987         * manual/arith.texi (Operations on Complex): Fix description
9988         of carg branch cut.
9989
9990 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
9991
9992         [BZ #10014]
9993         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
9994         host name.
9995
9996         [BZ #10038]
9997         * manual/memory.texi (Memory): Make order of menu items match
9998         order of sections.
9999
10000 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
10001
10002         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
10003         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
10004         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
10005
10006 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
10007
10008         * csu/libc-tls.c (static_dtv): Renamed to ...
10009         (_dl_static_dtv): This.  Make it global.
10010         (_dl_initial_dtv): Removed.
10011         (__libc_setup_tls): Updated.
10012         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
10013         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
10014         DL_INITIAL_DTV.
10015
10016 2012-09-06  Petr Machata  <pmachata@redhat.com>
10017
10018         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
10019         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
10020         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
10021         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
10022
10023 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
10024
10025         [BZ #14545]
10026         * csu/libc-tls.c (_dl_initial_dtv): New variable.
10027         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
10028         freeing dtv[-1].
10029
10030 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
10031
10032         [BZ #14544]
10033         * Makeconfig (link-static-before-libc): Replace $(+prector)
10034         with $(+prectorT).
10035         (link-static-after-libc): Replace $(+postctor) with
10036         $(+postctorT).
10037         (link-bounded): Replace $(+prector)/$(+postctor) with
10038         $(+prectorT)/$(+postctorT).
10039         (+prectorT): New macro.
10040         (+postctorT): Likewise.
10041
10042 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
10043
10044         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
10045         (round_str): Handle values above the maximum for IBM long double
10046         as inexact.
10047         * stdlib/tst-strtod-round.c (tests): Regenerated.
10048
10049 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10050
10051         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
10052         assembler flag.
10053         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
10054         zarch_nohighgprs around the zarch optimized routines.
10055         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
10056         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
10057         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
10058         for zarch.
10059
10060 2012-09-05  David S. Miller  <davem@davemloft.net>
10061
10062         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10063
10064         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
10065         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
10066         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
10067         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
10068         entries.
10069
10070 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
10071
10072         * malloc/arena.c: Fold copyright years.
10073         * malloc/mcheck.c, malloc/memusage.c: Likewise.
10074
10075 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
10076
10077         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
10078
10079 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
10080
10081         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
10082
10083 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
10084
10085         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
10086         change internal state upon failure.
10087
10088 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
10089
10090         * malloc/mcheck.c (mcheck_check_all): Fix typo.
10091         * malloc/memusage.c (mmap): Likewise.
10092         (mmap64, mremap): Likewise.  Adjust name in comment.
10093
10094 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
10095
10096         * libio/fileops.c: Fix typos in comments.
10097         * libio/oldfileops.c: Likewise.
10098         * libio/wfileops.c: Likewise.
10099
10100 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
10101
10102         [BZ #1349]
10103         * malloc/Makefile (tests): Add tst-malloc-usable test case.
10104         (tst-malloc-usable-ENV): Set environment for test case.
10105         * malloc/hooks.c (malloc_check_get_size): New function to get
10106         requested size.
10107         * malloc/malloc.c (musable): Use malloc_check_get_size.
10108         * malloc/tst-malloc-usable.c: New test case.
10109
10110 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
10111
10112         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
10113
10114 2012-09-05  Allan McRae  <allan@archlinux.org>
10115
10116         [BZ #13966]
10117         * configure.in (CXX_SYSINCLUDES): Use compiler output to
10118         determine header location.
10119         * configure: Regenerated.
10120
10121 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
10122
10123         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
10124         float format.
10125         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
10126         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
10127         format.
10128         (test): Regenerate.
10129
10130 2012-09-04  David S. Miller  <davem@davemloft.net>
10131
10132         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
10133         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
10134         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
10135
10136 2012-09-04  Florian Weimer  <fweimer@redhat.com>
10137
10138         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
10139         failures.
10140
10141         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
10142
10143 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
10144
10145         [BZ #9914]
10146         * libio/iogetdelim.c: Include <limits.h>.
10147         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
10148         + len + 1 would overflow.
10149
10150 2012-09-03  Andreas Jaeger  <aj@suse.de>
10151
10152         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10153         * sysdeps/i386/fpu/libm-test-ulps: Update.
10154
10155 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10156
10157         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
10158         Add s_sinf-sse2, s_conf-sse2.
10159
10160         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
10161         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
10162         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
10163         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
10164
10165         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
10166         for using routine as __sinf_ia32.
10167         Use macro for function declaration and weak_alias.
10168         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
10169         for using routine as __cosf_ia32.
10170         Use macro for function declaration and weak_alias.
10171
10172         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
10173         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
10174
10175         * sysdeps/x86_64/fpu/s_sinf.S: New file.
10176         * sysdeps/x86_64/fpu/s_cosf.S: New file.
10177         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10178
10179         * math/libm-test.inc (cos_test): Add more test cases.
10180         (sin_test): Likewise.
10181         (sincos_test): Likewise.
10182
10183 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10184
10185         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
10186         (IFUNC_RESOLVE): Make pointers to the specialized implementations
10187         hidden.
10188         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
10189
10190 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
10191
10192         [BZ #14538]
10193         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
10194         first element of the GOT.
10195         (elf_machine_load_address): Return the difference between
10196         the runtime address of _DYNAMIC and elf_machine_dynamic ().
10197
10198 2012-09-01  Allan McRae  <allan@archlinux.org>
10199
10200         [BZ #13412]
10201         * configure.in (AWK): Require gawk version 3.0 or later.
10202         * configure: Regenerated.
10203
10204 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
10205
10206         * sysdeps/unix/sysv/linux/kernel-features.h
10207         (__ASSUME_POSIX_CPU_TIMERS): Remove.
10208         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
10209         [__NR_clock_getres]: Make code unconditional.
10210         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
10211         (clock_getcpuclockid): Remove code left unreachable by removal of
10212         conditionals.
10213         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
10214         code unconditional.
10215         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
10216         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
10217         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
10218         Make code unconditional.
10219         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
10220         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
10221         * sysdeps/unix/sysv/linux/clock_settime.c
10222         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
10223         conditional code.
10224         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
10225         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
10226
10227 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
10228
10229         [BZ #14476]
10230         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
10231         scripts/test-installation.pl.
10232
10233         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
10234         and $ld_so_version if it is set.
10235
10236 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
10237
10238         [BZ #14516]
10239         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
10240         failure if reading from procfs failed.
10241         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
10242
10243 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
10244
10245         * sysdeps/unix/sysv/linux/kernel-features.h
10246         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
10247         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
10248         Remove conditional code.
10249         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
10250         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
10251         Remove conditional code.
10252         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
10253         * sysdeps/unix/sysv/linux/i386/fxstat.c
10254         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
10255         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
10256         * sysdeps/unix/sysv/linux/i386/fxstatat.c
10257         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
10258         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
10259         * sysdeps/unix/sysv/linux/i386/lxstat.c
10260         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
10261         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
10262         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
10263         Remove conditional code.
10264         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
10265         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
10266         Remove conditional code.
10267         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
10268         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
10269         <kernel-features.h>.
10270         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
10271         Remove.
10272         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
10273         Remove conditional code.
10274         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
10275         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
10276         Remove conditional.
10277
10278 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
10279
10280         [BZ #5400]
10281         * NEWS: Add fixed bug number.
10282
10283 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
10284
10285         [BZ #14519]
10286         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
10287         underflowing exponent in case of negative sign.
10288         * stdlib/tst-strtod-round-data: Add more tests.
10289         * stdlib/tst-strtod-round.c (tests): Regenerated.
10290
10291         [BZ #3479]
10292         * stdlib/strtod_l.c (NDIG): Remove.
10293         (HEXNDIG): Likewise.
10294         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
10295         smallest representable value.
10296         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
10297         lie within an exact representation of 1/2 ulp of the result.
10298         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
10299         unconditionally.
10300         (TENS_P9_IDX): Define unconditionally.
10301         (TENS_P9_SIZE): Likewise.
10302         (TENS_P10_IDX): Likewise.
10303         (TENS_P10_SIZE): Likewise.
10304         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
10305         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
10306         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
10307         entries for 10^2^13 and 10^2^14.
10308         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
10309         (TENS_P13_IDX): Define.
10310         (TENS_P13_SIZE): Likewise.
10311         (TENS_P14_IDX): Likewise.
10312         (TENS_P14_SIZE): Likewise.
10313         (_fpioconst_pow10): Change array size to
10314         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
10315         unconditional.
10316         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
10317         1024]: Add entries for 10^2^13 and 10^2^14.
10318         [LAST_POW10 > _LAST_POW10]: Remove #error.
10319         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
10320         (_fpioconst_pow10): Change array size to
10321         FPIOCONST_POW10_ARRAY_SIZE.
10322         * stdlib/gen-fpioconst.c: New file.
10323         * stdlib/gen-tst-strtod-round.c: Likewise.
10324         * stdlib/tst-strtod-round-data: Likewise.
10325         * stdlib/tst-strtod-round.c: Likewise.
10326         * stdlib/Makefile (tests): Add tst-strtod-round.
10327
10328         [BZ #14459]
10329         * stdlib/strtod_l.c: Include <stdint.h>.
10330         (NDEBUG): Do not define.
10331         (round_and_return): Change EXPONENT parameter to type intmax_t.
10332         Rearrange calculations to avoid internal overflow possibilities.
10333         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
10334         Rearrange calculations to avoid internal overflow possibilities.
10335         Assert that number fits inside MPNSIZE limbs.
10336         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
10337         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
10338         calculations and add assertions to avoid internal overflow
10339         possibilities.  Add casts to avoid signed/unsigned operations.
10340         * stdlib/tst-strtod-overflow.c: New file.
10341         * stdlib/Makefile (tests): Add tst-strtod-overflow.
10342
10343 2012-08-25  Marek Polacek  <polacek@redhat.com>
10344
10345         * time/time.h: Fix some typos in comments.
10346
10347 2012-08-23  Roland McGrath  <roland@hack.frob.com>
10348
10349         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
10350         * posix/tst-rfc3484-2.c: Likewise.
10351         * posix/tst-rfc3484-3.c: Likewise.
10352
10353 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
10354
10355         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
10356         (EF_ARM_ABI_FLOAT_HARD): Likewise.
10357
10358 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
10359
10360         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
10361         #include of fxstatat64.c.
10362
10363 2012-08-22  Roland McGrath  <roland@hack.frob.com>
10364
10365         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
10366         * shadow/getspent_r.c: Likewise.
10367         * shadow/getspnam.c: Likewise.
10368         * shadow/getspnam_r.c: Likewise.
10369         * gshadow/getsgent.c: Likewise.
10370         * gshadow/getsgent_r.c: Likewise.
10371         * gshadow/getsgnam.c: Likewise.
10372         * gshadow/getsgnam_r.c: Likewise.
10373         * inet/getnetbyad.c: Likewise.
10374         * inet/getnetbyad_r.c: Likewise.
10375         * inet/getnetbynm.c: Likewise.
10376         * inet/getnetbynm_r.c: Likewise.
10377         * inet/getnetent.c: Likewise.
10378         * inet/getnetent_r.c: Likewise.
10379         * inet/getproto.c: Likewise.
10380         * inet/getproto_r.c: Likewise.
10381         * inet/getprtent.c: Likewise.
10382         * inet/getprtent_r.c: Likewise.
10383         * inet/getprtname.c: Likewise.
10384         * inet/getprtname_r.c: Likewise.
10385         * inet/getrpcbyname.c: Likewise.
10386         * inet/getrpcbyname_r.c: Likewise.
10387         * inet/getrpcbynumber.c: Likewise.
10388         * inet/getrpcbynumber_r.c: Likewise.
10389         * inet/getrpcent.c: Likewise.
10390         * inet/getrpcent_r.c: Likewise.
10391         * inet/getaliasent.c: Likewise.
10392         * inet/getaliasent_r.c: Likewise.
10393         * inet/getaliasname.c: Likewise.
10394         * inet/getaliasname_r.c: Likewise.
10395         * nscd/getgrgid_r.c: Likewise.
10396         * nscd/getgrnam_r.c: Likewise.
10397         * nscd/gethstbyad_r.c: Likewise.
10398         * nscd/gethstbynm3_r.c: Likewise.
10399         * nscd/getpwnam_r.c: Likewise.
10400         * nscd/getpwuid_r.c: Likewise.
10401         * nscd/getsrvbynm_r.c: Likewise.
10402         * nscd/getsrvbypt_r.c: Likewise.
10403         * nscd/gai.c: Likewise.
10404
10405         * configure.in (build_nscd): New substituted variable, set
10406         by --disable-build-nscd and defaults to $use_nscd.
10407         * configure: Regenerated.
10408         * config.make.in (build-nscd): New substituted variable.
10409         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
10410         Change conditional to require [$(build-nscd) = yes] as well.
10411         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
10412
10413         [BZ# 13696]
10414         * configure.in (use_nscd): New substituted variable, set by
10415         --disable-nscd.  If enabled, define USE_NSCD.
10416         * configure: Regenerated.
10417         * config.h.in: Add USE_NSCD.
10418         * config.make.in (use-nscd): New substituted variable.
10419         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
10420         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
10421         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
10422         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
10423         (CFLAGS-getgrnam_r.c): Likewise.
10424         (CFLAGS-initgroups.c): Likewise.
10425         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
10426         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
10427         Variables removed.
10428         * inet/getnetgrent_r.c
10429         (nscd_setnetgrent): New function, broken out of ...
10430         (setnetgrent): ... here.  Call it.
10431         (innetgr): Conditionalize nscd bits on [USE_NSCD].
10432         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
10433         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
10434         * nscd/Makefile (routines, aux): Move definitions after include of
10435         Makeconfig.  Conditionalize on [$(use-nscd) != no].
10436         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
10437         Conditionalize on [USE_NSCD].
10438         (is_nscd, nscd_init_cb): Likewise.
10439         (nss_load_library): Conditionalize init callback on [USE_NSCD].
10440         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
10441         * nss/nss_db/db-init.c: Likewise.
10442         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
10443         [USE_NSCD].
10444         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
10445         (make_request): Use it.
10446         (cache_valid_p): New function.
10447         (__check_pf): Use it.
10448         * NEWS: Add item for --disable-nscd.
10449
10450 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
10451
10452         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
10453         to support sed >= 4.2.1-20-ga9bf076.
10454         * configure: Regenerated.
10455
10456 2012-08-22  Roland McGrath  <roland@hack.frob.com>
10457
10458         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
10459         Conditionalize whole body on [IREL].
10460
10461 2012-08-22  Jeff Law <law@redhat.com>
10462
10463         [BZ #14505]
10464         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
10465         if the family is PF_UNSPEC.
10466
10467 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
10468
10469         * Makerules (lib-version): Rename from V.
10470         (install-lib-nosubdir): Change V to lib-version.
10471
10472 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
10473
10474         [BZ #14252]
10475         * powerpc32/power6/wcschr.c: New file.
10476         * powerpc32/power6/wcscpy.c: New file.
10477         * powerpc32/power6/wcsrchr.c: New file.
10478         * powerpc64/power6/wcschr.c: New file.
10479         * powerpc64/power6/wcscpy.c: New file.
10480         * powerpc64/power6/wcsrchr.c: New file.
10481
10482 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
10483
10484         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
10485         (two_way_short_needle): Use it.
10486         * string/strstr.c (AVAILABLE1_USES_J): Define.
10487         * string/strcasestr.c: Likewise.
10488
10489         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
10490         array references.
10491         * string/strcasestr.c (TOLOWER): Make side-effect safe.
10492
10493         [BZ #11607]
10494         * NEWS: Add an entry.
10495         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
10496         define their defaults.
10497         (two_way_short_needle): Detect end-of-string on-the-fly.
10498         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
10499         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
10500         * string/bug-strcasestr1.c: New test.
10501         * string/Makefile: Run it.
10502
10503 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
10504
10505         [BZ #11607]
10506         * string/str-two-way.h (two_way_short_needle): Optimize matching of
10507         the first character.
10508
10509 2012-08-21  Roland McGrath  <roland@hack.frob.com>
10510
10511         * csu/elf-init.c (__libc_csu_irel): Function removed.
10512         * csu/libc-start.c (apply_irel): New function.
10513         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
10514
10515 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
10516
10517         * sysdeps/unix/sysv/linux/kernel-features.h
10518         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
10519         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
10520         <kernel-features.h>.
10521         [__NR_fadvise64_64]: Make code unconditional.
10522         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
10523         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
10524         !__NR_fadvise64_64)]: Likewise.
10525         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
10526         !__NR_fadvise64_64))]: Likewise.
10527         [__NR_fadvise64]: Make code unconditional.
10528         [!__NR_fadvise64]: Remove conditional code.
10529         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
10530         <kernel-features.h>.
10531         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
10532         unconditional.
10533         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
10534         conditional code.
10535         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
10536         not include <kernel-features.h>.
10537         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
10538         unconditional.
10539         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
10540         conditional code.
10541         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
10542         include <kernel-features.h>.
10543         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
10544         unconditional.
10545         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
10546         conditional code.
10547
10548 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
10549
10550         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
10551         slight instruction rearrangements per scrollpipe analysis.
10552         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
10553
10554 2012-08-20  Roland McGrath  <roland@hack.frob.com>
10555
10556         * manual/syslog.texi (syslog; vsyslog, closelog):
10557         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
10558         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
10559
10560         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
10561         DSOCAPS to match condition on defining it.
10562
10563 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
10564
10565         * sysdeps/unix/sysv/linux/kernel-features.h
10566         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
10567         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
10568         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
10569         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
10570         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
10571         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
10572         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
10573         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
10574         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
10575         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
10576
10577         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
10578         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
10579
10580         * sysdeps/unix/sysv/linux/kernel-features.h
10581         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
10582         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
10583         unconditional.
10584         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
10585         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
10586         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
10587         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
10588         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
10589         Make code unconditional.
10590         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
10591         (__mmap64) [!__NR_mmap2]: Likewise.
10592         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
10593         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
10594         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
10595         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
10596         [__NR_mmap2]: Make code unconditional.
10597         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
10598         (__mmap64) [!__NR_mmap2]: Likewise.
10599
10600 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10601
10602         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
10603
10604 2012-08-18  Andreas Jaeger  <aj@suse.de>
10605
10606         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
10607
10608 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
10609
10610         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
10611         * include/unistd.h (__have_sock_cloexec): Likewise.
10612         (__have_pipe2): Likewise.
10613         (__have_dup3): Likewise.
10614
10615 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
10616
10617         [BZ #9685]
10618         * include/unistd.h (__have_pipe2): Change define into an extern int.
10619         (__have_dup3): Likewise.
10620         * socket/have_sock_cloexec.c: Include fcntl.h.
10621         (__have_pipe2): New variable.
10622         (__have_dup3): Likewise.
10623
10624 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
10625
10626         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
10627
10628 2012-08-17  Marek Polacek  <polacek@redhat.com>
10629
10630         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
10631         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
10632
10633 2012-08-17  Roland McGrath  <roland@hack.frob.com>
10634
10635         * configure.in: Add AC_SUBST for sysheaders.
10636         * configure: Regenerated.
10637         * config.make.in (sysheaders): New substituted variable.
10638
10639         * sysdeps/unix/mkfifo.c: Moved ...
10640         * sysdeps/posix/mkfifo.c: ... here.
10641         * sysdeps/unix/mkfifoat.c: Moved ...
10642         * sysdeps/posix/mkfifoat.c: ... here.
10643
10644         * sysdeps/unix/utime.c: Moved ...
10645         * sysdeps/posix/utime.c: ... here.
10646
10647         * sysdeps/unix/time.c: Moved ...
10648         * sysdeps/posix/time.c: ... here.
10649         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
10650         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
10651
10652         * sysdeps/unix/nice.c: Moved ...
10653         * sysdeps/posix/nice.c: ... here.
10654
10655         * sysdeps/unix/alarm.c: Moved ...
10656         * sysdeps/posix/alarm.c: ... here.
10657
10658         * intl/Makefile ($(codeset_mo)): Depend on the input file.
10659
10660 2012-08-17  Jeff Law <law@redhat.com>
10661
10662         * intl/Makefile (codeset_mo): New variable.
10663         ($(codeset_mo)): New target.
10664         (tst-codeset.out): Depend on that.  Remove explicit rule.
10665         (tst-gettext3.out, tst-gettext5.out): Likewise.
10666         (LOCPATH-ENV, tst-codeset-ENV): New variables.
10667         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
10668         * intl/tst-codeset.sh: Remove.
10669         * intl/tst-gettext3.sh: Likewise.
10670         * intl/tst-gettext5.sh: Likewise.
10671
10672 2012-08-17  Roland McGrath  <roland@hack.frob.com>
10673
10674         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
10675         * sysdeps/unix/syscalls.list: ... here.
10676
10677         * sysdeps/posix/getaddrinfo.c
10678         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
10679         (gaiconf_init, gaiconf_reload): Use them.
10680         [!_STATBUF_ST_NSEC]
10681         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
10682         Define using time_t rather than struct timespec.
10683
10684         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
10685         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
10686         Macros removed.
10687         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
10688         [!NO_THREADS].
10689         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
10690         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
10691         Likewise.
10692
10693         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
10694         __libc_cleanup_push argument.
10695
10696         * bits/param.h: New file.
10697         * misc/sys/param.h: New file.
10698         * include/sys/param.h: New file.
10699         * misc/Makefile (headers): Add bits/param.h.
10700         * sysdeps/generic/sys/param.h: File removed.
10701         * sysdeps/unix/sysv/linux/bits/param.h: New file.
10702         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
10703         * sysdeps/mach/hurd/bits/param.h: New file.
10704         * sysdeps/mach/hurd/sys/param.h: File removed.
10705
10706         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
10707         last change.
10708
10709         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
10710         [_IO_MTSAFE_IO].
10711         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
10712         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
10713         New macros.
10714
10715         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
10716         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
10717         rather than -D_IO_MTSAFE_IO conditionally.
10718         * stdio-common/Makefile (CPPFLAGS): Likewise.
10719         * wcsmbs/Makefile (CPPFLAGS): Likewise.
10720         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
10721         Use $(libio-mtsafe).
10722         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
10723         of -D_IO_MTSAFE_IO.
10724         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
10725         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
10726         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
10727         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
10728         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
10729         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
10730         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
10731         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
10732         (CFLAGS-fread_u_chk.c): Likewise.
10733         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
10734         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
10735         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
10736         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
10737         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
10738         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
10739         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
10740         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
10741         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
10742
10743         * libio/Makefile: Test [$(libc-reentrant) = yes]
10744         instead of [$(filter %REENTRANT, $(defines)) nonempty].
10745
10746         * Makeconfig
10747         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
10748         * sysdeps/pthread/configure: File removed.
10749         * sysdeps/pthread/Makeconfig: New file.
10750         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
10751         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
10752
10753 2012-08-16  Gary Benson  <gbenson@redhat.com>
10754
10755         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
10756         unmapping the first object in a namespace.
10757
10758 2012-08-16  Roland McGrath  <roland@hack.frob.com>
10759
10760         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
10761         (__internal_setnetgrent): ... this.  Add internal_function to
10762         definition.  Add libc_hidden_def.
10763         (setnetgrent): Update caller.
10764         (internal_endnetgrent): Renamed to ...
10765         (__internal_endnetgrent): ... this.  Add internal_function to
10766         definition.  Add libc_hidden_def.
10767         (endnetgrent): Update caller.
10768         (internal_getnetgrent_r): Renamed to ...
10769         (__internal_getnetgrent_r): ... this.  Add internal_function to
10770         definition.  Add libc_hidden_def.
10771         (__getnetgrent_r): Update caller.
10772         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
10773
10774 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
10775
10776         * stdlib/longlong.h: Update from GCC.
10777
10778 2012-08-16  Roland McGrath  <roland@hack.frob.com>
10779
10780         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
10781         on _QL, which is set by umul_ppmm but never used.
10782         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
10783         variables, which are set by GMP macros but never used.
10784         * stdio-common/_itowa.c (_itowa): Likewise.
10785         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
10786         * stdlib/mod_1.c (mpn_mod_1): Likewise.
10787
10788 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
10789
10790         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
10791         struct La_sh_regs is not constant.
10792         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
10793         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
10794         and struct La_sparc64_regs are not constant.
10795
10796 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
10797
10798         * sysdeps/unix/sysv/linux/kernel-features.h
10799         (__ASSUME_POSIX_TIMERS): Remove.
10800         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
10801         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
10802         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
10803         Make code unconditional.
10804         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
10805         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
10806         Make code unconditional.
10807         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
10808         * sysdeps/unix/sysv/linux/clock_nanosleep.c
10809         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
10810         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
10811         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
10812         Make code unconditional.
10813         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
10814         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
10815         (__libc_missing_posix_timers): Remove.
10816
10817 2012-08-15  Roland McGrath  <roland@hack.frob.com>
10818
10819         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
10820         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
10821
10822         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
10823
10824         * elf/dl-sym.c: Include <stdlib.h>.
10825
10826         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
10827         constants, which avoids warnings in 32-bit builds.
10828
10829         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
10830         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
10831
10832         * misc/lseek.c: File moved to ...
10833         * io/lseek.c: ... here.
10834
10835         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
10836
10837         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
10838         shifting LEN more than 31 bits at once.
10839
10840 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10841
10842         [BZ #14195]
10843         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
10844         segmentation fault for a case of two empty input strings.
10845         * string/test-strncasecmp.c (check1): Renamed to...
10846         (bz12205): ...this.
10847         (bz14195): Add new testcase for two empty input strings and N > 0.
10848         (test_main): Call new testcase, adapt for renamed function.
10849
10850 2012-08-15  Andreas Jaeger  <aj@suse.de>
10851
10852         [BZ #14090]
10853         * crypt/md5test2.c: New test, based on test supplied by Serge
10854         Belyshev <belyshev@depni.sinp.msu.ru>.
10855         * crypt/Makefile (xtests): Add md5test-giant..
10856         * crypt/Makefile ($(objpfx)md5test-giant): Add.
10857
10858 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
10859
10860         [BZ #14090]
10861         * crypt/md5.c (md5_process_block): Don't assume the buffer
10862         length is less than 2**32.
10863         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
10864         length is less than 2**64.
10865
10866 2012-08-15  Roland McGrath  <roland@hack.frob.com>
10867
10868         * string/str-two-way.h: Include <sys/param.h>.
10869         (MAX): Macro removed.
10870
10871         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
10872         Move #define and #undef of memmove to just before and after
10873         including <string.h>.
10874
10875         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
10876         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
10877         and after including <string.h>.  Move declarations of
10878         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
10879         to before #include "string/memmove.c".
10880
10881         * include/dirent.h: Declare __getdirentries.
10882
10883         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
10884         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
10885
10886 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
10887
10888         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
10889         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
10890         * sysdeps/i386/configure: Regenerated.
10891         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
10892         STABS_CURRENT_FILE, and STABS_FUN.
10893         (END): Remove call to STABS_FUN_END.
10894         (STABS_CURRENT_FILE1): Delete.
10895         (STABS_CURRENT_FILE): Likewise.
10896         (STABS_FUN): Likewise.
10897         (STABS_FUN_END): Likewise.
10898         (STABS_FUN2): Likewise.
10899         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
10900         * sysdeps/x86_64/configure: Regenerated.
10901
10902 2012-08-14  Roland McGrath  <roland@hack.frob.com>
10903
10904         * elf/dl-open.c: Include <atomic.h>.
10905         * elf/dl-lookup.c: Likewise.
10906
10907 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
10908
10909         * sysdeps/unix/sysv/linux/kernel-features.h
10910         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
10911         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
10912         unconditionally.
10913         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
10914         unconditionally.
10915         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
10916         condition on __ASSUME_CLONE_THREAD_FLAGS.
10917
10918 2012-08-14  Andreas Jaeger  <aj@suse.de>
10919
10920         * sysdeps/i386/fpu/libm-test-ulps: Update.
10921
10922 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
10923
10924         * include/atomic.h (atomic_exchange_and_add): Split into ...
10925         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
10926         New atomic macros.
10927
10928 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
10929
10930         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10931
10932 2012-08-13  Jeff Law <law@redhat.com>
10933
10934         * manual/stdio.texi (snprintf): Clarify handling of the trailing
10935         null byte in the output string.
10936
10937 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
10938
10939         * sysdeps/unix/sysv/linux/kernel-features.h
10940         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
10941         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
10942         (__ASSUME_ARG_MAX_STACK_BASED): Define.
10943         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
10944         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
10945         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
10946         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
10947
10948 2012-08-09  Jeff Law <law@redhat.com>
10949
10950         [BZ #13939]
10951         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
10952         When avoid_arena is set, don't retry in the that arena.  Pick the
10953         next one, whatever it might be.
10954         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
10955         (arena_lock): Pass in new parameter to arena_get2.
10956         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
10957         arena_get2.
10958         (__libc_malloc): Unify retrying after main arena failure with
10959         __libc_memalign version.
10960         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
10961
10962 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
10963
10964         [BZ #14166]
10965         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
10966         to __redirect_strstr.
10967         (__strstr_sse42): Use typeof __redirect_strstr.
10968         (__strstr_ia32): Likewise.
10969         (__libc_strstr): New prototype.
10970         (strstr): Renamed to ...
10971         (__libc_strstr): This.
10972         (strstr): New strong alias of __libc_strstr.
10973         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
10974         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
10975         __redirect_time.
10976         Include <time.h>.
10977         (__libc_time): New prototype.
10978         (time_ifunc): Replace time with __libc_time.
10979         (time): New strong alias and hidden definition of __libc_time.
10980         (__GI_time): Remove strong alias.
10981         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
10982         Include <stddef.h>.
10983         (memmove): Redefined to __redirect_memmove.
10984         (__memmove_sse2): Use typeof __redirect_memmove.
10985         (__memmove_ssse3): Likewise.
10986         (__memmove_ssse3_back): Likewise.
10987         (__libc_memmove): New prototype.
10988         (memmove): Renamed to ...
10989         (__libc_memmove): This.
10990         (memmove): New strong alias of __libc_memmove.
10991
10992 2012-08-08  Mark Salter  <msalter@redhat.com>
10993
10994         * elf/elf.h
10995         (R_MN10300_TLS_GD): Define.
10996         (R_MN10300_TLS_LD): Likewise.
10997         (R_MN10300_TLS_LDO): Likewise.
10998         (R_MN10300_TLS_GOTIE): Likewise.
10999         (R_MN10300_TLS_IE): Likewise.
11000         (R_MN10300_TLS_LE): Likewise.
11001         (R_MN10300_TLS_DTPMOD): Likewise.
11002         (R_MN10300_TLS_DTPOFF): Likewise.
11003         (R_MN10300_TLS_TPOFF): Likewise.
11004         (R_MN10300_SYM_DIFF): Likewise.
11005         (R_MN10300_ALIGN): Likewise.
11006         (R_MN10300_NUM): Update.
11007
11008 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
11009
11010         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
11011         Remove.
11012
11013 2012-08-08  Roland McGrath  <roland@hack.frob.com>
11014
11015         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
11016
11017         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
11018         sysdeps/unix -> sysdeps/posix move.
11019         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
11020
11021 2012-08-07      Allan McRae     <allan@archlinux.org>
11022
11023         [BZ #14303]
11024         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
11025         (SUNOS_CPP): Likewise.
11026         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
11027         not found.
11028         (open_input): Call CPP using execvp.
11029
11030 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
11031
11032         * sysdeps/unix/sysv/linux/kernel-features.h
11033         (__ASSUME_PROT_GROWSUPDOWN): Remove.
11034         (__ASSUME_NO_CLONE_DETACHED): Likewise.
11035         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
11036         (__ASSUME_WAITID_SYSCALL): Likewise.
11037         * sysdeps/unix/sysv/linux/dl-execstack.c
11038         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
11039         code unconditional.
11040         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
11041         conditional code.
11042         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
11043         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
11044         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
11045         code.
11046         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
11047         unconditional.
11048         [__ASSUME_WAITID_SYSCALL]: Likewise.
11049         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
11050
11051 2012-08-07  Roland McGrath  <roland@hack.frob.com>
11052
11053         * sysdeps/unix/closedir.c: Renamed to ...
11054         * sysdeps/posix/closedir.c: ... here.
11055         * sysdeps/unix/dirfd.c: Renamed to ...
11056         * sysdeps/posix/dirfd.c: ... here.
11057         * sysdeps/unix/dirstream.h: Renamed to ...
11058         * sysdeps/posix/dirstream.h: ... here.
11059         * sysdeps/unix/fdopendir.c: Renamed to ...
11060         * sysdeps/posix/fdopendir.c: ... here.
11061         * sysdeps/unix/opendir.c: Renamed to ...
11062         * sysdeps/posix/opendir.c: ... here.
11063         * sysdeps/unix/readdir.c: Renamed to ...
11064         * sysdeps/posix/readdir.c: ... here.
11065         * sysdeps/unix/readdir_r.c: Renamed to ...
11066         * sysdeps/posix/readdir_r.c: ... here.
11067         * sysdeps/unix/rewinddir.c: Renamed to ...
11068         * sysdeps/posix/rewinddir.c: ... here.
11069         * sysdeps/unix/seekdir.c: Renamed to ...
11070         * sysdeps/posix/seekdir.c: ... here.
11071         * sysdeps/unix/telldir.c: Renamed to ...
11072         * sysdeps/posix/telldir.c: ... here.
11073         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
11074         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
11075         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
11076         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
11077
11078         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
11079         * bits/fcntl.h: ... here.
11080
11081         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
11082         not 0.
11083         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
11084         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
11085         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
11086         (struct flock): Move l_start, l_len to the beginning.
11087         Use __pid_t for l_pid.
11088         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
11089         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
11090         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
11091         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
11092         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
11093         [__USE_LARGEFILE64] (struct flock64): New type.
11094         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
11095
11096         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
11097         * bits/dirent.h: ... here.
11098
11099         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
11100         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
11101
11102 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
11103
11104         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
11105         Change from 2.6.0 to 2.6.16.
11106         * sysdeps/unix/sysv/linux/configure: Regenerated.
11107         * sysdeps/unix/sysv/linux/kernel-features.h
11108         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
11109         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
11110         version.
11111         (__ASSUME_UTIMES): Likewise.
11112         (__ASSUME_CLONE_STOPPED): Remove.
11113         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
11114         architectures, not kernel version.
11115         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
11116         (__ASSUME_NO_CLONE_DETACHED): Likewise.
11117         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
11118         (__ASSUME_WAITID_SYSCALL): Likewise.
11119         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
11120         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
11121         * README: State 2.6.16 as minimum Linux kernel version.  Do not
11122         refer to older versions.
11123
11124 2012-08-06  Roland McGrath  <roland@hack.frob.com>
11125
11126         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
11127         Define alphasort64 as an alias.
11128         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
11129         Define versionsort64 as an alias.
11130         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
11131         Define scandir64 as an alias.
11132         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
11133         Define scandirat64 as an alias.
11134         * dirent/alphasort64.c (alphasort64):
11135         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
11136         * dirent/versionsort64.c: Likewise.
11137         * dirent/scandir64.c: Likewise.
11138         * dirent/scandirat64.c: Likewise.
11139         * sysdeps/wordsize-64/alphasort.c: File removed.
11140         * sysdeps/wordsize-64/alphasort64.c: File removed.
11141         * sysdeps/wordsize-64/scandir.c: File removed.
11142         * sysdeps/wordsize-64/scandir64.c: File removed.
11143         * sysdeps/wordsize-64/scandirat.c: File removed.
11144         * sysdeps/wordsize-64/scandirat64.c: File removed.
11145         * sysdeps/wordsize-64/versionsort.c: File removed.
11146         * sysdeps/wordsize-64/versionsort64.c: File removed.
11147         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
11148         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
11149         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
11150         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
11151         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
11152         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
11153         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
11154         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
11155
11156         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
11157         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
11158         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
11159         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
11160         [defined __arch64__ || defined __sparcv9]
11161         (__INO_T_MATCHES_INO64_T): New macro.
11162         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
11163         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
11164         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
11165         * sysdeps/unix/sysv/linux/bits/dirent.h
11166         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
11167         (_DIRENT_MATCHES_DIRENT64): New macro.
11168
11169         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
11170         Define lockf64 as an alias.
11171         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
11172         Define fseeko64 as an alias.
11173         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
11174         Define ftello64 as an alias.
11175         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
11176         Define _IO_fgetpos64 and fgetpos64 as aliases.
11177         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
11178         Define _IO_fsetpos64 and fsetpos64 as aliases.
11179         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
11180         Conditionalize body on this.
11181         * libio/fseeko64.c: Likewise.
11182         * libio/ftello64.c: Likewise.
11183         * libio/iofgetpos64.c: Likewise.
11184         * libio/iofsetpos64.c: Likewise.
11185         * sysdeps/wordsize-64/lockf.c: File removed.
11186         * sysdeps/wordsize-64/lockf64.c: File removed.
11187         * sysdeps/wordsize-64/fseeko.c: File removed.
11188         * sysdeps/wordsize-64/fseeko64.c: File removed.
11189         * sysdeps/wordsize-64/ftello.c: File removed.
11190         * sysdeps/wordsize-64/ftello64.c: File removed.
11191         * sysdeps/wordsize-64/iofgetpos.c: File removed.
11192         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
11193         * sysdeps/wordsize-64/iofsetpos.c: File removed.
11194         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
11195         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
11196         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
11197         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
11198         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
11199         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
11200         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
11201         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
11202         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
11203         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
11204         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
11205
11206         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
11207         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
11208         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
11209         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
11210         [defined __arch64__ || defined __sparcv9]
11211         (__OFF_T_MATCHES_OFF64_T): New macro.
11212         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
11213         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
11214         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
11215         (__OFF_T_MATCHES_OFF64_T): New macro.
11216
11217 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
11218
11219         * stdlib/secure-getenv.c (__secure_getenv): Replace
11220         GLIBC_2_16 with GLIBC_2_17.
11221
11222 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
11223
11224         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
11225         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
11226
11227 2012-08-03  David S. Miller  <davem@davemloft.net>
11228
11229         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11230
11231 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
11232
11233         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
11234         Remove.
11235         (__ASSUME_CORRECT_SI_PID): Likewise.
11236         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
11237         (__ASSUME_TMPFS_NAME): Likewise.
11238         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
11239         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
11240         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
11241         (HAVE_AUX_SECURE): Make definition unconditional.
11242         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
11243         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
11244
11245 2012-08-03  Roland McGrath  <roland@hack.frob.com>
11246
11247         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
11248         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
11249         * sysdeps/mach/hurd/eloop-threshold.h: New file.
11250         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
11251         __eloop_threshold instead of SYMLOOP_MAX.
11252
11253         * sysdeps/generic/eloop-threshold.h: New file.
11254         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
11255         of MAXSYMLINKS.
11256         * elf/chroot_canon.c (chroot_canon): Likewise.
11257
11258 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
11259
11260         [BZ #13717]
11261         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
11262         Change to 2.6.0 everywhere.
11263         * sysdeps/unix/sysv/linux/configure: Regenerated.
11264         * sysdeps/unix/sysv/linux/kernel-features.h
11265         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
11266         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
11267         kernel versions.
11268         (__ASSUME_POSIX_TIMERS): Define unconditionally.
11269         (__ASSUME_FUTEX_REQUEUE): Remove.
11270         (__ASSUME_STATFS64): Define unconditionally.
11271         (__ASSUME_AT_SECURE): Likewise.
11272         (__ASSUME_CORRECT_SI_PID): Likewise.
11273         (__ASSUME_TGKILL): Define without depending on kernel version for
11274         i386.
11275         (__ASSUME_UTIMES): Likewise.
11276         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
11277         kernel version.
11278         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
11279         (__ASSUME_TMPFS_NAME): Likewise.
11280         * README: Update reference to Linux kernel versions.
11281
11282 2012-08-02  Marek Polacek  <polacek@redhat.com>
11283
11284         [BZ# 14150]
11285         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
11286         libc_cv_asm_type_prefix with %.
11287         * configure: Regenerated.
11288         * include/libc-symbols.h: Remove comment about
11289         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
11290         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
11291         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
11292         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
11293         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
11294         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
11295         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
11296         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
11297         * elf/tst-unique2mod1.c: Likewise.
11298         * elf/tst-unique1mod2.c: Likewise.
11299         * elf/tst-unique1mod1.c: Likewise.
11300         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
11301         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
11302         Replace ASM_TYPE_DIRECTIVE with .type.
11303         * sysdeps/s390/s390-64/sysdep.h: Likewise.
11304         * sysdeps/i386/sysdep.h: Likewise.
11305         * sysdeps/x86_64/sysdep.h: Likewise.
11306         * sysdeps/sh/sysdep.h: Likewise.
11307         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
11308         Do not define ASM_TYPE_DIRECTIVE.
11309         * sysdeps/powerpc/sysdep.h: Likewise.
11310         * sysdeps/powerpc/powerpc32/sysdep.h:
11311         Replace ASM_TYPE_DIRECTIVE with .type.
11312         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
11313         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
11314         * sysdeps/i386/fpu/e_powf.S: Likewise.
11315         * sysdeps/i386/fpu/e_expl.S: Likewise.
11316         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
11317         * sysdeps/i386/fpu/e_acosh.S: Likewise.
11318         * sysdeps/i386/fpu/e_pow.S: Likewise.
11319         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
11320         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
11321         * sysdeps/i386/fpu/s_expm1.S: Likewise.
11322         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
11323         * sysdeps/i386/fpu/e_log2.S: Likewise.
11324         * sysdeps/i386/fpu/e_log2l.S: Likewise.
11325         * sysdeps/i386/fpu/e_scalb.S: Likewise.
11326         * sysdeps/i386/fpu/e_powl.S: Likewise.
11327         * sysdeps/i386/fpu/e_log10f.S: Likewise.
11328         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
11329         * sysdeps/i386/fpu/e_logl.S: Likewise.
11330         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
11331         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
11332         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
11333         * sysdeps/i386/fpu/e_log2f.S: Likewise.
11334         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
11335         * sysdeps/i386/fpu/e_log.S: Likewise.
11336         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
11337         * sysdeps/i386/fpu/e_logf.S: Likewise.
11338         * sysdeps/i386/fpu/e_log10l.S: Likewise.
11339         * sysdeps/i386/fpu/e_atanh.S: Likewise.
11340         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
11341         * sysdeps/i386/fpu/e_log10.S: Likewise.
11342         * sysdeps/i386/fpu/s_frexp.S: Likewise.
11343         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
11344         * sysdeps/i386/fpu/s_asinh.S: Likewise.
11345         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
11346         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
11347         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
11348         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
11349         * sysdeps/i386/i686/strtok.S: Likewise.
11350         * sysdeps/i386/i386-mcount.S: Likewise.
11351         * sysdeps/i386/strtok.S: Likewise.
11352         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
11353         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
11354         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
11355         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
11356         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
11357         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
11358         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
11359         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
11360         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
11361         * sysdeps/x86_64/_mcount.S: Likewise.
11362         * sysdeps/x86_64/strtok.S: Likewise.
11363         * sysdeps/sh/_mcount.S: Likewise.
11364
11365 2012-08-01  Roland McGrath  <roland@hack.frob.com>
11366
11367         * libio/iofopen.c: Include <fcntl.h>.
11368         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
11369         (_IO_fopen64, fopen64): Define as aliases.
11370         * libio/iofopen64.c: Include <fcntl.h>.
11371         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
11372         Conditionalize body on this.
11373         * sysdeps/wordsize-64/iofopen.c: File removed.
11374         * sysdeps/wordsize-64/iofopen64.c: File removed.
11375
11376 2012-08-01  Marek Polacek  <polacek@redhat.com>
11377
11378         * libc/Makeconfig: Use elf in place of binfmt-subdir.
11379         Use dlfcn directly instead of a variable.
11380         (binfmt-subdir): Do not define.
11381         (dlfcn): Likewise.
11382
11383 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
11384
11385         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
11386         Remove all definitions.
11387         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
11388         <kernel-features.h>.
11389         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
11390         (miss_F_GETOWN_EX): Remove all definitions.
11391         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
11392         macro definition.
11393         [!__ASSUME_FCNTL64]: Remove conditional code.
11394         [__ASSUME_FCNTL64]: Make code unconditional.
11395         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
11396         <kernel-features.h>.
11397         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
11398         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
11399         (lockf64) [__NR_fcntl64]: Make code unconditional.
11400         (lockf64) [__ASSUME_FCNTL64]: Likewise.
11401
11402         * sysdeps/unix/sysv/linux/kernel-features.h
11403         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
11404         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
11405         Make code unconditional.
11406         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
11407         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
11408         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
11409         [__NR_vfork]: Make code unconditional.
11410         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
11411         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
11412         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
11413         [__NR_vfork]: Make code unconditional.
11414         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
11415         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
11416
11417 2012-08-01  Roland McGrath  <roland@hack.frob.com>
11418
11419         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
11420         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
11421
11422         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
11423         Define mkstemp64 as an alias.
11424         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
11425         Define mkstemps64 as an alias.
11426         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
11427         Define mkostemp64 as an alias.
11428         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
11429         Define mkostemps64 as an alias.
11430         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
11431         Conditionalize body on this.
11432         * misc/mkostemp64.c: Likewise.
11433         * misc/mkostemps64.c: Likewise.
11434         * misc/mkstemps64.c: Likewise.
11435         * sysdeps/wordsize-64/mkstemp64.c: File removed.
11436         * sysdeps/wordsize-64/mkostemp64.c: File removed.
11437         * sysdeps/wordsize-64/mkostemp.c: File removed.
11438         * sysdeps/wordsize-64/mkstemp.c: File removed.
11439         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
11440         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
11441         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
11442         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
11443
11444         [BZ #14138]
11445         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
11446         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
11447         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
11448         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
11449
11450         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
11451         compat_symbol macros from <shlib-compat.h> rather than the underlying
11452         default_symbol_version and symbol_version macros, so that DEFAULT
11453         lines in shlib-versions are respected.
11454         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
11455
11456 2012-08-01  Florian Weimer  <fweimer@redhat.com>
11457
11458         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
11459         Declare with warn_unused_result.
11460         (setgid, setregid, setegid, setresgid): Likewise.
11461         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
11462         Likewise.
11463         * WUR-REPORT: Remove set*id functions.
11464
11465 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
11466
11467         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
11468
11469 2012-07-31  Roland McGrath  <roland@hack.frob.com>
11470
11471         [BZ #10191]
11472         * include/sys/socket.h (__libc_accept, __libc_accept4):
11473         Add attribute_hidden.
11474         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
11475
11476         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
11477         use of PTR_MANGLE.
11478         * inet/getnetgrent_r.c (setup): Likewise.
11479
11480         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
11481
11482 2012-07-31  David S. Miller  <davem@davemloft.net>
11483
11484         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11485
11486 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
11487
11488         [BZ #13629]
11489         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
11490         value between 1.0 and 2.0 and smaller part has absolute value less
11491         than 1.0.
11492         * math/s_clog10.c (__clog10): Likewise.
11493         * math/s_clog10f.c (__clog10f): Likewise.
11494         * math/s_clog10l.c (__clog10l): Likewise.
11495         * math/s_clogf.c (__clogf): Likewise.
11496         * math/s_clogl.c (__clogl): Likewise.
11497         * math/libm-test.inc (clog_test): Add more tests.
11498         (clog10_test): Likewise.
11499         * sysdeps/i386/fpu/libm-test-ulps: Update.
11500         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11501
11502 2012-07-31  Florian Weimer  <fweimer@redhat.com>
11503
11504         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
11505         Exit with zero in case no suitable GID is found, and write a
11506         message to standard error.
11507
11508 2012-07-30  Roland McGrath  <roland@hack.frob.com>
11509
11510         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
11511         rather than to 1.
11512         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
11513         (MAXPATHLEN): Removed.
11514         (NOGROUP, NODEV): New macros.
11515         (setbit, clrbit, isset, isclr): New macros.
11516         (howmany, roundup, powerof2): New macros.
11517         (DEV_BSIZE): New macro.
11518
11519         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
11520         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
11521
11522         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
11523         definition on [!__NO_LONG_DOUBLE_MATH].
11524
11525         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
11526         PTR_MANGLE and PTR_DEMANGLE.
11527
11528         * socket/accept4.c (accept4): Rename to __libc_accept4.
11529         Define accept4 as a weak alias.
11530
11531         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
11532         on [_DIRENT_HAVE_D_TYPE].
11533         * io/ftw.c (ftw_dir): Likewise.
11534
11535         * io/xmknod.c (__xmknod): Don't check PATH for being null.
11536
11537         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
11538
11539         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
11540         Use the BSD numbers rather than the arbitrary ones we had.
11541         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
11542         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
11543         (SIGXCPU, SIGXFSZ): New macros.
11544         (_NSIG): Now 32.
11545
11546         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
11547         initializer on [_LIBC_REENTRANT].
11548
11549         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
11550         definitions inside [_POSIX_MAPPED_FILES].
11551
11552         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
11553
11554         * dirent/opendir.c: Include <fcntl.h>.
11555
11556         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
11557         (__libc_getspecific): Likewise.
11558         (__libc_key_create): Likewise.
11559
11560         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
11561         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
11562         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
11563         (tmpfile64): Define as alias.
11564         * sysdeps/wordsize-64/tmpfile.c: File removed.
11565         * sysdeps/wordsize-64/tmpfile64.c: File removed.
11566         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
11567         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
11568
11569         * stdio-common/vfscanf.c: Include <stdbool.h>.
11570         * nss/makedb.c: Likewise.
11571         * stdio-common/_i18n_number.h: Likewise.
11572         * argp/argp-help.c: Likewise.
11573         * posix/wordexp.c: Likewise.
11574         * sysdeps/posix/spawni.c: Likewise.
11575         * nss/nss_files/files-initgroups.c: Likewise.
11576         * stdio-common/reg-modifier.c: Include <stdlib.h>.
11577         * nss/nss_files/files-initgroups.c: Likewise.
11578         * nss/nss_db/db-netgrp.c: Likewise.
11579         * nss/nss_db/db-initgroups.c: Likewise.
11580         * io/fchmodat.c: Include <sys/stat.h>.
11581
11582         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
11583         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
11584
11585         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
11586         [HAVE_MMAP].
11587
11588         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
11589         Add multiple inclusion protection.
11590
11591 2012-07-27  David S. Miller  <davem@davemloft.net>
11592
11593         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11594
11595 2012-07-27  Gary Benson  <gbenson@redhat.com>
11596
11597         [BZ #14298]
11598         * elf/rtld.c: Include <stap-probe.h>.
11599         (dl_main): Added static probes "init_start" and "init_complete".
11600         * elf/dl-load.c: Include <stap-probe.h>.
11601         (lose): Take new parameter "nsid".
11602         Added static probe "map_failed".
11603         (_dl_map_object_from_fd): Pass namespace id to lose.
11604         Added static probe "map_start".
11605         (open_verify): Pass namespace id to lose.
11606         * elf/dl-open.c: Include <stap-probe.h>.
11607         (dl_open_worker) Added static probes "map_complete", "reloc_start"
11608         and "reloc_complete".
11609         * elf/dl-close.c: Include <stap-probe.h>.
11610         (_dl_close_worker): Added static probes "unmap_start" and
11611         "unmap_complete".
11612         * elf/rtld-debugger-interface.txt: New file documenting the above.
11613
11614 2012-07-26  Roland McGrath  <roland@hack.frob.com>
11615
11616         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
11617         rather than a string variable.
11618         * sunrpc/rpc_main.c (h_output): Likewise.
11619         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
11620
11621 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
11622
11623         * inet/check_native.c: New file.
11624
11625 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
11626
11627         [BZ #13629]
11628         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
11629         if larger part has absolute value 1.0.
11630         * math/s_clog10.c (__clog10): Likewise.
11631         * math/s_clog10f.c (__clog10f): Likewise.
11632         * math/s_clog10l.c (__clog10l): Likewise.
11633         * math/s_clogf.c (__clogf): Likewise.
11634         * math/s_clogl.c (__clogl): Likewise.
11635         * math/libm-test.inc (clog_test): Add more tests.
11636         (clog10_test): Likewise.
11637         * sysdeps/i386/fpu/libm-test-ulps: Update.
11638         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11639
11640         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
11641         (pltexit): Likewise.
11642         (La_regs): Likewise.
11643         (La_retval): Likewise.
11644         (int_retval): Likewise.
11645         Update #error for removed macros to refer only to definitions in
11646         tst-audit.h.
11647         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
11648         macro.
11649         (pltexit): Likewise.
11650         (La_regs): Likewise.
11651         (La_retval): Likewise.
11652         (int_retval): Likewise.
11653         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
11654         macro.
11655         (pltexit): Likewise.
11656         (La_regs): Likewise.
11657         (La_retval): Likewise.
11658         (int_retval): Likewise.
11659         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
11660         macro.
11661         (pltexit): Likewise.
11662         (La_regs): Likewise.
11663         (La_retval): Likewise.
11664         (int_retval): Likewise.
11665         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
11666         macro.
11667         (pltexit): Likewise.
11668         (La_regs): Likewise.
11669         (La_retval): Likewise.
11670         (int_retval): Likewise.
11671         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
11672         macro.
11673         (pltexit): Likewise.
11674         (La_regs): Likewise.
11675         (La_retval): Likewise.
11676         (int_retval): Likewise.
11677         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
11678         macro.
11679         (pltexit): Likewise.
11680         (La_regs): Likewise.
11681         (La_retval): Likewise.
11682         (int_retval): Likewise.
11683         * sysdeps/generic/tst-audit.h: Update comment to refer only to
11684         macro definitions in tst-audit.h.
11685         * sysdeps/i386/tst-audit.h: New file.
11686         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
11687         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
11688         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
11689         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
11690         * sysdeps/sh/tst-audit.h: Likewise.
11691         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
11692         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
11693         * sysdeps/x86_64/tst-audit.h: Likewise.
11694
11695 2012-07-26  Andreas Jaeger  <aj@suse.de>
11696
11697         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
11698         ptrace.
11699
11700         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
11701         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
11702         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
11703         PTRACE_O_MASK.
11704         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
11705         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
11706         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
11707
11708         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
11709         value.
11710
11711         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
11712         _sigsys.
11713         (si_call_addr, si_syscall, si_arch): Define new macro.
11714         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
11715         _sigsys.
11716         (si_call_addr, si_syscall, si_arch): Define new marcro.
11717         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
11718         _sigsys.
11719         (si_call_addr, si_syscall, si_arch): Define new macro.
11720         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
11721         _sigsys.
11722         (si_call_addr, si_syscall, si_arch): Define new macro.
11723
11724 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
11725
11726         [BZ #13717]
11727         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
11728         Change to 2.4.21 where previously 2.4.1.
11729         * sysdeps/unix/sysv/linux/configure: Regenerated.
11730         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
11731         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
11732         Linux kernel version.
11733         (__ASSUME_STD_AUXV): Remove.
11734         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
11735         kernel version.
11736         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
11737         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
11738         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
11739         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
11740         (__ASSUME_NETLINK_SUPPORT): Likewise.
11741         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
11742         (__no_netlink_support): Remove conditional definition.
11743         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
11744         Remove.
11745         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
11746         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
11747         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
11748         (if_nameindex_ioctl): Remove.
11749         (if_nameindex_netlink): Do not handle __no_netlink_support.
11750         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
11751         code.
11752         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
11753         Remove conditional code.
11754         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
11755         code.
11756         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
11757         unconditional.
11758         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
11759         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
11760         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
11761         Remove.
11762         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
11763         [!__ASSUME_STD_AUXV]: Remove conditional code.
11764         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
11765         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
11766         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
11767         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
11768         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
11769         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
11770         code.
11771         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
11772         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
11773         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
11774         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
11775         conditional code.
11776         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
11777         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
11778         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
11779         code.
11780         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
11781         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
11782         conditional code.
11783         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
11784         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
11785         code unconditional.
11786         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
11787         conditional code.
11788         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
11789         unconditional.
11790         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
11791         conditional code.
11792         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
11793         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
11794         unconditional.
11795         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
11796         conditional code.
11797         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
11798         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
11799         code unconditional.
11800         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
11801         conditional code.
11802         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
11803         unconditional.
11804         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
11805         conditional code.
11806         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
11807         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
11808         code unconditional.
11809         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
11810         conditional code.
11811         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
11812         unconditional.
11813         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
11814         conditional code.
11815
11816 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
11817
11818         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
11819         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
11820         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
11821         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
11822         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
11823         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
11824         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
11825         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
11826         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
11827         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
11828         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
11829         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
11830         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
11831         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
11832         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
11833         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
11834         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
11835         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
11836         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
11837         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
11838         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
11839         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
11840         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
11841
11842 2012-07-25  Florian Weimer  <fweimer@redhat.com>
11843
11844         * Versions.def: Add GLIBC_2.17.
11845         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
11846         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
11847         Introduce __libc_secure_getenv.
11848         * stdlib/Versions (2.17): Add secure_getenv
11849         (GLIBC_PRIVATE): Add __libc_secure_getenv.
11850         * stdlib/secure-getenv.c: Rename __secure_getenv to
11851         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
11852         symbol __secure_getenv for GLIBC_2.0.
11853         * stdlib/tst-secure-getenv.c: New.
11854         * stdlib/Makefile (tests): Add testcase.
11855         * manual/startup.texi (Environment Access): Document
11856         secure_getenv.
11857         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
11858         __libc_secure_getenv.
11859         * inet/ruserpass.c (ruserpass): Likewise.
11860         * malloc/mtrace.c (mtrace): Likewise.
11861         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
11862         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
11863         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
11864         * sysdeps/posix/tempname.c: Likewise.  Evaluate
11865         HAVE_SECURE_GETENV.
11866         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
11867         __secure_getenv to __libc_secure_getenv.
11868         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
11869         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
11870         Likewise.
11871         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
11872         Likewise.
11873         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
11874         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
11875         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
11876         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
11877         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
11878         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
11879         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
11880
11881 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
11882
11883         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
11884         (struct La_i86_retval): Likewise.
11885         (struct La_x86_64_regs): Likewise.
11886         (struct La_x86_64_retval): Likewise.
11887         (struct La_x32_regs): Likewise.
11888         (struct La_x32_retval): Likewise.
11889         (struct La_ppc32_regs): Likewise.
11890         (struct La_ppc32_retval): Likewise.
11891         (struct La_ppc64_regs): Likewise.
11892         (struct La_ppc64_retval): Likewise.
11893         (struct La_sh_regs): Likewise.
11894         (struct La_sh_retval): Likewise.
11895         (struct La_s390_32_regs): Likewise.
11896         (struct La_s390_32_retval): Likewise.
11897         (struct La_s390_64_regs): Likewise.
11898         (struct La_s390_64_retval): Likewise.
11899         (struct La_sparc32_regs): Likewise.
11900         (struct La_sparc32_retval): Likewise.
11901         (struct La_sparc64_regs): Likewise.
11902         (struct La_sparc64_retval): Likewise.
11903         (struct audit_ifaces): Remove architecture-specific pltenter and
11904         pltexit members.
11905         * sysdeps/i386/ldsodefs.h: New file.
11906         * sysdeps/powerpc/ldsodefs.h: Likewise.
11907         * sysdeps/s390/ldsodefs.h: Likewise.
11908         * sysdeps/sh/ldsodefs.h: Likewise.
11909         * sysdeps/sparc/ldsodefs.h: Likewise.
11910         * sysdeps/x86_64/ldsodefs.h: Likewise.
11911
11912 2012-07-25  Marek Polacek  <polacek@redhat.com>
11913
11914         [BZ #6808]
11915         * math/libm-test.inc (yn_test): Add another test.
11916         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
11917         to ERANGE when the result is +-Inf.
11918         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
11919         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
11920         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
11921         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
11922
11923 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
11924
11925         * conform/data/time.h-data (NULL): Use macro-constant.  Require
11926         equal to 0.
11927         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
11928         clock_t.
11929         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
11930
11931 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
11932
11933         * configure.in <sysdeps resolving>: Correct printing
11934         Implies_before.
11935         * configure: Regenerate.
11936
11937 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
11938
11939         * math/w_ilogb.c: Include <limits.h>.
11940         * math/w_ilogbl.c: Likewise.
11941
11942 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
11943
11944         * manual/lang.texi (__va_copy): Document primarily as ISO C99
11945         va_copy.  Document allowing for unavailable va_copy only as
11946         pre-C99 compatibility.
11947         * manual/string.texi (Copying and Concatenation): Use va_copy
11948         instead of __va_copy in concat example.
11949
11950 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
11951
11952         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
11953         (__sendto): Use create_address_port.  Initialize APORT and deallocate
11954         it if not null.
11955
11956         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
11957         with O_NOLINK passed to __file_name_lookup.
11958
11959         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
11960         with O_NOLINK passed to __file_name_lookup.
11961
11962         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
11963         negative N or less than NGIDS.
11964
11965         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
11966         type to string_t.  Set ERANGE as errno and return it if NAME is not big
11967         enough.  Use memcpy instead of strncpy.
11968
11969 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
11970
11971         * elf/Makefile (check-data): Remove.
11972         (localplt.data): New vpath directive.
11973         ($(objpfx)check-localplt.out): Use localplt.data from vpath
11974         instead of $(check-data).
11975         * scripts/data/localplt-generic.data: Move to ...
11976         * sysdeps/generic/localplt.data: ... here.
11977         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
11978         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
11979         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
11980         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
11981         ... here.
11982         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
11983         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
11984         ... here.
11985         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
11986         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
11987         ... here.
11988         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
11989         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
11990         ... here.
11991         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
11992         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
11993         ... here.
11994         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
11995         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
11996         ... here.
11997
11998 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11999
12000         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
12001         PPC32 and PPC64 files.
12002         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
12003         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
12004
12005 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12006
12007         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
12008         __makecontext_ret to ...
12009         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
12010         ... here and call exit if uc_link is NULL.  New file.
12011         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
12012         __makecontext_ret.S.
12013         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
12014         __makecontext_ret to ...
12015         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
12016         ... here and call exit if uc_link is NULL.  New file.
12017         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
12018         __makecontext_ret.S.
12019
12020 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12021
12022         * elf/elf.h (R_390_IRELATIVE): New definition.
12023         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
12024         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
12025         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
12026         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
12027         (elf_machine_lazy_rel): Likewise.
12028         * sysdeps/s390/dl-irel.h: New file.
12029         * sysdeps/s390/s390-64/memcpy.S: New asm code.
12030         * sysdeps/s390/s390-64/memset.S: New asm code.
12031         * sysdeps/s390/s390-64/memcmp.S: New asm code.
12032         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
12033         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
12034         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
12035         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
12036         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
12037         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
12038         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
12039         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
12040         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
12041         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
12042         * sysdeps/s390/s390-32/memcpy.S: New asm code.
12043         * sysdeps/s390/s390-32/memset.S: New asm code.
12044         * sysdeps/s390/s390-32/memcmp.S: New asm code.
12045
12046 2012-07-17  Marek Polacek  <polacek@redhat.com>
12047
12048         [BZ #14349]
12049         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
12050         * sysdeps/s390/s390-64/configure.in: Likewise.
12051         * sysdeps/sparc/configure.in: Likewise.
12052         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
12053         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
12054         * sysdeps/i386/configure.in: Likewise.
12055         * sysdeps/x86_64/configure.in: Likewise.
12056         * sysdeps/sh/configure.in: Likewise.
12057         * sysdeps/s390/s390-32/configure: Regenerated.
12058         * sysdeps/s390/s390-64/configure: Likewise.
12059         * sysdeps/x86_64/configure: Likewise.
12060         * sysdeps/sh/configure: Likewise.
12061         * sysdeps/powerpc/powerpc64/configure: Likewise.
12062         * sysdeps/powerpc/powerpc32/configure: Likewise.
12063         * sysdeps/sparc/configure: Likwise.
12064         * sysdeps/i386/configure: Likewise.
12065
12066         * elf/dl-open.c: Comment fixes.
12067
12068 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
12069
12070         * Makefile [CXX] (check-data): Remove.
12071         [CXX] (c++-types.data): New vpath directive.
12072         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
12073         vpath.  Do not allow for C++ type data being missing.
12074         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
12075         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
12076         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
12077         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
12078         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
12079         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
12080         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
12081         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
12082         ... here.
12083         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
12084         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
12085         ... here.
12086         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
12087         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
12088         ... here.
12089         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
12090         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
12091         ... here.
12092         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
12093         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
12094         ... here.
12095         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
12096         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
12097         ... here.
12098         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
12099         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
12100         ... here.
12101         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
12102         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
12103
12104         * elf/tls-macros.h (TLS_LE): Move architecture-specific
12105         definitions to architecture-specific files.
12106         (TLS_IE): Likewise.
12107         (TLS_LD): Likewise.
12108         (TLS_GD): Likewise.
12109         * sysdeps/i386/tls-macros.h: New file.
12110         * sysdeps/powerpc/tls-macros.h: Likewise.
12111         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
12112         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
12113         * sysdeps/sh/tls-macros.h: Likewise.
12114         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
12115         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
12116         * sysdeps/x86_64/tls-macros.h: Likewise.
12117
12118 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
12119
12120         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
12121         zero value for regular exit case.
12122
12123         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
12124         (__start_context): Preserve zero value for regular exit case.
12125
12126 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
12127             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12128
12129         * manual/setjmp.texi (setcontext): Clarify normal process
12130         termination when uc_link is the null pointer.
12131         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
12132         exit call.
12133
12134 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
12135
12136         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
12137         preprocessor.  Test for each exception mask separately.
12138
12139 2012-07-16  Andreas Jaeger  <aj@suse.de>
12140
12141         * po/ru.po: Update from translation team.
12142
12143 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
12144
12145         * conform/data/string.h-data (NULL): Use macro-constant.  Require
12146         equal to 0.
12147         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
12148         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
12149         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
12150         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
12151         [ISO || ISO99 || ISO11] (*_t): Do not allow.
12152
12153 2012-07-13  Andreas Jaeger  <aj@suse.de>
12154
12155         * po/fr.po: Update from translation team.
12156
12157 2012-07-12  Marek Polacek  <polacek@redhat.com>
12158
12159         [BZ #14173]
12160         * math/libm-test.inc (yn_test): Add test for BZ #14173.
12161         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
12162         loop condition.
12163
12164 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
12165
12166         [BZ #13717]
12167         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
12168         Change to 2.4.1 where previously 2.4.0.
12169         * sysdeps/unix/sysv/linux/configure: Regenerated.
12170         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
12171         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
12172         version.
12173         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
12174         (__ASSUME_AT_CLKTCK): Remove.
12175         (__ASSUME_AT_PAGESIZE): Likewise.
12176         (__ASSUME_AT_XID): Likewise.
12177         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
12178         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
12179         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
12180         unconditionally.
12181         (HAVE_AUX_PAGESIZE): Likewise.
12182         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
12183         [__ASSUME_AT_CLKTCK]: Make code unconditional.
12184         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
12185
12186 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
12187
12188         [BZ #14307]
12189         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
12190         the temporary buffer used to invoke __gethostbyname2_r,
12191         __gethostbyaddr_r and gethostbyname4_r to make room for struct
12192         host_data / struct gaih_addrtuple.
12193         * resolv/nss_dns/dns-host.c (global scope): Move definition of
12194         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
12195         header file nss/nsswitch.h.
12196         * nss/nsswitch.h (global scope): Add definition of implementation
12197         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
12198         resolv/nss_dns/dns-host.c).
12199
12200 2012-07-11  Andreas Jaeger  <aj@suse.de>
12201
12202         * po/fr.po: Update from translation team.
12203
12204         * po/sv.po: Update from translation team
12205         * po/fr.po: Another update from translation team.
12206
12207 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12208
12209         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
12210         for subnormals or multiply small sinh result by itself.
12211         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
12212         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12213
12214 2012-07-11  David S. Miller  <davem@davemloft.net>
12215
12216         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12217
12218 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
12219
12220         [BZ #14347]
12221         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
12222         (INTERNAL_MARK): Shift it here.
12223
12224 2012-07-10  Marek Polacek  <polacek@redhat.com>
12225
12226         [BZ #14151]
12227         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
12228         libc_cv_asm_global_directive with .globl.
12229         * configure: Regenerated.
12230         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
12231         with .globl.
12232         * sysdeps/i386/configure: Regenerated.
12233         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
12234         with .globl.
12235         * sysdeps/x86_64/configure: Regenerated.
12236         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
12237         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
12238         * elf/tst-unique2mod2.c: Likewise.
12239         * elf/tst-unique2mod1.c: Likewise.
12240         * elf/tst-unique1mod2.c: Likewise.
12241         * elf/tst-unique1mod1.c: Likewise.
12242         * sysdeps/s390/s390-32/sysdep.h: Likewise.
12243         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
12244         * sysdeps/s390/s390-64/sysdep.h: Likewise.
12245         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
12246         * sysdeps/mach/sysdep.h: Likewise.
12247         * sysdeps/i386/sysdep.h: Likewise.
12248         * sysdeps/i386/i386-mcount.S: Likewise.
12249         * sysdeps/x86_64/_mcount.S: Likewise.
12250         * sysdeps/x86_64/sysdep.h: Likewise.
12251         * sysdeps/sh/_mcount.S: Likewise.
12252         * sysdeps/sh/sysdep.h: Likewise.
12253         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
12254         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
12255         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
12256         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
12257         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
12258         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
12259         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
12260         * locale/localeinfo.h: Likewise.
12261         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
12262         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
12263
12264 2012-07-09  Roland McGrath  <roland@hack.frob.com>
12265
12266         [BZ #14336]
12267         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
12268         system".
12269         * manual/message.texi (The Uniforum approach): Likewise.
12270         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
12271         (glibc iconv Implementation): Likewise.
12272
12273 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
12274
12275         [BZ #14337]
12276         * math/s_clog.c (__clog): Avoid scaling a value down where that
12277         could result in underflow.
12278         * math/s_clog10.c (__clog10): Likewise.
12279         * math/s_clog10f.c (__clog10f): Likewise.
12280         * math/s_clog10l.c (__clog10l): Likewise.
12281         * math/s_clogf.c (__clogf): Likewise.
12282         * math/s_clogl.c (__clogl): Likewise.
12283         * math/libm-test.inc (clog_test): Add more tests.
12284         (clog10_test): Likewise.
12285         * sysdeps/i386/fpu/libm-test-ulps: Update.
12286         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12287
12288 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
12289
12290         [BZ #14283]
12291         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
12292         by 7 not 8 to examine high bit of fractional part.
12293
12294         [BZ #14042]
12295         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
12296         for call to __mcount_internal.
12297         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
12298         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
12299         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
12300
12301 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
12302
12303         [BZ #14154]
12304         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
12305         approximation for values within 0x1p-13f of an odd multiple of
12306         pi/4.
12307         * math/libm-test.inc (tan_test): Do not allow spurious underflow
12308         exception.  Add more tests.
12309         * sysdeps/i386/fpu/libm-test-ulps: Update.
12310
12311         [BZ #6778]
12312         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
12313         inputs and return -1 for them.  Do not check for +Inf in case not
12314         reachable for +Inf.
12315         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
12316         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
12317         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
12318         and return -1 for them.  Do not check for +Inf in case not
12319         reachable for +Inf.
12320         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
12321         define.
12322         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
12323         and return -1 for them.  Do not check for +Inf in case not
12324         reachable for +Inf.
12325         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
12326         spurious underflow.
12327         * sysdeps/i386/fpu/libm-test-ulps: Update.
12328         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12329
12330 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
12331
12332         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
12333
12334 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
12335
12336         [BZ #14157]
12337         [BZ #14331]
12338         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
12339         could result in spurious underflow.  Scale down values above
12340         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
12341         * math/s_csqrtf.c (__csqrtf): Likewise.
12342         * math/s_csqrtl.c (__csqrtl): Likewise.
12343         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
12344         spurious underflow.
12345         * sysdeps/i386/fpu/libm-test-ulps: Update.
12346         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12347
12348 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
12349
12350         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
12351         xopen-msg.sed.
12352         * catgets/xopen-msg.awk: New file.
12353         * catgets/xopen-msg.sed: Removed.
12354
12355         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
12356         po2text.sed.
12357         * intl/po2test.awk: New file.
12358         * intl/po2test.sed: Removed.
12359
12360 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
12361
12362         [BZ #14328]
12363         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
12364         or multiply small sinh result by itself.
12365         * math/s_ctanf.c (__ctanf): Likewise.
12366         * math/s_ctanh.c (__ctanh): Likewise.
12367         * math/s_ctanhf.c (__ctanhf): Likewise.
12368         * math/s_ctanhl.c (__ctanhl): Likewise.
12369         * math/s_ctanl.c (__ctanl): Likewise.
12370         * math/libm-test.inc (ctan_test_tonearest): New function.
12371         (ctan_test_towardzero): Likewise.
12372         (ctan_test_downward): Likewise.
12373         (ctan_test_upward): Likewise.
12374         (ctanh_test_tonearest): Likewise.
12375         (ctanh_test_towardzero): Likewise.
12376         (ctanh_test_downward): Likewise.
12377         (ctanh_test_upward): Likewise.
12378         (main): Call these new functions.
12379         * sysdeps/i386/fpu/libm-test-ulps: Update.
12380         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12381
12382 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
12383
12384         * .gitignore: Delete /ports entry.
12385
12386 2012-07-03  Andreas Jaeger  <aj@suse.de>
12387
12388         * po/bg.po: Update from translation team.
12389         * po/cs.po: Likewise.
12390         * po/de.po: Likewise.
12391         * po/hr.po: Likewise.
12392         * po/nl.pl: Likewise.
12393         * po/pl.po: Likewise.
12394         * po/vi.po: Likewise.
12395
12396 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
12397
12398         * Makeconfig [!+link] (+link-before-libc): New variable.
12399         [!+link] (+link-after-libc): Likewise.
12400         [!+link] (+link-tests): Likewise.
12401         [!+link] (+link): Define in terms of $(+link-before-libc) and
12402         $(+link-after-libc).
12403         [!+link-static] (+link-static-before-libc): New variable.
12404         [!+link-static] (+link-static-after-libc): Likewise.
12405         [!+link-static] (+link-static-tests): Likewise.
12406         [!+link-static] (+link-static): Define in terms of
12407         $(+link-static-before-libc) and $(+link-static-after-libc).
12408         [build-shared] (link-libc-before-gnulib): New variable.
12409         [build-shared] (link-libc-tests): Likewise.
12410         [build-shared] (link-libc): Define in terms of
12411         $(link-libc-before-gnulib).
12412         [!build-shared] (link-libc-tests): New variable.
12413         (link-libc-static-tests): New variable.
12414         [!gnulib] (gnulib-arch): New variable.
12415         [!gnulib] (gnulib-tests): Likewise.
12416         [!gnulib] (static-gnulib-arch): Likewise.
12417         [!gnulib] (static-gnulib-tests): Likewise.
12418         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
12419         Define with "=" instead of ":=".
12420         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
12421         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
12422         * Rules (binaries-all-notests): New variable.
12423         (binaries-all-tests): Likewise.
12424         (binaries-static-notests): Likewise.
12425         (binaries-static-tests): Likewise.
12426         (binaries-all): Define using $(binaries-all-notests) and
12427         $(binaries-all-tests).
12428         (binaries-static): Define using $(binaries-static-notests) and
12429         $(binaries-static-tests).
12430         (binaries-shared-tests): New variable.
12431         (binaries-shared-notests): Likewise.
12432         (binaries-shared): Remove variable.
12433         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
12434         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
12435         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
12436         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
12437         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
12438         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
12439         * elf/Makefile (sln-modules): New variable.
12440         (extra-objs): Add $(sln-modules:=.o).
12441         (ldconfig-modules): Add static-stubs.
12442         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
12443         * elf/static-stubs.c: New file.
12444
12445         [BZ #14283]
12446         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
12447         by 7 not 8 to examine high bit of fractional part.  Use volatile
12448         variables when splitting into final array of floats if
12449         __FLT_EVAL_METHOD__ != 0.
12450         * math/libm-test.inc (cos_test): Add another test.
12451         (sin_test): Likewise.
12452         * sysdeps/i386/fpu/libm-test-ulps: Update.
12453
12454         [BZ #14273]
12455         * math/libm-test.inc (cosh_test): Add more tests.
12456
12457         * version.h (RELEASE): Set to "development".
12458         (VERSION): Set to "2.16.90".
12459
12460 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
12461
12462         * NEWS: Update copyright. Remove last-updated date.
12463         Mention math library bug fixes and timezone data changes.
12464         * README: Mention GNU/Hurd, x32, and HPPA support status.
12465
12466 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
12467
12468         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
12469
12470 2012-06-27  Andreas Jaeger  <aj@suse.de>
12471
12472         * manual/contrib.texi (Contributors): Add Samuel Thibault.
12473
12474 2012-06-25  Andreas Jaeger  <aj@suse.de>
12475
12476         * sysdeps/s390/fpu/libm-test-ulps: Update.
12477
12478 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
12479             Thomas Schwinge  <thomas@codesourcery.com>
12480
12481         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
12482         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
12483         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
12484         fanotify_mark.
12485
12486 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
12487
12488         * sysdeps/mach/start.c: Remove file.
12489         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
12490         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
12491         * sysdeps/sh/init-first.c: Likewise.
12492
12493         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
12494         registers for frame unwinding purposes, add CFI directives.
12495         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
12496         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
12497         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
12498         Likewise.
12499
12500         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
12501         __fortify_fail returning.
12502         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
12503
12504         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
12505         sysdeps/sh/____longjmp_chk.S.
12506         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
12507         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
12508         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
12509         (gen-as-const-headers): Append sigaltstack-offsets.sym.
12510
12511         * sysdeps/sh/abort-instr.h: New file.
12512         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
12513         process in case exit returns.
12514
12515         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
12516         initialize the GOT register before use.
12517
12518         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
12519         calculation of ARGC > 4.
12520
12521         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
12522         meaningful names to some local labels.
12523
12524 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
12525             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
12526
12527         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
12528         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
12529         (__arch_compare_and_exchange_val_16_acq): Likewise.
12530         (__arch_compare_and_exchange_val_32_acq): Likewise.
12531         (atomic_exchange_and_add): Fix gUSA sequence.
12532         (atomic_add): Likewise.
12533         (atomic_add_negative): Likewise.
12534         (atomic_add_zero): Likewise.
12535         (atomic_bit_test_set): Likewise.
12536
12537 2012-06-22  Andreas Schwab  <schwab@redhat.com>
12538
12539         [BZ #13579]
12540         * include/link.h (struct link_map): Add l_free_initfini.
12541         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
12542         l_initfini.
12543         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
12544         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
12545         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
12546         set.
12547
12548 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
12549
12550         * configure.in: Use AC_LANG_SOURCE.
12551         * configure: Regenerate.
12552
12553 2012-06-22  Roland McGrath  <roland@hack.frob.com>
12554
12555         * configure.in (libc_cv_localstatedir): New substituted variable.
12556         * configure: Regenerated.
12557         * config.make.in (localstatedir): New variable, substituted from
12558         libc_cv_localstatedir.
12559         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
12560         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
12561         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
12562         * sysdeps/gnu/configure: Regenerated.
12563
12564 2012-06-21  Jeff Law  <law@redhat.com>
12565
12566         [BZ #14277]
12567         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
12568         free.  Simplify list management for _LIBC case.
12569
12570 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
12571
12572         [BZ #14273]
12573         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
12574         Clear sign bit of 64-bit integer value before comparing against
12575         overflow value.
12576
12577         * sysdeps/mach/configure: Regenerated.
12578
12579 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
12580
12581         [BZ #14278]
12582         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
12583
12584 2012-06-21  Jeff Law  <law@redhat.com>
12585
12586         [BZ #13882]
12587         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
12588         uint16_t for elements in the "seen" array to avoid char overflows.
12589         * elf/dl-fini.c (_dl_sort_fini): Likewise.
12590         * elf/dl-open.c (dl_open_worker): Likewise.
12591
12592 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
12593
12594         * scripts/list-sources.sh: Scan PORTS for translations.
12595         * po/libc.pot: Regenerated.
12596
12597 2012-06-21  Andreas Jaeger  <aj@suse.de>
12598
12599         [BZ #12194]
12600         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
12601         warning.
12602         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
12603         * bits/byteswap-16.h (__bswap_16): Likewise.
12604         * bits/byteswap.h (__bswap_constant_16): Likewise.
12605
12606 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
12607
12608         [BZ #14117]
12609         * sysdeps/i386/fpu_control.h: Removed.
12610         * sysdeps/x86_64/fpu_control.h: Moved to ...
12611         * sysdeps/x86/fpu_control.h: Here.
12612
12613         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
12614         (_FPU_SETCW): Likewise.
12615
12616 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
12617
12618         [BZ #14117]
12619         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
12620         * sysdeps/x86/fpu/bits/mathinline.h: This.
12621         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
12622
12623         [BZ #14050]
12624         [BZ #14117]
12625         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
12626         functions if __x86_64__ is defined.
12627
12628 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
12629
12630         * string/endian.h: Add !__ASSEMBLER__ condition for including
12631         conversion interfaces.
12632
12633 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
12634
12635         [BZ #14241]
12636         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
12637         of ABS(x) in calculating zero to negative powers other than odd
12638         integers.
12639         * math/libm-test.inc (pow_test): Add more tests.
12640
12641 2012-06-15  Andreas Jaeger  <aj@suse.de>
12642
12643         * manual/contrib.texi (Contributors): Update entry of Liubov
12644         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
12645         Machado Filho.
12646
12647 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
12648
12649         * string/string.h: Add __wur to GNU version of strerror_r.
12650
12651 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
12652
12653         [BZ #14229]
12654         * string/Makefile (tests): Add tst-strtok_r.
12655         * string/tst-strtok_r.c: New file.
12656         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
12657         RAX_LP/RDX_LP on SAVE_PTR.
12658
12659 2012-06-14  Roland McGrath  <roland@hack.frob.com>
12660
12661         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
12662
12663 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
12664
12665         * libm_test.inc (csqrt_test): Allow more spurious underflow
12666         exceptions.
12667         (j0_test): Likewise.
12668         (j1_test): Likewise.
12669         (y0_test): Likewise.
12670         (y1_test): Likewise.
12671
12672 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
12673
12674         * po/Makefile (libc.pot): Use UTF-8 charset.
12675
12676 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
12677
12678         [BZ #14210]
12679         Suppress sign-conversion warning from FD_SET.
12680         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
12681         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
12682         not unsigned long int.
12683         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
12684
12685 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
12686
12687         [BZ #14050]
12688         [BZ #14117]
12689         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
12690         __extern_always_inline instead of __extern_inline.
12691         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
12692         (__signbit): Likewise.
12693         (__signbitl): Support C++ namespace.
12694         (lrintf): New inline function.
12695         (lrint): Likewise.
12696         (llrintf): Likewise.
12697         (llrint): Likewise.
12698         (fmaxf): Likewise.
12699         (fmax): Likewise.
12700         (fminf): Likewise.
12701         (fmin): Likewise.
12702         (rint): Likewise.
12703         (rintf): Likewise.
12704         (ceil): Likewise.
12705         (ceilf): Likewise.
12706         (floor): Likewise.
12707         (floorf): Likewise.
12708         (nearbyint): Likewise.
12709         (nearbyintf): Likewise.
12710
12711 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
12712
12713         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
12714         non-default versions.
12715
12716 2012-06-11  Roland McGrath  <roland@hack.frob.com>
12717
12718         [BZ #14218]
12719         * manual/argp.texi (Argp): Reword argp_parse description slightly.
12720
12721 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
12722
12723         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
12724         (FE_UPWARD, FE_DOWNWARD): Don't define.
12725         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
12726         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
12727
12728         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
12729         reading it.
12730         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
12731         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
12732
12733 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
12734
12735         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
12736         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
12737         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
12738         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
12739
12740 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
12741
12742         [BZ #14117]
12743         * sysdeps/i386/fpu/bits/fenv.h: Removed.
12744         * sysdeps/i386/fpu/Implies: New file.
12745         * sysdeps/x86_64/fpu/Implies: Likewise.
12746         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
12747         * sysdeps/x86/fpu/bits/fenv.h: This.
12748
12749         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
12750         __SSE_MATH__.
12751
12752 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
12753
12754         [BZ #14134]
12755         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
12756         character 0xffff that matches the last element of the
12757         conversion table.
12758
12759 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12760
12761         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
12762         fmodl commit.
12763
12764 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12765
12766         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
12767         values higher than 25.6283.
12768
12769 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12770
12771         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
12772         subnormal exponent extraction and add some __builtin_expect.
12773         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
12774         Fix for subnormal mantissa calculation.
12775
12776 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
12777
12778         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
12779         cpu2 is -1 and errno is not ENOSYS.
12780
12781 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
12782
12783         [BZ #14117]
12784         * sysdeps/i386/i486/bits/string.h: Renamed to ...
12785         * sysdeps/x86/bits/string.h: This.
12786         * sysdeps/x86_64/bits/string.h: Removed.
12787
12788         * sysdeps/i386/i486/bits/string.h: Define inline functions only
12789         if not compiling for x86-64, but compiling for >= i486.
12790
12791         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
12792         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
12793
12794         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
12795         New macro from Linux kernel 3.4.0.
12796         (FP_XSTATE_MAGIC2): Likewise.
12797         (FP_XSTATE_MAGIC2_SIZE): Likewise.
12798         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
12799         (struct _fpx_sw_bytes): New struct.
12800         (struct _xsave_hdr): Likewise.
12801         (struct _ymmh_state): Likewise.
12802         (struct _xstate): Likewise.
12803
12804         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
12805         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
12806         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
12807         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
12808         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
12809         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
12810
12811         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
12812         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
12813         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
12814         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
12815         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
12816         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
12817
12818 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
12819
12820         [BZ #13743]
12821         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
12822         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
12823         (sysdep_headers): Include sys/platform/ppc.h.
12824         * sysdeps/powerpc/test-gettimebase.c: Test for
12825         __ppc_get_timebase() to catch future ISA opcode/insn changes.
12826         * manual/Makefile (appendices): Include platform.texi.
12827         * manual/contrib.texi (Contributors): Update @node pointers.
12828         * manual/maint.texi (Maintenance): Likewise.
12829         (Platform): New node.
12830         * manual/platform.texi: New file.  Document the new features.
12831
12832 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
12833             Jakub Jelinek  <jakub@redhat.com>
12834
12835         [BZ #14188]
12836         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
12837         where __builtin_expect is unavailable.
12838
12839 2012-06-03  David S. Miller  <davem@davemloft.net>
12840
12841         * stdlib/longlong.h: Updated from GCC.
12842
12843 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
12844
12845         [BZ #14042]
12846         * sysdeps/powerpc/powerpc32/mcount.c: New file.
12847         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
12848         __mcount_internal.
12849         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
12850         (GLIBC_2.16): Likewise.
12851
12852 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
12853
12854         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
12855
12856 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
12857
12858         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
12859         (default-abi): New variable.
12860         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
12861         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
12862         variable.
12863         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
12864         Likewise.
12865         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
12866         Likewise.
12867         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
12868         Likewise.
12869
12870         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
12871         definition.  Document in comment.
12872
12873 2012-06-01  David S. Miller  <davem@davemloft.net>
12874
12875         * stdlib/longlong.h: Updated from GCC.
12876
12877 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
12878
12879         [BZ #14117]
12880         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
12881         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
12882         sys/debugreg.h sys/io.h here.
12883         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
12884         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
12885         sys/io.h.
12886         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
12887         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
12888         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
12889         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
12890         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
12891         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
12892
12893         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
12894         Define only if __x86_64__ is defined.
12895
12896 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
12897
12898         [BZ #14048]
12899         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
12900         Use int64_t for variable i.
12901         * math/libm-test.inc (fmod_test): Add more tests.
12902
12903         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
12904         z computation is not scheduled after fetestexcept.
12905         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
12906         Use math_force_eval instead of asm to ensure calculation scheduled
12907         before exception test.
12908         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
12909         Ensure a1 + u.d computation is not scheduled after fetestexcept.
12910
12911 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
12912
12913         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
12914         computation is not scheduled after fetestexcept.
12915
12916 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
12917
12918         [BZ #14117]
12919         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
12920         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
12921
12922 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12923
12924         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
12925         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
12926
12927 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
12928
12929         [BZ #14117]
12930         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
12931         <bits/wordsize.h>.
12932         (__WCHAR_MIN): Support __WORDSIZE == 64.
12933         (__WCHAR_MAX): Likewise.
12934
12935         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
12936         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
12937
12938         [BZ #14183]
12939         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
12940         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
12941
12942         [BZ #14117]
12943         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
12944         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
12945
12946         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
12947         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
12948
12949         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
12950         Defined to 1 if __x86_64__ isn't defined.
12951         (_STAT_VER_LINUX_OLD): New.
12952         (st_atime): Remove duplicate.
12953         (st_mtime): Likewise.
12954         (st_ctime): Likewise.
12955
12956 2012-05-31  David S. Miller  <davem@davemloft.net>
12957
12958         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
12959         entries.
12960
12961 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
12962
12963         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
12964         gen-libm-test.pl.
12965
12966         [BZ #14132]
12967         * elf/dl-reloc.c: Include <_itoa.h>.
12968         (_dl_reloc_bad_type): Remove use of INTUSE.
12969         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
12970         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
12971         * stdio-common/psiginfo.c (psiginfo): Likewise.
12972         * stdio-common/psignal.c (psignal): Likewise.
12973         * string/strsignal.c (strsignal): Likewise.
12974         * include/signal.h (_sys_siglist): Declare hidden proto.
12975         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
12976         INTVARDEF with libc_hidden_data_def.
12977         * stdio-common/itoa-udigits.c: Likewise.
12978         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
12979         (_itoa_lower_digits_internal): Remove declaration.
12980         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
12981         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
12982         (_sys_sigabbrev_internal): Remove aliases.
12983         (_sys_siglist): Define hidden alias.
12984
12985 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
12986
12987         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12988         bits/sysctl.h.
12989
12990 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
12991
12992         [BZ #14117]
12993         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
12994         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
12995
12996         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
12997         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
12998         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
12999         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
13000         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
13001         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
13002
13003         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
13004         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
13005         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
13006
13007         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
13008         with __addr.
13009         (insw): Likewise.
13010         (insl): Likewise.
13011         (outsb): Likewise.
13012         (outsw): Likewise.
13013         (outsl): Likewise.
13014
13015         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
13016         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
13017         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
13018
13019         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
13020         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
13021         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
13022         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
13023         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
13024         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
13025
13026         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
13027         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
13028
13029         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
13030         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
13031
13032         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
13033         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
13034         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
13035
13036         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
13037         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
13038         to ...
13039         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
13040
13041         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
13042         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
13043         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
13044
13045         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
13046         for x86-64.
13047         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
13048
13049 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
13050
13051         * math/math.h (M_El): Use two more decimal places.
13052         (M_LOG2El): Likewise.
13053         (M_LOG10El): Likewise.
13054         (M_LN2l): Likewise.
13055         (M_LN10l): Likewise.
13056         (M_PIl): Likewise.
13057         (M_PI_2l): Likewise.
13058         (M_PI_4l): Likewise.
13059         (M_1_PIl): Likewise.
13060         (M_2_PIl): Likewise.
13061         (M_2_SQRTPIl): Likewise.
13062         (M_SQRT2l): Likewise.
13063         (M_SQRT1_2l): Likewise.
13064
13065 2012-05-31  David S. Miller  <davem@davemloft.net>
13066
13067         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
13068         values between float registers.
13069         * sysdeps/sparc/sparc64/memset.S: Likewise.
13070         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
13071
13072 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
13073
13074         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
13075         -D_FORTIFY_SOURCE=1.
13076         (CPPFLAGS-tst-longjmp_chk.c): Define.
13077         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
13078         (CPPFLAGS-tst-longjmp_chk2.c): Define.
13079         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
13080         CFLAGS-tst-wchar-h.c.
13081
13082 2012-05-31  Marek Polacek  <polacek@redhat.com>
13083
13084         [BZ #14132]
13085         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
13086         __endmntent_internal): Remove declaration.
13087         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
13088         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
13089         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
13090
13091 2012-05-30  David S. Miller  <davem@davemloft.net>
13092
13093         * sysdeps/sparc/sparc32/soft-fp/q_util.c
13094         (___Q_simulate_exceptions): Use real FP ops rather than writing
13095         into the %fsr.
13096         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
13097         Likewise.
13098
13099 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
13100
13101         [BZ #14117]
13102         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
13103         * sysdeps/x86/bits/xtitypes.h: This.
13104
13105         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
13106         * sysdeps/x86/bits/wordsize.h: This.
13107
13108         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
13109         * sysdeps/x86/bits/huge_vall.h: This.
13110
13111         * sysdeps/i386/bits/select.h: Removed.
13112         * sysdeps/x86_64/bits/select.h: Renamed to ...
13113         * sysdeps/x86/bits/select.h: This.
13114
13115         * sysdeps/i386/bits/setjmp.h: Removed.
13116         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
13117         * sysdeps/x86/bits/setjmp.h: This.
13118
13119         * sysdeps/i386/bits/mathdef.h: Removed.
13120         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
13121         * sysdeps/x86/bits/mathdef.h: This.
13122
13123 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
13124
13125         [BZ #14132]
13126         * include/sys/socket.h (__connect_internal)
13127         (__libc_sa_len_internal): Remove declaration.
13128         (__connect, __libc_sa_len): Declare hidden_proto.
13129         (SA_LEN): Remove use of INTUSE.
13130         * socket/connect.c: Add libc_hidden_def.
13131         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
13132         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
13133         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
13134         alias.
13135         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
13136         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
13137         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
13138         of adding _internal alias.
13139
13140 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
13141
13142         [BZ #14117]
13143         * sysdeps/i386/bits/link.h: Removed.
13144         * sysdeps/i386/bits/linkmap.h: Likewise.
13145         * sysdeps/x86_64/bits/link.h: Renamed to ...
13146         * sysdeps/x86/bits/link.h: This.
13147         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
13148         * sysdeps/x86/bits/linkmap.h: This.
13149
13150         * sysdeps/i386/bits/endian.h: Removed.
13151         * sysdeps/x86_64/bits/endian.h: Renamed to ...
13152         * sysdeps/x86/bits/endian.h: This.
13153
13154         * sysdeps/i386/bits/byteswap.h: Removed.
13155         * sysdeps/i386/bits/byteswap-16.h: Likewise.
13156         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
13157         * sysdeps/x86/bits/byteswap.h: This.
13158         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
13159         * sysdeps/x86/bits/byteswap-16.h: This.
13160         * sysdeps/i386/Implies: Add x86.
13161         * sysdeps/x86_64/Implies: Likewise.
13162
13163 2012-05-30  David S. Miller  <davem@davemloft.net>
13164
13165         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
13166         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
13167         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
13168         (FP_TRAPPING_EXCEPTIONS): Define.
13169         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
13170         (FP_TRAPPING_EXCEPTIONS): Define.
13171         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
13172         subnormals only when inexact has been signalled or underflow
13173         exceptions are enabled.
13174         (_FP_PACK_CANONICAL): Likewise.
13175
13176 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
13177
13178         [BZ #14183]
13179         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
13180         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
13181
13182 2012-05-30  Richard Henderson  <rth@twiddle.net>
13183
13184         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
13185         with #ifndef NOT_IN_libc.
13186
13187         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
13188         marked to avoid plt entry.
13189
13190 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
13191
13192         [BZ #14112]
13193         * Makeconfig (default-abi): New macro.
13194         (abi-includes): Likewise.
13195         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
13196         $(abi-$(default-abi)-lib-soname) for soname if defined.
13197         ($(common-objpfx)gnu/lib-names.stmp): Generate from
13198         abi-variants.
13199         * Makefile (installed-stubs): Likewise.
13200         * include/stubs-biarch.h: Removed.
13201         * scripts/lib-names.awk: Only handle one library at a time.
13202         * scripts/soversions.awk: Remove WORDSIZE support.
13203         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
13204         entries.
13205         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
13206         Removed.
13207         (syscall-list-default-condition): Likewise.
13208         (syscall-list-default-condition): Likewise.
13209         (syscall-list-includes): Likewise.
13210         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
13211         syscall-list-* with abi-*.  Handle undefined abi-variants.
13212         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
13213         * sysdeps/unix/sysv/linux/i386/Implies: New file.
13214         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
13215         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
13216         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
13217         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
13218         Removed.
13219         (syscall-list-32-options): Likewise.
13220         (syscall-list-32-condition): Likewise.
13221         (syscall-list-64-options): Likewise.
13222         (syscall-list-64-condition): Likewise.
13223         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
13224         macro.
13225         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
13226         Renamed to ...
13227         (abi-*): This.
13228         (abi-64-ld-soname): New macro.
13229         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
13230         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
13231         Renamed to ...
13232         (abi-*): This.
13233         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
13234         * sysdeps/x86_64/x32/shlib-versions: Likewise.
13235
13236 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
13237
13238         * sysdeps/unix/sysv/linux/kernel-features.h
13239         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
13240         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
13241         include <kernel-features.h>.
13242         [!__NR_ftruncate64]: Remove conditional code.
13243         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
13244         [__NR_ftruncate64]: Make code unconditional.
13245         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
13246         * sysdeps/unix/sysv/linux/truncate64.c: Do not
13247         include <kernel-features.h>.
13248         [!__NR_ftruncate64]: Remove conditional code.
13249         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
13250         [__NR_ftruncate64]: Make code unconditional.
13251         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
13252         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
13253         include <kernel-features.h>.
13254         [!__NR_ftruncate64]: Remove conditional code.
13255         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
13256         [__NR_ftruncate64]: Make code unconditional.
13257         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
13258         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
13259         include <kernel-features.h>.
13260         [!__NR_ftruncate64]: Remove conditional code.
13261         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
13262         [__NR_ftruncate64]: Make code unconditional.
13263         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
13264
13265         * configure.in (libc_cv_fpie): Weaken to a compile test using
13266         LIBC_TRY_CC_OPTION.
13267         * configure: Regenerated.
13268
13269 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13270
13271         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
13272         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
13273         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
13274         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
13275         Refreshed.
13276         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
13277         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
13278         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
13279         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
13280         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
13281         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
13282         Refreshed.
13283
13284 2012-05-27  David S. Miller  <davem@davemloft.net>
13285
13286         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
13287         (___Q_zero): New.
13288         (__Q_simulate_exceptions): Return void.  Change to simulate
13289         exceptions by writing into the %fsr.
13290         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
13291         (__Qp_handle_exceptions): Likewise.
13292         (numbers): Delete.
13293         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
13294         __Qp_handle_exceptions.
13295         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
13296         __Qp_handle_exceptions.
13297         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
13298         as unused and give dummy FP_RND_NEAREST initializer.
13299         (FP_INHIBIT_RESULTS): Define.
13300         (___Q_simulate_exceptions): Update declaration.
13301         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
13302         formatting.
13303         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
13304         as unused and give dummy FP_RND_NEAREST initializer.
13305         (__Qp_handle_exceptions): Update declaration.
13306         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
13307         formatting.
13308
13309 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
13310
13311         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
13312         the temporary FPU control word.
13313         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
13314         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
13315         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
13316         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
13317         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
13318         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
13319         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
13320         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
13321         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
13322         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
13323         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
13324
13325 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
13326
13327         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
13328         fields.
13329
13330 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
13331
13332         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
13333         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
13334         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
13335         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
13336         Likewise.
13337         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
13338         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
13339         Likewise.
13340
13341 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
13342
13343         * po/h.po: Update from translation team.
13344
13345 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
13346
13347         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
13348
13349         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
13350         handling of denormals.
13351         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
13352         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
13353         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
13354         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
13355         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
13356         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
13357         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
13358         Likewise.
13359
13360 2012-05-26  Marek Polacek  <polacek@redhat.com>
13361
13362         [BZ #14152]
13363         * math/libm-test.inc (fma_test): Don't always expect underflow
13364         exception.
13365
13366 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
13367
13368         [BZ #12416]
13369         * elf/tst-execstack.c: Include stackinfo.h.
13370         (do_test): Adjust test case to ensure that pthread_getattr_np
13371         behaviour remains the same after marking stack executable.
13372
13373 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
13374
13375         * sysdeps/unix/sysv/linux/kernel-features.h
13376         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
13377         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
13378         kernel-features.h.
13379         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
13380         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
13381         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
13382         kernel-features.h.
13383         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
13384         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
13385
13386 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
13387
13388         * configure.in: Define the default includes to being none.
13389         * configure: Regenerated.
13390
13391 2012-05-25  Roland McGrath  <roland@hack.frob.com>
13392
13393         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
13394         * sysdeps/x86_64/setjmp.S: Likewise.
13395         * sysdeps/i386/bsd-setjmp.S: Likewise.
13396         * sysdeps/i386/bsd-_setjmp.S: Likewise.
13397         * sysdeps/i386/setjmp.S: Likewise.
13398         * sysdeps/i386/__longjmp.S: Likewise.
13399         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
13400         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
13401
13402         * include/stap-probe.h: New file.
13403         * configure.in: Handle --enable-systemtap.
13404         * configure: Regenerated.
13405         * config.h.in (USE_STAP_PROBE): New #undef.
13406         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
13407         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
13408         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
13409
13410 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
13411
13412         [BZ #13717]
13413         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
13414         to 2.4.0 where earlier.
13415         * sysdeps/unix/sysv/linux/configure: Regenerated.
13416         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
13417         <kernel-features.h>.
13418         [__ASSUME_32BITUIDS]: Make code unconditional.
13419         [!__ASSUME_32BITUIDS]: Remove conditional code.
13420         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
13421         <kernel-features.h>.
13422         [__ASSUME_32BITUIDS]: Make code unconditional.
13423         [!__ASSUME_32BITUIDS]: Remove conditional code.
13424         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
13425         [__ASSUME_32BITUIDS]: Make code unconditional.
13426         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
13427         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
13428         <kernel-features.h>.
13429         [__ASSUME_32BITUIDS]: Make code unconditional.
13430         [!__ASSUME_32BITUIDS]: Remove conditional code.
13431         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
13432         <kernel-features.h>.
13433         [__ASSUME_32BITUIDS]: Make code unconditional.
13434         [!__ASSUME_32BITUIDS]: Remove conditional code.
13435         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
13436         <kernel-features.h>.
13437         [__ASSUME_32BITUIDS]: Make code unconditional.
13438         [!__ASSUME_32BITUIDS]: Remove conditional code.
13439         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
13440         <kernel-features.h>.
13441         [__ASSUME_32BITUIDS]: Make code unconditional.
13442         [!__ASSUME_32BITUIDS]: Remove conditional code.
13443         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
13444         <kernel-features.h>.
13445         [__ASSUME_32BITUIDS]: Make code unconditional.
13446         [!__ASSUME_32BITUIDS]: Remove conditional code.
13447         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
13448         <kernel-features.h>.
13449         [__ASSUME_32BITUIDS]: Make code unconditional.
13450         [!__ASSUME_32BITUIDS]: Remove conditional code.
13451         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
13452         <kernel-features.h>.
13453         [__ASSUME_32BITUIDS]: Make code unconditional.
13454         [!__ASSUME_32BITUIDS]: Remove conditional code.
13455         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
13456         <kernel-features.h>.
13457         [__ASSUME_32BITUIDS]: Make code unconditional.
13458         [!__ASSUME_32BITUIDS]: Remove conditional code.
13459         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
13460         <kernel-features.h>.
13461         [__ASSUME_32BITUIDS]: Make code unconditional.
13462         [!__ASSUME_32BITUIDS]: Remove conditional code.
13463         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
13464         <kernel-features.h>.
13465         [__ASSUME_32BITUIDS]: Make code unconditional.
13466         [!__ASSUME_32BITUIDS]: Remove conditional code.
13467         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
13468         <kernel-features.h>.
13469         [__NR_setresgid] (__setresgid): Do not declare.
13470         [__ASSUME_32BITUIDS]: Make code unconditional.
13471         [!__ASSUME_32BITUIDS]: Remove conditional code.
13472         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
13473         <kernel-features.h>.
13474         [__NR_setresuid] (__setresuid): Do not declare.
13475         [__ASSUME_32BITUIDS]: Make code unconditional.
13476         [!__ASSUME_32BITUIDS]: Remove conditional code.
13477         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
13478         <kernel-features.h>.
13479         [__ASSUME_32BITUIDS]: Make code unconditional.
13480         [!__ASSUME_32BITUIDS]: Remove conditional code.
13481         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
13482         <kernel-features.h>.
13483         [__ASSUME_32BITUIDS]: Make code unconditional.
13484         [!__ASSUME_32BITUIDS]: Remove conditional code.
13485         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
13486         <kernel-features.h>.
13487         [__ASSUME_32BITUIDS]: Make code unconditional.
13488         [!__ASSUME_32BITUIDS]: Remove conditional code.
13489         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
13490         <kernel-features.h>.
13491         [__ASSUME_32BITUIDS]: Make code unconditional.
13492         [!__ASSUME_32BITUIDS]: Remove conditional code.
13493         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
13494         <kernel-features.h>.
13495         [__ASSUME_32BITUIDS]: Make code unconditional.
13496         [!__ASSUME_32BITUIDS]: Remove conditional code.
13497         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
13498         <kernel-features.h>.
13499         [__ASSUME_32BITUIDS]: Make code unconditional.
13500         [!__ASSUME_32BITUIDS]: Remove conditional code.
13501         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
13502         <kernel-features.h>.
13503         [__ASSUME_32BITUIDS]: Make code unconditional.
13504         [!__ASSUME_32BITUIDS]: Remove conditional code.
13505         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
13506         <kernel-features.h>.
13507         [__ASSUME_32BITUIDS]: Make code unconditional.
13508         [!__ASSUME_32BITUIDS]: Remove conditional code.
13509         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
13510         <kernel-features.h>.
13511         [__ASSUME_32BITUIDS]: Make code unconditional.
13512         [!__ASSUME_32BITUIDS]: Remove conditional code.
13513         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
13514         <kernel-features.h>.
13515         [__ASSUME_32BITUIDS]: Make code unconditional.
13516         [!__ASSUME_32BITUIDS]: Remove conditional code.
13517         * sysdeps/unix/sysv/linux/kernel-features.h
13518         (__ASSUME_SETRESUID_SYSCALL): Remove.
13519         (__ASSUME_SETRESGID_SYSCALL): Likewise.
13520         (__ASSUME_32BITUIDS): Likewise.
13521         (__ASSUME_LDT_WORKS): Likewise.
13522         (__ASSUME_O_DIRECTORY): Likewise.
13523         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
13524         architecture but not kernel version.
13525         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
13526         (__ASSUME_MMAP2_SYSCALL): Likewise.
13527         (__ASSUME_STAT64_SYSCALL): Likewise.
13528         (__ASSUME_IPC64): Likewise.
13529         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
13530         <kernel-features.h>.
13531         [__ASSUME_32BITUIDS]: Make code unconditional.
13532         [!__ASSUME_32BITUIDS]: Remove conditional code.
13533         * sysdeps/unix/sysv/linux/opendir.c: Do not include
13534         <kernel-features.h>.
13535         [__ASSUME_O_DIRECTORY]: Make code unconditional.
13536         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
13537         132096]: Remove conditional code.
13538         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
13539         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
13540         <kernel-features.h>.
13541         [__ASSUME_32BITUIDS]: Make code unconditional.
13542         [!__ASSUME_32BITUIDS]: Remove conditional code.
13543         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
13544         <kernel-features.h>.
13545         [__ASSUME_32BITUIDS]: Make code unconditional.
13546         [!__ASSUME_32BITUIDS]: Remove conditional code.
13547         * sysdeps/unix/sysv/linux/setegid.c: Do not include
13548         <kernel-features.h>.
13549         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
13550         unconditional.
13551         (__setresgid): Do not declare.
13552         [__ASSUME_32BITUIDS]: Make code unconditional.
13553         [!__ASSUME_32BITUIDS]: Remove conditional code.
13554         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
13555         <kernel-features.h>.
13556         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
13557         unconditional.
13558         (__setresuid): Do not declare.
13559         [__ASSUME_32BITUIDS]: Make code unconditional.
13560         [!__ASSUME_32BITUIDS]: Remove conditional code.
13561         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
13562         <kernel-features.h>.
13563         [__ASSUME_32BITUIDS]: Make code unconditional.
13564         [!__ASSUME_32BITUIDS]: Remove conditional code.
13565         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
13566         <kernel-features.h>.
13567         [__ASSUME_32BITUIDS]: Make code unconditional.
13568         [!__ASSUME_32BITUIDS]: Remove conditional code.
13569
13570 2012-05-25  Richard Henderson  <rth@twiddle.net>
13571
13572         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
13573         dl_hwcap to ifunc resolver.
13574         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
13575         elf_ifunc_invoke.
13576         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
13577         dl_hwcap to ifunc resolver.
13578         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
13579
13580 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
13581
13582         [BZ #14153]
13583         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
13584         for |x| <= 2**-26, not 2**-57.
13585         * math/libm-test.inc (acos_test): Do not allow spurious underflow
13586         exception.
13587
13588 2012-05-24  Jeff Law  <law@redhat.com>
13589
13590         * stdio-common/Makefile (tests): Add bug25.
13591         * stdio-common/bug25.c: New test.
13592
13593 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
13594
13595         [BZ #13576]
13596         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
13597         multiple of MALLOC_ALIGNMENT in size.
13598         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
13599
13600 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
13601
13602         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
13603         Require >= 256.
13604         (FILENAME_MAX): Use macro-int-constant.
13605         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
13606         (_IOFBF): Use macro-int-constant.
13607         (_IOLBF): Likewise.
13608         (_IONBF): Likewise.
13609         (SEEK_CUR): Likewise.
13610         (SEEK_END): Likewise.
13611         (SEEK_SET): Likewise.
13612         (TMP_MAX): Likewise.
13613         (EOF): Use macro-int-constant.  Require < 0.
13614         (NULL): Use macro-constant.  Require == 0.
13615         (stdin): Require type to be FILE *.
13616         (stdout): Likewise.
13617         (stderr): Likewise.
13618         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
13619         macro-int-constant.
13620         (EXIT_SUCCESS): Likewise.
13621         (NULL): Use macro-constant.  Require == 0.
13622         (RAND_MAX): Use macro-int-constant.
13623         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
13624         [C99-based standards] (strtof): Require function.
13625         [C99-based standards] (strtold): Likewise.
13626         [C99-based standards] (strtoll): Likewise.
13627         [C99-based standards] (strtoull): Likewise.
13628         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
13629         [ISO || ISO99 || ISO11] (limits.h): Likewise.
13630         [ISO || ISO99 || ISO11] (math.h): Likewise.
13631         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
13632         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
13633         [ISO || ISO99 || ISO11] (*_t): Do not allow.
13634
13635 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
13636
13637         [BZ #14132]
13638         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
13639         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
13640         * intl/dgettext.c (DCGETTEXT): Likewise.
13641         * intl/gettext.c (DCGETTEXT): Likewise.
13642         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
13643         * posix/regex_internal.h (gettext): Likewise.
13644         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
13645         Remove declaration.
13646         * include/argz.h (__argz_count_internal)
13647         (__argz_stringify_internal): Remove declaration.
13648         (__argz_count, __argz_stringify): Declare hidden proto.
13649         * intl/dcgettext.c: Remove use of INTDEF.
13650         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
13651         * string/argz-stringify.c: Likewise.
13652         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
13653         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
13654         Declare hidden proto.
13655         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
13656         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
13657         Declare hidden proto.
13658         * include/stdio.h (__asprintf_internal): Don't declare.
13659         (__asprintf): Don't define as macro.  Declare hidden proto.
13660         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
13661         (__fsetlocking): Declare hidden proto.
13662         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
13663         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
13664         hidden proto.
13665         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
13666         (_IO_setlinebuf): Remove use of INTUSE.
13667         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
13668         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
13669         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
13670         Remove declaration.
13671         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
13672         (_IO_do_flush): Remove use of INTUSE.
13673         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
13674         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
13675         (_IO_adjust_column, _IO_least_wmarker)
13676         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
13677         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
13678         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
13679         (_IO_default_doallocate, _IO_wdefault_doallocate)
13680         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
13681         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
13682         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
13683         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
13684         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
13685         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
13686         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
13687         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
13688         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
13689         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
13690         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
13691         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
13692         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
13693         proto.
13694         (_IO_flush_all_internal, _IO_adjust_column_internal)
13695         (_IO_default_uflow_internal, _IO_default_finish_internal)
13696         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
13697         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
13698         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
13699         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
13700         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
13701         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
13702         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
13703         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
13704         (_IO_file_close_internal, _IO_file_close_it_internal)
13705         (_IO_file_underflow_internal, _IO_file_overflow_internal)
13706         (_IO_file_init_internal, _IO_file_attach_internal)
13707         (_IO_file_fopen_internal, _IO_file_read_internal)
13708         (_IO_file_sync_internal, _IO_file_seek_internal)
13709         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
13710         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
13711         (_IO_str_underflow_internal, _IO_str_overflow_internal)
13712         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
13713         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
13714         (_IO_list_all_internal, _IO_link_in_internal)
13715         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
13716         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
13717         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
13718         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
13719         (_IO_do_write_internal, _IO_padn_internal)
13720         (_IO_getline_info_internal, _IO_getline_internal)
13721         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
13722         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
13723         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
13724         (_IO_vfscanf_internal, _IO_vfprintf_internal)
13725         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
13726         (_IO_init_internal, _IO_un_link_internal): Don't declare.
13727         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
13728         with libc_hidden_ver, remove use of INTUSE.
13729         * libio/genops.c: Likewise.
13730         * libio/freopen.c: Likewise.
13731         * libio/freopen64.c: Likewise.
13732         * libio/iofclose.c: Likewise.
13733         * libio/iofdopen.c: Likewise.
13734         * libio/iofflush.c: Likewise.
13735         * libio/iofflush_u.c: Likewise.
13736         * libio/iofgets.c: Likewise.
13737         * libio/iofgets_u.c: Likewise.
13738         * libio/iofopen.c: Likewise.
13739         * libio/iofopncook.c: Likewise.
13740         * libio/iofread.c: Likewise.
13741         * libio/iofread_u.c: Likewise.
13742         * libio/ioftell.c: Likewise.
13743         * libio/iofwrite.c: Likewise.
13744         * libio/iogetline.c: Likewise.
13745         * libio/iogets.c: Likewise.
13746         * libio/iogetwline.c: Likewise.
13747         * libio/iopadn.c: Likewise.
13748         * libio/iopopen.c: Likewise.
13749         * libio/ioseekoff.c: Likewise.
13750         * libio/ioseekpos.c: Likewise.
13751         * libio/iosetbuffer.c: Likewise.
13752         * libio/iosetvbuf.c: Likewise.
13753         * libio/ioungetc.c: Likewise.
13754         * libio/ioungetwc.c: Likewise.
13755         * libio/iovdprintf.c: Likewise.
13756         * libio/iovsprintf.c: Likewise.
13757         * libio/iovsscanf.c: Likewise.
13758         * libio/memstream.c: Likewise.
13759         * libio/obprintf.c: Likewise.
13760         * libio/oldfileops.c: Likewise.
13761         * libio/oldiofclose.c: Likewise.
13762         * libio/oldiofdopen.c: Likewise.
13763         * libio/oldiofopen.c: Likewise.
13764         * libio/oldiopopen.c: Likewise.
13765         * libio/oldstdfiles.c: Likewise.
13766         * libio/putc.c: Likewise.
13767         * libio/setbuf.c: Likewise.
13768         * libio/setlinebuf.c: Likewise.
13769         * libio/stdfiles.c: Likewise.
13770         * libio/strops.c: Likewise.
13771         * libio/vasprintf.c: Likewise.
13772         * libio/vscanf.c: Likewise.
13773         * libio/vsnprintf.c: Likewise.
13774         * libio/vswprintf.c: Likewise.
13775         * libio/wfiledoalloc.c: Likewise.
13776         * libio/wfileops.c: Likewise.
13777         * libio/wgenops.c: Likewise.
13778         * libio/wmemstream.c: Likewise.
13779         * libio/wstrops.c: Likewise.
13780         * libio/__fpurge.c: Likewise.
13781         * libio/__fsetlocking.c: Likewise.
13782         * assert/assert.c: Likewise.
13783         * debug/fgets_chk.c: Likewise.
13784         * debug/fgets_u_chk.c: Likewise.
13785         * debug/fread_chk.c: Likewise.
13786         * debug/fread_u_chk.c: Likewise.
13787         * debug/gets_chk.c: Likewise.
13788         * debug/obprintf_chk.c: Likewise.
13789         * debug/vasprintf_chk.c: Likewise.
13790         * debug/vdprintf_chk.c: Likewise.
13791         * debug/vsnprintf_chk.c: Likewise.
13792         * debug/vsprintf_chk.c: Likewise.
13793         * malloc/mtrace.c: Likewise.
13794         * misc/error.c: Likewise.
13795         * misc/syslog.c: Likewise.
13796         * stdio-common/asprintf.c: Likewise.
13797         * stdio-common/fxprintf.c: Likewise.
13798         * stdio-common/getw.c: Likewise.
13799         * stdio-common/isoc99_fscanf.c: Likewise.
13800         * stdio-common/isoc99_scanf.c: Likewise.
13801         * stdio-common/isoc99_vfscanf.c: Likewise.
13802         * stdio-common/isoc99_vscanf.c: Likewise.
13803         * stdio-common/isoc99_vsscanf.c: Likewise.
13804         * stdio-common/printf-prs.c: Likewise.
13805         * stdio-common/printf_fp.c: Likewise.
13806         * stdio-common/printf_fphex.c: Likewise.
13807         * stdio-common/printf_size.c: Likewise.
13808         * stdio-common/putw.c: Likewise.
13809         * stdio-common/scanf.c: Likewise.
13810         * stdio-common/sprintf.c: Likewise.
13811         * stdio-common/tmpfile.c: Likewise.
13812         * stdio-common/vfprintf.c: Likewise.
13813         * stdio-common/vfscanf.c: Likewise.
13814         * stdlib/strfmon_l.c: Likewise.
13815         * sunrpc/openchild.c: Likewise.
13816         * sunrpc/xdr_stdio.c: Likewise.
13817         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
13818         * sysdeps/mach/hurd/tmpfile.c: Likewise.
13819
13820 2012-05-24  Roland McGrath  <roland@hack.frob.com>
13821
13822         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
13823
13824         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
13825         in the third column, to generate for the shared library an IFUNC
13826         that uses _dl_vdso_vsym.
13827         * Makerules (COMPILE.c, compile-stdin.c): New variables.
13828         * Makeconfig (object-suffixes-noshared): New variable.
13829
13830         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
13831         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
13832         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
13833         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
13834
13835         [BZ #14132]
13836         * include/sys/time.h (__gettimeofday): Remove macro.
13837         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
13838         * time/gettimeofday.c (__gettimeofday): Remove #undef.
13839         Remove INTDEF.
13840         (__gettimeofday): Add libc_hidden_def.
13841         (gettimeofday): Add libc_hidden_weak.
13842         * sysdeps/mach/gettimeofday.c: Likewise.
13843         * sysdeps/posix/gettimeofday.c: Likewise.
13844         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
13845         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
13846         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
13847         (__gettimeofday_internal): Remove strong_alias.
13848         (__gettimeofday): Add libc_hidden_def.
13849         (gettimeofday): Add libc_hidden_weak.
13850         * sysdeps/unix/syscalls.list (gettimeofday):
13851         Remove __gettimeofday_internal alias.
13852
13853 2012-05-24  Daniel Jacobowitz  <drow@false.org>
13854             H.J. Lu  <hongjiu.lu@intel.com>
13855
13856         [BZ #12495]
13857         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
13858         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
13859         (largebin_index_32_big): New.
13860         (largebin_index): Use it for 16-byte alignment.
13861         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
13862         correction with front_misalign.
13863
13864 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
13865
13866         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
13867         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
13868         Likewise.
13869         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
13870         Likewise.
13871         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
13872         Likewise.
13873         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
13874         Likewise.
13875         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
13876         Likewise.
13877         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
13878         Likewise.
13879         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
13880         Likewise.
13881         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
13882         Likewise.
13883         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
13884         Likewise.
13885         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
13886         Likewise.
13887         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
13888         Likewise.
13889         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
13890         Likewise.
13891
13892         * scripts/data/c++-types-x32-linux-gnu.data: New file.
13893         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
13894
13895 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
13896
13897         [BZ #10846]
13898         [BZ #14036]
13899         * math/libm-test.inc (exp_test): Add test from bug 14036.
13900         (pow_test): Add test from bug 10846.
13901
13902         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
13903         and other flags.
13904         (special_function): Do not include flags in test name.
13905         (parse_args): Likewise.
13906         * sysdeps/i386/fpu/libm-test-ulps: Update.
13907         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
13908         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
13909         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
13910         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13911
13912         * math/gen-libm-test.pl (%beautify): Add entries for underflow
13913         exceptions.
13914         * math/libm-test.inc ("Philosophy"): Update comment about
13915         exception testing.
13916         (UNDERFLOW_EXCEPTION): New macro.
13917         (UNDERFLOW_EXCEPTION_OK): Likewise.
13918         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
13919         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
13920         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
13921         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
13922         (INVALID_EXCEPTION_OK): Update value.
13923         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
13924         (OVERFLOW_EXCEPTION_OK): Likewise.
13925         (IGNORE_ZERO_INF_SIGN): Likewise.
13926         (test_exceptions): Handle underflow exceptions.
13927         (acos_test): Update for underflow exception expectations.
13928         (cexp_test): Likewise.
13929         (clog_test): Likewise.
13930         (clog10_test): Likewise.
13931         (csqrt_test): Likewise.
13932         (ctan_test): Likewise.
13933         (ctanh_test): Likewise.
13934         (exp_test): Likewise.
13935         (exp10_test): Likewise.
13936         (exp2_test): Likewise.
13937         (expm1_test): Likewise.
13938         (fma_test): Likewise.
13939         (j0_test): Likewise.
13940         (jn_test): Likewise.
13941         (nexttoward_test): Likewise.
13942         (pow_test): Likewise.
13943         (scalbn_test): Likewise.
13944         (scalbln_test): Likewise.
13945         (tan_test): Likewise.
13946         (y1_test): Likewise.
13947         * sysdeps/i386/fpu/libm-test-ulps: Update.
13948         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13949
13950 2012-05-23  David S. Miller  <davem@davemloft.net>
13951
13952         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
13953         (__libc_sigaction): Remove unused local variables.
13954
13955 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
13956
13957         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
13958
13959 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
13960
13961         mktime: avoid signed integer overflow
13962         * time/mktime.c (__mktime_internal): Do not mishandle the case
13963         where diff == INT_MIN.
13964
13965         mktime: simplify computation of average
13966         * time/mktime.c (ranged_convert): Use new time_t_avg function
13967         instead of rolling our own (probably-slower) code.
13968
13969         mktime: do not assume signed right shift propagates sign bit
13970         * time/mktime.c (isdst_differ): New static function.
13971         (__mktime_internal): No need to normalize tm_isdst now.
13972         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
13973         tm_isdst values.
13974
13975         mktime: merge another wrapv change from gnulib
13976         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
13977         from some compilers.
13978
13979         mktime: remove incorrect attempt at unusual arithmetics
13980         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
13981         The code didn't really work on such machines anyway.
13982         (TYPE_MINIMUM): Assume two's complement.
13983         (twos_complement_arithmetic): Verify that long_int and time_t
13984         are two's complement (or unsigned, in the latter case).
13985
13986         mktime: check signed shifts on long_int and time_t, too
13987         * time/mktime.c (SHR): Check that shifts work as desired
13988         on the types long_int and time_t too, as SHR is used on
13989         such types.
13990
13991         mktime: do not assume 'long' is wide enough
13992         * time/mktime.c (verify): Move decl up.
13993         (long_int): New type.
13994         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
13995         to remove assumption in the code that 'long' is wide enough to
13996         store year values.  This assumption is not true on x32 and on
13997         some non-glibc platforms.
13998
13999         mktime: merge wrapv change from gnulib
14000         * time/mktime.c (WRAPV): New macro.
14001         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
14002         (guess_time_tm, __mktime_internal): Do not assume that signed
14003         integer overflow wraps around; modern compilers generate code
14004         where this assumption is no longer valid.
14005
14006 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
14007
14008         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
14009         Replace "jmp L(pseudo_end)" with "ret".
14010         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
14011         Likewise.
14012
14013 2012-05-23  Andreas Jaeger  <aj@suse.de>
14014
14015         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
14016         * sysdeps/unix/sysv/linux/poll.c: Remove file.
14017
14018 2012-05-23  Andreas Jaeger  <aj@suse.de>
14019             Maximilian Attems  <max@stro.at>
14020
14021         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
14022         New macros.
14023
14024 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
14025
14026         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
14027         code so that pseudo_end is just ret and the stack pointer is
14028         correct also for static library in error case.
14029
14030 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
14031
14032         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
14033         move to syscalls.list.
14034         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
14035         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
14036         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
14037         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
14038
14039         * manual/install.texi (Running make install): Do not mention Linux
14040         kernel version for which pt_chown is not needed.
14041         (Linux): Do not mention problems with nscd with 2.0 kernels.
14042         * INSTALL: Regenerated.
14043
14044 2012-05-23  Andreas Jaeger  <aj@suse.de>
14045
14046         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
14047         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
14048         macro.
14049         * sysdeps/unix/sysv/linux/s390/bits/mman.h
14050         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
14051         * sysdeps/unix/sysv/linux/sh/bits/mman.h
14052         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
14053         * sysdeps/unix/sysv/linux/i386/bits/mman.h
14054         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
14055         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
14056         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
14057         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
14058         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
14059         * sysdeps/unix/sysv/linux/bits/in.h
14060         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
14061
14062 2012-05-22  Roland McGrath  <roland@hack.frob.com>
14063
14064         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
14065         (PREPARE_VERSION): Just use assert instead, it will be elided
14066         under [NDEBUG] anyway.
14067
14068 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
14069
14070         * sysdeps/unix/sysv/linux/Makefile: Include
14071         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
14072         (sysdep_routines): Remove sysctl.
14073         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
14074         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
14075         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
14076         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
14077         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
14078
14079 2012-05-22  Andreas Jaeger  <aj@suse.de>
14080
14081         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
14082         that pseudo_end is just ret and the stack pointer is correct also
14083         for static library in error case.
14084
14085 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
14086
14087         [BZ #14122]
14088         * nss/nsswitch.c (defconfig_entries): New variable.
14089         (__nss_database_lookup): Don't leak defconfig entries.
14090         (nss_parse_service_list): Don't leak on error paths.
14091         (free_database_entries): New function.
14092         (free_defconfig): New function.
14093         (free_mem): Move common code to free_database_entries.
14094
14095 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
14096
14097         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
14098         Add arch_prctl.
14099         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
14100
14101         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
14102         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
14103         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
14104         New macro.
14105         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
14106         (INTERNAL_SYSCALL_TYPES): Likewise.
14107         (LOAD_ARGS_TYPES_[1-6]): Likewise.
14108         (LOAD_REGS_TYPES_[1-6]): Likewise.
14109         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
14110         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
14111
14112 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14113
14114         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
14115         copysignl for GLIBC_2_0.
14116         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
14117         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
14118         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
14119         logbl for GLIBC_2_0.
14120         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
14121         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
14122
14123 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
14124
14125         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
14126         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
14127
14128         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
14129         Use "neg %eax".
14130
14131         * time/mktime.c: Update copyright years.
14132
14133 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
14134
14135         mktime: merge comment-quoting-style change from gnulib
14136         * time/mktime.c: Quote 'like this' in comments.
14137         The GNU coding standards suggest that we no longer quote `like this',
14138         as "`" and "'" are typically rendered asymmetrically nowadays.
14139         The typical gnulib style is to quote 'like this' when quoting
14140         code, and "like this" when quoting English.
14141
14142         * time/mktime.c (compile-command): Add "-I.".
14143
14144         mktime: merge mktime-internal.h change from gnulib
14145         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
14146
14147         mktime: merge time_r change from gnulib
14148         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
14149
14150         mktime: merge DEBUG change from gnulib
14151         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
14152         case system <time.h> has a #define.
14153
14154         mktime: merge <sys/types.h> change from gnulib
14155         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
14156         since <time.t> is now guaranteed to define time_t.
14157
14158         mktime: merge HAVE_CONFIG_H change from gnulib
14159         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
14160
14161 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
14162
14163         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
14164         Use "neg %eax".
14165
14166         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
14167         __rlim_t cast.
14168         (struct rusage): Use anonymous union to pad each field to
14169         __syscall_slong_t.
14170
14171 2012-05-21  David S. Miller  <davem@davemloft.net>
14172
14173         * Makefules (o-iterator): Remove .s cases.
14174         (compile-command.s): Delete.
14175         (COMPILE.s): Delete.
14176         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
14177
14178 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
14179
14180         * configure.in (libc_cv_predef_stack_protector): Only consider
14181         "foobar" and "__stack_chk_fail" lines in libc_undefs.
14182         * configure: Regenerated.
14183
14184 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
14185
14186         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
14187         New macro.  Use R*LP on int and pointer.
14188         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
14189         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
14190         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
14191         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
14192
14193         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
14194         [__WORDSIZE_TIME64_COMPAT32] instead of
14195         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
14196         (struct utmp): Likewise.
14197         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
14198         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
14199         Renamed to ...
14200         (__WORDSIZE_TIME64_COMPAT32): This.
14201         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
14202         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
14203         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
14204         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
14205         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
14206         (__WORDSIZE_TIME64_COMPAT32): New macro.
14207
14208 2012-05-21  Andreas Jaeger  <aj@suse.de>
14209
14210         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
14211         only if [SHARED]. Add prototype for __wcschr_ia32.
14212
14213 2012-05-21  Roland McGrath  <roland@hack.frob.com>
14214
14215         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
14216         of %rbp unmolested in the jmp_buf while mangling the low bits.
14217         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
14218         unmolested high bits of %rbp while demangling the low bits.
14219         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
14220
14221 2012-05-21  Andreas Jaeger  <aj@suse.de>
14222
14223         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
14224         * sunrpc/svc_simple.c: Use it for registerrpc.
14225         * sunrpc/xcrypt.c: Use it for passwd2des.
14226
14227         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
14228
14229 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
14230
14231         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
14232         Don't define if [__SYSCALL_WORDSIZE != 32].
14233         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
14234         New macro.
14235
14236 2012-05-21  Bruno Haible  <bruno@clisp.org>
14237             Andreas Jaeger  <aj@suse.de>
14238
14239         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
14240         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
14241         inptr and inend for must_buffer_ch.
14242         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
14243         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
14244         * stdio-common/Makefile (tests): Remove bug15.
14245         (bug15-ENV): Remove macro.
14246         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
14247         anymore.
14248
14249 2012-05-19  Andreas Jaeger  <aj@suse.de>
14250             Roland McGrath  <roland@hack.frob.com>
14251
14252         * manual/contrib.texi: Completely rewritten. It contains now an
14253         alphabetical list of contributors and their contributions.
14254
14255 2012-05-21  Richard Henderson  <rth@twiddle.net>
14256
14257         * misc/getauxval.c (__getauxval): Use unsigned long int.
14258         * misc/sys/auxv.h: Include <sys/cdefs.h>.
14259         (getauxval): Use unsigned long int.
14260
14261 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
14262
14263         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
14264
14265 2012-05-21  Roland McGrath  <roland@hack.frob.com>
14266
14267         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
14268         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
14269         __alignof__ (long double).
14270
14271 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14272
14273         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14274
14275 2012-05-20  Richard Henderson  <rth@twiddle.net>
14276
14277         * misc/getauxval.c: New file.
14278         * misc/sys/auxv.h: New file.
14279         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
14280         (routines): Add getauxval.
14281         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
14282         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
14283         * elf/dl-sysdep.c (_dl_auxv): Remove.
14284         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
14285         * elf/dl-support.c (_dl_auxv): New variable.
14286         (_dl_aux_init): Initialize it.
14287         * manual/startup.texi (Auxiliary Vector): New node.
14288         * sysdeps/generic/bits/hwcap.h: New file.
14289         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
14290         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
14291         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
14292         * sysdeps/sparc/sysdep.h: ... here.  Include it.
14293         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
14294         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
14295         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
14296         Update.
14297         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
14298         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
14299         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
14300         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
14301         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
14302         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
14303         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
14304         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
14305
14306 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14307
14308         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14309
14310 2012-05-19  David S. Miller  <davem@davemloft.net>
14311
14312         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14313
14314 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
14315
14316         [BZ #14123]
14317         * math/s_ccosh.c: Include <float.h>
14318         (__ccosh): Avoid internal overflow calculating sinh and cosh
14319         values before multiplying by sin and cos values.
14320         * math/s_ccoshf.c: Likewise.
14321         * math/s_ccoshl.c: Likewise.
14322         * math/s_csin.c: Likewise.
14323         * math/s_csinf.c: Likewise.
14324         * math/s_csinl.c: Likewise.
14325         * math/s_csinh.c: Likewise.
14326         * math/s_csinhf.c: Likewise.
14327         * math/s_csinhl.c: Likewise.
14328         * math/libm-test.inc (ccos_test): Add more tests.
14329         (ccosh_test): Likewise.
14330         (csin_test): Likewise.
14331         (csinh_test): Likewise.
14332         * sysdeps/i386/fpu/libm-test-ulps: Update.
14333         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14334
14335 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
14336
14337         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
14338         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
14339
14340         * sysdeps/x86_64/x32/_itoa.h: Add comment.
14341
14342 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
14343
14344         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
14345         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
14346         * sysdeps/powerpc/soft-fp/Versions: Likewise.
14347         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
14348         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
14349         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
14350         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
14351         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
14352         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
14353         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
14354         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
14355         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
14356         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
14357         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
14358         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
14359         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
14360         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
14361         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
14362         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
14363         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
14364         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
14365         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
14366         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
14367         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
14368         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
14369         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
14370         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
14371         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
14372         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
14373         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
14374         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
14375
14376 2012-05-18  Andreas Jaeger  <aj@suse.de>
14377
14378         * csu/.gitignore: Delete.
14379
14380 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
14381
14382         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
14383         (timex): Use __syscall_slong_t.
14384
14385 2012-05-18  Andreas Jaeger  <aj@suse.de>
14386             Carlos O'Donell  <carlos_odonell@mentor.com>
14387
14388         * manual/install.texi (Configuring and compiling): Update
14389         description about files modified in the source directory.
14390         * INSTALL: Regenerated.
14391
14392 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
14393
14394         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
14395         value.  Use "or" to set return value to -1.
14396         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
14397         negate return value.
14398
14399 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
14400
14401         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
14402         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
14403         failure if the compiler has Graphite support disabled.
14404         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
14405         Likewise.
14406         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
14407         CFLAGS-memmove.c): Likewise.
14408         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
14409         Likewise.
14410
14411 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
14412
14413         * sysdeps/x86_64/x32/_itoa.h: New file.
14414
14415         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
14416         getdents system call only if kernel and user dirents have the
14417         same d_ino and d_off.
14418
14419         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
14420         LLONG_MAX != LONG_MAX.
14421         (_itoa_word): Use _ITOA_WORD_TYPE on value.
14422         (_fitoa_word): Likewise.
14423
14424         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
14425         years.
14426         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
14427         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
14428         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
14429
14430         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
14431         include <bits/wordsize.h>.  Check __x86_64__ instead of
14432         __WORDSIZE.
14433         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
14434         if __x86_64__ is defined.  Use anonymous union on fpstate.
14435
14436         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
14437         anonymous union.
14438
14439 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
14440
14441         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
14442         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
14443         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
14444         Refer to _rtld_local_ro instead of _rtld_global_ro.
14445         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
14446         Likewise.
14447         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
14448         Likewise.
14449         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
14450         Likewise.
14451         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
14452         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
14453         of _rtld_global, and rtld_progname instead of _dl_argv[0].
14454
14455         * sysdeps/powerpc/powerpc32/dl-machine.c
14456         (__elf_machine_runtime_setup) [PROF]: Don't reference
14457         _dl_prof_resolve.
14458
14459 2012-05-18  Andreas Jaeger  <aj@suse.de>
14460
14461         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
14462         function only available for GCCs before 3.4 since GCC 3.4
14463         introduced a builtin.
14464         (lrint): Likewise.
14465         (llrintf): Likewise.
14466         (llrint): Likewise.
14467         (fmaxf): Likewise.
14468         (fmax): Likewise.
14469         (fminf): Likewise.
14470         (fmin): Likewise.
14471         (rint): Likewise.
14472         (rintf): Likewise.
14473         (nearbyint): Likewise.
14474         (nearbyintf): Likewise.
14475         (ceil): Likewise.
14476         (ceilf): Likewise.
14477         (floor): Likewise.
14478         (floorf): Likewise.
14479
14480 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
14481
14482         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
14483         on both fields and cast pointer to __syscall_ulong_t.
14484
14485         * bits/types.h (__fsword_t): New type.
14486         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
14487         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
14488         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
14489         (__FSWORD_T_TYPE): Likewise.
14490         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
14491         (__FSWORD_T_TYPE): Likewise.
14492         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
14493         (__FSWORD_T_TYPE): Likewise.
14494         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
14495         (__FSWORD_T_TYPE): Likewise.
14496         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
14497         __SWORD_TYPE with __fsword_t.
14498         (statfs64): Likewise.
14499
14500 2012-05-17  David S. Miller  <davem@davemloft.net>
14501
14502         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
14503
14504 2012-05-17  Andreas Jaeger  <aj@suse.de>
14505
14506         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
14507         warning.
14508
14509 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
14510
14511         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
14512
14513 2012-05-17  Andreas Jaeger  <aj@suse.de>
14514
14515         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
14516         when it is used.
14517
14518 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
14519
14520         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
14521
14522 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
14523
14524         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
14525         * sysdeps/x86_64/tst-mallocalign1.c: New file.
14526
14527 2012-05-17  Andreas Jaeger  <aj@suse.de>
14528             Carlos O'Donell  <carlos_odonell@mentor.com>
14529
14530         [BZ #14059]
14531         * sysdeps/x86_64/multiarch/init-arch.h
14532         (bit_YMM_Usable): Rename to...
14533         (bit_AVX_Usable): ... this.
14534         (bit_FMA4_Usable): New macro.
14535         (bit_XMM_state): New macro.
14536         (bit_YMM_state): New macro.
14537         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
14538         [__ASSEMBLER__] (index_AVX_Usable): ... this.
14539         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
14540         (CPUID_OSXSAVE): New macro.
14541         (CPUID_AVX): New macro.
14542         (CPUID_FMA4): New macro.
14543         (index_YMM_Usable): Rename to...
14544         (index_AVX_Usable): ... this.
14545         (HAS_AVX): Use HAS_ARCH_FEATURE.
14546         (HAS_FMA4): Likewise.
14547         (HAS_YMM_USABLE): Remove.
14548         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
14549         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
14550         are present.
14551         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
14552         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
14553         * sysdeps/x86_64/multiarch/Makefile: Likewise.
14554         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
14555         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
14556
14557 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
14558
14559         * math/libm-test.c: Support platforms without multiple rounding modes.
14560         * math/bug-nextafter.c: Support platforms without FP exceptions.
14561         * math/bug-nexttoward.c: Likewise.
14562         * math/test-fenv.c: Likewise.
14563         * math/test-misc.c: Likewise.
14564         * stdlib/bug-getcontext.c: Likewise.
14565
14566 2012-05-17  Andreas Jaeger  <aj@suse.de>
14567
14568         * manual/examples/search.c (critter_cmp): Change signature to
14569         avoid warnings.
14570         * manual/string.texi (Collation Functions): Likewise.
14571
14572 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
14573
14574         * bits/types.h: Fold copyright years.
14575         * bits/typesizes.h: Likewise.
14576         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
14577         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
14578         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
14579         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
14580         * time/time.h: Likewise.
14581
14582 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
14583
14584         [BZ #208]
14585         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
14586         in instead of returning them.  Return void.
14587         (__libc_mallinfo): Accumulate over all arenas.
14588         (__malloc_stats): Adjust for change in int_mallinfo interface.
14589
14590 2012-05-16  Roland McGrath  <roland@hack.frob.com>
14591
14592         [BZ #10375]
14593         * configure.in (NM): Add AC_CHECK_TOOL for it.
14594         (libc_extra_cflags): New substituted variable.
14595         Check for -fstack-protector being used implicitly.
14596         * configure: Regenerated.
14597         * config.make.in (config-extra-cflags): New variable,
14598         gets @libc_extra_cflags@.
14599         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
14600
14601         [BZ #10375]
14602         * configure.in: Check for _FORTIFY_SOURCE being predefined.
14603         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
14604         * configure: Regenerated.
14605         * config.make.in (CPPUNDEFS): New substituted variable.
14606         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
14607         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
14608         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
14609
14610 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
14611
14612         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
14613         (mq_attr): Use __syscall_slong_t.
14614
14615 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
14616
14617         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
14618         Check __x86_64__ instead of __WORDSIZE.
14619         (_STAT_VER_LINUX): Likewise.
14620         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
14621         __syscall_ulong_t and __syscall_slong_t.
14622         (stat64): Likewise.
14623
14624 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
14625
14626         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
14627
14628 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
14629
14630         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
14631
14632 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
14633
14634         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
14635         __syscall_ulong_t.
14636
14637         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
14638         include <bits/wordsize.h>.  Check __x86_64__ instead of
14639         __WORDSIZE.
14640         (greg_t): Use "__extension__ long long int" if __x86_64__ is
14641         defined.
14642         (mcontext_t): Replace "unsigned long" with "unsigned long long".
14643
14644         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
14645         include <bits/wordsize.h>.  Check __x86_64__ instead of
14646         __WORDSIZE.
14647         (user_regs_struct): Use "__extension__ unsigned long long"
14648         instead of "unsigned long" if __x86_64__ is defined.
14649         (user): Likewise.  Pad after pointer field if __ILP32__ is
14650         defined.
14651
14652 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
14653
14654         * configure.in (makeinfo): Require version 4.5 or later.  Allow
14655         versions 5 to 9.
14656         * configure: Regenerated.
14657         * manual/install.texi (texinfo): Increase version requirement to
14658         4.5 or later.
14659         * INSTALL: Regenerated.
14660
14661         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
14662
14663 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
14664
14665         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
14666
14667         * sysdeps/x86_64/x32/ffs.c: New file.
14668
14669         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
14670         __syscall_ulong_t.
14671         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
14672         defined.  Use __syscall_ulong_t.
14673         (shminfo): Use __syscall_ulong_t.
14674         (shm_info): Likewise.
14675
14676         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
14677         __syscall_ulong_t.
14678
14679         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
14680         <bits/wordsize.h>.
14681         (msgqnum_t): Use __syscall_ulong_t.
14682         (msglen_t): Likewise.
14683         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
14684         __syscall_ulong_t.
14685
14686         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
14687         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
14688
14689         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
14690
14691         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
14692         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
14693
14694         * sysvipc/sys/msg.h (msgbuf): Replace long int with
14695         __syscall_slong_t.
14696
14697         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
14698         include <bits/wordsize.h>.  Check __x86_64__ instead of
14699         __WORDSIZE.
14700
14701         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
14702         "unsigned long long int" if __x86_64__ is defined.
14703         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
14704
14705         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
14706         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
14707         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
14708
14709         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
14710         <stdint.h>.
14711         (GET_PC): Cast to uintptr_t first.
14712         (GET_FRAME): Likewise.
14713         (GET_STACK): Likewise.
14714
14715         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
14716         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
14717         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
14718         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
14719         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
14720         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
14721         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
14722         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
14723         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
14724         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
14725         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
14726         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
14727         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
14728         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
14729         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
14730         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
14731         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
14732         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
14733         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
14734         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
14735         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
14736         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
14737         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
14738         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
14739         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
14740         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
14741         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
14742         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
14743         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
14744
14745 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
14746
14747         * Makerules (+depfiles): Also collect depfiles from .oS in
14748         $(extra-objs).
14749         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
14750         .oS, $(libnldbl-routines)).
14751
14752         * Makerules (native-compile-mkdep-flags): Define.
14753         * sunrpc/Makefile (extra-objs): Add $(addprefix
14754         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
14755         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
14756         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
14757         calling $(make-target-directory).
14758
14759 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14760
14761         * bits/types.h (__snseconds_t): Removed.
14762         * time/time.h (struct timespec): Replace __snseconds_t with
14763         __syscall_slong_t.
14764         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
14765         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
14766         Likewise.
14767         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
14768         (__SNSECONDS_T_TYPE): Likewise.
14769         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
14770         (__SNSECONDS_T_TYPE): Likewise.
14771         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
14772         (__SNSECONDS_T_TYPE): Likewise.
14773
14774 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14775
14776         * sysdeps/mach/hurd/bits/typesizes.h
14777         (__SYSCALL_SLONG_TYPE): New macro.
14778         (__SYSCALL_ULONG_TYPE): Likewise.
14779
14780 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14781
14782         * bits/types.h (__syscall_slong_t): New type.
14783         (__syscall_ulong_t): Likewise.
14784
14785         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
14786         (__SYSCALL_ULONG_TYPE): Likewise.
14787         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
14788         (__SYSCALL_SLONG_TYPE): Likewise.
14789         (__SYSCALL_ULONG_TYPE): Likewise.
14790         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
14791         (__SYSCALL_SLONG_TYPE): Likewise.
14792         (__SYSCALL_ULONG_TYPE): Likewise.
14793         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
14794         (__SYSCALL_SLONG_TYPE): Likewise.
14795         (__SYSCALL_ULONG_TYPE): Likewise.
14796
14797 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14798
14799         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
14800         Add sigaltstack-offsets.sym.
14801         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
14802         <sigaltstack-offsets.h>.
14803         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
14804         longjmp_msg pointer.
14805         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
14806         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
14807         signal stack.
14808         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
14809
14810 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
14811
14812         * elf/stackguard-macros.h: Remove file.
14813         * sysdeps/generic/stackguard-macros.h: New file.
14814         * sysdeps/i386/stackguard-macros.h: Likewise.
14815         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
14816         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
14817         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
14818         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
14819         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
14820         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
14821         * sysdeps/x86_64/stackguard-macros.h: Likewise.
14822         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
14823         <elf/stackguard-macros.h>.
14824
14825         [BZ #14109]
14826         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
14827         __aligned__ in attribute.
14828         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
14829         (gregset_t): Likewise.
14830
14831 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14832
14833         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
14834         * sysdeps/x86_64/64/Implies-after: Here.  New file.
14835         * sysdeps/x86_64/x32/Implies-after: New file.
14836
14837 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14838
14839         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
14840         and access return value for _dl_profile_fixup.  Use R10_LP to
14841         load frame size.
14842
14843 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14844
14845         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
14846
14847 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14848
14849         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
14850         * sysdeps/x86_64/x32/sysdep.h: New file.
14851
14852 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14853
14854         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
14855         * sysdeps/x86_64/setjmp.S: Likewise.
14856
14857 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14858
14859         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
14860         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
14861         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
14862         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
14863         remove unused global constant.
14864
14865 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
14866
14867         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
14868         include of <not-cancel.h>.
14869
14870 2012-05-15  Roland McGrath  <roland@hack.frob.com>
14871
14872         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
14873
14874 2012-05-15  Jeff Law  <law@redhat.com>
14875             Andreas Jaeger  <aj@suse.de>
14876
14877         [BZ #13594]
14878         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
14879         out from...
14880         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
14881         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
14882         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
14883         code changing __hst_map_handle.map.
14884
14885 2012-05-15  Roland McGrath  <roland@hack.frob.com>
14886
14887         * configure.in (sysnames): Look for Implies-before and Implies-after
14888         files.
14889         * configure: Regenerated.
14890
14891 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14892
14893         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
14894         8-byte data alignment with LP_SIZE alignment.
14895
14896 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14897
14898         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
14899         into R10_LP.
14900
14901 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14902
14903         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
14904
14905 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14906
14907         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
14908         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
14909         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
14910         Likewise.
14911         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
14912
14913 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14914
14915         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
14916         (stackinfo_sub_sp): Likewise.
14917
14918 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14919
14920         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
14921         RAX_LP.
14922
14923 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14924
14925         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
14926         into R*_LP.
14927
14928 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14929
14930         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
14931         sizes into R*_LP.
14932
14933 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14934
14935         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
14936
14937 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14938
14939         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
14940         into R11_LP and load __x86_64_shared_cache_size_half into
14941         R8_LP.
14942
14943 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14944
14945         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
14946         R8_LP.
14947
14948 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14949
14950         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
14951         logb for POWER7.
14952         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
14953         logbf for POWER7.
14954         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
14955         logbl for POWER7.
14956         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
14957         powerpc32/power7/fpu/s_logb.c via #include.
14958         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
14959         powerpc32/power7/fpu/s_logbf.c via #include.
14960         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
14961         powerpc32/power7/fpu/s_logbl.c via #include.
14962
14963 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
14964
14965         * README.libm: Remove file.
14966
14967 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14968
14969         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
14970         count for x32.  Use R*_LP and omit operand-size suffix.
14971
14972 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14973
14974         * shlib-versions: Move x86_64-.*-linux.* entries to ...
14975         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
14976         * sysdeps/x86_64/x32/shlib-versions: New file.
14977
14978 2012-05-14  Roland McGrath  <roland@hack.frob.com>
14979
14980         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
14981         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
14982         Use _dl_fatal_printf instead.
14983
14984 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
14985
14986         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
14987         set if not set by the user.  Do not allow for being unset.
14988         * sysdeps/unix/sysv/linux/configure: Regenerated.
14989
14990 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14991
14992         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
14993         the `q' suffix from lea and replace .quad with ASM_ADDR.
14994
14995 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14996
14997         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
14998         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
14999         instead of $17.
15000         (PTR_DEMANGLE): Likewise.
15001
15002 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
15003
15004         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
15005         (LP_OP): Likewise.
15006         (ASM_ADDR): Likewise.
15007         (RAX_LP): Likewise.
15008         (RBP_LP): Likewise.
15009         (RBX_LP): Likewise.
15010         (RCX_LP): Likewise.
15011         (RDI_LP): Likewise.
15012         (RSI_LP): Likewise.
15013         (RSP_LP): Likewise.
15014         (R8_LP): Likewise.
15015         (R9_LP): Likewise.
15016         (R10_LP): Likewise.
15017         (R10_LP): Likewise.
15018         (R11_LP): Likewise.
15019         (R12_LP): Likewise.
15020         (R13_LP): Likewise.
15021         (R14_LP): Likewise.
15022         (R15_LP): Likewise.
15023
15024 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
15025
15026         * sysdeps/x86_64/x32/dl-machine.h: New file.
15027
15028 2012-05-14  Andreas Jaeger  <aj@suse.de>
15029
15030         * manual/Makefile (subdir): Remove export of subdir.
15031         (all): Remove target.
15032         (.PHONY): Remove all from list.
15033         (mkinstalldirs): Remove.
15034         (.PHONY): Remove installdirs from list.
15035         ($(inst_infodir)/libc.info): Use make-target-directory.
15036         (installdirs): Remove.
15037         (subdir_%): Remove.
15038         (glibc-targets): Remove.
15039         (lib): Remove.
15040         (stubs): Remove.
15041         ($(objpfx)stubs ../po/manual.pot): Remove.
15042         ($(objpfx)stamp%): Remove.
15043         (make-target-directory): Remove.
15044         (subdir_install): Remove.
15045         (routines): Remove.
15046         (aux): Remove.
15047         (sources): Remove.
15048         (objects): Remove.
15049         (headers): Remove.
15050
15051         [BZ #13750]
15052         * manual/.gitignore: Remove, it's not needed anymore.
15053         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
15054         all files in it.
15055         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
15056         directory.
15057         (texis): Renamed to $(objpfx)texis.
15058         (texis-path): New, contains path to generated files.
15059         (chapters.%): Use texis-path for complete path, add extra argument
15060         libc-texinfo.sh.
15061         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
15062         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
15063         (summary,texi, stamp-summary): Use complete path of
15064         files. Generate files in build dir.
15065         (dir-add.texi): Build in build dir.
15066         (libm-err.texi,stamp-libm-err): Likewise.
15067         (version.texi, stamp-version): Likewise.
15068         (.%c.texi): Likewise.
15069         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
15070         (mostlyclean): Remove target.
15071         (realclean): Remove target.
15072         (generated): Add new variable with contents from mostlyclean and
15073         realclean, remove entries duplicated in common-mostlyclean, add
15074         stamp-libm-err and stamp-version.
15075         (generated-dirs): Add libc directory.
15076         ($(inst_infodir)/libc.info): Install files from build dir.
15077
15078         * manual/install.texi (Configuring and compiling): Adjust since
15079         the info files are not part of the tar ball anymore.
15080
15081 2012-05-14  Andreas Jaeger  <aj@suse.de>
15082
15083         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
15084         variable.
15085
15086 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
15087
15088         [BZ #13717]
15089         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
15090         to 2.2.0 where earlier.
15091         * sysdeps/unix/sysv/linux/configure: Regenerated.
15092         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
15093         Remove conditional code.
15094         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
15095         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
15096         Remove conditional code.
15097         [!__NR_lchown]: Likewise.
15098         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
15099         [__NR_lchown]: Likewise.
15100         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
15101         comment referencing __ASSUME_LCHOWN_SYSCALL.
15102         * sysdeps/unix/sysv/linux/i386/sigaction.c
15103         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
15104         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
15105         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
15106         Remove conditional code.
15107         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
15108         (__protocol_available): Remove #if 0 code.
15109         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
15110         conditional code.
15111         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
15112         * sysdeps/unix/sysv/linux/kernel-features.h
15113         (__ASSUME_GETCWD_SYSCALL): Don't define.
15114         (__ASSUME_REALTIME_SIGNALS): Likewise.
15115         (__ASSUME_PREAD_SYSCALL): Likewise.
15116         (__ASSUME_PWRITE_SYSCALL): Likewise.
15117         (__ASSUME_POLL_SYSCALL): Likewise.
15118         (__ASSUME_LCHOWN_SYSCALL): Likewise.
15119         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
15120         non-SPARC.
15121         (__ASSUME_SIOCGIFNAME): Don't define.
15122         (__ASSUME_MSG_NOSIGNAL): Likewise.
15123         (__ASSUME_SENDFILE): Define unconditionally.
15124         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
15125         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
15126         conditional code.
15127         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
15128         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
15129         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
15130         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
15131         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
15132         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
15133         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
15134         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
15135         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
15136         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
15137         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
15138         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
15139         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
15140         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
15141         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
15142         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
15143         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
15144         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
15145         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
15146         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
15147         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
15148         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
15149         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
15150         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
15151         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
15152         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
15153         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
15154         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
15155         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
15156         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
15157         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
15158         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
15159         Remove conditional code.
15160         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
15161         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
15162         Remove conditional code.
15163         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
15164         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
15165         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
15166         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
15167         Remove conditional code.
15168         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
15169         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
15170         Remove conditional code.
15171         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
15172         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
15173         Remove conditional code.
15174         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
15175         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
15176         Remove conditional code.
15177         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
15178         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
15179         Remove conditional code.
15180         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
15181         * sysdeps/unix/sysv/linux/sh/pwrite64.c
15182         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
15183         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
15184         * sysdeps/unix/sysv/linux/sigaction.c
15185         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
15186         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
15187         * sysdeps/unix/sysv/linux/sigpending.c
15188         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
15189         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
15190         * sysdeps/unix/sysv/linux/sigprocmask.c
15191         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
15192         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
15193         * sysdeps/unix/sysv/linux/sigsuspend.c
15194         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
15195         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
15196         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
15197         (__libc_missing_rt_sigs): Remove.
15198         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
15199         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
15200         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
15201         Remove conditional code.
15202         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
15203         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
15204         return 1.
15205         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
15206         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
15207         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
15208         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
15209
15210 2012-05-14  Andreas Jaeger  <aj@suse.de>
15211
15212         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
15213         it's not used in glibc.
15214         (__coshm1): Likewise.
15215         (__acosh1p): Likewise.
15216         (__sgn): Likewise.
15217
15218         * manual/string.texi (Copying and Concatenation): Add missing
15219         variable in concat example.
15220         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
15221
15222 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
15223
15224         [BZ #14103]
15225         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
15226         __builtin_clzl with __builtin_clzll.
15227
15228 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
15229
15230         [BZ #14104]
15231         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
15232         libc_freeres_ptr.
15233
15234 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15235
15236         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
15237         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
15238         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
15239         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
15240
15241 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
15242
15243         * NEWS: Update ia64 info.
15244
15245 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
15246
15247         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
15248         used as bcopy.
15249
15250 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
15251
15252         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
15253         * sysdeps/unix/syscalls.list (dup3): Likewise.
15254         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
15255         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
15256
15257 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
15258
15259         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
15260         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
15261
15262 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
15263
15264         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
15265         thread pointer.
15266         (TLS_IE): Use mov/add instead of movq/addq to load thread
15267         pointer.
15268         (TLS_GD_PREFIX): New.
15269         (TLS_GD): Use it.
15270
15271 2012-05-11  David S. Miller  <davem@davemloft.net>
15272
15273         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
15274         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
15275         (_FPU_SETCW): Likewise.
15276
15277 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
15278
15279         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
15280         is 32-byte aligned.
15281
15282 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
15283
15284         [BZ #11837]
15285         * iconvdata/gb18030.c: Update tables.
15286         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
15287         characters specially.
15288         (BODY for TO_LOOP): Add encoding of missing ranges.
15289
15290 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
15291
15292         [BZ #13673]
15293         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
15294         * sysdeps/mach/hurd/dup3.c: Likewise.
15295         * sysdeps/mach/hurd/readlinkat.c: Likewise.
15296         * sysdeps/powerpc/memmove.c:: Likewise.
15297
15298 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
15299
15300         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
15301         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
15302
15303 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
15304
15305         * elf/elf.h (R_X86_64_RELATIVE64): New.
15306         (R_X86_64_NUM): Updated.
15307         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
15308         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
15309         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
15310         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
15311         tst-quad1pie tst-quad2pie
15312         (modules-names): Add tst-quadmod1 tst-quadmod2.
15313         ($(objpfx)tst-quad1): New dependency.
15314         ($(objpfx)tst-quad2): Likewise.
15315         ($(objpfx)tst-quad1pie): Likewise.
15316         ($(objpfx)tst-quad2pie): Likewise.
15317         * sysdeps/x86_64/tst-quad1.c: New file.
15318         * sysdeps/x86_64/tst-quad1pie.c: New file.
15319         * sysdeps/x86_64/tst-quad2.c: Likewise.
15320         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
15321         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
15322         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
15323         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
15324         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
15325
15326 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15327
15328         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
15329         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
15330         * streams/stropts.h (t_scalar_t): Define type.
15331
15332         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
15333         (_PATH_PRESERVE): Set to "/var/lib".
15334         (_PATH_RWHODIR): Set to "/var/spool/rwho".
15335
15336         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
15337         instead of int.
15338
15339         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
15340         if __dir_mkfile succeeded.
15341
15342         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
15343         checking for _hurd_dtablesize.  Unlock it right after having
15344         finished _hurd_dtable allocation.
15345
15346 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
15347
15348         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
15349         * sysdeps/mach/hurd/configure: Regenerated.
15350         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
15351         special-casing to...
15352         * sysdeps/gnu/configure.in: ... this new file.
15353         * sysdeps/unix/sysv/linux/configure: Regenerated.
15354         * sysdeps/gnu/configure: New generated file.
15355
15356         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
15357         for Linux: use nsec instead of usec, as well as:
15358         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
15359         members of type struct timespec.
15360         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
15361         New macros.
15362         (struct stat64): Likewise.
15363         (_STATBUF_ST_NSEC): New macro.
15364         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
15365
15366         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
15367         __strtoul_internal rather than strtoul.
15368
15369 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
15370
15371         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
15372         and reject them.
15373
15374 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15375
15376         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
15377         which preserves existing values.
15378         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
15379
15380 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
15381
15382         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
15383         TIMEOUT values.  Return EINVAL for NFDS values either negative or
15384         greater than FD_SETSIZE.
15385
15386 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15387
15388         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
15389         allocated, call __vm_protect to finish enabling the existing space, and
15390         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
15391         allocate the remainder.
15392
15393 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
15394
15395         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
15396         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
15397
15398 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15399
15400         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
15401         sysdeps/mach/hurd/readlink.c.
15402
15403         * posix/tst-sysconf.c (posix_options): Only use
15404         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
15405         _POSIX_SYNCHRONIZED_IO when they are defined
15406         * sysdeps/mach/hurd/bits/posix_opt.h:
15407         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
15408         (_XOPEN_REALTIME): Undefine macro.
15409         (_XOPEN_REALTIME_THREADS): Undefine macro.
15410         (_XOPEN_SHM): Undefine macro.
15411         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
15412         macro to -1.
15413         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
15414         macro to -1.
15415         (_POSIX_ASYNC_IO): Undefine macro.
15416         (_POSIX_PRIORITIZED_IO): Undefine macro.
15417         (_POSIX_SPIN_LOCKS): Define macro to -1.
15418
15419         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
15420         SA_NODEFER, SA_RESETHAND.
15421         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
15422         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
15423         F_DUPFD_CLOEXEC.
15424
15425 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
15426
15427         * elf/Makefile (pldd-modules): Define unconditionally.
15428
15429 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
15430
15431         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
15432
15433 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15434
15435         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
15436         Return ENOENT when name is empty.
15437         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
15438
15439 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
15440
15441         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
15442
15443         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
15444
15445 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15446
15447         Fix mlock in all cases except non-readable pages.
15448         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
15449         instead of VM_PROT_ALL as parameter to __vm_wire function.
15450
15451         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
15452         (__mkdir): When path is `/', just fail with EEXIST.
15453         * sysdeps/mach/hurd/mkdirat.c: Likewise.
15454
15455 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
15456
15457         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
15458         <sys/uio.h> (for writev).
15459         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
15460         and <sys/param.h> (for MIN).
15461
15462 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
15463
15464         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
15465         REQUESTED_TIME.  Properly set the remaining time and return EINTR
15466         if interrupted.
15467
15468 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
15469
15470         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
15471         Depend on against $(link-rpcuserlibs).
15472
15473 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15474
15475         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
15476         (__libc_stack_end): Do not use attribute_relro.
15477         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
15478         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
15479         to libthread-provided value.
15480         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
15481         attribute_relro.
15482
15483 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
15484
15485         [BZ #3748]
15486         * bits/libc-lock.h (__libc_once_get): New macro.
15487         * sysdeps/mach/bits/libc-lock.h: Likewise.
15488         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
15489         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
15490         instead of using implementation details.
15491
15492         * libio/fileops.c: Unconditionally include <kernel-features.h>.
15493         * libio/freopen.c: Likewise.
15494         * libio/freopen64.c: Likewise.
15495         * misc/syslog.c: Likewise.
15496         * nscd/connections.c: Likewise.
15497         * nscd/netgroupcache.c: Likewise.
15498         * sysdeps/posix/getcwd.c: Likewise.
15499
15500 2012-05-10  Roland McGrath  <roland@hack.frob.com>
15501
15502         * math/w_ilogbf.c: Add #include <limits.h>.
15503
15504 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15505
15506         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
15507         path instead of returning without unlocking.
15508
15509         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
15510         immediate-write ioctls.
15511         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
15512
15513 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
15514
15515         * sysdeps/mach/hurd/i386/init-first.c (init): Use
15516         __builtin_frame_address instead of making assumptions about the
15517         location of the return address relative to DATA.  Force early load of
15518         the return address.
15519         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
15520         __builtin_frame_address.
15521
15522         dup3 for GNU Hurd.
15523         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
15524         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
15525         implement dup3 and do some further code clean-ups.
15526         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
15527         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
15528
15529 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15530
15531         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
15532
15533         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
15534         HURD_CRITICAL_END around holding _hurd_dtable_lock.
15535         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
15536         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
15537         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
15538         d->port.lock.
15539
15540         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
15541         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
15542         when handler == SIG_ERR, not when handler != SIG_ERR.
15543
15544 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
15545
15546         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
15547         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
15548         definitions.
15549
15550         accept4 for GNU Hurd.
15551         * include/sys/socket.h (__libc_accept4): New prototype.
15552         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
15553         to implement __libc_accept4.
15554         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
15555         __libc_accept4.
15556         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
15557
15558         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
15559         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
15560         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
15561         signal-defines.sym.
15562
15563 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15564
15565         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
15566
15567 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
15568
15569         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
15570         assertion on O_CLOEXEC flag.
15571         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
15572         * hurd/intern-fd.c: Likewise.
15573         * hurd/port2fd.c: Likewise.
15574
15575 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15576
15577         [BZ #3906]
15578         * bits/in.h (IPV6_PKTINFO): Define new macro.
15579         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
15580
15581 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15582
15583         [BZ #13954]
15584         [BZ #13955]
15585         [BZ #13956]
15586         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
15587         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
15588         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
15589         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
15590         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
15591         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
15592         * math/libm-test.inc (logb_test) : Additional logb tests.
15593
15594 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
15595             Andreas Jaeger  <aj@suse.de>
15596
15597         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
15598         * configure: Regenerated.
15599         * config.h.in (LINK_OBSOLETE_RPC): New macro.
15600         * config.make.in (link-obsolete-rpc): New substituted variable.
15601         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
15602         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
15603         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
15604         (shared-only-routines): Don't set it under [link-obsolete-rpc],
15605         so that libc.a contains the symbols.
15606         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
15607         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
15608         * sunrpc/auth_none.c: Likewise.
15609         * sunrpc/auth_unix.c: Likewise.
15610         * sunrpc/authdes_prot.c: Likewise.
15611         * sunrpc/authuxprot.c: Likewise.
15612         * sunrpc/clnt_gen.c: Likewise.
15613         * sunrpc/clnt_perr.c: Likewise.
15614         * sunrpc/clnt_raw.c: Likewise.
15615         * sunrpc/clnt_simp.c: Likewise.
15616         * sunrpc/clnt_tcp.c: Likewise.
15617         * sunrpc/clnt_udp.c: Likewise.
15618         * sunrpc/clnt_unix.c: Likewise.
15619         * sunrpc/des_crypt.c: Likewise.
15620         * sunrpc/des_soft.c: Likewise.
15621         * sunrpc/get_myaddr.c: Likewise.
15622         * sunrpc/key_call.c: Likewise.
15623         * sunrpc/key_prot.c: Likewise.
15624         * sunrpc/netname.c: Likewise.
15625         * sunrpc/pm_getmaps.c: Likewise.
15626         * sunrpc/pm_getport.c: Likewise.
15627         * sunrpc/pmap_clnt.c: Likewise.
15628         * sunrpc/pmap_prot.c: Likewise.
15629         * sunrpc/pmap_prot2.c: Likewise.
15630         * sunrpc/pmap_rmt.c: Likewise.
15631         * sunrpc/publickey.c: Likewise.
15632         * sunrpc/rpc_cmsg.c: Likewise.
15633         * sunrpc/rpc_common.c: Likewise.
15634         * sunrpc/rpc_dtable.c: Likewise.
15635         * sunrpc/rpc_prot.c: Likewise.
15636         * sunrpc/rpc_thread.c: Likewise.
15637         * sunrpc/rtime.c: Likewise.
15638         * sunrpc/svc.c: Likewise.
15639         * sunrpc/svc_auth.c: Likewise.
15640         * sunrpc/svc_raw.c: Likewise.
15641         * sunrpc/svc_run.c: Likewise.
15642         * sunrpc/svc_tcp.c: Likewise.
15643         * sunrpc/svc_udp.c: Likewise.
15644         * sunrpc/svc_unix.c: Likewise.
15645         * sunrpc/svcauth_des.c: Likewise.
15646         * sunrpc/xcrypt.c: Likewise.
15647         * sunrpc/xdr.c: Likewise.
15648         * sunrpc/xdr_array.c: Likewise.
15649         * sunrpc/xdr_float.c: Likewise.
15650         * sunrpc/xdr_intXX_t.c: Likewise.
15651         * sunrpc/xdr_mem.c: Likewise.
15652         * sunrpc/xdr_rec.c: Likewise.
15653         * sunrpc/xdr_ref.c: Likewise.
15654         * sunrpc/xdr_sizeof.c: Likewise.
15655         * sunrpc/xdr_stdio.c: Likewise.
15656
15657 2012-05-10  Roland McGrath  <roland@hack.frob.com>
15658
15659         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
15660         change.  Update copyright years.
15661
15662 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
15663
15664         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
15665
15666 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
15667             Joseph Myers  <joseph@codesourcery.com>
15668             Paul Pluzhnikov  <ppluzhnikov@google.com>
15669
15670         [BZ #14012]
15671         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
15672         requiring rpcgen.
15673         [cross-compiling] (extra-libs): Likewise.
15674         [cross-compiling] (extra-libs-others): Likewise.
15675         [cross-compiling] (librpcsvc-routines): Likewise.
15676         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
15677         [cross-compiling] (omit-deps): Likewise.
15678         (sunrpc-CPPFLAGS): New variable.
15679         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
15680         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
15681         (cross-rpcgen-objs): New variable.
15682         (extra-objs): Append $(cross-rpcgen-objs).
15683         ($(cross-rpcgen-objs)): New rule.
15684         ($(objpfx)cross-rpcgen): Likewise.
15685         (rpcgen-cmd): Define to use $(built-program-file).  Expand
15686         comment.
15687         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
15688         ($(objpfx)x%.stmp): Likewise.
15689         * sunrpc/proto.h [IS_IN_build] (_): Define.
15690         [IS_IN_build] (_libc_intl_domainname): Likewise.
15691
15692 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
15693
15694         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
15695         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
15696         and R_X86_64_TPOFF64.
15697
15698 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
15699
15700         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
15701         sysdeps/unix/sysv/syscalls.list.
15702         (stime): Likewise.
15703         (utime): Likewise.
15704         * sysdeps/unix/sysv/syscalls.list: Remove file.
15705
15706 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
15707
15708         [BZ #3440]
15709         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
15710         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
15711         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
15712         (__LC_IDENTIFICATION): Make these macros useful in #if
15713         expressions, as required by C99.
15714
15715 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
15716
15717         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
15718         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
15719         after this.
15720
15721 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
15722
15723         * stdlib/longlong.h: Updated from GCC.
15724
15725 2012-05-09  Andreas Jaeger  <aj@suse.de>
15726
15727         * nscd/nscd.c (run_modes): Make named enum, reorder so that
15728         default is first entry.
15729         (run_mode): Set type.
15730         (main): Remove informal message about syslog.
15731         (options): Fix typo.
15732
15733         [BZ #14053]
15734         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
15735         to asm.
15736         (lrint): Likewise.
15737         (llrintf): Likewise.
15738         (llrint): Likewise.
15739         (rint): Likewise.
15740         (rintf): Likewise.
15741         (nearbyint): Likewise.
15742         (nearbyintf): Likewise.
15743
15744 2012-05-09  Andreas Jaeger  <aj@suse.de>
15745             Pedro Alves  <palves@redhat.com>
15746
15747         * nscd/nscd.c (run_mode): Use enum.
15748         (main): Cleanup coding style issue.
15749
15750 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
15751             Andreas Jaeger  <aj@suse.de>
15752
15753         * nscd/nscd.c (go_background): Replaced with...
15754         (run_mode): ... this.
15755         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
15756         (options): Add -F --foreground.
15757         (main): Implement it.
15758         (parse_opt): Parse it.
15759
15760 2012-05-09  Andreas Jaeger  <aj@suse.de>
15761
15762         [BZ #14083]
15763         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
15764         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
15765         -Wconversion warning.
15766         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
15767         Likewise.
15768
15769 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
15770
15771         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
15772         == 0.
15773         (LC_ALL): Use macro-int-constant.
15774         (LC_COLLATE): Likewise.
15775         (LC_CTYPE): Likewise.
15776         (LC_MESSAGES): Likewise.
15777         (LC_MONETARY): Likewise.
15778         (LC_NUMERIC): Likewise.
15779         (LC_TIME): Likewise.
15780         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
15781         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
15782         [ISO || ISO99 || ISO11] (*_t): Do not allow.
15783         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
15784         Specify type.
15785         [C99-based standards] (float_t): Expect type.
15786         [C99-based standards] (double_t): Expect type.
15787         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
15788         type.
15789         [C99-based standards] (HUGE_VALL): Likewise.
15790         [C99-based standards] (INFINITY): Likewise.
15791         [C99-based standards] (NAN): Likewise.
15792         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
15793         [C99-based standards] (FP_NAN): Likewise.
15794         [C99-based standards] (FP_NORMAL): Likewise.
15795         [C99-based standards] (FP_SUBNORMAL): Likewise.
15796         [C99-based standards] (FP_ZERO): Likewise.
15797         [C99-based standards] (FP_FAST_FMA): Use
15798         optional-macro-int-constant.  Specify type.  Require == 1.
15799         [C99-based standards] (FP_FAST_FMAF): Likewise.
15800         [C99-based standards] (FP_FAST_FMAL): Likewise.
15801         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
15802         [C99-based standards] (FP_ILOGBNAN): Likewise.
15803         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
15804         Specify type.
15805         [C99-based standards] (MATH_ERREXCEPT): Likewise.
15806         [C99-based standards] (math_errhandling): Specify type.
15807         [ISO99 || ISO11] (signgam): Do not allow.
15808         [non-C99-based standards] (copysignf): Do not allow.
15809         [non-C99-based standards] (exp2f): Likewise.
15810         [non-C99-based standards] (log2f): Likewise.
15811         [non-C99-based standards] (modff): Allow.
15812         [non-C99-based standards] (erff): Do not allow.
15813         [non-C99-based standards] (erfcf): Likewise.
15814         [non-C99-based standards] (gammaf): Likewise.
15815         [non-C99-based standards] (hypotf): Likewise.
15816         [non-C99-based standards] (j0f): Likewise.
15817         [non-C99-based standards] (j1f): Likewise.
15818         [non-C99-based standards] (jnf): Likewise.
15819         [non-C99-based standards] (lgammaf): Likewise.
15820         [non-C99-based standards] (tgammaf): Likewise.
15821         [non-C99-based standards] (y0f): Likewise.
15822         [non-C99-based standards] (y1f): Likewise.
15823         [non-C99-based standards] (ynf): Likewise.
15824         [non-C99-based standards] (isnanf): Likewise.
15825         [non-C99-based standards] (acoshf): Likewise.
15826         [non-C99-based standards] (asinhf): Likewise.
15827         [non-C99-based standards] (atanhf): Likewise.
15828         [non-C99-based standards] (cbrtf): Likewise.
15829         [non-C99-based standards] (expm1f): Likewise.
15830         [non-C99-based standards] (ilogbf): Likewise.
15831         [non-C99-based standards] (log1pf): Likewise.
15832         [non-C99-based standards] (logbf): Likewise.
15833         [non-C99-based standards] (nextafterf): Likewise.
15834         [non-C99-based standards] (remainderf): Likewise.
15835         [non-C99-based standards] (rintf): Likewise.
15836         [non-C99-based standards] (scalbf): Likewise.
15837         [non-C99-based standards] (copysignl): Likewise.
15838         [non-C99-based standards] (exp2l): Likewise.
15839         [non-C99-based standards] (log2l): Likewise.
15840         [non-C99-based standards] (modfl): Allow.
15841         [non-C99-based standards] (erfl): Do not allow.
15842         [non-C99-based standards] (erfcl): Likewise.
15843         [non-C99-based standards] (gammal): Likewise.
15844         [non-C99-based standards] (hypotl): Likewise.
15845         [non-C99-based standards] (j0l): Likewise.
15846         [non-C99-based standards] (j1l): Likewise.
15847         [non-C99-based standards] (jnl): Likewise.
15848         [non-C99-based standards] (lgammal): Likewise.
15849         [non-C99-based standards] (tgammal): Likewise.
15850         [non-C99-based standards] (y0l): Likewise.
15851         [non-C99-based standards] (y1l): Likewise.
15852         [non-C99-based standards] (ynl): Likewise.
15853         [non-C99-based standards] (isnanl): Likewise.
15854         [non-C99-based standards] (acoshl): Likewise.
15855         [non-C99-based standards] (asinhl): Likewise.
15856         [non-C99-based standards] (atanhl): Likewise.
15857         [non-C99-based standards] (cbrtl): Likewise.
15858         [non-C99-based standards] (expm1l): Likewise.
15859         [non-C99-based standards] (ilogbl): Likewise.
15860         [non-C99-based standards] (log1pl): Likewise.
15861         [non-C99-based standards] (logbl): Likewise.
15862         [non-C99-based standards] (nextafterl): Likewise.
15863         [non-C99-based standards] (remainderl): Likewise.
15864         [non-C99-based standards] (rintl): Likewise.
15865         [non-C99-based standards] (scalbl): Likewise.
15866         [ISO || ISO99 || ISO11] (*_t): Do not allow.
15867         [non-C99-based standards] (FP_*): Do not allow.
15868         [C99-based standards] (FP_*): Change to
15869         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
15870         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
15871         allow.
15872         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
15873         (SIG_ERR): Likewise.
15874         [X/Open-based standards] (SIG_HOLD): Likewise.
15875         (SIG_IGN): Likewise.
15876         (SIGABRT): Use macro-int-constant.  Specify type.  Require
15877         positive value.
15878         (SIGFPE): Likewise.
15879         (SIGILL): Likewise.
15880         (SIGINT): Likewise.
15881         (SIGSEGV): Likewise.
15882         (SIGTER): Likewise.
15883         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
15884         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
15885         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
15886         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
15887         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
15888         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
15889         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
15890         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
15891         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
15892         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
15893         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
15894         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
15895         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
15896         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
15897         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
15898         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
15899         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
15900         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
15901         [X/Open-based standards] (SIGTRAP): Likewise.
15902         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
15903         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
15904         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
15905         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
15906         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
15907         allow.
15908
15909 2012-05-08  Ian Wienand  <ianw@vmware.com>
15910
15911         [BZ #14080]
15912         * time/tzset.c (__tzset_parse_tz): Update default rules for
15913         daylight time changes in the Energy Policy Act of 2005.
15914
15915 2012-05-09  Andreas Jaeger  <aj@suse.de>
15916
15917         [BZ #13983]
15918         * elf/ldconfig.c (parse_conf): Change string to make clear that
15919         ldconfig only issued a warning if ld.so.conf does not exist.
15920
15921 2012-05-08  David S. Miller  <davem@davemloft.net>
15922
15923         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
15924         movxtod instead of popping the value on the stack.
15925
15926         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15927
15928 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
15929
15930         * config.h.in: Add HAVE_ARM_PCS_VFP.
15931
15932 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
15933
15934         [BZ #13979]
15935         * include/features.h: Warn if user requests __FORTIFY_SOURCE
15936         checking but the checks are disabled for any reason.
15937
15938 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
15939
15940         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
15941         and ELF64_R_TYPE with ELFW(R_TYPE).
15942
15943 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
15944
15945         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
15946         (ulimit): Likewise.
15947
15948         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
15949         (settimeofday): Likewise.
15950
15951 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
15952
15953         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
15954         a struct th_u2 inside the union, and move tu_block/tu_code into
15955         a new th_u3 union of tu_block/tu_code inside of that.  Move
15956         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
15957         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
15958         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
15959         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
15960         (th_stuff): Change to th_u1.tu_stuff.
15961         (th_data): Define.
15962         (th_msg): Change to th_u1.th_u2.tu_data.
15963
15964 2012-05-07  David S. Miller  <davem@davemloft.net>
15965
15966         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15967
15968         [BZ #14074]
15969         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
15970         (SETUP_PIC_REG): Use it.
15971         (SETUP_PIC_REG_LEAF): Use it.
15972
15973 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
15974
15975         [BZ #13885]
15976         [BZ #13923]
15977         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
15978         USE_AS_EXPM1L.
15979         (EXPL_FINITE): Likewise.
15980         (FLDLOG): Likewise.
15981         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
15982         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
15983         e_expl.S.
15984         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
15985         USE_AS_EXPM1L.
15986         (EXPL_FINITE): Likewise.
15987         (FLDLOG): Likewise.
15988         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
15989         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
15990         e_expl.S.
15991         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
15992         test of -max_value argument for long double.
15993         * sysdeps/i386/fpu/libm-test-ulps: Update.
15994         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15995
15996 2012-05-06  David S. Miller  <davem@davemloft.net>
15997
15998         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
15999         quad soft-float symbols whose references which are compiler
16000         generated.
16001         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
16002
16003 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
16004
16005         [BZ #13884]
16006         [BZ #13914]
16007         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
16008         USE_AS_EXP10L.
16009         (EXPL_FINITE): Likewise.
16010         (FLDLOG): Likewise.
16011         (c0): Likewise.
16012         (c1): Likewise.
16013         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
16014         Adjust comments for base varying.
16015         (__expl_finite): Change alias to EXPL_FINITE.
16016         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
16017         e_expl.S.
16018         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
16019         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
16020         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
16021         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
16022         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
16023         USE_AS_EXP10L.
16024         (EXPL_FINITE): Likewise.
16025         (FLDLOG): Likewise.
16026         (c0): Likewise.
16027         (c1): Likewise.
16028         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
16029         Adjust comments for base varying.
16030         (__expl_finite): Change alias to EXPL_FINITE.
16031         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
16032         tests for bugs.
16033         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16034
16035         [BZ #14064]
16036         * math/libm-test.inc (check_float_internal): Correct ulp
16037         calculation for subnormal expected results.
16038
16039 2012-05-06  Andreas Jaeger  <aj@suse.de>
16040
16041         * Makeconfig (+math-flags): New, set to -frounding-math.
16042         (+cflags): Add +math-flags so that all of glibc gets compiled with
16043         it.
16044
16045         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
16046
16047 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
16048
16049         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
16050         Disable one test.
16051
16052         [BZ #13787]
16053         [BZ #13922]
16054         [BZ #14036]
16055         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
16056         (__ieee754_expl): Allow for and saturate large arguments.
16057         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
16058         (u_threshold): Likewise.
16059         (__exp): Call __ieee754_exp before checking for overflow and
16060         underflow.
16061         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
16062         (u_threshold): Likewise.
16063         (__expf): Call __ieee754_expf before checking for overflow and
16064         underflow.
16065         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
16066         (u_threshold): Likewise.
16067         (__expl): Call __ieee754_expl before checking for overflow and
16068         underflow.
16069         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
16070         (__ieee754_expl): Allow for and saturate large arguments.
16071         * math/libm-test.inc (exp_test): Add another test.  Do not allow
16072         missing overflow exception on overflow.
16073         (expm1_test): Do not allow missing overflow exception on overflow.
16074
16075         * sysdeps/i386/fpu/e_expl.c: Move to ...
16076         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
16077         rather than using inline asm.
16078         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
16079         * sysdeps/x86_64/fpu/e_expl.S: Copy from
16080         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
16081
16082         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
16083         (nice): Likewise.
16084         (poll): Likewise.
16085         (signal): Likewise.
16086         (time): Likewise.
16087         (times): Likewise.
16088
16089 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
16090
16091         * sysdeps/unix/syscalls.list (adjtime): Add entry from
16092         sysdeps/unix/common/syscalls.list.
16093         (fchmod): Likewise.
16094         (fchown): Likewise.
16095         (ftruncate): Likewise.
16096         (getrusage): Likewise.
16097         (gettimeofday): Likewise.
16098         (setpgid): Likewise.
16099         (setregid): Likewise.
16100         (setreuid): Likewise.
16101         (sigaction): Likewise.
16102         (truncate): Likewise.
16103         (vhangup): Likewise.
16104         * sysdeps/unix/common/syscalls.list: Remove file.
16105         * sysdeps/unix/bsd/Implies: Don't include unix/common.
16106         * sysdeps/unix/sysv/linux/Implies: Likewise.
16107
16108 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
16109
16110         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
16111         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
16112         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
16113         Moved to ...
16114         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
16115         Here.
16116         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
16117         to ...
16118         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
16119         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
16120         to ...
16121         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
16122         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
16123         to ...
16124         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
16125         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
16126         to ...
16127         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
16128         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
16129         to ...
16130         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
16131         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
16132         to ...
16133         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
16134         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
16135         to ...
16136         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
16137         Here.
16138         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
16139         to ...
16140         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
16141         Here.
16142         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
16143         to ...
16144         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
16145         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
16146         Moved to ...
16147         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
16148         Here.
16149         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
16150         to ...
16151         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
16152
16153 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
16154
16155         * sysdeps/unix/common/bits/dirent.h: Remove file.
16156         * sysdeps/unix/common/bits/fcntl.h: Likewise.
16157
16158         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
16159         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
16160         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
16161         * sysdeps/unix/bsd/isatty.c: Likewise.
16162         * sysdeps/unix/bsd/tcdrain.c: Likewise.
16163         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
16164         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
16165
16166 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16167
16168         [BZ #13563]
16169         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
16170         long double comparison inaccuracies.
16171         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
16172         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16173
16174 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
16175
16176         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
16177         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
16178
16179 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
16180
16181         [BZ #14049]
16182         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
16183         nonzero digits before rounding a hex value.
16184         * stdlib/tst-strtod.c (tests): Add another test.
16185
16186 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16187
16188         * sysdeps/s390/fpu/libm-test-ulps: Update.
16189
16190 2012-05-03  Andreas Jaeger  <aj@suse.de>
16191
16192         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
16193         does not get optimized out.
16194         (malloc_opt_barrier): New.
16195
16196 2012-05-03  Andreas Jaeger  <aj@suse.de>
16197             Roland McGrath  <roland@hack.frob.com>
16198
16199         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
16200         intermediate file deletion.
16201         (generated): Add .symlist files.
16202
16203 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
16204
16205         [BZ #13775]
16206         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
16207         Redirect under this condition.
16208         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
16209         [__USE_GNU] (__dprintf_chk): Not under this condition.
16210         [__USE_GNU] (__vdprintf_chk): Likewise.
16211         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
16212         under this condition.
16213         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
16214         [__USE_XOPEN2K8] (dprintf): Define under this condition.
16215         [__USE_XOPEN2K8] (vdprintf): Likewise.
16216         [__USE_GNU] (__dprintf_chk): Not under this condition.
16217         [__USE_GNU] (__vdprintf_chk): Likewise.
16218         [__USE_GNU] (dprintf): Likewise.
16219         [__USE_GNU] (vdprintf): Likewise.
16220
16221 2012-05-03  Roland McGrath  <roland@hack.frob.com>
16222
16223         * elf/Makefile (common-generated): Set this instead of generated for
16224         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
16225         $(all-built-dso)-derived lists.
16226
16227 2012-05-03  Andreas Jaeger  <aj@suse.de>
16228
16229         * sysdeps/i386/fpu/libm-test-ulps: Update.
16230
16231         * FAQ: Removed.
16232         * FAQ.in: Likewise.
16233         * scripts/gen-FAQ.pl: Likewise.
16234         * manual/install.texi (Installation): Point to online location of
16235         FAQ.
16236         * Makefile (files-for-dist): Remove FAQ.
16237         (FAQ): Remove.
16238
16239 2012-05-02  Allan McRae  <allan@archlinux.org>
16240
16241         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
16242         (LDFLAGS-reldepmod5.so): Likewise.
16243         (LDFLAGS-reldep6mod1.so): Likewise.
16244         (LDFLAGS-reldep6mod4.so): Likewise.
16245         (LDFLAGS-reldep8mod3.so): Likewise.
16246         (LDFLAGS-unload4mod1.so): Likewise.
16247         (LDFLAGS-unload4mod2.so): Likewise.
16248         (LDFLAGS-tst-initorder): Likewise.
16249         (LDFLAGS-tst-initordera2.so): Likewise.
16250         (LDFLAGS-tst-initordera3.so): Likewise.
16251         (LDFLAGS-tst-initordera4.so): Likewise.
16252         (LDFLAGS-tst-initorderb2.so): Likewise.
16253         (LDFLAGS-noload): Likewise.
16254         (LDFLAGS-next): Likewise.
16255         (LDFLAGS-order2mod1.so): Likewise.
16256         (LDFLAGS-order2mod2.so): Likewise.
16257         (LDFLAGS-tst-initorder2): Likewise.
16258         (LDFLAGS-tst-initorder2a.so): Likewise.
16259         (LDFLAGS-tst-initorder2b.so): Likewise.
16260         (LDFLAGS-tst-initorder2c.so): Likewise.
16261         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
16262
16263 2012-05-02  David S. Miller  <davem@davemloft.net>
16264
16265         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16266
16267 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
16268
16269         [BZ #14055]
16270         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
16271
16272 2012-05-02  Andreas Jaeger  <aj@suse.de>
16273
16274         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
16275         since we manipulate rounding mode.
16276         (CPPFLAGS-test-idouble.c): Likewise.
16277         (CPPFLAGS-test-ifloat.c): Likewise.
16278         (CFLAGS-test-ldouble.c): Likewise.
16279         (CFLAGS-test-double.c): Likewise.
16280         (CFLAGS-test-float.c): Likewise.
16281         (CFLAGS-test-misc.c): Likewise.
16282         (CFLAGS-test-test-fenv.c): Likewise.
16283
16284 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16285
16286         [BZ #2550]
16287         [BZ #2570]
16288         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
16289         comparisons to determine direction to adjust input.
16290
16291 2012-05-01  Roland McGrath  <roland@hack.frob.com>
16292
16293         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
16294         output to the target.
16295
16296         * scripts/localplt.awk: New file.
16297         * elf/Makefile ($(objpfx)check-localplt): Target removed.
16298         (check-localplt-CFLAGS): Variable removed.
16299         ($(all-built-dso:=.jmprel)): New static pattern rule.
16300         (generated): Add those targets.
16301         (localplt-built-dso): New variable.
16302         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
16303
16304         * elf/check-localplt.c: File removed.
16305
16306         * scripts/check-execstack.awk: New file.
16307         * elf/Makefile ($(objpfx)check-execstack): Target removed.
16308         (check-execstack-CFLAGS): Variable removed.
16309         ($(objpfx)check-execstack.h): Target removed.
16310         ($(objpfx)execstack-default): New target.
16311         (generated): Add that instead of check-execstack.h.
16312         ($(all-built-dso:=.phdr)): New static pattern rule.
16313         (generated): Add those targets.
16314         * elf/check-execstack.c: File removed.
16315
16316         * scripts/check-textrel.awk: New file.
16317         * elf/Makefile ($(objpfx)check-textrel): Target removed.
16318         (check-textrel-CFLAGS): Variable removed.
16319         (all-built-dso): Use := to define.o
16320         ($(all-built-dso:=.dyn)): New static pattern rule.
16321         (generated): Add those targets.
16322         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
16323         * config.make.in (READELF): New substituted variable.
16324         * elf/check-textrel.c: File removed.
16325
16326 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
16327
16328         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
16329         allow.
16330         * conform/data/ctype.h-data [C99-based standards] (isblank):
16331         Expect function.
16332         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
16333         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
16334         [ISO || ISO99 || ISO11] (*_t): Do not allow.
16335         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
16336         Specify type.  Require positive value.
16337         (EILSEQ): Likewise.
16338         (ERANGE): Likewise.
16339         [ISO || POSIX] (EILSEQ): Do not expect.
16340         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
16341         Specify type.  Require positive value.
16342         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
16343         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
16344         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
16345         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
16346         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
16347         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
16348         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
16349         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
16350         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
16351         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
16352         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
16353         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
16354         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
16355         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
16356         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
16357         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
16358         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
16359         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
16360         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
16361         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
16362         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
16363         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
16364         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
16365         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
16366         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
16367         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
16368         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
16369         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
16370         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
16371         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
16372         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
16373         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
16374         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
16375         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
16376         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
16377         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
16378         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
16379         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
16380         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
16381         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
16382         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
16383         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
16384         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
16385         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
16386         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
16387         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
16388         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
16389         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
16390         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
16391         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
16392         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
16393         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
16394         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
16395         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
16396         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
16397         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
16398         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
16399         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
16400         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
16401         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
16402         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
16403         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
16404         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
16405         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
16406         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
16407         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
16408         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
16409         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
16410         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
16411         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
16412         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
16413         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
16414         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
16415         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
16416         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
16417         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
16418         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
16419         Require >= 2.
16420         (FLT_ROUNDS): Expect as macro, not constant.
16421         (FLT_MANT_DIG): Use macro-int-constant.
16422         (DBL_MANT_DIG): Likewise.
16423         (LDBL_MANT_DIG): Likewise.
16424         (FLT_DIG): Likewise.
16425         (DBL_DIG): Likewise.
16426         (LDBL_DIG): Likewise.
16427         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
16428         (DBL_MIN_EXP): Likewise.
16429         (LDBL_MIN_EXP): Likewise.
16430         (FLT_MAX_EXP): Use macro-int-constant.
16431         (DBL_MAX_EXP): Likewise.
16432         (LDBL_MAX_EXP): Likewise.
16433         (FLT_MAX_10_EXP): Likewise.
16434         (DBL_MAX_10_EXP): Likewise.
16435         (LDBL_MAX_10_EXP): Likewise.
16436         (FLT_MAX): Use macro-constant.
16437         (DBL_MAX): Likewise.
16438         (LDBL_MAX): Likewise.
16439         (FLT_EPSILON): Use macro-constant.  Give upper bound.
16440         (DBL_EPSILON): Likewise.
16441         (LDBL_EPSILON): Likewise.
16442         (FLT_MIN): Likewise.
16443         (DBL_MIN): Likewise.
16444         (LDBL_MIN): Likewise.
16445         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
16446         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
16447         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
16448         [ISO11] (FLT_HAS_SUBNORM): Likewise.
16449         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
16450         [ISO11] (DBL_DECIMAL_DIG): Likewise.
16451         [ISO11] (FLT_DECIMAL_DIG): Likewise.
16452         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
16453         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
16454         [ISO11] (FLT_TRUE_MIN): Likewise.
16455         [ISO11] (LDBL_TRUE_MIN): Likewise.
16456         [ISO || ISO99 || ISO11] (*_t): Do not allow.
16457         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
16458         (SCHAR_MIN): Use macro-int-constant.  Specify type.
16459         (SCHAR_MAX): Likewise.
16460         (UCHAR_MAX): Likewise.
16461         (CHAR_MIN): Likewise.
16462         (CHAR_MAX): Likewise.
16463         (MB_LEN_MAX): Use macro-int-constant.
16464         (SHRT_MIN): Use macro-int-constant.  Specify type.
16465         (SHRT_MAX): Likewise.
16466         (USHRT_MAX): Likewise.
16467         (INT_MAX): Likewise.
16468         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
16469         bound negative.
16470         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
16471         bound with "U".
16472         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
16473         bound with "L".
16474         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
16475         bound negative.  Suffix upper bound with "L".
16476         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
16477         bound with "UL".
16478         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
16479         Specify type.
16480         [C99-based standards] (LLONG_MAX): Likewise.
16481         [C99-based standards] (ULLONG_MAX): Likewise.
16482         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
16483         == 0.
16484         [ISO11] (max_align_t): Require type.
16485         [ISO || ISO99 || ISO11] (*_t): Do not allow.
16486
16487         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
16488         from $CFLAGS, without defining away __attribute__ calls.
16489         (checknamespace): Use $CFLAGS_namespace.
16490
16491         * conform/conformtest.pl (@keywords): Only include C99 keywords
16492         for standards based on C99 or C11.
16493
16494         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
16495         Disable tests.
16496         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
16497         UNIX98]: Likewise.
16498
16499         * conform/conformtest.pl: Handle "macro-int-constant" and test for
16500         usability of symbols in #if.
16501
16502         * conform/conformtest.pl: If macro or constant types start
16503         "promoted:", expect the symbol to be of the following type
16504         promoted by the integer promotions.
16505
16506         * conform/conformtest.pl: Parse all "constant" and "macro" lines
16507         in one place.  Also handle "macro-constant".
16508
16509         * conform/conformtest.pl: Only accept expected macro values with
16510         "==".  Parse all "macro" lines in one place.
16511         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
16512
16513         * conform/conformtest.pl: Handle braced types on "constant" lines
16514         instead of handling "typed-constant".
16515         * conform/data/signal.h-data: Use "constant" instead of
16516         "typed-constant".
16517
16518         * conform/conformtest.pl: Handle "optional-" at start of lines in
16519         one place rather than duplicating several cases.  Handle each
16520         format of "macro" line with initial "optional-".
16521
16522         * conform/conformtest.pl: Only accept expected constant or
16523         optional-constant values with "==".  Parse all "constant" lines in
16524         one place.  Parse all "optional-constant" lines in one place.
16525         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
16526         * conform/data/fmtmsg.h-data: Likewise.
16527         * conform/data/netinet/in.h-data: Likewise.
16528         * conform/data/tar.h-data: Likewise.
16529         * conform/data/limits.h-data: Use "==" form on "constant" and
16530         "optional-constant" lines.
16531
16532         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
16533         Use -std=c99 for XOPEN2K.
16534         (@knownproblems): Remove.
16535         (newtoken): Don't check %isknown.
16536
16537         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
16538         Do not expect macro.
16539         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
16540         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
16541         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
16542         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
16543         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
16544         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
16545         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
16546         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
16547         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
16548         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
16549         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
16550         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
16551         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
16552         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
16553         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
16554         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
16555         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
16556         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
16557         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
16558         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
16559         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
16560         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
16561         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
16562         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
16563         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
16564         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
16565         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
16566         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
16567         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
16568         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
16569         [XPG3] (acosh): Likewise.
16570         [XPG3] (asinh): Likewise.
16571         [XPG3] (atanh): Likewise.
16572         [XPG3] (cbrt): Likewise.
16573         [XPG3] (expm1): Likewise.
16574         [XPG3] (ilogb): Likewise.
16575         [XPG3] (log1p): Likewise.
16576         [XPG3] (logb): Likewise.
16577         [XPG3] (nextafter): Likewise.
16578         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
16579         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
16580         [XPG3] (remainder): Likewise.
16581         [XPG3] (rint): Likewise.
16582         [XPG3 || XPG4 || UNIX98] (round): Likewise.
16583         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
16584         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
16585         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
16586         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
16587         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
16588         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
16589         [UNIX98 || XOPEN2K] (scalb): Expect.
16590         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
16591         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
16592         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
16593         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
16594         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
16595         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
16596         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
16597         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
16598         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
16599         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
16600         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
16601         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
16602         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
16603         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
16604         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
16605         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
16606         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
16607         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
16608         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
16609         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
16610         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
16611         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
16612         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
16613         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
16614         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
16615         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
16616         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
16617         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
16618         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
16619         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
16620         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
16621         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
16622         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
16623         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
16624         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
16625         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
16626         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
16627         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
16628         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
16629         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
16630         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
16631         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
16632         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
16633         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
16634         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
16635         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
16636         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
16637         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
16638         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
16639         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
16640         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
16641         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
16642         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
16643         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
16644         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
16645         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
16646         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
16647         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
16648         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
16649         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
16650         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
16651         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
16652         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
16653         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
16654         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
16655         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
16656         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
16657         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
16658         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
16659         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
16660         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
16661         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
16662         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
16663         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
16664         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
16665         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
16666         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
16667         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
16668         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
16669         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
16670         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
16671         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
16672         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
16673         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
16674         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
16675         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
16676         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
16677         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
16678         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
16679         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
16680         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
16681         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
16682         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
16683         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
16684         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
16685         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
16686         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
16687         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
16688         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
16689         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
16690         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
16691         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
16692         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
16693         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
16694         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
16695         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
16696         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
16697         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
16698         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
16699         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
16700         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
16701         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
16702         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
16703         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
16704         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
16705         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
16706         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
16707         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
16708         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
16709         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
16710         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
16711         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
16712         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
16713         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
16714         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
16715         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
16716         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
16717         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
16718         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
16719         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
16720         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
16721         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
16722         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
16723         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
16724         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
16725         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
16726         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
16727
16728         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
16729         _XOPEN_SOURCE_EXTENDED for XPG4.
16730
16731         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
16732
16733         * Makeconfig (localtime): Remove variable.
16734         (inst_localtime-file): Likewise.
16735
16736 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
16737
16738         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
16739         Update.
16740         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
16741         Update.
16742         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
16743         Update.
16744         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
16745         Update.
16746         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
16747         Update.
16748         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
16749         Update.
16750         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
16751         Update.
16752         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
16753         Update.
16754         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
16755         Update.
16756
16757 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
16758
16759         [BZ #2550]
16760         [BZ #2570]
16761         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
16762         comparisons to determine direction to adjust input.
16763         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
16764         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
16765         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
16766         Likewise.
16767         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
16768         Likewise.
16769         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
16770         Likewise.
16771         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
16772         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
16773         Likewise.
16774         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
16775         Likewise.
16776         * math/libm-test.inc (nexttoward_test): Add more tests.
16777
16778 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
16779
16780         [BZ #14040]
16781         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
16782         in version GLIBC_2.1, not GLIBC_2.0.
16783         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
16784         Likewise.
16785
16786 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
16787
16788         [BZ #13942]
16789         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
16790         (1 - x) * (1 + x).
16791         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
16792         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
16793         * math/libm-test.inc (acos_test): Add more tests.
16794         (asin_test): Likewise.
16795         * sysdeps/i386/fpu/libm-test-ulps: Update.
16796         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16797
16798         [BZ #14034]
16799         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
16800         of square root.
16801         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
16802         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
16803         * math/libm-test.inc (acos_test_tonearest): New function.
16804         (acos_test_towardzero): Likewise.
16805         (acos_test_downward): Likewise.
16806         (acos_test_upward): Likewise.
16807         (asin_test_tonearest): Likewise.
16808         (asin_test_towardzero): Likewise.
16809         (asin_test_downward): Likewise.
16810         (asin_test_upward): Likewise.
16811         (main): Call the new functions.
16812         * sysdeps/i386/fpu/libm-test-ulps: Update.
16813         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16814
16815         [BZ #13884]
16816         [BZ #13924]
16817         * math/e_exp10.c: Include <float.h>.
16818         (__ieee754_exp10): Handle underflow here rather than multiplying
16819         large negative argument by M_LN10.
16820         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
16821         of __ieee754_expf.
16822         * math/e_exp10l.c: Include <float.h>.
16823         (__ieee754_exp10l): Handle underflow here rather than multiplying
16824         large negative argument by M_LN10l.
16825         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
16826         spurious overflow exception on underflow.
16827
16828 2012-04-29  Marek Polacek  <polacek@redhat.com>
16829
16830         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
16831         (__fortify_function): New macro.
16832         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
16833         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
16834         __extern_always_inline.
16835         * libio/bits/stdio2.h: Likewise.
16836         * libio/bits/stdio.h: Likewise.
16837         * string/string.h: Likewise.
16838         * string/bits/string3.h: Likewise.
16839         * include/stdio.h: Likewise.
16840         * stdlib/bits/stdlib.h: Likewise.
16841         * stdlib/stdlib.h: Likewise.
16842         * rt/bits/mqueue2.h: Likewise.
16843         * rt/mqueue.h: Likewise.
16844         * posix/bits/unistd.h: Likewise.
16845         * posix/unistd.h: Likewise.
16846         * io/bits/poll2.h: Likewise.
16847         * io/bits/fcntl2.h: Likewise.
16848         * io/fcntl.h: Likewise.
16849         * io/sys/poll.h: Likewise.
16850         * misc/bits/syslog.h: Likewise.
16851         * misc/bits/syslog-ldbl.h: Likewise.
16852         * misc/sys/syslog.h: Likewise.
16853         * socket/bits/socket2.h: Likewise.
16854         * socket/sys/socket.h: Likewise.
16855         * debug/tst-chk1.c: Likewise.
16856         * wcsmbs/bits/wchar2.h: Likewise.
16857         * wcsmbs/bits/wchar-ldbl.h: Likewise.
16858         * wcsmbs/wchar.h: Likewise.
16859
16860 2012-04-29  Andreas Jaeger  <aj@suse.de>
16861
16862         * Makerules (tests): Remove enable-check-abi protection.
16863         (check-abi-warn): Remove.
16864         (check-abi-%): Remove check-abi-warn usage.
16865
16866         * configure.in: Remove check-abi configure option.
16867         * configure: Regenerated.
16868         * config.make.in (enable-check-abi): Remove.
16869
16870 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
16871
16872         [BZ #14033]
16873         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
16874         double functions to double *_finite functions.
16875
16876         [BZ #13941]
16877         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
16878         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
16879         LDBL_MIN_EXP.
16880         * stdio-common/Makefile (tests): Add tst-sprintf3.
16881         * stdio-common/tst-sprintf3.c: New file.
16882
16883         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
16884         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
16885
16886 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
16887
16888         * conform/conformtest.pl: Remove duplicate typed-constant
16889         handling.
16890
16891 2012-04-28  David S. Miller  <davem@davemloft.net>
16892
16893         * Makerules (%.abilist): Add vpath on sysdep_dirs.
16894         (check-abi-%): Remove AWK script prerequisite and explicit
16895         abilist directory.
16896         (check-abi): Rewrite to just diff the symlist with the abilist.
16897         (config-tls, config-abi-config): Delete, no longer used.
16898         (update-abi-%): Remove AWK script and explicit abilist directory.
16899         (update-abi): Rewrite to simply compare and conditionally copy the
16900         symlist and the sysdep abilist file.  Remove update-abi-config
16901         checks.
16902         * abilist/ld.abilist: Remove.
16903         * abilist/libBrokenLocale.abilist: Remove.
16904         * abilist/libanl.abilist: Remove.
16905         * abilist/libcrypt.abilist: Remove.
16906         * abilist/libdl.abilist: Remove.
16907         * abilist/librt.abilist: Remove.
16908         * abilist/libthread_db.abilist: Remove.
16909         * abilist/libutil.abilist: Remove.
16910         * scripts/extract-abilist.awk: Remove.
16911         * scripts/merge-abilist.awk: Remove.
16912         * sysdeps/generic/libcidn.abilist: New file.
16913         * sysdeps/generic/libnss_compat.abilist: New file.
16914         * sysdeps/generic/libnss_db.abilist: New file.
16915         * sysdeps/generic/libnss_dns.abilist: New file.
16916         * sysdeps/generic/libnss_files.abilist: New file.
16917         * sysdeps/generic/libnss_hesiod.abilist: New file.
16918         * sysdeps/generic/libnss_nis.abilist: New file.
16919         * sysdeps/generic/libnss_nisplus.abilist: New file.
16920         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
16921         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
16922         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
16923         file.
16924         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
16925         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
16926         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
16927         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
16928         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
16929         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
16930         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
16931         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
16932         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
16933         file.
16934         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
16935         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
16936         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
16937         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
16938         file.
16939         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
16940         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
16941         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
16942         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
16943         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
16944         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
16945         file.
16946         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
16947         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
16948         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
16949         file.
16950         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
16951         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
16952         New file.
16953         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
16954         New file.
16955         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
16956         New file.
16957         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
16958         New file.
16959         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
16960         New file.
16961         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
16962         New file.
16963         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
16964         New file.
16965         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
16966         New file.
16967         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
16968         New file.
16969         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
16970         New file.
16971         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
16972         New file.
16973         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
16974         New file.
16975         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
16976         New file.
16977         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
16978         file.
16979         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
16980         New file.
16981         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
16982         New file.
16983         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
16984         file.
16985         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
16986         New file.
16987         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
16988         New file.
16989         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
16990         file.
16991         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
16992         New file.
16993         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
16994         New file.
16995         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
16996         New file.
16997         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
16998         New file.
16999         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
17000         New file.
17001         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
17002         New file.
17003         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
17004         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
17005         file.
17006         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
17007         New file.
17008         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
17009         file.
17010         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
17011         file.
17012         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
17013         file.
17014         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
17015         file.
17016         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
17017         file.
17018         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
17019         New file.
17020         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
17021         file.
17022         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
17023         file.
17024         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
17025         New file.
17026         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
17027         file.
17028         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
17029         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
17030         file.
17031         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
17032         New file.
17033         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
17034         file.
17035         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
17036         file.
17037         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
17038         file.
17039         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
17040         file.
17041         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
17042         file.
17043         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
17044         New file.
17045         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
17046         file.
17047         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
17048         file.
17049         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
17050         New file.
17051         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
17052         file.
17053         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
17054         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
17055         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
17056         file.
17057         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
17058         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
17059         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
17060         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
17061         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
17062         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
17063         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
17064         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
17065         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
17066         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
17067         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
17068         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
17069         file.
17070         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
17071         New file.
17072         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
17073         file.
17074         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
17075         file.
17076         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
17077         file.
17078         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
17079         file.
17080         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
17081         file.
17082         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
17083         New file.
17084         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
17085         New file.
17086         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
17087         file.
17088         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
17089         New file.
17090         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
17091         file.
17092         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
17093         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
17094         file.
17095         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
17096         New file.
17097         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
17098         file.
17099         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
17100         file.
17101         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
17102         file.
17103         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
17104         file.
17105         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
17106         file.
17107         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
17108         New file.
17109         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
17110         New file.
17111         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
17112         file.
17113         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
17114         New file.
17115         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
17116         file.
17117
17118 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
17119
17120         * conform/conformtest.pl: Fix typo in handling typed-constant from
17121         allow-header.
17122
17123 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
17124
17125         * README: Cut down references to pre-2.6 Linux kernels and
17126         Linuxthreads.  Update lists of configurations in libc and ports
17127         and sort alphabetically.  Say "or newer" with Linux kernel version
17128         requirements.
17129
17130         * config.h.in [IS_IN_build]: Allow compiling without optimization.
17131
17132 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
17133
17134         [BZ #887]
17135         * math/libm-test.inc (logb_test_downward): New test to expose
17136         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
17137         rounding mode.
17138
17139 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
17140
17141         [BZ #14027]
17142         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
17143         to be done.
17144         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
17145         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
17146
17147 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
17148
17149         * sysdeps/unix/i386/brk.S: Remove file.
17150         * sysdeps/unix/i386/dl-brk.S: Likewise.
17151         * sysdeps/unix/i386/pipe.S: Likewise.
17152         * sysdeps/unix/i386/sigreturn.S: Likewise.
17153         * sysdeps/unix/i386/syscall.S: Likewise.
17154         * sysdeps/unix/i386/vfork.S: Likewise.
17155         * sysdeps/unix/i386/wait.S: Likewise.
17156
17157         * sysdeps/unix/common/tcsendbrk.c: Move to ...
17158         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
17159
17160         * configure.in (arm*-none*): Do not allow without
17161         --enable-hacker-mode.
17162         (netbsd*): Remove case setting base_os.
17163         (386bsd*): Likewise.
17164         (freebsd*): Likewise.
17165         (bsdi*): Likewise.
17166         (osf*): Likewise.
17167         (sunos*): Likewise.
17168         (ultrix*): Likewise.
17169         (newsos*): Likewise.
17170         (dynix*): Likewise.
17171         (*bsd*): Likewise.
17172         (sysv*): Likewise.
17173         (isc*): Likewise.
17174         (esix*): Likewise.
17175         (sco*): Likewise.
17176         (minix*): Likewise.
17177         (irix4*): Likewise.
17178         (irix6*): Likewise.
17179         (solaris[2-9]*): Likewise.
17180         (none): Likewise.
17181         * configure: Regenerated.
17182
17183 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17184
17185         [BZ #11521]
17186         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
17187         overflow or cancellation in calculating denominator.
17188         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
17189         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
17190         down expression to avoid unexpected rounding in newer GCCs.
17191         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
17192
17193 2012-04-26  David S. Miller  <davem@davemloft.net>
17194
17195         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
17196         long-double compat symbols.
17197         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
17198         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
17199         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
17200         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
17201         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
17202         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
17203         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
17204         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
17205         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
17206         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
17207         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
17208         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
17209         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
17210
17211 2012-04-25  David S. Miller  <davem@davemloft.net>
17212
17213         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
17214         HWCAP_* values only after the memory barriers have been defined.
17215         (atomic_full_barrier): Define.
17216         (atomic_read_barrier): Define.
17217         (atomic_write_barrier): Define.
17218
17219 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
17220
17221         * shlib-versions: Add libgcc_s version information.
17222         * sysdeps/generic/libgcc_s.h: Remove.
17223         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
17224         libgcc_s.h.
17225         * sysdeps/gnu/unwind-resume.c: Likewise.
17226         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
17227
17228 2012-04-25  David S. Miller  <davem@davemloft.net>
17229
17230         * sysdeps/unix/sparc/brk.S: Delete.
17231         * sysdeps/unix/sparc/dl-brk.S: Delete.
17232         * sysdeps/unix/sparc/pipe.S: Delete.
17233         * sysdeps/unix/sparc/sysdep.S: Delete.
17234         * sysdeps/unix/sparc/sysdep.h: Delete.
17235         * sysdeps/unix/sparc/vfork.S: Delete.
17236         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
17237         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
17238         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
17239         ret_ERRVAL, r0, r1, MOVE): Define.
17240         (JUMPTARGET): Remove.
17241         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
17242         sysdeps/unix/sparc/sysdep.h
17243         (ENTRY, END): Remove.
17244         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
17245
17246 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
17247
17248         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
17249         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
17250         -DIS_IN_build.
17251
17252         * timezone/README: Update upstream location and email address for
17253         tzcode and tzdata.
17254         * timezone/zdump.c: Update from tzcode 2012b.
17255         * timezone/zic.c: Likewise.
17256
17257         * configure.in (libc_cv_as_needed): Remove test.
17258         * configure: Regenerated.
17259         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
17260         conditional definition.
17261         [$(have-as-needed) != yes] (no-as-needed): Likewise.
17262         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
17263         * config.make.in (have-as-needed): Remove variable.
17264
17265 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
17266             Paul Pluzhnikov  <ppluzhnikov@google.com>
17267
17268         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
17269         strings correctly.
17270
17271 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
17272
17273         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
17274         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
17275         * sysdeps/sh/strlen.S: Likewise.
17276
17277 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
17278
17279         * sysdeps/unix/fork.S: Remove file.
17280         * sysdeps/unix/i386/fork.S: Likewise.
17281         * sysdeps/unix/sparc/fork.S: Likewise.
17282
17283         * sysdeps/unix/system.c: Remove file.
17284         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
17285
17286         * sysdeps/unix/getegid.S: Remove file.
17287         * sysdeps/unix/geteuid.S: Likewise.
17288
17289 2012-04-24  Roland McGrath  <roland@hack.frob.com>
17290
17291         * scripts/check-localplt.awk: New file.
17292         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
17293         of diff.
17294         * scripts/data/localplt-generic.data: Add a comment.
17295
17296         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
17297         NODE when __dir_mkfile failed.
17298         * sysdeps/mach/hurd/symlinkat.c: Likewise.
17299         Reported by Ludovic Courtès <ludo@gnu.org>.
17300
17301 2012-04-24  Andreas Jaeger  <aj@suse.de>
17302
17303         * Makerules (common-clean): Also remove gen-as-const-headers
17304         files.
17305
17306 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
17307
17308         * Makerules (native-compile): Do not change working directory for
17309         build.  Use $(OUTPUT_OPTION) in command.
17310         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
17311
17312 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17313
17314         [BZ #13886]
17315         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
17316         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
17317         * math/libm-test.inc (floor_test): Add more tests.
17318         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
17319
17320 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
17321
17322         * sysdeps/unix/getdents.c: Remove file.
17323         * sysdeps/unix/sysv/getdents.c: Likewise.
17324         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
17325
17326         * sysdeps/unix/syscalls.list (madvise): Add syscall from
17327         sysdeps/unix/mman/syscalls.list.
17328         (mmap): Likewise.
17329         (mprotect): Likewise.
17330         (msync): Likewise.
17331         (munmap): Likewise.
17332         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
17333         * sysdeps/unix/mman/syscalls.list: Remove.
17334         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
17335
17336         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
17337         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
17338         * configure: Regenerated.
17339         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
17340         $(libgcc_s_suffix).
17341         * config.make.in (libgcc_s_suffix): Remove variable.
17342
17343 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
17344
17345         * sysdeps/unix/sysv/gethostname.c: Move to ...
17346         * sysdeps/posix/gethostname.c: ... here.
17347
17348         * sysdeps/unix/execve.S: Remove file.
17349
17350         * sysdeps/unix/_exit.S: Remove file.
17351
17352 2012-04-23  Andreas Jaeger  <aj@suse.de>
17353
17354         [BZ #13739]
17355         * manual/Makefile: Remove make dist support, there's no
17356         need for a stand-alone documentation tar ball.
17357         (TEXI2DVI): Define always, it's not in Makeconfig.
17358         (dist): Removed.
17359         (tar-it): Removed.
17360         (edition): Removed.
17361         (glibc-doc-$(edition).tar): Removed
17362         (%.Z): Removed.
17363         (%.gz): Removed.
17364         (%.uu): Removed.
17365         (ETAGS): Remove, it's in Makeconfig.
17366         (move-if-change): Remove, it's in Makeconfig.
17367
17368 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
17369
17370         [BZ #13970]
17371         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
17372         (strtod, strtof, strtold, strtol, strtoul, strtoq)
17373         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
17374         (strtod_l, strtof_l, strtold_l): Remove __wur.
17375         It is not necessarily an error to ignore strtol's return value.
17376         One can reliably look at the stored endptr to decide whether
17377         the number had valid syntax.
17378
17379 2012-04-21  Andreas Jaeger  <aj@suse.de>
17380
17381         [BZ #13739]
17382         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
17383
17384 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
17385
17386         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
17387         * sysdeps/unix/sysv/Versions: Remove file.
17388
17389 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
17390
17391         [BZ #13927]
17392         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17393
17394 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
17395
17396         [BZ #7064]
17397         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
17398         version from __vm86.
17399
17400 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
17401
17402         * sysdeps/unix/common/lxstat.c: Remove file.
17403         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
17404
17405         * sysdeps/unix/sysv/Makefile: Remove file.
17406
17407         * sysdeps/unix/sysv/direct.h: Remove file.
17408
17409         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
17410         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
17411         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
17412         * sysdeps/unix/sysv/bits/signum.h: Likewise.
17413         * sysdeps/unix/sysv/bits/stat.h: Likewise.
17414         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
17415         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
17416
17417         * sysdeps/unix/sysv/setrlimit.c: Remove file.
17418
17419         * sysdeps/unix/xmknod.c: Remove file.
17420         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
17421
17422         * sysdeps/unix/sysv/settimeofday.c: Remove file.
17423
17424         * sysdeps/unix/sysv/i386/time.S: Remove file.
17425
17426         * sysdeps/unix/fxstat.c: Remove file.
17427         * sysdeps/unix/xstat.c: Likewise.
17428         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
17429
17430         * sysdeps/unix/sysv/sigaction.c: Remove file.
17431
17432         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
17433         (sysdep_headers): Remove variable.
17434         [termio.h not in sysdep_headers] (generated): Likewise.
17435         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
17436         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
17437         * sysdeps/unix/sysv/tcdrain.c: Likewise.
17438         * sysdeps/unix/sysv/tcflow.c: Likewise.
17439         * sysdeps/unix/sysv/tcflush.c: Likewise.
17440         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
17441         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
17442         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
17443         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
17444         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
17445
17446         * sysdeps/unix/siglist.c: Remove file.
17447
17448         * sysdeps/unix/getppid.S: Remove file.
17449
17450         * sysdeps/unix/mkdir.c: Remove file.
17451         * sysdeps/unix/rmdir.c: Likewise.
17452
17453 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
17454
17455         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
17456         ERR_MAX value.
17457         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
17458         errlist-compat value.
17459
17460 2012-04-18  David S. Miller  <davem@davemloft.net>
17461
17462         * sysdeps/generic/memcopy.h (reg_char): Delete.
17463         * debug/strcat_chk.c: Use char, not reg_char.
17464         * debug/strcpy_chk.c: Likewise.
17465         * debug/strncat_chk.c: Likewise.
17466         * debug/strncpy_chk.c: Likewise.
17467         * string/memchr.c: Likewise.
17468         * string/memrchr.c: Likewise.
17469         * string/rawmemchr.c: Likewise.
17470         * string/strcat.c: Likewise.
17471         * string/strchr.c: Likewise.
17472         * string/strchrnul.c: Likewise.
17473         * string/strcmp.c: Likewise.
17474         * string/strcpy.c: Likewise.
17475         * string/strncat.c: Likewise.
17476         * string/strncmp.c: Likewise.
17477         * string/strncpy.c: Likewise.
17478
17479 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
17480
17481         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
17482         __builtin_memcopy is called when src and dest ranges are known to not
17483         overlap.
17484
17485 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
17486
17487         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
17488         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
17489         fwd_align_merge macro call.
17490         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
17491         bwd_align_merge macro call.
17492         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
17493
17494 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
17495
17496         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
17497         bwd_align_merge macros.
17498         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
17499         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
17500         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
17501
17502 2012-04-18  David S. Miller  <davem@davemloft.net>
17503
17504         * sysdeps/sparc/sparc64/memcopy.h: Delete.
17505
17506 2012-04-18  Andreas Jaeger  <aj@suse.de>
17507
17508         [BZ# 6794]
17509         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
17510         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
17511         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
17512
17513         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
17514         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
17515         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
17516
17517         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
17518         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
17519         Adjust for changed ldbl-128 files.
17520
17521         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
17522         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
17523         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
17524
17525 2012-04-17  David S. Miller  <davem@davemloft.net>
17526
17527         * sysdeps/sparc/sparc32/memcopy.h: Delete.
17528
17529 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
17530
17531         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
17532         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
17533         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
17534         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
17535         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
17536         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
17537
17538 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17539
17540         [BZ #6794]
17541         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
17542         * math/libm-test.inc: Add ilogb errno and exception tests.
17543         * math/w_ilogb.c: New file: ilogb wrapper.
17544         * math/w_ilogbf.c: New file: ilogbf wrapper.
17545         * math/w_ilogbl.c: New file: ilogbl wrapper.
17546         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
17547         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
17548         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
17549         exception being thrown with 0.0 as argument.
17550         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
17551         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
17552         exception being thrown with 0.0 as argument.
17553         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
17554         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
17555         exception being thrown with 0.0 as argument.
17556         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
17557         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
17558         exception being thrown with 0.0 as argument.
17559         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
17560         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
17561         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
17562         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
17563         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
17564         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
17565         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
17566         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
17567         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
17568
17569 2012-04-17  Petr Baudis  <pasky@ucw.cz>
17570
17571         * include/sys/uio.h: Change __vector to __iovec to avoid clash
17572         with altivec.
17573
17574 2012-04-16  Marek Polacek  <polacek@redhat.com>
17575
17576         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
17577
17578 2012-04-16  Marek Polacek  <polacek@redhat.com>
17579
17580         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
17581         operands of fdivp instruction.
17582
17583 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
17584
17585         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
17586         * elf/tst-auditmod3b.c: Likewise.
17587         * elf/tst-auditmod4b.c: Likewise.
17588         * elf/tst-auditmod5b.c: Likewise.
17589         * elf/tst-auditmod6b.c: Likewise.
17590         * elf/tst-auditmod6c.c: Likewise.
17591         * elf/tst-auditmod7b.c: Likewise.
17592         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
17593         * sysdeps/x86_64/preconfigure.in: Likewise.
17594         * sysdeps/x86_64/preconfigure: Regenerated.
17595
17596 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
17597
17598         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
17599         __ILP32__.
17600
17601 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
17602
17603         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
17604         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
17605
17606 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
17607
17608         [BZ #13973]
17609         * locale/iso-639.def: Fix gl language name. Spotted by
17610         Yaron Shahrabani.
17611
17612 2012-04-12  Roland McGrath  <roland@hack.frob.com>
17613
17614         [BZ #2074]
17615         * libio/libio.h (__io_write_fn): Update comment.
17616
17617 2012-04-12  Petr Baudis  <pasky@ucw.cz>
17618
17619         [BZ #2074]
17620         * stdio.texi (Hook Functions): The user provided writer function
17621         is not allowed to return -1.
17622
17623 2012-04-11  David S. Miller  <davem@davemloft.net>
17624
17625         * sysdeps/sparc/fpu/libm-test-ulps: Update.
17626
17627 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
17628
17629         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
17630         Add a leading slash to rtkaio.
17631
17632 2012-04-11  Jim Meyering  <meyering@redhat.com>
17633
17634         [BZ #11959]
17635         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
17636         It is not necessarily an error to ignore fwrite's return
17637         value.  One can reliably use ferror to test for errors after
17638         the fact.
17639
17640 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
17641
17642         * bits/types.h (__snseconds_t): New type.
17643         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
17644
17645         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
17646         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
17647         (__SNSECONDS_T_TYPE): Likewise.
17648         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
17649         (__SNSECONDS_T_TYPE): Likewise.
17650         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
17651         (__SNSECONDS_T_TYPE): Likewise.
17652
17653 2012-04-10  Andreas Jaeger  <aj@suse.de>
17654
17655         [BZ #2636]
17656         * manual/time.texi (Processor Time): Return type of times is
17657         elapsed real time since an arbitrary point in the past.
17658         (CPU Time): Move CLK_TCK from here...
17659         (Processor Time): ...to here.  Correct description.
17660         * manual/conf.texi (Constants for Sysconf): Correct description of
17661         _SC_CLK_TCK.
17662
17663 2012-04-10  David S. Miller  <davem@davemloft.net>
17664
17665         [BZ #13967]
17666         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
17667         where the is a gap between DT_REL(A) and DT_JMPREL.
17668
17669 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
17670
17671         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
17672         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
17673         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
17674
17675 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
17676
17677         * elf/dl-support.c (_dl_inhibit_cache): New variable.
17678         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
17679         (dl_main): Handle --inhibit-cache.
17680         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
17681         _dl_inhibit_cache.
17682         * elf/dl-load.c (_dl_map_object): Use it.
17683         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
17684
17685 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
17686
17687         [BZ #13872]
17688         * sysdeps/i386/fpu/e_powl.S (p78): New object.
17689         (__ieee754_powl): Saturate large exponents rather than testing for
17690         overflow of y*log2(x).
17691         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
17692         * math/libm-test.inc (pow_test): Do not permit spurious overflow
17693         exceptions.
17694
17695         [BZ #11521]
17696         * math/s_ctan.c: Include <float.h>.
17697         (__ctan): Avoid internal overflow or cancellation in calculating
17698         denominator.
17699         * math/s_ctanf.c: Likewise.
17700         * math/s_ctanl.c: Likewise.
17701         * math/s_ctanh.c: Likewise.
17702         * math/s_ctanhf.c: Likewise.
17703         * math/s_ctanhl.c: Likewise.
17704         * math/libm-test.inc (ctan_test): Add more tests.
17705         (ctanh_test): Likewise.
17706         * sysdeps/i386/fpu/libm-test-ulps: Update.
17707         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17708
17709 2012-04-09  Andreas Jaeger  <aj@suse.de>
17710
17711         [BZ #6894]
17712         * manual/filesys.texi (Directory Entries): Mention that d_namlen
17713         is an optional BSD extension.
17714
17715         [BZ #10254]
17716         * manual/stdio.texi (Opening Streams): Document additional fopen
17717         parameters.
17718
17719 2012-04-09  Roland McGrath  <roland@hack.frob.com>
17720
17721         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
17722         %eax without telling the compiler.
17723
17724 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
17725
17726         [BZ # 13963]
17727         * manual/install.texi: Use sourceware.org.
17728
17729 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
17730
17731         [BZ #13873]
17732         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
17733         (__ieee754_pow): Generate overflow and underflow using huge*huge
17734         and tiny*tiny rather than just returning constant infinity or zero
17735         for large exponents.
17736         * math/libm-test.inc (pow_test): Require overflow exceptions for
17737         applicable cases of large exponents.
17738
17739         [BZ #706]
17740         * sysdeps/i386/fpu/e_pow.S (p10): New object.
17741         (__ieee754_pow): Use iterative multiplication algorithm only for
17742         integer exponents with absolute value below 1024.  Check for odd
17743         integer exponents when using algorithm for real exponents.
17744         * math/libm-test.inc (pow_test): Add more tests.
17745         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17746
17747 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
17748
17749         [BZ #13705]
17750         * math/libm-test.inc (exp_test): Do not allow overflow exception
17751         on underflow test.
17752
17753 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
17754
17755         [BZ #13705]
17756         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
17757         instead of __kernel_standard_f.
17758
17759 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
17760
17761         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
17762         * sysdeps/x86_64/memset_chk.S: Likewise.
17763
17764 2012-04-08  Andreas Jaeger  <aj@suse.de>
17765
17766         [BZ #10153]
17767         * manual/startup.texi (Environment Access): Describe return value
17768         for putenv and setenv.
17769
17770         [BZ #6895]
17771         * manual/filesys.texi (Directory Entries): Add description for
17772         DT_LNK.
17773
17774         [BZ #6890]
17775         * manual/filesys.texi (Directory Entries): Clarify that it's file
17776         system not operating system in the description of DT_UNKNOWN.
17777
17778         [BZ #6578]
17779         * manual/syslog.texi (closelog): Fix reference, it's openlog.
17780
17781 2012-04-08  Stephen Compall  <s11@member.fsf.org>
17782
17783         [BZ #6649]
17784         * manual/llio.texi (Opening and Closing Files): Add cross
17785         reference to explain mode argument.
17786
17787 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
17788
17789         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
17790         * sysdeps/x86_64/memset_chk.S: Likewise.
17791
17792 2012-04-07  David S. Miller  <davem@davemloft.net>
17793
17794         * elf/elf.h (R_SPARC_WDISP10): Define.
17795         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
17796         R_SPARC_SIZE32.
17797         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
17798         R_SPARC_SIZE64 and R_SPARC_H34.
17799
17800 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
17801
17802         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
17803         conditions and remove no longer applicable assertion.
17804
17805 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
17806
17807         * bits/byteswap.h: Include <features.h>.
17808         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
17809         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
17810
17811 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
17812
17813         * bits/byteswap.h (__bswap_16): Removed.
17814         Include <bits/byteswap-16.h> to get __bswap_16.
17815         * sysdeps/i386/bits/byteswap.h: Likewise.
17816         * sysdeps/s390/bits/byteswap.h: Likewise.
17817         * sysdeps/x86_64/bits/byteswap.h: Likewise.
17818         * bits/byteswap-16.h: New file.
17819         * sysdeps/i386/bits/byteswap-16.h: Likewise.
17820         * sysdeps/s390/bits/byteswap-16.h: Likewise.
17821         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
17822         * string/Makefile (headers): Add bits/byteswap-16.h.
17823
17824 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
17825
17826         [BZ #13895]
17827         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
17828         extra indirection.
17829         * nss/Makefile (tests-static, tests): Add tst-nss-static.
17830         * nss/tst-nss-static.c: New.
17831
17832 2012-04-06  Robert Millan  <rmh@gnu.org>
17833
17834         [BZ #6486]
17835         * manual/llio.texi (File Position Primitive): lseek
17836         refers to WHENCE when it really means OFFSET.
17837
17838 2012-04-06  Andreas Jaeger  <aj@suse.de>
17839
17840         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
17841         strncmp declarations.
17842
17843         * abilist/libc.abilist: Add __poll and __ppoll.
17844
17845 2012-04-05  David S. Miller  <davem@davemloft.net>
17846
17847         * scripts/check-local-headers.sh: Accept a host triplet in the
17848         path matched by the exclude regexp.
17849
17850         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
17851         definition.
17852         * sysdeps/powerpc/powerpc32/dl-machine.h
17853         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
17854         * sysdeps/s390/s390-32/dl-machine.h
17855         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
17856         * sysdeps/sparc/sparc32/dl-machine.h
17857         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
17858         * sysdeps/sparc/sparc64/dl-machine.h
17859         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
17860
17861         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
17862         lazy binding.
17863         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
17864         undefined symbol errors.
17865
17866         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
17867         DT_NEEDED entries.
17868
17869 2012-04-05  Michael Matz  <matz@suse.de>
17870
17871         [BZ #13592]
17872         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
17873
17874 2012-04-05  Andreas Jaeger  <aj@suse.de>
17875
17876         [BZ #13908]
17877         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
17878         comment.
17879
17880 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
17881
17882         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
17883         which ROUND is no valid rounding mode.
17884
17885 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
17886
17887         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
17888         read again.
17889         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
17890
17891 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
17892
17893         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
17894         an exception using FPU order intentionally.
17895
17896 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
17897
17898         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
17899         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
17900         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
17901         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
17902
17903 2012-04-05  Simon Josefsson  <simon@josefsson.org>
17904
17905         [BZ #12340]
17906         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
17907         EINVAL when BUFLEN is too smal.
17908
17909 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
17910
17911         [BZ #13553]
17912         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
17913         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
17914
17915 2012-04-03  Andreas Jaeger  <aj@suse.de>
17916
17917         [BZ #13938]
17918         * manual/setjmp.texi (System V contexts): Fix sentence.
17919
17920         [BZ #13926]
17921         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
17922         New macro for this case.
17923         [!__GNUC__] (__bswap_64): New inline function for this case.
17924         * sysdeps/x86_64/bits/byteswap.h: Likewise.
17925         * bits/byteswap.h: Likewise.
17926         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
17927         ull, guard with __GLIBC_HAVE_LONG_LONG.
17928
17929         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
17930         __GLIBC_HAVE_LONG_LONG.
17931
17932         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
17933         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
17934
17935 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17936
17937         [BZ #13691]
17938         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
17939         inptr and inend, rather than using last_ch.
17940
17941 2012-04-02  David S. Miller  <davem@davemloft.net>
17942
17943         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
17944         * stdio-common/printf-parse.h (read_int): Change return type to
17945         'int', return -1 on INT_MAX overflow.
17946         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
17947         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
17948         overflows INT_MAX.  Check for overflow of in-format-string precision
17949         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
17950         SIZE_MAX not INT_MAX for integer overflow test.
17951         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
17952         skip the construct in the format string but do not record anything.
17953         * stdio-common/bug22.c: Adjust to test both width/prevision
17954         INT_MAX overflow as well as total length INT_MAX overflow.  Check
17955         explicitly for proper errno values.
17956
17957 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
17958
17959         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
17960         CHAR_MAX.
17961         * string/test-strcmp.c [! WIDE]: Likewise.
17962         * time/tst-mktime2.c: Likewise for INT_MAX.
17963         * string/test-string.h: #include <sys/param.h> for MIN.
17964
17965         * csu/init-first.c (__libc_init_first): Call __ctype_init.
17966         * sysdeps/i386/init-first.c (init): Likewise.
17967         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
17968         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
17969         * sysdeps/sh/init-first.c (init): Likewise.
17970
17971 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
17972
17973         * po/ru.po: Update from translation team.
17974         * po/vi.po: Likewise.
17975
17976 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
17977
17978         * resolv/nss_dns/dns-host.c: Merge copyright years.
17979
17980 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17981
17982         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
17983         Optimize memcpy with prefetch if
17984         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
17985         src, dst pointers have unequal 16 byte alignments.
17986
17987 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
17988
17989         [BZ #13928]
17990         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
17991         from a CNAME entry and return the minimum ttl for the query.
17992         (gaih_getanswer_slice): Likewise.
17993
17994 2012-03-30  Jeff Law  <law@redhat.com>
17995
17996         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
17997         due to long keys.
17998         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
17999         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
18000
18001         * resolv/nss_dns/dns-host.c: Update copyright year.
18002
18003 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
18004
18005         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
18006         requests to save a system call.  Fix check that all bytes are sent.
18007
18008         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
18009         comments for sendmmsg.
18010
18011 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
18012
18013         [BZ #13691]
18014         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
18015         with only 1 character between 0x0041 and 0x01b0.
18016         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
18017         * wcsmbs/tst-mbsnrtowcs.c: New file.
18018
18019 2012-03-29  David S. Miller  <davem@davemloft.net>
18020
18021         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
18022         small copies by hand.
18023
18024 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
18025
18026         [BZ #13761]
18027         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
18028         _nss_compat_initgroups_dyn): Fall back to malloc/free
18029         for large group memberships.
18030
18031 2012-03-28  David S. Miller  <davem@davemloft.net>
18032
18033         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
18034         that branches into memcpy.
18035         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
18036         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
18037         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
18038         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
18039         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
18040         bits.
18041         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
18042         implementation too.
18043         * sysdeps/sparc/mempcpy.S: New file.
18044
18045         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
18046         the IFUNC routine in the libc case.
18047         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
18048
18049         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
18050         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
18051         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
18052         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
18053         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
18054         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
18055         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
18056         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
18057
18058         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
18059         loop to 256 bytes instead of 64 bytes and fix test signedness.
18060
18061         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
18062         * sysdeps/sparc/sparc32/Makefile: rather than here...
18063         * sysdeps/sparc/sparc64/Makefile: and here.
18064
18065 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
18066
18067         * malloc/mallocbug.c: Avoid warnings about unused variables.
18068
18069 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
18070
18071         [BZ #13760]
18072         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
18073         in the right place. Discard and retry query if response is
18074         larger than input buffer size.
18075
18076 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
18077
18078         [BZ #369]
18079         [BZ #2678]
18080         [BZ #3866]
18081         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
18082         x for large integer exponent.
18083         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
18084         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
18085         sign of result as needed afterwards.
18086         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
18087         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
18088         result for underflowing pow the same as for overflow.
18089         (__kernel_standard_l): Handle powl overflow and underflow here
18090         rather than calling __kernel_standard.
18091         * math/libm-test.inc (pow_test): Add more tests.
18092
18093         [BZ #3868]
18094         [BZ #13879]
18095         [BZ #13910]
18096         [BZ #13911]
18097         [BZ #13912]
18098         [BZ #13913]
18099         [BZ #13915]
18100         [BZ #13916]
18101         [BZ #13917]
18102         [BZ #13918]
18103         [BZ #13919]
18104         [BZ #13920]
18105         [BZ #13921]
18106         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
18107         * sysdeps/ieee754/k_standard.c: Include <float.h>.
18108         (__kernel_standard_l): New function.
18109         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
18110         __kernel_standard.
18111         * math/w_acosl.c (__acosl): Likewise.
18112         * math/w_asinl.c (__asinl): Likewise.
18113         * math/w_atan2l.c (__atan2l): Likewise.
18114         * math/w_atanhl.c (__atanhl): Likewise.
18115         * math/w_coshl.c (__coshl): Likewise.
18116         * math/w_exp10l.c (__exp10l): Likewise.
18117         * math/w_exp2l.c (__exp2l): Likewise.
18118         * math/w_fmodl.c (__fmodl): Likewise.
18119         * math/w_hypotl.c (__hypotl): Likewise.
18120         * math/w_j0l.c (__j0l, __y0l): Likewise.
18121         * math/w_j1l.c (__j1l, __y1l): Likewise.
18122         * math/w_jnl.c (__jnl, __ynl): Likewise.
18123         * math/w_lgammal.c (__lgammal): Likewise.
18124         * math/w_log10l.c (__log10l): Likewise.
18125         * math/w_log2l.c (__log2l): Likewise.
18126         * math/w_logl.c (__logl): Likewise.
18127         * math/w_powl.c (__powl): Likewise.
18128         * math/w_remainderl.c (__remainderl): Likewise.
18129         * math/w_scalbl.c (sysv_scalbl): Likewise.
18130         * math/w_sinhl.c (__sinhl): Likewise.
18131         * math/w_sqrtl.c (__sqrtl): Likewise.
18132         * math/w_tgammal.c (__tgammal): Likewise.
18133         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
18134         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
18135         * math/libm-test.inc (acos_test): Add more tests.
18136         (acosh_test): Likewise.
18137         (asin_test): Likewise.
18138         (atanh_test): Likewise.
18139         (exp_test): Likewise.
18140         (exp10_test): Likewise.
18141         (exp2_test): Likewise.
18142         (expm1_test): Likewise.
18143         (lgamma_test): Likewise.
18144         (log_test): Likewise.
18145         (log10_test): Likewise.
18146         (log1p_test): Likewise.
18147         (log2_test): Likewise.
18148         (pow_test): Do not allow some spurious overflow exceptions.
18149         (sqrt_test): Add more tests.
18150         (tgamma_test): Likewise.
18151         (y0_test): Likewise.
18152         (y1_test): Likewise.
18153         (yn_test): Likewise.
18154
18155 2012-03-27  Anton Blanchard  <anton@samba.org>
18156
18157         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
18158         MAP_HUGETLB.
18159         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
18160         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
18161         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
18162
18163 2012-03-27  David S. Miller  <davem@davemloft.net>
18164
18165         * conform/Makefile: Run run-conformtest.sh using $(BASH).
18166
18167         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
18168         have-as-vis3 check.
18169
18170 2012-03-27  Andreas Jaeger  <aj@suse.de>
18171
18172         * sysdeps/x86_64/elf/configure.in: Moved to ...
18173         * sysdeps/x86_64/configure.in: ... here.
18174         * sysdeps/x86_64/elf/start.S: Moved to ...
18175         * sysdeps/x86_64/start.S: ... here.
18176         * sysdeps/x86_64/elf/configure: Delete.
18177
18178         * sysdeps/x86_64/configure.in: Merge contents from
18179         sysdeps/i386/configure.in (without i686 check).
18180
18181         * sysdeps/i386/elf/Versions: Merge into ...
18182         * sysdeps/i386/Versions: ... this.
18183         * sysdeps/i386/elf/Versions: Delete file.
18184         * sysdeps/i386/elf/start.S: Moved to ...
18185         * sysdeps/i386/start.S: ...here.
18186         * sysdeps/i386/elf/configure.in: Merge into...
18187         * sysdeps/i386/configure.in: ...here.
18188         * sysdeps/i386/elf/configure.in: Delete file.
18189         * sysdeps/i386/elf/configure: Delete file.
18190
18191         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
18192         * debug/backtracesyms.c: ... here.
18193         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
18194         * debug/backtracesymsfd.c: ... here.
18195         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
18196         * sysdeps/generic/ifunc-sel.h: ... here.
18197
18198         * sysdeps/unix/i386/start.c: Delete file.
18199         * sysdeps/unix/sparc/start.c: Delete file.
18200         * sysdeps/unix/start.c: Delete file.
18201
18202         * sysdeps/sh/elf/configure.in: Moved to ...
18203         * sysdeps/sh/configure.in: ... here.
18204         * sysdeps/sh/elf/start.S: Moved to ...
18205         * sysdeps/sh/start.S: ... here.
18206         * sysdeps/sh/elf/configure: Delete file.
18207
18208         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
18209         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
18210         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
18211         * sysdeps/powerpc/powerpc64/entry.h: ... here.
18212         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
18213         * sysdeps/powerpc/powerpc64/start.S: here.
18214         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
18215         * sysdeps/powerpc/powerpc64/Makefile: ... this.
18216         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
18217         * sysdeps/powerpc/powerpc64/configure.in: ... this.
18218         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
18219
18220         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
18221         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
18222         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
18223         * sysdeps/powerpc/powerpc32/start.S: ... here.
18224         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
18225         * sysdeps/powerpc/powerpc32/configure.in: ... this.
18226         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
18227
18228         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
18229         * sysdeps/powerpc/ifunc-sel.h: ... here.
18230         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
18231         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
18232
18233         * sysdeps/sparc/elf/configure.in: Moved to ...
18234         * sysdeps/sparc/configure.in: ... here.
18235         * sysdeps/sparc/elf/configure: Delete file.
18236         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
18237         * sysdeps/sparc/sparc32/start.S: ... here.
18238         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
18239         * sysdeps/sparc/sparc64/start.S: ... here.
18240         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
18241         * sysdeps/sparc/sparc32/Makefile: ... this.
18242         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
18243         * sysdeps/sparc/sparc64/Makefile: ... this.
18244
18245         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
18246         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
18247         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
18248         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
18249         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
18250         * sysdeps/s390/s390-32/setjmp.S: ... here.
18251         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
18252         * sysdeps/s390/s390-32/configure.in: ... here.
18253         * sysdeps/s390/s390-32/elf/configure: Delete file.
18254         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
18255         * sysdeps/s390/s390-32/start.S: ... here.
18256
18257         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
18258         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
18259         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
18260         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
18261         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
18262         * sysdeps/s390/s390-64/setjmp.S: ... here.
18263         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
18264         * sysdeps/s390/s390-64/configure.in: ... here
18265         * sysdeps/s390/s390-64/elf/configure: Delete file.
18266         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
18267         * sysdeps/s390/s390-64/start.S: ... here.
18268         * sysdeps/s390/s390-64/elf/configure: Delete.
18269
18270         * configure.in: Remove support for elf directories in sysdeps.
18271
18272         * configure: Regenerated.
18273         * sysdeps/i386/configure: Regenerated.
18274         * sysdeps/powerpc/powerpc32/configure: Regenerated.
18275         * sysdeps/powerpc/powerpc64/configure: Regenerated.
18276         * sysdeps/s390/s390-32/configure: Regenerated.
18277         * sysdeps/s390/s390-64/configure: Regenerated.
18278         * sysdeps/sh/configure: Regenerated.
18279         * sysdeps/sparc/configure: Regenerated.
18280         * sysdeps/x86_64/configure: Regenerated.
18281
18282 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
18283
18284         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18285
18286         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
18287         denormal result into account.
18288
18289 2012-03-25  Roland McGrath  <roland@hack.frob.com>
18290
18291         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
18292         Reported by Allan McRae <allan@archlinux.org>.
18293
18294 2012-03-23  Jeff Law  <law@redhat.com>
18295
18296         * nss/getnssent.c (__nss_getent): Fix typo.
18297
18298 2012-03-23  David S. Miller  <davem@davemloft.net>
18299
18300         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18301
18302 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
18303
18304         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
18305         to pad to uint64_t for each field.
18306         (dl_tls_index): Replace unsigned long with uint64_t.
18307
18308 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
18309         Paul Pluzhnikov  <ppluzhnikov@google.com>
18310
18311         [BZ #6528]
18312         * grp/Makefile (otherlibs): Don't set it.
18313         * inet/Makefile (otherlibs): Likewise.
18314         * login/Makefile (otherlibs): Likewise.
18315         * nscd/Makefile (otherlibs): Likewise.
18316         * posix/Makefile (otherlibs): Likewise.
18317         * pwd/Makefile (otherlibs): Likewise.
18318         * rt/Makefile (otherlibs): Likewise.
18319         * sunrpc/Makefile (otherlibs): Likewise.
18320         * nss/Makefile (otherlibs): Likewise.
18321         Add libnss_files to routines and static-only-routines.
18322         ($(objpfx)getent): Remove rule.
18323         * resolv/Makefile: Add libnss_dns and libresolv to routines and
18324         static-only-routines.
18325
18326 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
18327
18328         [BZ #13892]
18329         * math/s_cexp.c: Include <float.h>.
18330         (__cexp): Handle exp result overflowing not necessarily
18331         overflowing both real and imaginary parts of result.
18332         * math/s_cexpf.c: Likewise.
18333         * math/s_cexpl.c: Likewise.
18334         * math/libm-test.inc (cexp_test): Add more tests.
18335         * sysdeps/i386/fpu/libm-test-ulps: Update.
18336         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18337
18338 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
18339
18340         * include/link.h (ELFW): New macro.
18341         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
18342         Replace ELF64_R_TYPE with ELFW(R_TYPE).
18343
18344 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
18345
18346         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
18347         with uint64_t.
18348
18349 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
18350
18351         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
18352         declaration.
18353         (struct La_x32_retval): Likewise.
18354
18355 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
18356
18357         * sysdeps/x86_64/preconfigure.in: New file.
18358         * sysdeps/x86_64/preconfigure: New generated file.
18359
18360 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
18361
18362         [BZ #13824]
18363         * math/e_exp2l.c: Include <float.h>.
18364         (__ieee754_exp2l): Handle overflow and underflow cases
18365         separately.  Only pass fractional part of argument to
18366         __ieee754_expl.
18367         * math/libm-test.inc (exp2_test): Add more tests.
18368
18369         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
18370         negating x to take absolute value.
18371         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
18372         Likewise.
18373         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
18374         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
18375         Likewise.
18376         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
18377         computing low part if x was negated.
18378         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
18379
18380 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
18381
18382         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
18383         la_x32_gnu_pltexit.
18384         (pltexit): Cast int_retval to ptrdiff_t.
18385         * elf/tst-auditmod3b.c: Likewise.
18386         * elf/tst-auditmod4b.c: Likewise.
18387         * elf/tst-auditmod5b.c: Likewise.
18388         * elf/tst-auditmod6b.c: Likewise.
18389         * elf/tst-auditmod6c.c: Likewise.
18390         * elf/tst-auditmod7b.c: Likewise.
18391
18392         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
18393         and x32_gnu_pltexit.
18394
18395         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
18396         __ELF_NATIVE_CLASS.
18397         (La_x32_regs): New macro.
18398         (La_x32_retval): Likewise.
18399         (la_x32_gnu_pltenter): New function prototype.
18400         (la_x32_gnu_pltexit): Likewise.
18401
18402 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
18403
18404         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
18405         exponent.
18406
18407         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18408
18409         * configure.in (libc_cv_cc_nofma): Check for option to disable
18410         generation of FMA instructions.
18411         * configure: Regenerate.
18412         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
18413         * sysdeps/ieee754/dbl-64/Makefile: New file.
18414         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18415         Remove brandred-fma4.
18416         (CFLAGS-brandred-fma4.c): Remove.
18417         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
18418         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
18419         define.
18420         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
18421         define.
18422
18423 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
18424
18425         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
18426         LLONG_MAX != LONG_MAX.
18427         (_itoa_word): Use _ITOA_WORD_TYPE on value.
18428         (_fitoa_word): Likewise.
18429         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
18430         LLONG_MAX != LONG_MAX.
18431         * stdio-common/_itowa.h: Include <_itoa.h>.
18432         (_itowa_word): Use _ITOA_WORD_TYPE on value.
18433         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
18434         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
18435         only if not defined.
18436         (_ITOA_WORD_TYPE): Likewise.
18437         (_itoa_word): Use _ITOA_WORD_TYPE on value.
18438         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
18439
18440 2012-03-21  David S. Miller  <davem@davemloft.net>
18441
18442         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18443
18444 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
18445
18446         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
18447         of x86_64 when setting libc_cv_slibdir, libdir and
18448         libc_cv_localedir.
18449         * sysdeps/unix/sysv/linux/configure: Regenerated.
18450
18451 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
18452
18453         * manual/lang.texi (Old Varargs): Remove section.
18454         (How Variadic): Update menu.
18455         (va_start): Do not mention varargs.h.
18456
18457 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
18458             Joseph Myers  <joseph@codesourcery.com>
18459
18460         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
18461         link test.
18462         * configure: Regenerated.
18463
18464 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
18465
18466         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
18467         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
18468         conformtest.pl
18469
18470 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
18471
18472         * NOTES: Remove.
18473         * Makefile (files-for-dist): Remove NOTES.
18474         (NOTES): Remove rule.
18475         * README: Don't refer to NOTES.
18476         * manual/creature.texi: Don't include macros.texi.
18477         * manual/intro.texi (creature.texi): Remove comment referring to
18478         NOTES.
18479
18480         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
18481         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
18482         * configure: Regenerated.
18483         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
18484         LIBC_TRY_CC_OPTION.
18485         (libc_cv_as_i686): Likewise.
18486         (libc_cv_cc_avx): Likewise.
18487         (libc_cv_cc_sse2avx): Likewise.
18488         (libc_cv_cc_fma4): Likewise.
18489         (libc_cv_cc_novzeroupper): Likewise.
18490         * sysdeps/i386/configure: Regenerated.
18491
18492         [BZ #13883]
18493         * sysdeps/i386/fpu/s_cexp.S: Remove.
18494         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
18495         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
18496         * math/libm-test.inc (cexp_test): Add more tests.
18497         * sysdeps/i386/fpu/libm-test-ulps: Update.
18498         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18499
18500 2012-03-21  Allan McRae  <allan@archlinux.org>
18501
18502         * timezone/Makefile: Do not install iso3166.tab and zone.tab
18503
18504 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
18505
18506         [BZ #13871]
18507         * math/w_exp2.c: Do not include <float.h>.
18508         (o_threshold, u_threshold): Remove.
18509         (__exp2): Calculate result before checking finiteness and calling
18510         __kernel_standard.
18511         * math/w_exp2f.c: Likewise.
18512         * math/w_exp2l.c: Likewise.
18513         * math/libm-test.inc (exp2_test): Require overflow exception for
18514         1e6 input.
18515
18516         [BZ #3866]
18517         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
18518         range of signed 64-bit integers before using fistpll.  Remove
18519         checks for whether integers fit in mantissa bits.
18520         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
18521         the range of signed 32-bit integers before using fistpl.  Remove
18522         checks for whether integers fit in mantissa bits.
18523         * sysdeps/i386/fpu/e_powl.S (p64): New object.
18524         (__ieee754_powl): Test for y outside the range of signed 64-bit
18525         integers before using fistpll.  Reduce 64-bit values to 63-bit
18526         ones as needed.
18527         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
18528         divide-by-zero is raised for zero to large negative powers.
18529         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
18530         (__ieee754_powl): Test for y outside the range of signed 64-bit
18531         integers before using fistpll.  Reduce 64-bit values to 63-bit
18532         ones as needed.
18533         * math/libm-test.inc (pow_test): Add more tests.
18534
18535 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
18536
18537         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
18538         <stdio-common/_itoa.h>.
18539         * debug/segfault.c: Likewise.
18540         * elf/dl-cache.c: Likewise.
18541         * elf/dl-minimal.c: Likewise.
18542         * elf/dl-misc.c: Likewise.
18543         * elf/dl-sysdep.c: Likewise.
18544         * elf/dl-version.c: Likewise.
18545         * elf/rtld.c: Likewise.
18546         * hurd/hurdsock.c: Likewise.
18547         * hurd/lookup-retry.c: Likewise.
18548         * malloc/malloc.c: Likewise.
18549         * malloc/mtrace.c: Likewise.
18550         * nscd/nscd_getgr_r.c: Likewise.
18551         * nscd/nscd_getpw_r.c: Likewise.
18552         * nscd/nscd_getserv_r.c: Likewise.
18553         * posix/getopt_init.c: Likewise.
18554         * posix/wordexp.c: Likewise.
18555         * stdio-common/_itoa.c: Likewise.
18556         * stdio-common/printf_fphex.c: Likewise.
18557         * stdio-common/vfprintf.c: Likewise.
18558         * string/_strerror.c: Likewise.
18559         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
18560         * sysdeps/i386/i686/hp-timing.h: Likewise.
18561         * sysdeps/mach/_strerror.c: Likewise.
18562         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
18563         * sysdeps/mach/hurd/sethostid.c: Likewise.
18564         * sysdeps/mach/hurd/xmknodat.c: Likewise.
18565         * sysdeps/mach/xpg-strerror.c: Likewise.
18566         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
18567         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
18568         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
18569         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
18570         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
18571         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
18572         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
18573         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
18574         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
18575         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
18576         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
18577         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
18578         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
18579         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
18580         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
18581         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
18582         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
18583         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
18584         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
18585         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
18586         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
18587
18588         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
18589
18590         * stdio-common/_itoa.h: Moved to ...
18591         * sysdeps/generic/_itoa.h: Here.
18592
18593         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
18594
18595         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
18596         instead of "_itoa.h" and "_itowa.h".
18597         * stdio-common/vfprintf.: Likewise.
18598
18599 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
18600
18601         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
18602         <bits/wordsize.h>.
18603         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
18604         (__signbit): Likwise.
18605         (llrintf): Likwise.
18606         (llrint): Likwise.
18607
18608 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
18609
18610         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
18611         __WORDSIZE != 64.
18612
18613 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
18614
18615         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
18616         OVERFLOW_EXCEPTION_OK.
18617         * math/libm-test.inc ("Philosophy"): Update comment about
18618         exception testing.
18619         (OVERFLOW_EXCEPTION): Define.
18620         (OVERFLOW_EXCEPTION_OK): Likewise.
18621         (INVALID_EXCEPTION_OK): Renumber.
18622         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
18623         (IGNORE_ZERO_INF_SIGN): Likewise.
18624         (test_exceptions): Handle FE_OVERFLOW.
18625         (exp10_test): Expect overflow exceptions.
18626         (exp2_test): Likewise.
18627         (expm1_test): Likewise.
18628         (nextafter_test): Likewise.
18629         (pow_test): Likewise.
18630         (scalbn_test): Likewise.
18631         (scalbln_test): Likewise.
18632
18633 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
18634
18635         * sysdeps/x86_64/bits/atomic.h
18636         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
18637         64bit integer.
18638         (atomic_exchange_acq): Likewise.
18639         (__arch_exchange_and_add_body): Likewise.
18640         (__arch_add_body): Likewise.
18641         (atomic_add_negative): Likewise.
18642         (atomic_add_zero): Likewise.
18643
18644 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
18645
18646         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
18647         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
18648
18649 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
18650
18651         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
18652         Check __x86_64__ instead of __WORDSIZE.
18653
18654 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
18655
18656         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
18657
18658 2012-03-19  David S. Miller  <davem@davemloft.net>
18659
18660         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18661
18662         * sysdeps/sparc/fpu/fenv_private.h: New file.
18663         * sysdeps/sparc/fpu/math_private.h: Use it.
18664         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
18665         Remove.
18666         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
18667         (libc_feholdexcept_setroundl): Remove.
18668         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
18669         Remove.
18670         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
18671         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
18672
18673 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
18674
18675         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
18676         int64_t instead of long int.
18677         (INSERT_WORDS64): Likwise.
18678
18679 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
18680
18681         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
18682         _Unwind_GetCFA return to _Unwind_Ptr first.
18683
18684 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
18685
18686         [BZ #13629]
18687         * math/s_clog.c: Include <float.h>.
18688         (__clog): Scale large or subnormal inputs.
18689         * math/s_clogf.c: Likewise.
18690         * math/s_clogl.c: Likewise.
18691         * math/s_clog10.c: Include <float.h>.
18692         (M_LOG10_2): Define.
18693         (__clog10): Scale large or subnormal inputs.
18694         * math/s_clog10f.c: Likewise.
18695         * math/s_clog10l.c: Likewise.
18696         * math/libm-test.inc (clog_test): Add more tests.
18697         (clog10_test): Likewise.
18698         * sysdeps/i386/fpu/libm-test-ulps: Update.
18699         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18700
18701         [BZ #11451]
18702         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
18703         x and y.
18704         * math/libm-test.inc (atan2_test): Add another test.
18705
18706         * Makerules (common-objdir-compile): Remove.
18707         * sysdeps/unix/Makefile (config-generated): Do not add
18708         $(unix-generated) to variable.
18709         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
18710         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
18711         Remove rule.
18712         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
18713         Likewise.
18714         [generic bits/local_lim.h] (before-compile): Do not append to
18715         variable.
18716         [generic bits/local_lim.h] (common-generated): Likewise.
18717         [generic sys/param.h] (before-compile): Do not append to variable.
18718         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
18719         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
18720         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
18721         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
18722         include.
18723         [generic sys/param.h] (sys/param.h-includes): Remove variable.
18724         [generic sys/param.h] (sys/param.h-includes): Remove rule.
18725         [generic sys/param.h] ($(addprefix
18726         $(common-objpfx),$(sys/param.h-includes))): Likewise.
18727         [generic sys/param.h] (common-generated): Do not append to
18728         variable.
18729         [generic sys/param.h] (sysdep_headers): Likewise.
18730         [generic bits/errno.h] (before-compile): Do not append to
18731         variable.
18732         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
18733         rule.
18734         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
18735         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
18736         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
18737         [generic bits/errno.h] (common-generated): Do not append to
18738         variable.
18739         [generic bits/ioctls.h] (before-compile): Do not append to
18740         variable.
18741         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
18742         rule.
18743         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
18744         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
18745         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
18746         rule.
18747         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
18748         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
18749         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
18750         [generic bits/ioctls.h] (common-generated): Do not append to
18751         variable.
18752         [generic sys/syscall.h] (syscall.h): Remove variable.
18753         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
18754         rule.
18755         [generic sys/syscall.h] (before-compile): Do not append to
18756         variable.
18757         [generic sys/syscall.h] (common-generated): Likewise.
18758         * sysdeps/unix/errnos-tmpl.c: Remove file.
18759         * sysdeps/unix/errnos.awk: Likewise.
18760         * sysdeps/unix/ioctls-tmpl.c: Likewise.
18761         * sysdeps/unix/ioctls.awk: Likewise.
18762         * sysdeps/unix/mk-local_lim.c: Likewise.
18763         * sysdeps/unix/snarf-ioctls: Likewise.
18764
18765 2012-03-19  Richard Henderson  <rth@twiddle.net>
18766
18767         * sysdeps/i386/fpu/fenv_private.h: New file.
18768         * sysdeps/i386/fpu/math_private.h: Use it.
18769         (math_opt_barrier, math_force_eval): Remove.
18770         (libc_feholdexcept_setround_53bit): Remove.
18771         (libc_feupdateenv_53bit): Remove.
18772         * sysdeps/x86_64/fpu/math_private.h: Likewise.
18773         (math_opt_barrier, math_force_eval): Remove.
18774         (libc_feholdexcept): Remove.
18775         (libc_feholdexcept_setround): Remove.
18776         (libc_fetestexcept, libc_fesetenv): Remove.
18777         (libc_feupdateenv_test): Remove.
18778         (libc_feupdateenv, libc_feholdsetround): Remove.
18779         (libc_feresetround): Remove.
18780
18781         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
18782         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
18783
18784         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
18785         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
18786         (libc_feupdateenv_testl): New.
18787         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
18788         (libc_feupdateenv_testf): New.
18789         (libc_feupdateenv): Use libc_feupdateenv_test.
18790         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
18791         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
18792
18793         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
18794         (libc_feholdsetroundf, libc_feholdsetroundl): New.
18795         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
18796         (libc_feresetround_noex): New.
18797         (libc_feresetround_noexf): New.
18798         (libc_feresetround_noexl): New.
18799         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
18800         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
18801         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
18802         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
18803         SET_RESTORE_ROUND.
18804         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
18805         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
18806         (__cos): Likewise.
18807         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
18808         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
18809         SET_RESTORE_ROUND_NOEX.
18810         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
18811         SET_RESTORE_ROUND_NOEXF.
18812         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
18813         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
18814         (libc_feholdsetroundf): New.
18815         (libc_feresetround, libc_feresetroundf): New.
18816
18817         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
18818         (libc_feholdexcept_setround_53bit): Convert from macro to function.
18819         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
18820
18821         * sysdeps/generic/math_private.h: Include <fenv.h>.
18822         (default_libc_feholdexcept): New.
18823         (default_libc_feholdexcept_setround): New.
18824         (default_libc_fesetenv, default_libc_feupdateenv): New.
18825         (libc_feholdexcept): Only define if undefined.
18826         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
18827         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
18828         (libc_feholdexcept_setroundl): Likewise.
18829         (libc_feholdexcept_setround_53bit): Likewise.
18830         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
18831         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
18832         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
18833         (libc_feupdateenv_53bit): Likewise.
18834         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
18835         (libc_feholdexcept): Convert from macro to inline function.
18836         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
18837         (libc_fesetenv, libc_feupdateenv): Likewise.
18838
18839         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
18840         not previously defined.
18841         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
18842         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
18843         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
18844         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
18845         * sysdeps/ieee754/flt-32/math_private.h: New file.
18846         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
18847         math_private.h below SET_FLOAT_WORD.
18848         (__isnan, __isinf_ns, __finite): Remove.
18849         (__isnanf, __isinf_nsf, __finitef): Remove.
18850
18851 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
18852
18853         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18854
18855 2012-03-17  David S. Miller  <davem@davemloft.net>
18856
18857         [BZ #6471]
18858         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
18859         for 2.16.
18860
18861 2012-03-16  David S. Miller  <davem@davemloft.net>
18862
18863         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
18864         warnings.
18865
18866         [BZ #6471]
18867         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
18868         properly.
18869         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
18870         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
18871         sysdep_routines when subdir is sysvipc.
18872         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
18873         __getshmlba helper.
18874
18875         * sysdeps/sparc/fpu/libm-test/ulps: Update.
18876
18877 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
18878
18879         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
18880         [__LP64__].
18881
18882 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
18883
18884         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
18885         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
18886         (__lround): Renamed to ...
18887         (__llround): This.  Replace long int with long long int.
18888         Define lround functions as aliases of llround functions.
18889         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
18890
18891 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
18892
18893         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
18894         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
18895         adresses to uintptr_t.  Replace "long int" and "unsigned long
18896         int" with "greg_t" on va_arg.
18897
18898 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
18899
18900         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
18901         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
18902
18903         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
18904         Move e_machine check before EI_CLASS check.  Handle x32
18905         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
18906         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
18907         SKIP_EM_IA_64 and include
18908         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
18909
18910         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
18911         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
18912         (add_system_dir): New macro.
18913
18914         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
18915         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
18916
18917 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
18918
18919         [BZ #2551]
18920         [BZ #2552]
18921         [BZ #2553]
18922         [BZ #2554]
18923         [BZ #2562]
18924         [BZ #2563]
18925         [BZ #2565]
18926         [BZ #2566]
18927         [BZ #2576]
18928         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
18929         (y0): Likewise.
18930         * math/w_j0f.c (j0f): Likewise.
18931         (y0f): Likewise.
18932         * math/w_j0l.c (__j0l): Likewise.
18933         (__y0l): Likewise.
18934         * math/w_j1.c (j1): Likewise.
18935         (y1): Likewise.
18936         * math/w_j1f.c (j1f): Likewise.
18937         (y1f): Likewise.
18938         * math/w_j1l.c (__j1l): Likewise.
18939         (__y1l): Likewise.
18940         * math/w_jn.c (jn): Likewise.
18941         (yn): Likewise.
18942         * math/w_jnf.c (jnf): Likewise.
18943         (ynf): Likewise.
18944         * math/w_jnl.c (__jnl): Likewise.
18945         (__ynl): Likewise.
18946         * math/libm-test.inc (j0_test): Add more tests.
18947         (j1_test): Likewise.
18948         (jn_test): Likewise.  Add trailing semicolon to existing test.
18949         (y0_test): Likewise.
18950         (y1_test): Likewise.
18951         * sysdeps/i386/fpu/libm-test-ulps: Update.
18952         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18953
18954         [BZ #13851]
18955         [BZ #13854]
18956         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
18957         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
18958         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
18959         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
18960         (__tanl): Set errno for infinite argument.
18961         * sysdeps/i386/fpu/mptan.c: Remove.
18962         * sysdeps/i386/fpu/s_tan.S: Likewise.
18963         * sysdeps/i386/fpu/s_tanl.S: Likewise.
18964         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
18965         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
18966         * math/libm-test.inc (tan_test): Add more tests and enable more
18967         tests for double and long double.
18968         * sysdeps/i386/fpu/libm-test-ulps: Update.
18969         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18970
18971 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
18972
18973         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
18974         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
18975
18976 2012-03-16  Roland McGrath  <roland@hack.frob.com>
18977
18978         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
18979         * configure.in: Use it for both main tree and add-ons.
18980         * configure: Regenerated.
18981
18982 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
18983
18984         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
18985
18986 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
18987
18988         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
18989         in comment.
18990
18991         [BZ #13851]
18992         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
18993         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
18994         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
18995         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
18996         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
18997         infinite argument.
18998         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
18999         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
19000         != 0 for prec == 2.
19001         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
19002         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
19003         * sysdeps/i386/fpu/s_cosl.S: Likewise.
19004         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
19005         * sysdeps/i386/fpu/s_sinl.S: Likewise.
19006         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
19007         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
19008         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
19009         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
19010         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
19011         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
19012         * math/libm-test.inc (cos_test): Add more tests and enable more
19013         tests for long double.
19014         (sin_test): Likewise.
19015         (sincos_test): Likewise.
19016         * sysdeps/i386/fpu/libm-test-ulps: Update.
19017         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19018
19019 2012-03-16  David S. Miller  <davem@davemloft.net>
19020
19021         * sysdeps/sparc/fpu/math_private.h: New file.
19022
19023 2012-03-15  David S. Miller  <davem@davemloft.net>
19024
19025         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
19026         file.
19027         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
19028         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
19029         file.
19030         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
19031         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
19032         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
19033         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
19034         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
19035         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
19036         sysdep routines.
19037         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
19038
19039         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
19040         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
19041
19042         * sysdeps/sparc/sparc-ifunc.h: New file.
19043         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
19044         sparc-ifunc.h
19045         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
19046         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
19047         Likewise.
19048         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
19049         Likewise.
19050         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
19051         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
19052         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
19053         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
19054         Likewise.
19055         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
19056         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
19057         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
19058         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
19059         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
19060         Likewise.
19061         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
19062         Likewise.
19063         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
19064         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
19065         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
19066         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
19067         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
19068         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
19069         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
19070         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
19071         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
19072         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
19073         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
19074         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
19075         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
19076         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
19077         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
19078         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
19079         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
19080         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
19081         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
19082         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
19083         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
19084         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
19085         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
19086         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
19087
19088 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
19089
19090         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
19091         scaling.
19092         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19093
19094 2012-03-15  Andreas Jaeger  <aj@suse.de>
19095
19096         [BZ #13852]
19097         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
19098         ieee754/flt-32 implementation for sin, cos and sincos.
19099         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
19100         * sysdeps/i386/fpu/s_cosf.S: Likewise.
19101         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
19102         * sysdeps/i386/fpu/s_sinf.S: Likewise.
19103         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
19104         ieee754/flt-32 implementation for tan.
19105
19106         * math/libm-test.inc (cos_test): Enable some large input tests for
19107         float as well
19108         (sin_test): Likewise.
19109         (sincos_test): Likewise.
19110         (tan_test): Add tests for large input.
19111
19112         * sysdeps/i386/fpu/libm-test-ulps: Update.
19113
19114 2012-03-15  Andreas Jaeger  <aj@suse.de>
19115
19116         [BZ #13658]
19117         * math/libm-test.inc (cos_test): Add more test cases.
19118         (sin_test): Likewise.
19119         (sincos_test): Likewise.
19120
19121 2012-03-15  Andreas Jaeger  <aj@suse.de>
19122
19123         [BZ #13837]
19124         * math/libm-test.inc (cos_test): Add a test case for large input
19125         value.
19126         (sin_test): Likewise.
19127         (sincos_test): Likewise.
19128
19129 2012-03-15  Andreas Jaeger  <aj@suse.de>,
19130         Joseph Myers  <joseph@codesourcery.com>
19131
19132         [BZ #13658]
19133         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
19134         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
19135         * sysdeps/i386/fpu/branred.c: Likewise.
19136         * sysdeps/i386/fpu/dosincos.c: Likewise.
19137         * sysdeps/i386/fpu/mpa.c: Likewise.
19138         * sysdeps/i386/fpu/s_cos.S: Likewise.
19139         * sysdeps/i386/fpu/s_sin.S: Likewise.
19140         * sysdeps/i386/fpu/s_sincos.S: Likewise.
19141         * sysdeps/i386/fpu/sincos32.c: Likewise.
19142
19143         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
19144         Define.
19145         (libc_feupdateenv_53bit): Define.
19146         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
19147         Define.
19148         (libc_feupdateenv_53bit): Define.
19149
19150         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
19151         53 bit (without extend i386 double precision).
19152
19153         * math/libm-test.inc (sincos_test): Add tests for large input.
19154         (sin): Likewise.
19155         (cos): Likewise.
19156
19157         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
19158
19159 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
19160
19161         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19162
19163 2012-03-15  David S. Miller  <davem@davemloft.net>
19164
19165         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
19166         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
19167         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
19168         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
19169         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
19170         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
19171         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
19172         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
19173         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
19174         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
19175         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
19176         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
19177         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
19178         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
19179         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
19180         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
19181         file.
19182         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
19183         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
19184         file.
19185         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
19186         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
19187         file.
19188         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
19189         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
19190         file.
19191         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
19192         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
19193         fmin/fmax sysdep routines.
19194         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
19195
19196 2012-03-14  David S. Miller  <davem@davemloft.net>
19197
19198         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
19199         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
19200         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
19201         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
19202         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
19203         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
19204         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
19205         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
19206         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
19207         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
19208         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
19209         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
19210         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
19211         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
19212         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
19213         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
19214         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
19215         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
19216         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
19217         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
19218         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
19219         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
19220         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
19221         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
19222         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
19223         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
19224         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
19225         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
19226         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
19227         routines.
19228         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
19229         file.
19230         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
19231         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
19232         file.
19233         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
19234         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
19235         file.
19236         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
19237         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
19238         file.
19239         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
19240         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
19241         file.
19242         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
19243         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
19244         file.
19245         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
19246         file.
19247         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
19248         file.
19249         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
19250         file.
19251         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
19252         New file.
19253         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
19254         file.
19255         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
19256         file.
19257         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
19258         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
19259         file.
19260         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
19261         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
19262         file.
19263         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
19264         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
19265         file.
19266         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
19267         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
19268         VIS3 routines.
19269
19270         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
19271         New file.
19272
19273         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19274
19275         * sysdeps/sparc/configure.in: New file.
19276         * sysdeps/sparc/configure: Generate.
19277         * configure.in (libc_cv_sparc_as_vis3): Substitute.
19278         * configure: Regenerate.
19279         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
19280         * config.make.in (have-as-vis3): New.
19281         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
19282         available use -Av9d instead of -Av9a.
19283         * sysdeps/sparc/sparc64/Makefile: Likewise.
19284         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
19285         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
19286         New file.
19287         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
19288         file.
19289         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
19290         New file.
19291         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
19292         file.
19293         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
19294         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
19295         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
19296         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
19297         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
19298
19299         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
19300         fzeros/fnegs to load 0x80000000 into a float register instead of
19301         using the stack.
19302         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
19303
19304 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
19305
19306         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
19307         bits/syscall.h.
19308         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
19309         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
19310         ($(inst_includedir)/bits/syscall.h): Remove rule.
19311         ($(objpfx)bits/syscall.d): Include instead of
19312         $(objpfx)syscall-list.d.
19313         (generated): Change syscall-list.h and syscall-list.d to
19314         bits/syscall.h and bits/syscall.d.
19315
19316 2012-03-14  Roland McGrath  <roland@hack.frob.com>
19317
19318         [BZ #13846]
19319         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
19320
19321 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
19322
19323         [BZ #13841]
19324         * math/s_csqrt.c: Include <float.h>.
19325         (__csqrt): Scale large or subnormal inputs.
19326         * math/s_csqrtf.c: Likewise.
19327         * math/s_csqrtl.c: Likewise.
19328         * math/libm-test.inc (csqrt_test): Add more tests.
19329         * sysdeps/i386/fpu/libm-test-ulps: Update.
19330         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19331
19332         [BZ #13840]
19333         * math/libm-test.inc (hypot_test): Add more tests.
19334
19335 2012-03-13  David S. Miller  <davem@davemloft.net>
19336
19337         [BZ #13840]
19338         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
19339         double-precision for the calculation instead of scaling.
19340
19341 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
19342
19343         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
19344         manipulate bits before adding and subtracting TWO52[sx].
19345         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
19346         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
19347         Likewise.
19348         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
19349
19350 2012-03-13  David S. Miller  <davem@davemloft.net>
19351
19352         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
19353         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
19354         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
19355         rtld-global-offsets.h
19356         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
19357
19358         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
19359         large parameters.
19360
19361         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
19362
19363         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
19364         'err' in the ifdef scope in which it is actually used.
19365
19366         * nss/nss_db/db-init.c: Include string.h
19367
19368 2012-03-12  David S. Miller  <davem@davemloft.net>
19369
19370         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
19371         masking out of the most significant byte of random value used.
19372         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
19373         Fix coding style in previous change.
19374
19375         * sysdeps/unix/sysv/linux/kernel-features.h
19376         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
19377         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
19378         expression.
19379         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
19380         later.
19381
19382 2012-03-11  David S. Miller  <davem@davemloft.net>
19383
19384         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
19385         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
19386         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
19387         for 'resultvar' otherwise things get truncated on 64-bit.
19388
19389         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
19390         Fix masking out of the most significant byte of random value used.
19391
19392         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19393
19394 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
19395
19396         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19397
19398 2012-03-09  David S. Miller  <davem@davemloft.net>
19399
19400         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
19401         variables with appropriate CPP guards.
19402         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
19403         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
19404         on resulting framesize and the management of the outregs buffer for pltexit.
19405         Preserve floating point return values across _dl_call_pltexit call.
19406         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
19407         framesize and the management of the outregs buffer for pltexit.
19408         Preserve floating point return values across _dl_call_pltexit
19409         call.
19410         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
19411         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
19412         (print_exit): Fix format string for return register value.
19413
19414 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
19415
19416         * sunrpc/Makefile (others): Add rpcgen.
19417         ($(objpfx)rpcgen): Remove special build rule and dependency on
19418         libc.
19419         * sunrpc/rpcgen.c: New file.
19420
19421 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
19422
19423         [BZ #13673]
19424         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
19425         * stdio-common/bug-vfprintf-nargs.c: Likewise.
19426         * sysdeps/i386/crti.S: Likewise.
19427         * sysdeps/i386/crtn.S: Likewise.
19428         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
19429         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
19430         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
19431         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
19432         * sysdeps/sh/crti.S: Likewise.
19433         * sysdeps/sh/crtn.S: Likewise.
19434         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
19435
19436         [BZ #13673]
19437         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
19438         with URL.
19439         * locale/programs/locfile-kw.gperf: Likewise.
19440         * locale/programs/charmap-kw.h: Regenerated.
19441         * locale/programs/locfile-kw.h: Likewise.
19442
19443         [BZ #13673]
19444         * intl/plural.y: Replace FSF snail mail address with URL.
19445         * intl/plural.c: Regenerated.
19446
19447 2012-03-09  Richard Henderson  <rth@twiddle.net>
19448
19449         * include/math_private.h: Remove file.
19450         * math/math_private.h: Move file ...
19451         * sysdeps/generic/math_private.h: ... here.
19452
19453         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
19454         * sysdeps/powerpc/fpu/math_private.h: Likewise.
19455         * sysdeps/x86_64/fpu/math_private.h: Likewise.
19456
19457         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
19458         and <math_private.h>.
19459         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
19460         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
19461         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
19462         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
19463         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
19464         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
19465         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
19466         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
19467         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
19468         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
19469         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
19470         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
19471         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
19472         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
19473         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
19474         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
19475         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
19476         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
19477         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
19478         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
19479         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
19480         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
19481         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
19482         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
19483         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
19484         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
19485         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
19486         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
19487         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
19488         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
19489         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
19490         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
19491         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
19492         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
19493         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
19494         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
19495         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
19496         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
19497         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
19498         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
19499         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
19500         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
19501         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
19502         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
19503         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
19504         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
19505         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
19506         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
19507         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
19508         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
19509         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
19510         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
19511         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
19512         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
19513         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
19514         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
19515         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
19516         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
19517         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
19518         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
19519         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
19520         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
19521         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
19522         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
19523         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
19524         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
19525         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
19526         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
19527         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
19528         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
19529         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
19530         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
19531         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
19532         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
19533         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
19534         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
19535         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
19536         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
19537         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
19538         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
19539         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
19540         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
19541         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
19542         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
19543         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
19544         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
19545         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
19546         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
19547         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
19548         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
19549         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
19550         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
19551         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
19552         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
19553         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
19554         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
19555         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
19556         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
19557         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
19558         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
19559         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
19560         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
19561         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
19562         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
19563         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
19564         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
19565         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
19566         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
19567         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
19568         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
19569         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
19570         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
19571         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
19572         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
19573         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
19574         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
19575         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
19576         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
19577         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
19578         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
19579         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
19580         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
19581         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
19582         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
19583         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
19584         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
19585         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
19586         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
19587         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
19588         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
19589         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
19590         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
19591         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
19592         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
19593         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
19594         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
19595         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
19596         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
19597         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
19598         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
19599         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
19600         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
19601         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
19602         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
19603         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
19604         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
19605         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
19606         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
19607         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
19608         * sysdeps/ieee754/k_standard.c: Likewise.
19609         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
19610         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
19611         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
19612         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
19613         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
19614         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
19615         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
19616         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
19617         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
19618         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
19619         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
19620         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
19621         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
19622         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
19623         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
19624         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
19625         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
19626         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
19627         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
19628         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
19629         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
19630         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
19631         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
19632         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
19633         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
19634         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
19635         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
19636         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
19637         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
19638         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
19639         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
19640         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
19641         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
19642         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
19643         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
19644         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
19645         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
19646         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
19647         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
19648         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
19649         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
19650         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
19651         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
19652         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
19653         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
19654         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
19655         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
19656         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
19657         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
19658         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
19659         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
19660         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
19661         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
19662         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
19663         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
19664         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
19665         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
19666         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
19667         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
19668         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
19669         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
19670         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
19671         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
19672         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
19673         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
19674         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
19675         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
19676         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
19677         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
19678         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
19679         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
19680         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
19681         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
19682         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
19683         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
19684         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
19685         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
19686         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
19687         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
19688         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
19689         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
19690         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
19691         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
19692         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
19693         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
19694         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
19695         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
19696         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
19697         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
19698         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
19699         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
19700         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
19701         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
19702         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
19703         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
19704         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
19705         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
19706         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
19707         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
19708         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
19709         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
19710         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
19711         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
19712         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
19713         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
19714         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
19715         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
19716         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
19717         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
19718         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
19719         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
19720         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
19721         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
19722         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
19723         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
19724         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
19725         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
19726         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
19727         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
19728         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
19729         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
19730         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
19731         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
19732         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
19733         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
19734         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
19735         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
19736         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
19737         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
19738         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
19739         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
19740         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
19741         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
19742         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
19743         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
19744         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
19745         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
19746         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
19747         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
19748         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
19749         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
19750         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
19751         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
19752         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
19753         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
19754         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
19755         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
19756         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
19757         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
19758         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
19759         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
19760         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
19761         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
19762         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
19763         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
19764         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
19765         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
19766         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
19767         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
19768         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
19769         * sysdeps/ieee754/s_lib_version.c: Likewise.
19770         * sysdeps/ieee754/s_matherr.c: Likewise.
19771         * sysdeps/ieee754/s_signgam.c: Likewise.
19772         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
19773         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
19774         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
19775         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
19776         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
19777         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
19778         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
19779         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
19780         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
19781         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
19782         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
19783         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
19784         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
19785         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
19786         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
19787         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
19788         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
19789         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
19790         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
19791         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
19792         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
19793
19794 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
19795
19796         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
19797         * sunrpc/rpc_main.c: Likewise.
19798         * sunrpc/rpc_svcout.c: Likewise.
19799
19800 2012-03-09  David S. Miller  <davem@davemloft.net>
19801
19802         * include/math_private.h: New file.
19803
19804 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
19805
19806         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
19807         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
19808         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
19809         from <bits/socket_type.h>.
19810         (enum __socket_type): Don't define here.
19811         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
19812         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
19813         bits/socket_type.h.
19814
19815         [BZ #13566]
19816         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
19817         checking __USE_GNU.
19818
19819         * Makerules ($(inst_includedir)/%.h): New rule.
19820         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
19821         (install-others): Remove variable setting.
19822         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
19823
19824 2012-03-08  Richard Henderson  <rth@twiddle.net>
19825
19826         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
19827         from macro to inline function; merge with the
19828         !__LIBC_INTERNAL_MATH_INLINES version.
19829         (__ieee754_sqrtf): Likewise.
19830
19831         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
19832         to inline function.
19833         (__rintf, __floor, __floorf): Likewise.
19834
19835         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
19836         macro to inline function.
19837         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
19838
19839         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
19840         not <math/math_private.h>.
19841
19842 2012-03-08  David S. Miller  <davem@davemloft.net>
19843
19844         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
19845         copyright year.
19846         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
19847
19848 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
19849
19850         * resolv/gai_misc.c (handle_requests): Fix struct timespec
19851         normalization.
19852         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
19853         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
19854
19855 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
19856
19857         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
19858         be defined individually, they must be defined as a block.  Define
19859         S for printing a string instead of hidint the different by using a
19860         macro for adding the 'l'.
19861         * stdio-common/tst-fphex-wide.c: Adjust.
19862
19863 2012-03-07  Marek Polacek  <polacek@redhat.com>
19864
19865         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
19866
19867 2012-03-08  Marek Polacek  <polacek@redhat.com>
19868
19869         [BZ #13806]
19870         * stdio-common/Makefile (tests): Add tst-fphex-wide.
19871         * stdio-common/tst-fphex.c: Define a few macros to make the
19872         test reusable.  Use them.
19873         * stdio-common/tst-fphex-wide.c: New file.
19874
19875 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
19876
19877         [BZ #6911]
19878         * manual/macros.texi (gnusystems): New macro.
19879         (nongnusystems): Likewise.
19880         (gnulinuxhurdsystems): Likewise.
19881         (gnuhurdsystems): Likewise..
19882         (gnulinuxsystems): Likewise.
19883         * manual/charset.texi: Use new macros or @theglibc{} to refer to
19884         variants of the GNU system, not "GNU system".
19885         * manual/conf.texi: Likewise.
19886         * manual/errno.texi: Likewise.  Update example of errno macro
19887         expansion.
19888         * manual/filesys.texi: Likewise.
19889         (getumask): Document as specific to GNU/Hurd.
19890         * manual/install.texi: Likewise.  Reword some references to
19891         GNU/Linux.
19892         * manual/intro.texi: Likewise.
19893         * manual/io.texi: Likewise.
19894         (File Name Portability): Detail which constraints are inapplicable
19895         to all GNU systems and which are only inapplicable to GNU/Hurd.
19896         * manual/job.texi: Likewise.
19897         * manual/llio.texi: Likewise.
19898         (O_NOCTTY): Document as present on GNU/Linux.
19899         * manual/maint.texi: Likewise.
19900         * manual/memory.texi: Likewise.
19901         * manual/pattern.texi: Likewise.
19902         * manual/pipe.texi: Likewise.
19903         * manual/process.texi: Likewise.
19904         * manual/resource.texi: Likewise.
19905         (RUSAGE_CHILDREN): Remove statement about specifying a particular
19906         child on GNU/Hurd.
19907         * manual/setjmp.texi: Likewise.
19908         * manual/signal.texi: Likewise.
19909         * manual/startup.texi: Likewise.
19910         * manual/stdio.texi: Likewise.
19911         * manual/terminal.texi: Likewise.
19912         (ONLCR): Document as POSIX.
19913         (OXTABS): Document availability on GNU/Linux as XTABS.
19914         (ONOEOT): Document availability separately from other bits.
19915         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
19916         * manual/time.texi: Likewise.
19917         * manual/users.texi: Likewise.
19918         * INSTALL: Regenerated.
19919         * sysdeps/gnu/errlist.c: Regenerated.
19920
19921         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
19922         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
19923         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
19924         puts.
19925         * configure: Regenerated.
19926
19927 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
19928
19929         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
19930         default includes instead of AC_HEADER_CHECK.
19931         * sysdeps/i386/configure: Regenerated.
19932
19933         [BZ #10716]
19934         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
19935         * math/s_cacoshf.c (__cacoshf): Likewise.
19936         * math/s_cacoshl.c (__cacoshl): Likewise.
19937         * math/s_casinh.c (__casinh): Set signs of result from argument.
19938         * math/s_casinhf.c (__casinhf): Likewise.
19939         * math/s_casinhl.c (__casinhl): Likewise.
19940         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
19941         (casinh_test): Add more tests.
19942         * sysdeps/i386/fpu/libm-test-ulps: Update.
19943         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19944
19945 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
19946
19947         * po/zh_TW.po: Update from translation team.
19948
19949         * login/Makefile (distribute): Remove variable.
19950         * catgets/Makefile: Likewise.
19951         * mach/Makefile: Likewise.
19952         * malloc/Makefile: Likewise.
19953         * misc/Makefile: Likewise.
19954         * iconv/Makefile: Likewise.
19955         * nscd/Makefile: Likewise.
19956         * hurd/Makefile: Likewise.
19957         * manual/Makefile: Likewise.
19958         * locale/Makefile: Likewise.
19959         * intl/Makefile: Likewise.
19960         * conform/Makefile: Likewise.
19961         * nss/Makefile: Likewise.
19962         * time/Makefile: Likewise.
19963         * soft-fp/Makefile: Likewise.
19964         * dirent/Makefile: Likewise.
19965         * gmon/Makefile: Likewise.
19966         * po/Makefile: Likewise.
19967         * rt/Makefile: Likewise.
19968         * socket/Makefile: Likewise.
19969         * math/Makefile: Likewise.
19970         * signal/Makefile: Likewise.
19971         * debug/Makefile: Likewise.
19972         * elf/Makefile: Likewise.
19973         * timezone/Makefile: Likewise.
19974         * stdlib/Makefile: Likewise.
19975         * iconvdata/Makefile: Likewise.
19976         * sunrpc/Makefile: Likewise.
19977         * io/Makefile: Likewise.
19978         * argp/Makefile: Likewise.
19979         * inet/Makefile: Likewise.
19980         * hesiod/Makefile: Likewise.
19981         * grp/Makefile: Likewise.
19982         * csu/Makefile: Likewise.
19983         * wctype/Makefile: Likewise.
19984         * crypt/Makefile: Likewise.
19985         * libio/Makefile: Likewise.
19986         * string/Makefile: Likewise.
19987         * nis/Makefile: Likewise.
19988         * resolv/Makefile: Likewise.
19989         * stdio-common/Makefile: Likewise.
19990         * wcsmbs/Makefile: Likewise.
19991         * dlfcn/Makefile: Likewise.
19992         * posix/Makefile: Likewise.
19993
19994         [BZ #6959]
19995         * timezone/Makefile: Don't install timezone files, just the programs
19996         and scripts.
19997
19998 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
19999
20000         * nss/databases.def: Add missing gshadow entry.
20001
20002         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
20003
20004 2012-03-06  Marek Polacek  <polacek@redhat.com>
20005
20006         [BZ #13726]
20007         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
20008         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
20009         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
20010         * stdio-common/tst-long-dbl-fphex.c: New file.
20011
20012 2012-03-06  David S. Miller  <davem@davemloft.net>
20013
20014         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
20015         (set_obp_int): New function.
20016         (get_obp_int): New function.
20017         (__get_clockfreq_via_dev_openprom): Likewise.
20018         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
20019         Avoid unused variable warnings on 'val' and use builtin_expect.
20020         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
20021         __builtin_expect.
20022         (INLINE_CLONE_SYSCALL): Likewise.
20023
20024 2012-03-05  David S. Miller  <davem@davemloft.net>
20025
20026         * sysdeps/sparc/fpu/libm-test-ulps: Update.
20027
20028 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
20029
20030         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
20031
20032         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
20033         only for |x| >= 40.
20034         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
20035
20036 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
20037
20038         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
20039         Replace gettimeofday with __vdso_gettimeofday.
20040
20041         * sysdeps/unix/sysv/linux/x86_64/init-first.c
20042         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
20043         __vdso_clock_gettime and __vdso_getcpu.
20044
20045         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
20046         time with __vdso_time.
20047
20048 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
20049
20050         * manual/lang.texi (size_t): Note types to which size_t may be
20051         equivalent with the GNU C Library, but do not describe when
20052         differences between them are significant.
20053
20054 2012-03-05  Andreas Jaeger  <aj@suse.de>
20055
20056         * sysdeps/i386/fpu/libm-test-ulps: Update.
20057
20058 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
20059
20060         [BZ #3976]
20061         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
20062         (__ieee754_pow): Save and restore rounding mode and use
20063         round-to-nearest for main computations.
20064         * math/libm-test.inc (pow_test_tonearest): New function.
20065         (pow_test_towardzero): Likewise.
20066         (pow_test_downward): Likewise.
20067         (pow_test_upward): Likewise.
20068         (main): Call the new functions.
20069         * sysdeps/i386/fpu/libm-test-ulps: Update.
20070         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20071
20072         [BZ #3976]
20073         * math/libm-test.inc (cosh_test_tonearest): New function.
20074         (cosh_test_towardzero): Likewise.
20075         (cosh_test_downward): Likewise.
20076         (cosh_test_upward): Likewise.
20077         (sinh_test_tonearest): Likewise.
20078         (sinh_test_towardzero): Likewise.
20079         (sinh_test_downward): Likewise.
20080         (sinh_test_upward): Likewise.
20081         (main): Call the new functions.
20082         * sysdeps/i386/fpu/libm-test-ulps: Update.
20083         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20084
20085 2012-03-05  Tom de Vries  <tom@codesourcery.com>
20086
20087         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
20088         default stack guard is set in last bytes.
20089         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
20090
20091 2012-03-05  Kees Cook  <keescook@chromium.org>
20092
20093         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
20094
20095         [BZ #13656]
20096         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
20097         possibly allocate from heap instead of stack.
20098         * stdio-common/bug-vfprintf-nargs.c: New file.
20099         * stdio-common/Makefile (tests): Add nargs overflow test.
20100
20101 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
20102
20103         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
20104
20105 2012-03-03  Marek Polacek  <polacek@redhat.com>
20106
20107         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
20108         * math/math_private.h: Likewise.
20109         * stdlib/tst-strtod.c: Likewise.
20110         * sysdeps/i386/i486/bits/atomic.h: Likewise.
20111         * sysdeps/x86_64/bits/atomic.h: Likewise.
20112
20113 2012-03-02  David S. Miller  <davem@davemloft.net>
20114
20115         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
20116         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
20117         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
20118         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
20119         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
20120         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
20121         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
20122         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
20123
20124 2012-03-02  Roland McGrath  <roland@hack.frob.com>
20125
20126         [BZ #13792]
20127         * manual/examples/README: New file, says the example source files
20128         can be used under GPL>=2.
20129         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
20130         line containing just "*/".
20131         * manual/examples/add.c: Add copyright header (GPL>=2).
20132         * manual/examples/argp-ex1.c: Likewise.
20133         * manual/examples/argp-ex2.c: Likewise.
20134         * manual/examples/argp-ex3.c: Likewise.
20135         * manual/examples/argp-ex4.c: Likewise.
20136         * manual/examples/atexit.c: Likewise.
20137         * manual/examples/db.c: Likewise.
20138         * manual/examples/dir.c: Likewise.
20139         * manual/examples/dir2.c: Likewise.
20140         * manual/examples/execinfo.c: Likewise.
20141         * manual/examples/filecli.c: Likewise.
20142         * manual/examples/filesrv.c: Likewise.
20143         * manual/examples/fmtmsgexpl.c: Likewise.
20144         * manual/examples/genpass.c: Likewise.
20145         * manual/examples/inetcli.c: Likewise.
20146         * manual/examples/inetsrv.c: Likewise.
20147         * manual/examples/isockad.c: Likewise.
20148         * manual/examples/longopt.c: Likewise.
20149         * manual/examples/memopen.c: Likewise.
20150         * manual/examples/memstrm.c: Likewise.
20151         * manual/examples/mkfsock.c: Likewise.
20152         * manual/examples/mkisock.c: Likewise.
20153         * manual/examples/mygetpass.c: Likewise.
20154         * manual/examples/pipe.c: Likewise.
20155         * manual/examples/popen.c: Likewise.
20156         * manual/examples/rprintf.c: Likewise.
20157         * manual/examples/search.c: Likewise.
20158         * manual/examples/select.c: Likewise.
20159         * manual/examples/setjmp.c: Likewise.
20160         * manual/examples/sigh1.c: Likewise.
20161         * manual/examples/sigusr.c: Likewise.
20162         * manual/examples/stpcpy.c: Likewise.
20163         * manual/examples/strdupa.c: Likewise.
20164         * manual/examples/strftim.c: Likewise.
20165         * manual/examples/strncat.c: Likewise.
20166         * manual/examples/subopt.c: Likewise.
20167         * manual/examples/swapcontext.c: Likewise.
20168         * manual/examples/termios.c: Likewise.
20169         * manual/examples/testopt.c: Likewise.
20170         * manual/examples/testpass.c: Likewise.
20171         * manual/examples/timeval_subtract.c: Likewise.
20172
20173         [BZ #13792]
20174         * manual/time.texi (Elapsed Time): Move timeval_subtract example
20175         function to ...
20176         * manual/timeval_subtract.c.texi: ... here, new file.
20177
20178 2012-03-02  David S. Miller  <davem@davemloft.net>
20179
20180         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
20181
20182 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
20183
20184         [BZ #3976]
20185         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
20186         (__sin): Save and restore rounding mode and use round-to-nearest
20187         for all computations.
20188         (__cos): Save and restore rounding mode and use round-to-nearest
20189         for all computations.
20190         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
20191         <fenv.h>.
20192         (tan): Save and restore rounding mode and use round-to-nearest for
20193         all computations.
20194         * math/libm-test.inc (cos_test_tonearest): New function.
20195         (cos_test_towardzero): Likewise.
20196         (cos_test_downward): Likewise.
20197         (cos_test_upward): Likewise.
20198         (sin_test_tonearest): Likewise.
20199         (sin_test_towardzero): Likewise.
20200         (sin_test_downward): Likewise.
20201         (sin_test_upward): Likewise.
20202         (tan_test_tonearest): Likewise.
20203         (tan_test_towardzero): Likewise.
20204         (tan_test_downward): Likewise.
20205         (tan_test_upward): Likewise.
20206         (main): Call the new functions.
20207         * sysdeps/i386/fpu/libm-test-ulps: Update.
20208         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20209
20210         [BZ #10135]
20211         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
20212         small n, then large n, before computing and testing k+n.
20213         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
20214         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
20215         Likewise.
20216         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
20217         Likewise.
20218         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
20219         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
20220         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
20221         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
20222         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
20223         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
20224         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
20225         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
20226         * math/libm-test.inc (scalbn_test): Add more tests.
20227         (scalbln_test): Likewise.
20228
20229         * manual/filesys.texi (mode_t): Describe constraints on size and
20230         signedness, not exact equivalence to a particular type.
20231         (ino_t): Likewise.
20232         (ino64_t): Likewise.
20233         (dev_t): Likewise.
20234         (nlink_t): Likewise.
20235         (blkcnt_t): Likewise.
20236         (blkcnt64_t): Likewise.
20237         * manual/llio.texi (off_t): Likewise.
20238
20239         [BZ #3976]
20240         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
20241         (__ieee754_exp): Save and restore rounding mode and use
20242         round-to-nearest for all computations.
20243         * math/libm-test.inc (exp_test_tonearest): New function.
20244         (exp_test_towardzero): Likewise.
20245         (exp_test_downward): Likewise.
20246         (exp_test_upward): Likewise.
20247         (main): Call the new functions.
20248         * sysdeps/i386/fpu/libm-test-ulps: Update.
20249         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20250
20251 2012-03-01  Chris Demetriou  <cgd@google.com>
20252
20253         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
20254         have predictable order.
20255
20256 2012-03-01  David S. Miller  <davem@davemloft.net>
20257
20258         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
20259
20260         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
20261         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
20262         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
20263         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
20264
20265         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
20266         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
20267         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
20268         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
20269         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
20270         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
20271         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
20272         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
20273         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
20274
20275         * sysdeps/sparc/fpu/libm-test-ulps: Update.
20276
20277         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
20278         * sysdeps/sparc/fpu/libm-test-ulps: to here.
20279         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
20280
20281         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
20282         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
20283         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
20284         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
20285         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
20286         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
20287         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
20288         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
20289         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
20290         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
20291         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
20292         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
20293         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
20294         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
20295         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
20296         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
20297         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
20298         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
20299         * sysdeps/sparc/elf/configure: Regenerated.
20300
20301 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
20302
20303         * configure.in (AS, LD): Require binutils 2.20 or later.
20304         * configure: Regenerated.
20305         * manual/install.texi (Tools for Compilation): Give binutils 2.20
20306         as required minimum version.
20307         * INSTALL: Regenerated.
20308
20309         [BZ #2541]
20310         [BZ #4108]
20311         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
20312         before squaring exponent.
20313         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
20314         bottom long double and 27 bits of top long double before squaring
20315         exponent.
20316         * math/libm-test.inc (erfc_test): Add more tests.
20317         * sysdeps/i386/fpu/libm-test-ulps: Update.
20318         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
20319         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20320
20321 2012-03-01  Kai Tietz  <ktietz@redhat.com>
20322
20323         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
20324         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
20325         containing bit-fields.
20326         * soft-fp/extended.h (_FP_UNION_E): Likewise.
20327         * soft-fp/single.h (_FP_UNION_S): Likewise.
20328         * soft-fp/double.h (_FP_UNION_D): Likewise.
20329
20330 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
20331
20332         [BZ #13786]
20333         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
20334         not include ../strcmp.S.
20335         [USE_AS_STRNCASECMP_L]: Likewise.
20336         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
20337         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
20338         * sysdeps/i386/i686/multiarch/strncase_l-c.c
20339         (__strncasecmp_l_ia32): Define as alias to
20340         __strncasecmp_l_nonascii.
20341
20342         [BZ #5794]
20343         * math/libm-test.inc (expm1_test): Add test for bug 5794.
20344         * sysdeps/i386/fpu/libm-test-ulps: Update.
20345         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20346
20347         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
20348         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20349
20350 2012-02-29  Jeff Law  <law@redhat.com>
20351
20352         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
20353         out of bounds read.
20354
20355 2012-02-29  Marek Polacek  <polacek@redhat.com>
20356
20357         [BZ #13706]
20358         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
20359         * elf/Makefile: Add rules to run tst-unused-dep.out.
20360
20361 2012-02-28  David S. Miller  <davem@davemloft.net>
20362
20363         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
20364         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
20365         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
20366         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
20367         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
20368         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
20369
20370 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
20371
20372         * math/libm-test.inc (llround_test): Move one test from
20373         lround_test.  Use TEST_f_L in moved test.
20374         (lround_test): Move misplaced test to llround_test.  Add testcase
20375         from bug 2561.
20376
20377 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
20378
20379         * sysdeps/x86_64/fpu/e_expf.S: New file.
20380         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
20381
20382 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
20383
20384         [BZ #13637]
20385         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
20386         of remain_len that may cause incomplete multi-byte character and
20387         false match.
20388         * posix/bug-regex33.c: New file.
20389         * posix/Makefile (tests): Add bug-regex33.
20390
20391 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
20392
20393         * manual/macros.texi: New file.
20394         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
20395         * manual/libc.texinfo: Include macros.texi.
20396         * manual/creatute.texi: Likewise.
20397         * manual/install.texi: Likewise.
20398         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
20399         @glibcadj{} in references to the GNU C Library.
20400         * manual/charset.texi: Likewise.
20401         * manual/conf.texi: Likewise.
20402         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
20403         when not using those macros.
20404         * manual/creature.texi: Likewise.
20405         * manual/crypt.texi: Likewise.
20406         * manual/errno.texi: Likewise.
20407         * manual/filesys.texi: Likewise.
20408         * manual/header.texi: Likewise.
20409         * manual/install.texi: Likewise.
20410         * manual/intro.texi: Likewise.
20411         * manual/io.texi: Likewise.
20412         * manual/job.texi: Likewise.
20413         * manual/lang.texi: Likewise.
20414         * manual/libc.texiinfo: Likewise.
20415         * manual/llio.texi: Likewise.
20416         * manual/locale.texi: Likewise.
20417         * manual/maint.texi: Likewise.
20418         * manual/math.texi: Likewise.
20419         * manual/memory.texi: Likewise.
20420         * manual/message.texi: Likewise.
20421         * manual/nss.texi: Likewise.
20422         * manual/pattern.texi: Likewise.
20423         * manual/process.texi: Likewise.
20424         * manual/resource.texi: Likewise.
20425         * manual/search.texi: Likewise.
20426         * manual/setjmp.texi: Likewise.
20427         * manual/signal.texi: Likewise.
20428         * manual/socket.texi: Likewise.
20429         * manual/startup.texi: Likewise.
20430         * manual/stdio.texi: Likewise.
20431         * manual/string.texi: Likewise.
20432         * manual/sysinfo.texi: Likewise.
20433         * manual/syslog.texi: Likewise.
20434         * manual/terminal.texi: Likewise.
20435         * manual/time.texi: Likewise.
20436         * manual/users.texi: Likewise.
20437         * INSTALL: Regenerated.
20438         * NOTES: Regenerated.
20439         * sysdeps/gnu/errlist.c: Regenerated.
20440
20441 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
20442
20443         * include/dirent.h: Include <dirstream.h> before
20444         <dirent/dirent.h>.
20445
20446 2012-02-28  David S. Miller  <davem@davemloft.net>
20447
20448         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
20449         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
20450         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
20451         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
20452
20453 2012-02-27  David S. Miller  <davem@davemloft.net>
20454
20455         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
20456         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
20457         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
20458         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
20459
20460         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
20461         frame pointer instead of stack pointer relative arg slot.
20462         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
20463         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
20464         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
20465
20466 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
20467
20468         [BZ #3992]
20469         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
20470
20471 2012-02-27  David S. Miller  <davem@davemloft.net>
20472
20473         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
20474         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
20475         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
20476         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
20477         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
20478         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
20479         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
20480         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
20481
20482 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
20483
20484         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
20485         later.  Allow versions 5-9.
20486         * configure: Regenerated.
20487         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
20488         required minimum version and 4.6 as recommended version.  Do not
20489         mention bugs in GCC 2.7 and 2.8.
20490         * INSTALL: Regenerated.
20491
20492 2012-02-27  David S. Miller  <davem@davemloft.net>
20493
20494         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
20495         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
20496         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
20497         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
20498         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
20499         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
20500         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
20501         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
20502
20503         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
20504         manipulate bits before adding and subtracting TWO112[sx].
20505         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
20506
20507 2012-02-27  Roland McGrath  <roland@hack.frob.com>
20508
20509         [BZ #13775]
20510         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
20511         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
20512         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
20513         being in POSIX, because they are in 1003.1-2008.
20514
20515         * rt/tst-aio.c: Include <fcntl.h>.
20516         * rt/tst-aio7.c: Likewise.
20517         * rt/tst-aio64.c: Likewise.
20518
20519         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
20520
20521 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
20522
20523         * manual/install.texi (--with-headers): Describe headers as
20524         interface headers, not private headers.
20525         (Specific advice for GNU/Linux systems): Describe use of headers
20526         from "make headers_install", not private headers from older
20527         kernels.
20528         * INSTALL: Regenerated.
20529         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
20530         Change to 2.6.19.
20531         * sysdeps/unix/sysv/linux/configure: Regenerated.
20532
20533         * manual/llio.texi (fclean): Remove documentation.
20534
20535         * manual/Makefile (libc-texi-generated): New variable.  Include
20536         version.texi.
20537         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
20538         $(libc-texi-generated), not duplicated list of files.
20539         (version.texi, stamp-version): New rules.
20540         (realclean): Remove $(libc-texi-generated), not individual files
20541         from that list.  Do not remove dir-add.texinfo.
20542         * manual/libc.texinfo: Comment out uses of edition numbers and
20543         references to printed manual.  Remove last-updated dates.
20544         (EDITION): Comment out.
20545         (ISBN): Likewise.
20546         (VERSION, UPDATED): Remove.
20547         (version.texi): Include.
20548
20549 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
20550
20551         * sysdeps/posix/spawni.c: Include <signal.h>.
20552         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
20553         * sysdeps/pthread/aio_fsync.c: Likewise.
20554
20555 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
20556
20557         * conform/Makefile (tests): Run only when not cross-compiling and
20558         when fast-check is not defined.
20559
20560         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
20561         * conform/data/limits.h-data: Fixes for POSIX2008.
20562         * conform/run-conformtest.sh: Run all tests.
20563         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
20564         headers.
20565         * include/bits/dlfcn.h: Likewise.
20566         * include/langinfo.h: Likewise.
20567         * include/monetary.h: Likewise.
20568         * include/sys/poll.h: Likewise.
20569
20570         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
20571         for __USE_GNU.
20572         * posix/spawn.h: Define __need_sigset_t.
20573         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
20574         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
20575         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
20576         to get sigevent_t only.
20577         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
20578         only for __USE_GNU.
20579         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
20580         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
20581         process_vm_writev only for __USE_GNU.
20582         * termios/termios.h: Declare tcgetsid also for POSIX2008.
20583
20584         * conform/Makefile: For now ignore errors from run-conformtest.
20585         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
20586         POSIX to avoid namespace pollution.  Don't prepend headers.
20587         * conform/data/aio.h-data: Fixes for POSIX testing.
20588         * conform/data/fcntl.h-data: Likewise.
20589         * conform/data/glob.h-data: Likewise.
20590         * conform/data/grp.h-data: Likewise.
20591         * conform/data/pthread.h-data: Likewise.
20592         * conform/data/pwd.h-data: Likewise.
20593         * conform/data/signal.h-data: Likewise.
20594         * conform/data/spawn.h-data: Likewise.
20595         * conform/data/stdio.h-data: Likewise.
20596         * conform/data/stdlib.h-data: Likewise.
20597         * conform/data/stropts.h-data: Likewise.
20598         * conform/data/sys/mman.h-data: Likewise.
20599         * conform/data/sys/stat.h-data: Likewise.
20600         * conform/data/sys/types.h-data: Likewise.
20601         * conform/data/sys/wait.h-data: Likewise.
20602         * conform/data/time.h-data: Likewise.
20603         * conform/data/unistd.h-data: Likewise.
20604         * conform/data/utime.h-data: Likewise.
20605
20606         * io/sys/stat.h: fchmod was always in POSIX.
20607         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
20608         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
20609         * rt/aio.h: Define __need_timespec before including <time.h>.
20610         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
20611         struct.  Add forward declaration of pthread_attr_t and use it in
20612         sigevent.
20613         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
20614         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
20615         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
20616         always remove CLK_TCK definition.
20617
20618 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
20619
20620         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
20621
20622 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
20623
20624         * conform/run-conformtest.sh: New file.
20625         * conform/Makefile: Run run-conformtest for tests.
20626         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
20627         support.
20628
20629         * conform/data/uchar.h-data: New file.
20630         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
20631         * conform/data/arpa/inet.h-data: Likewise.
20632         * conform/data/assert.h-data: Likewise.
20633         * conform/data/complex.h-data: Likewise.
20634         * conform/data/cpio.h-data: Likewise.
20635         * conform/data/ctype.h-data: Likewise.
20636         * conform/data/dirent.h-data: Likewise.
20637         * conform/data/dlfcn.h-data: Likewise.
20638         * conform/data/errno.h-data: Likewise.
20639         * conform/data/fcntl.h-data: Likewise.
20640         * conform/data/float.h-data: Likewise.
20641         * conform/data/fmtmsg.h-data: Likewise.
20642         * conform/data/fnmatch.h-data: Likewise.
20643         * conform/data/ftw.h-data: Likewise.
20644         * conform/data/glob.h-data: Likewise.
20645         * conform/data/grp.h-data: Likewise.
20646         * conform/data/iconv.h-data: Likewise.
20647         * conform/data/inttypes.h-data: Likewise.
20648         * conform/data/langinfo.h-data: Likewise.
20649         * conform/data/libgen.h-data: Likewise.
20650         * conform/data/limits.h-data: Likewise.
20651         * conform/data/locale.h-data: Likewise.
20652         * conform/data/math.h-data: Likewise.
20653         * conform/data/monetary.h-data: Likewise.
20654         * conform/data/mqueue.h-data: Likewise.
20655         * conform/data/ndbm.h-data: Likewise.
20656         * conform/data/net/if.h-data: Likewise.
20657         * conform/data/netdb.h-data: Likewise.
20658         * conform/data/netinet/in.h-data: Likewise.
20659         * conform/data/nl_types.h-data: Likewise.
20660         * conform/data/poll.h-data: Likewise.
20661         * conform/data/pthread.h-data: Likewise.
20662         * conform/data/pwd.h-data: Likewise.
20663         * conform/data/regex.h-data: Likewise.
20664         * conform/data/sched.h-data: Likewise.
20665         * conform/data/search.h-data: Likewise.
20666         * conform/data/semaphore.h-data: Likewise.
20667         * conform/data/setjmp.h-data: Likewise.
20668         * conform/data/signal.h-data: Likewise.
20669         * conform/data/spawn.h-data: Likewise.
20670         * conform/data/stdarg.h-data: Likewise.
20671         * conform/data/stdio.h-data: Likewise.
20672         * conform/data/stdlib.h-data: Likewise.
20673         * conform/data/string.h-data: Likewise.
20674         * conform/data/strings.h-data: Likewise.
20675         * conform/data/stropts.h-data: Likewise.
20676         * conform/data/sys/ipc.h-data: Likewise.
20677         * conform/data/sys/mman.h-data: Likewise.
20678         * conform/data/sys/msg.h-data: Likewise.
20679         * conform/data/sys/resource.h-data: Likewise.
20680         * conform/data/sys/select.h-data: Likewise.
20681         * conform/data/sys/sem.h-data: Likewise.
20682         * conform/data/sys/shm.h-data: Likewise.
20683         * conform/data/sys/socket.h-data: Likewise.
20684         * conform/data/sys/stat.h-data: Likewise.
20685         * conform/data/sys/statvfs.h-data: Likewise.
20686         * conform/data/sys/time.h-data: Likewise.
20687         * conform/data/sys/timeb.h-data: Likewise.
20688         * conform/data/sys/times.h-data: Likewise.
20689         * conform/data/sys/types.h-data: Likewise.
20690         * conform/data/sys/uio.h-data: Likewise.
20691         * conform/data/sys/un.h-data: Likewise.
20692         * conform/data/sys/utsname.h-data: Likewise.
20693         * conform/data/sys/wait.h-data: Likewise.
20694         * conform/data/syslog.h-data: Likewise.
20695         * conform/data/tar.h-data: Likewise.
20696         * conform/data/termios.h-data: Likewise.
20697         * conform/data/utime.h-data: Likewise.
20698         * conform/data/utmpx.h-data: Likewise.
20699         * conform/data/varargs.h-data: Likewise.
20700         * conform/data/wchar.h-data: Likewise.
20701         * conform/data/wctype.h-data: Likewise.
20702         * conform/data/wordexp.h-data: Likewise.
20703
20704         * include/stropts.h: New file.
20705         * include/uchar.h: New file.
20706         * include/aio.h: Changes to allow conformtest.pl to use the headers.
20707         * include/assert.h: Likewise.
20708         * include/ctype.h: Likewise.
20709         * include/dirent.h: Likewise.
20710         * include/dlfcn.h: Likewise.
20711         * include/fcntl.h: Likewise.
20712         * include/fnmatch.h: Likewise.
20713         * include/glob.h: Likewise.
20714         * include/grp.h: Likewise.
20715         * include/libio.h: Likewise.
20716         * include/locale.h: Likewise.
20717         * include/math.h: Likewise.
20718         * include/net/if.h: Likewise.
20719         * include/netdb.h: Likewise.
20720         * include/netinet/in.h: Likewise.
20721         * include/pthread.h: Likewise.
20722         * include/pwd.h: Likewise.
20723         * include/regex.h: Likewise.
20724         * include/sched.h: Likewise.
20725         * include/search.h: Likewise.
20726         * include/setjmp.h: Likewise.
20727         * include/signal.h: Likewise.
20728         * include/stdio.h: Likewise.
20729         * include/stdlib.h: Likewise.
20730         * include/string.h: Likewise.
20731         * include/sys/cdefs.h: Likewise.
20732         * include/sys/mman.h: Likewise.
20733         * include/sys/msg.h: Likewise.
20734         * include/sys/resource.h: Likewise.
20735         * include/sys/select.h: Likewise.
20736         * include/sys/socket.h: Likewise.
20737         * include/sys/stat.h: Likewise.
20738         * include/sys/statvfs.h: Likewise.
20739         * include/sys/time.h: Likewise.
20740         * include/sys/times.h: Likewise.
20741         * include/sys/uio.h: Likewise.
20742         * include/sys/utsname.h: Likewise.
20743         * include/sys/wait.h: Likewise.
20744         * include/termios.h: Likewise.
20745         * include/time.h: Likewise.
20746         * include/ulimit.h: Likewise.
20747         * include/unistd.h: Likewise.
20748         * include/utime.h: Likewise.
20749         * include/wchar.h: Likewise.
20750         * include/wctype.h: Likewise.
20751         * include/wordexp.h: Likewise.
20752
20753         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
20754
20755         * time/time.h: TIME_UTC must be a macro.
20756         Make timespec_get available for ISO C11 only as well.
20757
20758 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
20759
20760         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
20761         Reported by Peng Haitao <penght@cn.fujitsu.com>.
20762
20763 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
20764
20765         * configure.in: Use -o not -a in test for unsupported multi-arch.
20766
20767 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
20768
20769         * manual/texinfo.tex: Update to version 2012-01-19.16.
20770
20771 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
20772
20773         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
20774
20775 2012-02-24  Roland McGrath  <roland@hack.frob.com>
20776
20777         [BZ #13738]
20778         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
20779         * manual/fdl-1.3.texi: New file.
20780         * manual/fdl-1.1.texi: File removed.
20781
20782         [BZ #13738]
20783         * manual/libc.texinfo (FDL_VERSION): New @set.
20784         Use it for mention of FDL in cover text.
20785         (Documentation License): Use it in @include file name.
20786
20787 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
20788             Roland McGrath  <roland@hack.frob.com>
20789
20790         [BZ #5461]
20791         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
20792         not LONG_LONG_MAX and LONG_LONG_MIN.
20793         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
20794         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
20795         name.
20796         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
20797
20798 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
20799
20800         [BZ #2547]
20801         [BZ #11365]
20802         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
20803         manipulate bits before adding and subtracting TWO23[sx].
20804         * math/libm-test.inc (nearbyint_test): Add more tests.
20805
20806 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
20807
20808         [BZ #2548]
20809         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
20810         bits before adding and subtracting TWO23[sx].
20811         * math/libm-test.inc (rint_test): Add more tests.
20812         (rint_test_tonearest): Likewise.
20813         (rint_test_towardzero): Likewise.
20814         (rint_test_downward): Likewise.
20815         (rint_test_upward: Likewise.
20816
20817 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
20818
20819         [BZ #10110]
20820         * include/stdc-predef.h: New file.  Extracted from features.h.
20821         * include/features.h: Include stdc-predef.h.
20822         * Makefile (headers): Add stdc-predef.h.
20823         * CONFORMANCE (Compiler limitations): Update.
20824
20825 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
20826
20827         * manual/libc.texinfo (VERSION, UPDATED): Revert.
20828
20829 2012-02-21  David S. Miller  <davem@davemloft.net>
20830
20831         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
20832         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
20833
20834 2012-02-20  David S. Miller  <davem@davemloft.net>
20835
20836         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
20837         using a normal save/restore sequence, rather than allocating a
20838         dummy stack frame just to store a frame pointer and restore.
20839         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
20840
20841 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
20842
20843         * manual/install.texi: Fix stray word in line-wrapped comment.
20844
20845 2012-02-20  David S. Miller  <davem@davemloft.net>
20846
20847         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
20848         both binutils and gcc support GOTDATA.
20849
20850         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
20851         "rd %pc" in the PIC register setup sequences.
20852
20853         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
20854         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
20855         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
20856         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
20857         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
20858         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
20859         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
20860         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
20861         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
20862         (SYSCALL_ERROR_HANDLER): Likewise.
20863         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
20864         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
20865         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
20866         (SYSCALL_ERROR_HANDLER): Likewise.
20867
20868         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
20869         (HAVE_GCC_GOTDATA): New.
20870         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
20871         relocation support in both binutils and gcc.
20872         * sysdeps/sparc/elf/configure: Regenerate.
20873
20874         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
20875         * sysdeps/sparc/sparc32/elf/configure: Delete.
20876         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
20877         * sysdeps/sparc/sparc64/elf/configure: Delete.
20878         * sysdeps/sparc/elf/configure.in: New file.
20879         * sysdeps/sparc/elf/configure: Generate.
20880
20881         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
20882         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
20883         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
20884         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
20885         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
20886
20887 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
20888
20889         * manual/install.texi: Do not mention specific glibc version
20890         numbers.
20891         * manual/libc.texinfo (VERSION, UPDATED): Update.
20892         (@copying): Use @copyright{} and range of years.
20893
20894 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
20895
20896         [BZ #13695]
20897         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
20898         [crti.S not in sysdirs] (generated): Do not append.
20899         [crti.S not in sysdirs] (omit-deps): Likewise.
20900         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
20901         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
20902         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
20903         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
20904         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
20905         Likewise.
20906         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
20907         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
20908         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
20909         * csu/defs.awk: Remove file.
20910         * sysdeps/generic/initfini.c: Likewise.
20911         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
20912         variable.
20913         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
20914         Likewise.
20915
20916 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
20917
20918         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
20919         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
20920         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
20921         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
20922         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
20923         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
20924         <bits/epoll.h>.
20925         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
20926         (__EPOLL_PACKED): Define to empty if not defined by
20927         <bits/epoll.h>.
20928         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
20929         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20930         bits/epoll.h.
20931
20932 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
20933
20934         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
20935         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
20936         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
20937         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
20938         <bits/timerfd.h>.
20939         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
20940         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20941         bits/timerfd.h.
20942
20943 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
20944
20945         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
20946         in C locale.
20947         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
20948         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
20949         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
20950         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20951
20952 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
20953
20954         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
20955         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
20956
20957 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
20958
20959         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
20960         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
20961         defined.
20962         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
20963         Likewise.
20964         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
20965         entry for 2.16.
20966
20967 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
20968
20969         * math/w_acos.c: Use non-signaling floating-point comparisons.
20970         * math/w_acosf.c: Likewise.
20971         * math/w_acosh.c: Likewise.
20972         * math/w_acoshf.c: Likewise.
20973         * math/w_acoshl.c: Likewise.
20974         * math/w_acosl.c: Likewise.
20975         * math/w_asin.c: Likewise.
20976         * math/w_asinf.c: Likewise.
20977         * math/w_asinl.c: Likewise.
20978         * math/w_atanh.c: Likewise.
20979         * math/w_atanhf.c: Likewise.
20980         * math/w_atanhl.c: Likewise.
20981         * math/w_exp2.c: Likewise.
20982         * math/w_exp2f.c: Likewise.
20983         * math/w_exp2l.c: Likewise.
20984         * math/w_j0.c: Likewise.
20985         * math/w_j0f.c: Likewise.
20986         * math/w_j0l.c: Likewise.
20987         * math/w_j1.c: Likewise.
20988         * math/w_j1f.c: Likewise.
20989         * math/w_j1l.c: Likewise.
20990         * math/w_jn.c: Likewise.
20991         * math/w_jnf.c: Likewise.
20992         * math/w_log.c: Likewise.
20993         * math/w_log10.c: Likewise.
20994         * math/w_log10f.c: Likewise.
20995         * math/w_log10l.c: Likewise.
20996         * math/w_log2.c: Likewise.
20997         * math/w_log2f.c: Likewise.
20998         * math/w_log2l.c: Likewise.
20999         * math/w_logf.c: Likewise.
21000         * math/w_logl.c: Likewise.
21001         * math/w_sqrt.c: Likewise.
21002         * math/w_sqrtf.c: Likewise.
21003         * math/w_sqrtl.c: Likewise.
21004         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
21005         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
21006         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
21007         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
21008         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
21009
21010 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
21011
21012         [BZ #9739]
21013         * manual/string.texi (strnlen): Use correct parameter name in
21014         equivalent expression.
21015
21016 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
21017
21018         [BZ #11174]
21019         * manual/users.texi (seteuid): Consistently use neweuid for
21020         argument name.
21021
21022 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
21023
21024         [BZ #13704]
21025         * manual/nss.texi (Services in the NSS configuration): Correct
21026         list of services in example configuration file.
21027
21028 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
21029
21030         [BZ #11322]
21031         * manual/arith.texi: Remove statements about negative zero
21032         behaving identically to zero.
21033
21034 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
21035
21036         [BZ #5993]
21037         * manual/install.texi: Do not document upgrading from libc5.
21038
21039 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
21040
21041         [BZ #4596]
21042         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
21043
21044 2012-02-18  David S. Miller  <davem@davemloft.net>
21045
21046         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
21047         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
21048         %o7 across the call.
21049         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
21050         instead.
21051         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
21052         SETUP_PIC_REG_LEAF.
21053         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
21054         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
21055         * sysdeps/sparc/crtn.S: Likewise.
21056
21057 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
21058
21059         * aout/Makefile: Remove.
21060
21061 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
21062
21063         [BZ #13058]
21064         * manual/examples/argp-ex1.c (main): Format definition in GNU
21065         style.
21066         * manual/examples/argp-ex2.c (main): Likewise.
21067         * manual/examples/argp-ex3.c (main): Likewise.
21068         * manual/examples/argp-ex4.c (main): Likewise.
21069         * manual/examples/longopt.c (main): Use new-style prototype
21070         definition.
21071         * manual/examples/strncat.c (main): Specify return type and use
21072         (void) for arguments.
21073         * manual/examples/subopt.c (main): Use char **argv argument.
21074
21075 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
21076
21077         [BZ #5077]
21078         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
21079         rounding modes.
21080
21081 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
21082
21083         [BZ #6907]
21084         * manual/string.texi (strchr): Change when strchrnul is
21085         recommended.
21086
21087 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
21088
21089         [BZ #174]
21090         * manual/locale.texi (setlocale): Document LOCPATH.
21091
21092 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
21093
21094         [BZ #10210]
21095         * manual/process.texi (execle): Move @dots{} before last argument.
21096
21097 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
21098
21099         [BZ #12047]
21100         * manual/charset.texi (Generic Charset Conversion): Fix typo
21101         (LC_TYPE -> LC_CTYPE).
21102
21103 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
21104
21105         [BZ #5805]
21106         * manual/arith.texi (scalbn): Use @var{} on parameter names.
21107         (scalbnf): Likewise.
21108         (scalbnl): Likewise.
21109         (scalbln): Likewise.
21110         (scalblnf): Likewise.
21111         (scalblnl): Likewise.
21112         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
21113         (vwarnx): Likewise.
21114         (verr): Likewise.
21115         (verrx): Likewise.
21116         * manual/filesys.texi (telldir): Use braces around return type.
21117         * manual/llio.texi (mmap): Add space after comma.
21118         (mmap64): Likewise.
21119         * manual/math.texi (jn): Use @var{} on parameter names.
21120         (jnf): Likewise.
21121         (jnl): Likewise.
21122         (yn): Likewise.
21123         (ynf): Likewise.
21124         (ynl): Likewise.
21125         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
21126         line.
21127         * manual/resource.texi (ulimit): Use @dots{} instead of literal
21128         "...".
21129         (sched_get_priority_min): Remove semicolon on @deftypefun line.
21130         (sched_get_priority_max): Likewise.
21131         * manual/signal.texi (sigvec): Add space after comma.
21132         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
21133         names.
21134         (if_indextoname): Likewise.
21135         (if_freenameindex): Likewise.
21136         (sendto): Use ',' instead of '.' in prototype.
21137         * manual/startup.texi (syscall): Use @dots{} instead of literal
21138         "...".
21139         * manual/stdio.texi (__fpending): Separate initial words of
21140         paragraph from @deftypefun line.
21141         * manual/syslog.texi (syslog): Use @dots{} instead of literal
21142         "...".
21143         (vsyslog): Use @var{} on parameter names.
21144         * manual/terminal.texi (stty): Use @var{} on parameter names.
21145         * manual/users.texi (getutmp): Use @var{} on parameter names.
21146         (getutmpx): Likewise.
21147
21148 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
21149
21150         [BZ #6884]
21151         * manual/stdio.texi (fopen): Fix typos in description of
21152         ",ccs=STRING".
21153
21154 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
21155
21156         [BZ #4026]
21157         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
21158         get clock_id definition.
21159
21160 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
21161
21162         [BZ #4822]
21163         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
21164         (madvise): Cast every argument to void on its own.
21165
21166 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
21167
21168         [BZ #9902]
21169         * manual/startup.texi (Exit Status): Fix typo.
21170
21171 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
21172
21173         [BZ #10140]
21174         * manual/examples/argp-ex1.c: Include <stdlib.h>.
21175         * manual/examples/argp-ex2.c: Likewise.
21176         * manual/examples/argp-ex3.c: Likewise.
21177
21178 2012-02-16  Richard Henderson  <rth@redhat.com>
21179
21180         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
21181         * sysdeps/s390/s390-32/initfini.c: Remove.
21182         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
21183         * sysdeps/s390/s390-64/initfini.c: Remove.
21184
21185 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
21186
21187         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
21188         compiler output for sysdeps/generic/initfini.c.
21189         * sysdeps/sh/elf/initfini.c: Remove file.
21190
21191 2012-02-16  David S. Miller  <davem@davemloft.net>
21192
21193         [BZ #11494]
21194         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
21195
21196         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
21197         * sysdeps/sparc/crti.S: New file.
21198         * sysdeps/sparc/crtn.S: New file.
21199         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
21200         * sysdeps/sparc/sparc64/Makefile: Likewise.
21201
21202 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
21203
21204         [BZ #3335]
21205         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
21206
21207 2012-02-15  Roland McGrath  <roland@hack.frob.com>
21208
21209         [BZ #4822]
21210         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
21211
21212         * mach/devstream.c (cookie_io_functions_t): Macro removed.
21213         (write, read, close): Likewise.
21214         Patch by Aurelien Jarno <aurelien@aurel32.net>.
21215
21216 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
21217
21218         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
21219         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
21220         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
21221         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
21222         <bits/signalfd.h>.
21223         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
21224         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21225         bits/signalfd.h.
21226
21227 2012-02-14  Marek Polacek  <polacek@redhat.com>
21228
21229         * sysdeps/x86_64/crti.S: New file.
21230         * sysdeps/x86_64/crtn.S: New file.
21231         * sysdeps/x86_64/elf/initfini.c: Remove file.
21232
21233 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
21234
21235         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
21236         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
21237         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
21238         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
21239         <bits/inotify.h>.
21240         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
21241         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21242         bits/inotify.h.
21243
21244 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
21245
21246         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
21247         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
21248         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
21249         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
21250         <bits/eventfd.h>.
21251         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
21252         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21253         bits/eventfd.h.
21254
21255 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
21256
21257         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
21258         __feraiseexcept instead of feraiseexcept.
21259
21260         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
21261         nanosleep invocations.
21262         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
21263         strings, and add error checking for a nanosleep invocations.
21264
21265 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
21266
21267         Replace FSF snail mail address with URLs, as per GNU coding standards.
21268         Most of the snail mail addresses were wrong anyway, and omitting
21269         them makes the source code easier to maintain.  Almost all of the
21270         changes are to license notices and to locale LC_IDENTIFICATION
21271         addresses, except for this one:
21272         * manual/libc.texinfo: In "Published by", give the FSF's URL,
21273         not its snail mail address.
21274
21275 2012-02-09  Richard Henderson  <rth@twiddle.net>
21276
21277         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
21278         of kernel-features.h.
21279
21280         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
21281
21282 2012-02-08  Marek Polacek  <polacek@redhat.com>
21283
21284         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
21285         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
21286         * sysdeps/gnu/_G_config.h: Likewise.
21287         * sysdeps/generic/_G_config.h: Likewise.
21288
21289 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
21290
21291         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
21292         tests.
21293         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21294
21295         * sysdeps/powerpc/powerpc32/crti.S: New file.
21296         * sysdeps/powerpc/powerpc32/crtn.S: New file.
21297         * sysdeps/powerpc/powerpc64/crti.S: New file.
21298         * sysdeps/powerpc/powerpc64/crtn.S: New file.
21299
21300         * Makeconfig (have-initfini): Don't set.
21301         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
21302         * configure.in (nopic_initfini): Don't substitute.
21303         * config.h.in (HAVE_INITFINI): Don't #undef.
21304         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
21305         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
21306
21307 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
21308
21309         Support crti.S and crtn.S provided directly by architectures.
21310         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
21311         [crti.S in sysdirs] (omit-deps): Likewise.
21312         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
21313         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
21314         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
21315         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
21316         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
21317         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
21318         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
21319         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
21320         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
21321         compiler output for sysdeps/generic/initfini.c.
21322         * sysdeps/i386/elf/Makefile: Remove file.
21323         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
21324
21325 2012-02-07  Marek Polacek  <polacek@redhat.com>
21326
21327         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
21328         * sysdeps/gnu/_G_config.h: Likewise.
21329         * sysdeps/mach/hurd/_G_config.h: Likewise.
21330
21331 2012-02-07  Marek Polacek  <polacek@redhat.com>
21332
21333         * math/Makefile (tests): Add tst-CMPLX2.
21334         * math/tst-CMPLX2.c: New file.
21335
21336 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
21337
21338         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
21339
21340         * math/libm-test.inc (jn_test): Add missing L suffix.
21341
21342 2012-02-06  Marek Polacek  <polacek@redhat.com>
21343
21344         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
21345         * sysdeps/i386/fpu/e_powf.S: Likewise.
21346         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
21347         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
21348         * sysdeps/i386/fpu/e_acosh.S: Likewise.
21349         * sysdeps/i386/fpu/e_pow.S: Likewise.
21350         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
21351         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
21352         * sysdeps/i386/fpu/s_expm1.S: Likewise.
21353         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
21354         * sysdeps/i386/fpu/e_log2.S: Likewise.
21355         * sysdeps/i386/fpu/e_log2l.S: Likewise.
21356         * sysdeps/i386/fpu/e_scalb.S: Likewise.
21357         * sysdeps/i386/fpu/e_powl.S: Likewise.
21358         * sysdeps/i386/fpu/s_log1p.S: Likewise.
21359         * sysdeps/i386/fpu/e_log10f.S: Likewise.
21360         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
21361         * sysdeps/i386/fpu/e_logl.S: Likewise.
21362         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
21363         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
21364         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
21365         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
21366         * sysdeps/i386/fpu/e_log2f.S: Likewise.
21367         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
21368         * sysdeps/i386/fpu/e_log.S: Likewise.
21369         * sysdeps/i386/fpu/s_cexp.S: Likewise.
21370         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
21371         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
21372         * sysdeps/i386/fpu/e_logf.S: Likewise.
21373         * sysdeps/i386/fpu/e_log10l.S: Likewise.
21374         * sysdeps/i386/fpu/e_atanh.S: Likewise.
21375         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
21376         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
21377         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
21378         * sysdeps/i386/fpu/e_log10.S: Likewise.
21379         * sysdeps/i386/fpu/s_frexp.S: Likewise.
21380         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
21381         * sysdeps/i386/fpu/s_asinh.S: Likewise.
21382         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
21383         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
21384         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
21385         * sysdeps/i386/asm-syntax.h: Likewise.
21386         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
21387         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
21388         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
21389         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
21390         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
21391         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
21392         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
21393         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
21394         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
21395         * sysdeps/powerpc/sysdep.h: Likewise.
21396         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
21397         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
21398
21399 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
21400
21401         [BZ #411]
21402         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
21403
21404 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
21405
21406         * sysdeps/i386/sysdep.h: Include <features.h>.
21407         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
21408         version.
21409
21410 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
21411
21412         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
21413         Define.
21414         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
21415         LOAD_PIC_REG_STR.
21416
21417 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
21418
21419         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
21420         (SETUP_PIC_REG): Use GET_PC_THUNK.
21421         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
21422         macro.
21423
21424 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
21425
21426         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
21427         for non-PIC compilation.
21428         (SETUP_PIC_REG): Add .p2align directive.
21429         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
21430         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
21431         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
21432         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
21433         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
21434         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
21435         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
21436         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
21437         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
21438         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
21439         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
21440         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
21441         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
21442         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
21443         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
21444         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
21445         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
21446         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
21447         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
21448         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
21449         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
21450         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
21451         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
21452         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
21453         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
21454         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
21455         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
21456         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
21457         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
21458         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
21459         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
21460         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
21461         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
21462         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
21463         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
21464         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
21465         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
21466         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
21467         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
21468         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
21469         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
21470
21471 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
21472
21473         * math/tst-CMPLX.c: Include <stdio.h>.
21474
21475 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
21476
21477         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
21478         float.
21479         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
21480         * sysdeps/sparc/bits/mathdef.h: Likewise.
21481
21482 2012-01-31  Marek Polacek  <polacek@redhat.com>
21483
21484         * libio/libio.h: Don't define _PARAMS.
21485         * locale/programs/config.h: Don't define PARAMS.
21486         * stdlib/strtol_l.c: Likewise.
21487         (__strtol_l): Remove PARAMS from the prototype.
21488
21489 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
21490
21491         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
21492         names.  Just use the correct names.  Remove unnecessary wrapper
21493         functions.
21494         * malloc/arena.c: Likewise.
21495         * malloc/hooks.c: Likewise.
21496
21497         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
21498         ARENA_TEST says not to.  Simplify test for creation of a new arena.
21499         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
21500
21501 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
21502
21503         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
21504         into tail calls.
21505         (update_get_addr): New function.
21506         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
21507         GET_ADDR_MODULE parameter.
21508
21509 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
21510
21511         * crypt/cert.c: Remove __STDC__ conditionals.
21512         * crypt/crypt-entry.c: Likewise.
21513         * crypt/crypt_util.c: Likewise.
21514         * libio/filedoalloc.c: Likewise.
21515         * libio/fileops.c: Likewise.
21516         * libio/genops.c: Likewise.
21517         * libio/iofclose.c: Likewise.
21518         * libio/iofdopen.c: Likewise.
21519         * libio/iofopen.c: Likewise.
21520         * libio/iofopen64.c: Likewise.
21521         * libio/iogetdelim.c: Likewise.
21522         * libio/iopopen.c: Likewise.
21523         * libio/obprintf.c: Likewise.
21524         * libio/oldfileops.c: Likewise.
21525         * libio/oldiofclose.c: Likewise.
21526         * libio/oldiofdopen.c: Likewise.
21527         * libio/oldiofopen.c: Likewise.
21528         * libio/oldiopopen.c: Likewise.
21529         * libio/wfiledoalloc.c: Likewise.
21530         * libio/wgenops.c: Likewise.
21531         * locale/programs/xmalloc.c: Likewise.
21532         * misc/syslog.c: Likewise.
21533         * stdio-common/xbug.c: Likewise.
21534         * string/memchr.c: Likewise.
21535         * string/memcmp.c: Likewise.
21536         * string/memrchr.c: Likewise.
21537         * string/rawmemchr.c: Likewise.
21538         * sysdeps/posix/getcwd.c: Likewise.
21539         * time/strftime_l.c: Likewise.
21540
21541 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
21542
21543         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
21544         * config.make.in (config-cflags-sse2avx): Define.
21545         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
21546         Fix typo.
21547
21548 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
21549
21550         * scripts/config.guess: Update from upstream config git repository.
21551         * scripts/config.sub: Likewise.
21552
21553 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
21554
21555         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
21556         (EM_NUM): Update.
21557         (R_TILEPRO_*, R_TILEGX_*): New macros.
21558
21559         * scripts/firstversions.awk: Fix bug in version range handling.
21560
21561         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
21562
21563         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
21564
21565         * include/sys/epoll.h: New file.
21566         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
21567         libc_hidden_def.
21568
21569 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
21570
21571         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
21572         Avoid unnecessary __WORDSIZE == 64 test.
21573         (fmaxf): Use VEX format if possible.
21574         (fmax): Likewise.
21575         (fminf): Likewise.
21576         (fmin): Likewise.
21577
21578         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
21579         * math/math_private.h: Remove libc_fegetround* and
21580         libc_fesetround*.
21581         * sysdeps/i386/configure.in: Check for -msse2avx.
21582         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
21583         also if SSE2AVX is defined.
21584         Remove libc_fegetround* and libc_fesetround*.
21585         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
21586         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
21587         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
21588         of HAS_YMM_USABLE.
21589         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
21590         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
21591         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
21592         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
21593         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
21594
21595         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
21596
21597 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21598
21599         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
21600         size is not set.
21601         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
21602
21603 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
21604
21605         [BZ #13618]
21606         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
21607         relocation.
21608         * Makeconfig (libm): Define.
21609         * elf/Makefile: Add rules to build and run tst-relsort1.
21610         * elf/tst-relsort1.c: New file.
21611         * elf/tst-relsort1mod1.c: New file.
21612         * elf/tst-relsort1mod2.c: New file.
21613
21614 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
21615
21616         * math/s_ldexp.c: Remove __STDC__ conditionals.
21617         * math/s_ldexpf.c: Likewise.
21618         * math/s_ldexpl.c: Likewise.
21619         * math/s_nextafter.c: Likewise.
21620         * math/s_nexttowardf.c: Likewise.
21621         * math/s_significand.c: Likewise.
21622         * math/s_significandf.c: Likewise.
21623         * math/s_significandl.c: Likewise.
21624         * math/w_jnl.c: Likewise.
21625         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
21626         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
21627         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
21628         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
21629         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
21630         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
21631         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
21632         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
21633         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
21634         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
21635         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
21636         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
21637         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
21638         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
21639         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
21640         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
21641         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
21642         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
21643         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
21644         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
21645         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
21646         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
21647         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
21648         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
21649         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
21650         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
21651         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
21652         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
21653         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
21654         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
21655         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
21656         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
21657         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
21658         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
21659         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
21660         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
21661         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
21662         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
21663         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
21664         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
21665         * sysdeps/ieee754/k_standard.c: Likewise.
21666         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
21667         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
21668         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
21669         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
21670         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
21671         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
21672         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
21673         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
21674         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
21675         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
21676         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
21677         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
21678         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
21679         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
21680         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
21681         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
21682         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
21683         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
21684         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
21685         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
21686         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
21687         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
21688         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
21689         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
21690         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
21691         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
21692         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
21693         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
21694         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
21695         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
21696         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
21697         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
21698         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
21699         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
21700         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
21701         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
21702         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
21703         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
21704         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
21705         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
21706         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
21707         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
21708         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
21709         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
21710         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
21711         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
21712         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
21713         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
21714         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
21715         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
21716         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
21717         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
21718         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
21719         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
21720         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
21721         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
21722         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
21723         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
21724         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
21725         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
21726         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
21727         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
21728         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
21729         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
21730         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
21731         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
21732         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
21733         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
21734         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
21735         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
21736         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
21737         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
21738         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
21739         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
21740         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
21741         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
21742         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
21743         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
21744         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
21745         * sysdeps/ieee754/s_matherr.c: Likewise.
21746         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
21747         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
21748         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
21749         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
21750
21751 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
21752
21753         * crypt/md5.h: Remove __STDC__ conditionals.
21754         * libio/libioP.h: Likewise.
21755         * locale/programs/config.h: Likewise.
21756         * sysdeps/generic/sysdep.h: Likewise.
21757         * sysdeps/i386/asm-syntax.h: Likewise.
21758         * sysdeps/s390/asm-syntax.h: Likewise.
21759         * sysdeps/unix/sysdep.h: Likewise.
21760         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
21761         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
21762
21763 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
21764
21765         * libio/libio.h: Remove __STDC__ conditionals.
21766         * malloc/obstack.h: Likewise.
21767         * math/complex.h: Likewise.
21768         * math/math.h: Likewise.
21769         * sysdeps/generic/_G_config.h: Likewise.
21770         * sysdeps/gnu/_G_config.h: Likewise.
21771         * sysdeps/mach/hurd/_G_config.h: Likewise.
21772         * sysdeps/powerpc/bits/mathdef.h: Likewise.
21773         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
21774         * sysdeps/sparc/bits/mathdef.h: Likewise.
21775
21776 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
21777
21778         [BZ #13583]
21779         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
21780         Clean up HAS_* macros.
21781         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
21782         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
21783         possible.
21784         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
21785         HAS_AVX.
21786         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
21787         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
21788         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
21789         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
21790         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
21791
21792 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
21793
21794         * elf/tst-unique3.cc (gets): Remove declaration.
21795         * elf/tst-unique3lib.cc (gets): Likewise.
21796         * elf/tst-unique3lib2.cc (gets): Likewise.
21797         * elf/tst-unique4.cc (gets): Likewise.
21798
21799 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
21800
21801         * include/stdio.h: Add C++ protection.  Add gets declarations and
21802         definitions.
21803         * debug/tst-chk1.c: Don't declare gets here.
21804         * stdio-common/tst-gets.c: Likewise.
21805
21806 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
21807
21808         * posix/glob: Remove directory.
21809
21810 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
21811
21812         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
21813
21814 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
21815
21816         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
21817         of the non-standard EPFNOSUPPORT.
21818
21819 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21820
21821         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
21822         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
21823         ANYWHERE set to 1 only on KERN_NO_SPACE error.
21824
21825 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
21826
21827         * wcsmbs/uchar.h: Test __STDC_VERSION__.
21828
21829 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
21830
21831         * nscd/aicache.c (addhstaiX): Do not cache negative results of
21832         transient errors.
21833         * nscd/grpcache.c (cache_addgr): Likewise.
21834         * nscd/hstcache.c (cache_addhst): Likewise.
21835         * nscd/initgrcache.c (addinitgroupsX): Likewise.
21836         * nscd/pwdcache.c (cache_addpw): Likewise.
21837         * nscd/servicescache.c (cache_addserv): Likewise.
21838
21839 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
21840
21841         * malloc/malloc.c: Various cleanups.
21842         * malloc/hooks.c: Likewise.
21843
21844         * stdlib/Makefile (tests): Add bug-fmtmsg1.
21845         * stdlib/bug-fmtmsg1.c: New file.
21846
21847         * stdlib/fmtmsg.c (init): Add missing unlock.
21848         Patch by Peng Haitao <penght@cn.fujitsu.com>.
21849
21850 2012-01-12  Marek Polacek  <polacek@redhat.com>
21851
21852         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
21853         and _GNU_SOURCE.
21854
21855 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
21856
21857         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
21858         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
21859         macro to ensure uniqueness of label name.
21860         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
21861         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
21862
21863 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
21864
21865         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
21866
21867         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
21868         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
21869         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
21870         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
21871
21872 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
21873
21874         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
21875
21876         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
21877         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
21878         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
21879
21880         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
21881
21882         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
21883         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
21884         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
21885         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
21886
21887         * math/bits/math-finite.h: Add ldexp support.
21888
21889 2012-01-10  Marek Polacek  <polacek@redhat.com>
21890
21891         * locale/programs/localedef.h (show_archive_content): Add noreturn
21892         attribute.
21893
21894 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
21895
21896         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
21897
21898 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
21899
21900         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
21901
21902         * io/Makefile (headers): Add bits/poll2.h.
21903
21904 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
21905
21906         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
21907         typo #include statement.
21908
21909 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
21910
21911         * include/sys/cdefs.h: Define __attribute_alloc_size.
21912         * catgets/gencat.c: Add alloc_size attribute and apply consistently
21913         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
21914         * elf/pldd.c: Likewise.
21915         * iconv/iconv_charmap.c: Likewise.
21916         * iconv/iconvconfig.c: Likewise.
21917         * iconv/strtab.c: Likewise.
21918         * locale/programs/locale.c: Likewise.
21919         * locale/programs/localedef.h: Likewise.
21920         * locale/programs/simple-hash.c: Likewise.
21921         * nscd/nscd.h: Likewise.
21922         * nss/makedb.c: Likewise.
21923         * sysdeps/generic/ldconfig.h: Likewise.
21924         * locale/programs/localedef.c: Remove xmalloc prototype.
21925         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
21926
21927 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
21928
21929         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
21930         appropriate.
21931
21932 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
21933
21934         * math/Makefile (tests): Add tst-CMPLX.
21935         * math/tst-CMPLX.c: New file.
21936
21937         * math/complex.h (CMPLXL): Fix typo.
21938
21939         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
21940         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
21941         GLIBC_2.16.
21942         * debug/tst-chk1.c: Add poll and ppoll tests.
21943         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
21944         * include/sys/poll.h: Add hidden proto for ppoll.
21945         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
21946         * sysdeps/mach/hurd/ppoll.c: Likewise.
21947         * io/ppoll.c: Likewise.
21948         * debug/poll_chk.c: New file.
21949         * debug/ppoll_chk.c: New file.
21950         * include/bits/poll2.h: New file.
21951         * io/bits/poll2.h: New file.
21952
21953         [BZ #1350]
21954         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
21955
21956         * configure.in: static is always set to yes.  Remove.
21957         * config.make.in: Don't set build-static.
21958         * Makeconfig: Remove use of build-static.
21959         * dlfcn/Makefile: Likewise.
21960         * elf/Makefile: Likewise.
21961         * math/Makefile: Likewise.
21962         * misc/Makefile: Likewise.
21963         * nptl/Makefile: Likewise.
21964         * sysdeps/mach/hurd/Makefile: Likewise.
21965
21966         * configure.in: PWD_P is not used anymore.
21967         * config.make.in: Remove PWD_P entry.
21968
21969         * configure.in: Remove last remnants of RANLIB.
21970         No need to check for signed size_t anymore.
21971         Don't set libc_commonpagesize and libc_relro_required here for Alpha
21972         and IA-64.
21973         Remove __builtin_expect test because we require at least gcc 3.4.
21974         * aclocal.m4: Likewise.
21975
21976         * wcsmbs/mbrtoc16.c: Implement using towc function.
21977         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
21978         * wcsmbs/wcsmbsload.c: Likewise.
21979         * iconv/gconv_simple.c: Likewise.
21980         * iconv/gconv_int.h: Likewise.
21981         * iconv/gconv_builtin.h: Likewise.
21982         * iconv/iconv_prog.c: Remove CHAR16 handling.
21983
21984         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
21985
21986         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
21987
21988         * configure.in: Remove --with-elf and --enable-bounded options.
21989         Dont set base_machine for ia64.  More non-ELF conditions removed.
21990         Remove testing and setting of leading underscore information.
21991         * config.make.in (build-bounded): Set to no.
21992         * config.h.in: Remove NO_UNDERSCORES entry.
21993         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
21994         them.
21995         * csu/start.c: Remove !NO_UNDERSCORE code.
21996         * locale/localeinfo.h: Likewise.
21997         * sysdeps/generic/machine-gmon.h: Likewise.
21998         * sysdeps/generic/sysdep.h: Likewise.
21999         * sysdeps/i386/sysdep.h: Likewise.
22000         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
22001         * sysdeps/mach/sysdep.h: Likewise.
22002         * sysdeps/s390/s390-32/sysdep.h: Likewise.
22003         * sysdeps/s390/s390-64/sysdep.h: Likewise.
22004         * sysdeps/sh/sysdep.h: Likewise.
22005         * sysdeps/sparc/sparc32/alloca.S: Likewise.
22006         * sysdeps/unix/i386/sysdep.S: Likewise.
22007         * sysdeps/unix/sparc/start.c: Likewise.
22008         * sysdeps/unix/sparc/sysdep.S: Likewise.
22009         * sysdeps/unix/sparc/sysdep.h: Likewise.
22010         * sysdeps/unix/start.c: Likewise.
22011         * sysdeps/unix/x86_64/sysdep.S: Likewise.
22012         * sysdeps/x86_64/sysdep.h: Likewise.
22013
22014 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
22015
22016         [BZ #13553]
22017         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
22018         for non-gcc.
22019         * argp/argp-fmtstream.h: Use const instead __const.
22020         * argp/argp.h: Likewise.
22021         * assert/assert.h: Likewise.
22022         * bits/fenv.h: Likewise.
22023         * bits/sched.h: Likewise.
22024         * bits/sigset.h: Likewise.
22025         * bits/sigthread.h: Likewise.
22026         * catgets/nl_types.h: Likewise.
22027         * conform/data/pthread.h-data: Likewise.
22028         * crypt/crypt-private.h: Likewise.
22029         * crypt/crypt.h: Likewise.
22030         * crypt/crypt_util.c: Likewise.
22031         * ctype/ctype.h: Likewise.
22032         * debug/execinfo.h: Likewise.
22033         * debug/mbsnrtowcs_chk.c: Likewise.
22034         * debug/mbsrtowcs_chk.c: Likewise.
22035         * debug/wcsnrtombs_chk.c: Likewise.
22036         * debug/wcsrtombs_chk.c: Likewise.
22037         * debug/wcstombs_chk.c: Likewise.
22038         * dirent/dirent.h: Likewise.
22039         * dlfcn/dlfcn.h: Likewise.
22040         * elf/neededtest4.c: Likewise.
22041         * grp/grp.h: Likewise.
22042         * gshadow/gshadow.h: Likewise.
22043         * iconv/gconv.h: Likewise.
22044         * iconv/gconv_int.h: Likewise.
22045         * iconv/gconv_simple.c: Likewise.
22046         * iconv/iconv.h: Likewise.
22047         * iconv/loop.c: Likewise.
22048         * iconv/skeleton.c: Likewise.
22049         * include/aio.h: Likewise.
22050         * include/aliases.h: Likewise.
22051         * include/argz.h: Likewise.
22052         * include/arpa/inet.h: Likewise.
22053         * include/assert.h: Likewise.
22054         * include/dirent.h: Likewise.
22055         * include/dlfcn.h: Likewise.
22056         * include/execinfo.h: Likewise.
22057         * include/fcntl.h: Likewise.
22058         * include/fenv.h: Likewise.
22059         * include/glob.h: Likewise.
22060         * include/grp.h: Likewise.
22061         * include/libintl.h: Likewise.
22062         * include/mntent.h: Likewise.
22063         * include/netdb.h: Likewise.
22064         * include/pwd.h: Likewise.
22065         * include/rpc/netdb.h: Likewise.
22066         * include/sched.h: Likewise.
22067         * include/search.h: Likewise.
22068         * include/shadow.h: Likewise.
22069         * include/signal.h: Likewise.
22070         * include/stdio.h: Likewise.
22071         * include/stdlib.h: Likewise.
22072         * include/string.h: Likewise.
22073         * include/sys/socket.h: Likewise.
22074         * include/sys/stat.h: Likewise.
22075         * include/sys/statfs.h: Likewise.
22076         * include/sys/statvfs.h: Likewise.
22077         * include/sys/syslog.h: Likewise.
22078         * include/sys/time.h: Likewise.
22079         * include/sys/uio.h: Likewise.
22080         * include/time.h: Likewise.
22081         * include/unistd.h: Likewise.
22082         * include/utmp.h: Likewise.
22083         * include/wchar.h: Likewise.
22084         * include/wctype.h: Likewise.
22085         * inet/aliases.h: Likewise.
22086         * inet/arpa/inet.h: Likewise.
22087         * inet/netinet/ether.h: Likewise.
22088         * inet/netinet/in.h: Likewise.
22089         * intl/libintl.h: Likewise.
22090         * io/bits/fcntl2.h: Likewise.
22091         * io/fcntl.h: Likewise.
22092         * io/ftw.h: Likewise.
22093         * io/sys/poll.h: Likewise.
22094         * io/sys/stat.h: Likewise.
22095         * io/sys/statfs.h: Likewise.
22096         * io/sys/statvfs.h: Likewise.
22097         * io/utime.h: Likewise.
22098         * libio/bits/stdio.h: Likewise.
22099         * libio/bits/stdio2.h: Likewise.
22100         * libio/libio.h: Likewise.
22101         * libio/libioP.h: Likewise.
22102         * libio/stdio.h: Likewise.
22103         * locale/lc-ctype.c: Likewise.
22104         * locale/locale.h: Likewise.
22105         * login/utmp.h: Likewise.
22106         * malloc/arena.c: Likewise.
22107         * malloc/malloc.c: Likewise.
22108         * malloc/malloc.h: Likewise.
22109         * malloc/mcheck.c: Likewise.
22110         * malloc/mtrace.c: Likewise.
22111         * math/bits/mathcalls.h: Likewise.
22112         * math/fenv.h: Likewise.
22113         * math/math_private.h: Likewise.
22114         * misc/bits/error.h: Likewise.
22115         * misc/bits/syslog.h: Likewise.
22116         * misc/err.h: Likewise.
22117         * misc/error.h: Likewise.
22118         * misc/fstab.h: Likewise.
22119         * misc/mntent.h: Likewise.
22120         * misc/regexp.h: Likewise.
22121         * misc/search.h: Likewise.
22122         * misc/sgtty.h: Likewise.
22123         * misc/sys/mman.h: Likewise.
22124         * misc/sys/syslog.h: Likewise.
22125         * misc/sys/uio.h: Likewise.
22126         * misc/sys/xattr.h: Likewise.
22127         * misc/ttyent.h: Likewise.
22128         * nis/rpcsvc/ypclnt.h: Likewise.
22129         * nss/nss.h: Likewise.
22130         * posix/bits/unistd.h: Likewise.
22131         * posix/fnmatch.h: Likewise.
22132         * posix/glob.h: Likewise.
22133         * posix/sched.h: Likewise.
22134         * posix/spawn.h: Likewise.
22135         * posix/sys/wait.h: Likewise.
22136         * posix/unistd.h: Likewise.
22137         * posix/wordexp.h: Likewise.
22138         * pwd/pwd.h: Likewise.
22139         * resolv/netdb.h: Likewise.
22140         * resource/sys/resource.h: Likewise.
22141         * rt/aio.h: Likewise.
22142         * rt/bits/mqueue2.h: Likewise.
22143         * rt/mqueue.h: Likewise.
22144         * shadow/shadow.h: Likewise.
22145         * signal/signal.h: Likewise.
22146         * socket/send.c: Likewise.
22147         * socket/sendto.c: Likewise.
22148         * socket/sys/socket.h: Likewise.
22149         * stdio-common/printf.h: Likewise.
22150         * stdlib/bits/stdlib.h: Likewise.
22151         * stdlib/fmtmsg.h: Likewise.
22152         * stdlib/monetary.h: Likewise.
22153         * stdlib/stdlib.h: Likewise.
22154         * stdlib/ucontext.h: Likewise.
22155         * streams/stropts.h: Likewise.
22156         * string/argz.h: Likewise.
22157         * string/bits/string2.h: Likewise.
22158         * string/string.h: Likewise.
22159         * string/strings.h: Likewise.
22160         * sunrpc/rpc/auth.h: Likewise.
22161         * sunrpc/rpc/auth_des.h: Likewise.
22162         * sunrpc/rpc/clnt.h: Likewise.
22163         * sunrpc/rpc/netdb.h: Likewise.
22164         * sunrpc/rpc/pmap_clnt.h: Likewise.
22165         * sunrpc/rpc/xdr.h: Likewise.
22166         * sysdeps/generic/inttypes.h: Likewise.
22167         * sysdeps/generic/net/if.h: Likewise.
22168         * sysdeps/generic/sys/swap.h: Likewise.
22169         * sysdeps/gnu/net/if.h: Likewise.
22170         * sysdeps/gnu/utmpx.h: Likewise.
22171         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
22172         * sysdeps/i386/i486/bits/string.h: Likewise.
22173         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
22174         * sysdeps/s390/bits/string.h: Likewise.
22175         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
22176         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
22177         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
22178         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
22179         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
22180         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
22181         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
22182         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
22183         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
22184         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
22185         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
22186         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
22187         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
22188         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
22189         * sysdeps/unix/sysv/linux/readv.c: Likewise.
22190         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
22191         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
22192         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
22193         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
22194         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
22195         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
22196         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
22197         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
22198         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
22199         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
22200         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
22201         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
22202         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
22203         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
22204         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
22205         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
22206         * sysvipc/sys/ipc.h: Likewise.
22207         * sysvipc/sys/msg.h: Likewise.
22208         * sysvipc/sys/sem.h: Likewise.
22209         * sysvipc/sys/shm.h: Likewise.
22210         * termios/termios.h: Likewise.
22211         * time/sys/time.h: Likewise.
22212         * time/time.h: Likewise.
22213         * wcsmbs/bits/wchar2.h: Likewise.
22214         * wcsmbs/uchar.h: Likewise.
22215         * wcsmbs/wchar.h: Likewise.
22216         * wctype/wctype.h: Likewise.
22217
22218         [BZ #13551]
22219         * Makeconfig: Remove all but ELF support including AIX support.
22220         * Makerules: Likewise.
22221         * config.h.in: Likewise.
22222         * config.make.in: Likewise.
22223         * configure: Likewise.
22224         * configure.in: Likewise.
22225         * csu/Makefile: Likewise.
22226         * csu/version.c: Likewise.
22227         * debug/Makefile: Likewise.
22228         * dlfcn/Makefile: Likewise.
22229         * elf/Makefile: Likewise.
22230         * extra-lib.mk: Likewise.
22231         * iconv/Makefile: Likewise.
22232         * include/libc-symbols.h: Likewise.
22233         * include/shlib-compat.h: Likewise.
22234         * resolv/Makefile: Likewise.
22235         * resolv/res_libc.c: Likewise.
22236         * rt/Makefile: Likewise.
22237         * sysdeps/i386/asm-syntax.h: Likewise.
22238         * sysdeps/i386/sysdep.h: Likewise.
22239         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
22240         * sysdeps/mach/sysdep.h: Likewise.
22241         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
22242         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
22243         * sysdeps/s390/asm-syntax.h: Likewise.
22244         * sysdeps/s390/s390-32/sysdep.h: Likewise.
22245         * sysdeps/s390/s390-64/sysdep.h: Likewise.
22246         * sysdeps/sh/sysdep.h: Likewise.
22247         * sysdeps/unix/sparc/sysdep.h: Likewise.
22248         * sysdeps/wordsize-32/divdi3.c: Likewise.
22249         * sysdeps/x86_64/sysdep.h: Likewise.
22250
22251         * argp/Versions: Remove _argp_unlock_xxx.
22252
22253         [BZ #13559]
22254         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
22255         * abilist/libBrokenLocale.abilist: Likewise.
22256         * abilist/libanl.abilist: Likewise.
22257         * abilist/libc.abilist: Likewise.
22258         * abilist/libcrypt.abilist: Likewise.
22259         * abilist/libdl.abilist: Likewise.
22260         * abilist/libm.abilist: Likewise.
22261         * abilist/libnsl.abilist: Likewise.
22262         * abilist/libpthread.abilist: Likewise.
22263         * abilist/libresolv.abilist: Likewise.
22264         * abilist/librt.abilist: Likewise.
22265         * abilist/libthread_db.abilist: Likewise.
22266         * abilist/libutil.abilist: Likewise.
22267         * abilist/libnss_db.abilist: New file.
22268
22269         * scripts/abilist.awk: Add support for indirect functions.
22270
22271         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
22272
22273         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
22274
22275         * shlib-versions: Remove entries for ports architectures.
22276
22277         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
22278         files in ports.
22279         * elf/stackguard-macros.h: Remove support for IA-64.
22280         * elf/tst-auditmod1.c: Likewise.
22281         * sysdeps/generic/ldsodefs.h: Likewise.
22282
22283         * sysdeps/unix/sysv/linux/configure.in: Ports should define
22284         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
22285         configure files.
22286
22287         [BZ #13552]
22288         * configure.in: Remove --enable-omitfp support.
22289         * FAQ.in: Adjust.
22290         * config.make.in: Likewise.
22291         * Makeconfig: Likewise.
22292         * manual/install.texi: Likewise.
22293
22294         In case anyone cares, the IA-64 architecture could move to ports.
22295         * sysdeps/ia64/*: Removed.
22296         * sysdeps/unix/sysv/linux/ia64/*: Removed.
22297         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
22298
22299         [BZ #13555]
22300         * configure.in: Remove entries for unsupported architectures.
22301
22302         [BZ #13533]
22303         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
22304         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
22305         routines.
22306         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
22307         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
22308         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
22309         fall back to using wcrtomb.
22310         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
22311         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
22312         renaming.
22313         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
22314         * wcsmbs/tst-c16c32-1.c: New file.
22315
22316         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
22317         local variable.
22318
22319         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
22320
22321         * elf/tst-unique3.cc: Add explicit declaration of gets.
22322         * elf/tst-unique3lib.cc: Likewise.
22323         * elf/tst-unique3lib2.cc: Likewise.
22324         * elf/tst-unique4.cc: Likewise.
22325
22326         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
22327
22328 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
22329
22330         [BZ #13566]
22331         * assert/assert.h (static_assert): Don't define for C++.
22332         * libio/stdio.h (gets): Do declare for C++ <= C++11.
22333         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
22334
22335 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
22336
22337         * iconv/loop.c (single loop): Fix assertion in storing of
22338         remaining bytes.
22339
22340         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
22341
22342 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
22343
22344         * posix/getconf.c: Update copyright year.
22345         * nss/getent.c: Likewise.
22346         * nss/makedb.c: Likewise.
22347         * iconv/iconvconfig.c: Likewise.
22348         * iconv/iconv_prog.c: Likewise.
22349         * elf/ldconfig.c: Likewise.
22350         * elf/pldd.c: Likewise.
22351         * elf/sotruss.ksh: Likewise.
22352         * catgets/gencat.c: Likewise.
22353         * csu/version.c: Likewise.
22354         * elf/ldd.bash.in: Likewise.
22355         * elf/sprof.c (print_version): Likewise.
22356         * locale/programs/locale.c: Likewise.
22357         * locale/programs/localedef.c: Likewise.
22358         * login/programs/pt_chown.c: Likewise.
22359         * nscd/nscd.c (print_version): Likewise.
22360         * debug/xtrace.sh: Likewise.
22361         * malloc/memusage.sh: Likewise.
22362         * malloc/mtrace.pl: Likewise.
22363         * debug/catchsegv.sh: Likewise.
22364
22365 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
22366
22367         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
22368         pure attribute.
22369
22370 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
22371
22372         [BZ #13533]
22373         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
22374         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
22375         transformations.
22376         * iconv/gconv_int.h: Likewise.
22377         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
22378         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
22379         from libc for GLIBC_2.16.
22380         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
22381         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
22382         * wcsmbs/uchar.h: Really define mbstate_t.
22383         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
22384         * wcsmbs/c16rtomb.c: New file.
22385         * wcsmbs/mbrtoc16.c: New file.
22386         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
22387         for C/POSIX locale.
22388         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
22389         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
22390
22391         * wcsmbs/wchar.h: Add missing __restrict.
22392
22393 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
22394
22395         [BZ #13532]
22396         * time/Makefile (routines): Add timespec_get.
22397         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
22398         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
22399         timespec for ISO C11.
22400         * time/timespec_get.c: New file.
22401         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
22402         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
22403
22404         [BZ #13531]
22405         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
22406         * stdlib/stdlib.h: Declare aligned_alloc.
22407         * Versions.def: Add GLIBC_2.16 for libc.
22408         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
22409
22410         [BZ 13527]
22411         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
22412         ISO C11.
22413
22414         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
22415         code.
22416
22417         [BZ #13528]
22418         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
22419
22420         [BZ #13529]
22421         * assert/assert.h (static_assert): Define.
22422
22423         * version.h: Update for 2.16 development version.
22424
22425         [BZ #13526]
22426         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
22427         _ISOC11_SOURCE.
22428
22429         * version.h (RELEASE): Bump for 2.15 release.
22430         * include/features.h (__GLIBC_MINOR__): Bump to 15.
22431
22432         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
22433         Patch by Marek Polacek <mpolacek@redhat.com>.
22434
22435         * bits/byteswap.h: Protect long long constants with __extension__.
22436         * sysdeps/i386/bits/byteswap.h: Likewise.
22437         * sysdeps/ia64/bits/byteswap.h: Likewise.
22438         * sysdeps/s390/bits/byteswap.h: Likewise.
22439         * sysdeps/x86_64/bits/byteswap.h: Likewise.
22440
22441 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22442
22443         [BZ #13540]
22444         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
22445         destination buffer.
22446         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
22447
22448 2011-12-23  Marek Polacek  <polacek@redhat.com>
22449
22450         * elf/dl-addr.c (determine_info): Add inline keyword.
22451         * elf/tst-auditmod4b.c (check_avx): Likewise.
22452         * elf/tst-auditmod6b.c (check_avx): Likewise.
22453         * elf/tst-auditmod6c.c (check_avx): Likewise.
22454         * elf/tst-auditmod7b.c (check_avx): Likewise.
22455
22456 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
22457
22458         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
22459         !__SSE_MATH__.
22460
22461 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22462
22463         [BZ #13540]
22464         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
22465         processing for last bytes.
22466
22467 2011-08-06  Bruno Haible  <bruno@clisp.org>
22468
22469         [BZ #13061]
22470         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
22471         U+0385, not to U+1FEE.
22472
22473         [BZ #13062]
22474         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
22475         entry for U+00A5 U+0301.
22476
22477 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
22478
22479         [BZ #13166]
22480         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
22481         buffer for the output is too small.
22482
22483         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
22484         optimization.
22485
22486         [BZ #13185]
22487         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
22488         SSE flags if possible.
22489
22490 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22491
22492         [BZ #13540]
22493         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
22494         processing for last bytes.
22495
22496 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
22497
22498         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
22499         (syscall-list-default-options, syscall-list-default-condition)
22500         (syscall-list-includes): Define.
22501         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
22502         list of ABIs and options and #if conditions for each ABI.  Do not
22503         handle common syscalls between ABIs specially.
22504         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
22505         Remove.
22506         (syscall-list-variants, syscall-list-32bit-options)
22507         (syscall-list-32bit-condition, syscall-list-64bit-options)
22508         (syscall-list-64bit-condition): Define.
22509         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
22510         (syscall-list-variants, syscall-list-32bit-options)
22511         (syscall-list-32bit-condition, syscall-list-64bit-options)
22512         (syscall-list-64bit-condition): Define.
22513         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
22514         Remove.
22515         (syscall-list-variants, syscall-list-32bit-options)
22516         (syscall-list-32bit-condition, syscall-list-64bit-options)
22517         (syscall-list-64bit-condition): Define.
22518         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
22519         Remove.
22520         (syscall-list-variants, syscall-list-32bit-options)
22521         (syscall-list-32bit-condition, syscall-list-64bit-options)
22522         (syscall-list-64bit-condition): Define.
22523
22524 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
22525
22526         * locale/iso-639.def: Add brx entry.
22527
22528         [BZ #13328]
22529         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
22530         Proposed by Mariusz_Cukr <marcukr@op.pl>.
22531
22532         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
22533         __feraiseexcept_renamed.
22534
22535 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
22536
22537         [BZ #13538]
22538         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
22539         EPOLLET with unsigned values.
22540         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
22541         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
22542
22543         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
22544         to large cancellation.
22545         * math/s_cacoshf.c: Likewise.
22546         * math/s_cacoshl.c: Likewise.
22547
22548 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
22549
22550         [BZ #13305]
22551         [BZ #12786]
22552         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
22553         * math/s_cacoshf.c: Likewise.
22554         * math/s_cacoshl.c: Likewise.
22555
22556 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
22557
22558         [BZ #13439]
22559         * iconv/gconv.h: Define __GCONV_SWAP.
22560         * iconvdata/unicode.c: The swap bit must be stored in __flags.
22561         * iconvdata/utf-16.c: Likewise.
22562         * iconvdata/utf-32.c: Likewise.
22563
22564 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
22565
22566         [BZ #13524]
22567         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
22568         numerator after shifting it by one limb.
22569
22570 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
22571
22572         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
22573         under [__USE_EXTERN_INLINES].
22574
22575 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
22576
22577         [BZ #13446]
22578         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
22579
22580 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22581
22582         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
22583         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
22584         optimized code.
22585         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
22586         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
22587         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
22588         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
22589         for strncasecmp/strncasecmp_l compilation.
22590         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
22591         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
22592
22593 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
22594
22595         [BZ #13484]
22596         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
22597         of __asm__.
22598
22599 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
22600
22601         [BZ #13506]
22602         * time/tzfile.c (__tzfile_read): Check values from file header.
22603
22604 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
22605
22606         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
22607         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
22608         * powerpc/powerpc32/dl-start.S: Likewise.
22609         * powerpc/powerpc32/elf/start.S: Likewise.
22610         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
22611         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
22612         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
22613         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
22614         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
22615         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
22616         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
22617         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
22618         * powerpc/powerpc32/fpu/s_round.S: Likewise.
22619         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
22620         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
22621         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
22622         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
22623         * powerpc/powerpc32/memset.S: Likewise.
22624         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
22625         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
22626         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
22627         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
22628         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
22629         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
22630         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
22631         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
22632         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
22633         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
22634         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
22635         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
22636         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
22637
22638 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22639
22640         * math/libm-test.inc: Added more nearbyint tests.
22641         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
22642         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
22643         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
22644         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
22645
22646 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
22647
22648         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
22649         FD_CLOEXEC.
22650
22651 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22652
22653         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
22654         Add wcscpy-ssse3 wcscpy-c.
22655         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
22656         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
22657         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
22658         * sysdeps/x86_64/wcschr.S: New file.
22659         * sysdeps/x86_64/wcsrchr.S: New file.
22660         * string/test-strcmp.c: Remove checking of wcscmp function for
22661         wrong alignments.
22662         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
22663         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
22664         wcsrchr-sse2 wcsrchr-c.
22665         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
22666         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
22667         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
22668         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
22669         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
22670         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
22671         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
22672         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
22673         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
22674         * wcsmbc/wcschr.c (WCSCHR): New macro.
22675
22676 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22677
22678         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
22679         * wcsmbs/test-wcsrchr.c: New file.
22680         * string/test-strrchr.c: Add wcsrchr support.
22681         (WIDE): New macro.
22682         * wcsmbs/test-wcscpy.c: New file.
22683         * string/test-strcpy.c: Add wcscpy support.
22684         (WIDE): New macro.
22685
22686 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
22687
22688         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
22689         the inner loop.
22690
22691 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
22692
22693         [BZ #13472]
22694         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
22695
22696 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
22697
22698         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
22699         Minor optimizations.
22700
22701         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
22702         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
22703         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
22704
22705 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
22706
22707         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
22708         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
22709         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
22710         for gcc to avoid warnings.
22711         * inet/Makefile (tests): Add tst-checks.
22712         * inet/tst-checks.c: New file.
22713
22714         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
22715         warning.
22716
22717         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
22718         __wmemcmp_sse2.
22719
22720         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
22721         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
22722
22723         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
22724
22725 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
22726
22727         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
22728         problem.
22729
22730         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
22731
22732 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
22733
22734         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
22735         conditional on GCC version.
22736         (__arch_compare_and_exchange_val_8_acq)
22737         (__arch_compare_and_exchange_val_16_acq)
22738         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
22739         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
22740         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
22741
22742 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
22743
22744         * sysdeps/sh/backtrace.c: New file.
22745
22746 2011-12-02  Andreas Schwab  <schwab@redhat.com>
22747
22748         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
22749         parenthesis.
22750
22751 2011-12-01  Andreas Schwab  <schwab@redhat.com>
22752
22753         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
22754         falling back to utime.
22755
22756 2011-11-30  Andreas Schwab  <schwab@redhat.com>
22757
22758         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
22759         expectations for float.
22760
22761 2011-11-29  Andreas Schwab  <schwab@redhat.com>
22762
22763         * locale/weight.h (findidx): Add parameter len.
22764         * locale/weightwc.h (findidx): Likewise.
22765         * posix/fnmatch_loop.c (FCT): Adjust caller.
22766         * posix/regcomp.c (build_equiv_class): Likewise.
22767         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
22768         * posix/regexec.c (check_node_accept_bytes): Likewise.
22769         * string/strcoll_l.c (STRCOLL): Likewise.
22770         * string/strxfrm_l.c (STRXFRM): Likewise.
22771
22772 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
22773
22774         * Makefile.in: Remove CVSOPT handling.
22775         * configure.in: Remove use of AC_REVISION.
22776         * iconvdata/Makefile (distribute): No need to filter out CVS.
22777         * scripts/list-sources.sh: Remove CVS, subversion and monotone
22778         handling.
22779
22780 2011-11-16  Andreas Schwab  <schwab@redhat.com>
22781
22782         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
22783         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
22784         [USE_AS_STRNCASECMP_L]: Likewise.
22785         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
22786         NO_TLS_DIRECT_SEG_REFS.
22787         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
22788         Fix argument offsets for non-PIC.
22789         [USE_AS_STRNCASECMP_L]: Likewise.
22790         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
22791         NO_TLS_DIRECT_SEG_REFS.
22792
22793 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
22794
22795         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
22796         O_CLOEXEC.
22797         * locale/loadlocale.c (_nl_load_locale): Likewise.
22798
22799 2011-11-15  Andreas Schwab  <schwab@redhat.com>
22800
22801         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
22802         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
22803         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
22804         (SYSCALL_GETTIME): Set errno on error.
22805
22806         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
22807         count references to noai6ai_cached.
22808
22809 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
22810
22811         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
22812
22813         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
22814         FD_CLOEXEC for /proc/self/maps.
22815
22816         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
22817         FD_CLOEXEC for /proc/meminfo.
22818
22819         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
22820         gai.conf.
22821
22822         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
22823         FD_CLOEXEC for given file.
22824
22825         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
22826
22827         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
22828         FD_CLOEXEC for /etc/hosts.
22829         (_gethtent): Likewise.
22830
22831         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
22832
22833         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
22834         cancellation and set FD_CLOEXEC for /etc/netgroup.
22835
22836         * nss/nss_files/files-key.c (search): Don't allow cancellation when
22837         reading /etc/publickey.
22838
22839         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
22840         allow cancellation when reading /etc/group.
22841
22842         * nss/nss_files/files-alias.c (internal_setent): Don't allow
22843         cancellation.
22844         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
22845
22846         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
22847         when using data file.
22848
22849         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
22850
22851         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
22852         (write_nis_obj): Use "c" and "e" in fopen.
22853
22854         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
22855
22856         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
22857
22858         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
22859
22860         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
22861
22862         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
22863         locale.alias.
22864
22865         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
22866
22867         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
22868
22869         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
22870
22871         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
22872         file parsing and set FD_CLOEXEC.
22873
22874 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
22875
22876         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
22877
22878 2011-11-14  Andreas Schwab  <schwab@redhat.com>
22879
22880         * malloc/arena.c (arena_get2): Don't call reused_arena when
22881         _int_new_arena failed.
22882
22883 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
22884
22885         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
22886         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
22887         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
22888         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
22889         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
22890         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
22891         to compile strcasecmp and strncasecmp.
22892         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
22893         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
22894
22895         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
22896
22897 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
22898
22899         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
22900         locale-defines.sym to gen-as-const-headers.
22901         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
22902         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
22903         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
22904         to compile strcasecmp and strncasecmp.
22905         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
22906         strcasecmp_l and strncasecmp_l.
22907         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
22908         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
22909         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
22910         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
22911         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
22912         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
22913         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
22914         * sysdeps/i386/i686/multiarch/strncase.S: New file.
22915         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
22916         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
22917         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
22918
22919 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
22920
22921         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
22922         result of SYSDEP_GETTIME_CPU to retval.
22923         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
22924         parameter list to macro.  Remove trailing semicolon.  Adjust users.
22925
22926         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
22927         variable.
22928
22929         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
22930         mantissa words.
22931         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
22932
22933         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
22934         from unused variable.
22935
22936         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
22937         DWARF definitions.
22938         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
22939         for assembling.
22940
22941         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
22942         over namespaces.
22943
22944         * sunrpc/rpc_prot.c (rejected): Fix case value.
22945
22946         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
22947         unsigned long long int to avoid warnings in shift.
22948
22949         * posix/regex_internal.c (re_string_reconstruct): Actually use result
22950         of use of trans.
22951         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
22952         variable tmp.
22953
22954         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
22955         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
22956         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
22957
22958         * nis/nis_table.c (nis_list): Use variable of correct type for
22959         result of __follow_path call.
22960
22961 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22962
22963         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
22964         of math functions ceil, trunc, floor, round, and sqrt, when
22965         avaliable on the platform.
22966         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
22967         name clash.
22968         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
22969         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
22970         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
22971
22972 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
22973
22974         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
22975         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
22976
22977 2011-11-11  Roland McGrath  <roland@hack.frob.com>
22978
22979         * include/unistd.h: Fix __readlink return type.
22980         Reported by Chris Metcalf <cmetcalf@tilera.com>.
22981
22982 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
22983
22984         * stdlib/ucontext.h: Undo last change for makecontext.
22985
22986 2011-11-11  Andreas Schwab  <schwab@redhat.com>
22987
22988         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
22989
22990         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
22991         * setjmp/setjmp.h: Mark functions as non-leaf.
22992         * setjmp/bits/setjmp2.h: Likewise.
22993         * stdlib/ucontext.h: Likewise.
22994
22995 2011-11-10  Andreas Schwab  <schwab@redhat.com>
22996
22997         * malloc/arena.c (_int_new_arena): Don't increment narenas.
22998         (reused_arena): Don't check arena limit.
22999         (arena_get2): Atomically check arena limit.
23000
23001 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
23002
23003         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
23004         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
23005
23006         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
23007         instructions.
23008
23009 2011-11-07  Andreas Schwab  <schwab@redhat.com>
23010
23011         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
23012         handler when locking.
23013
23014         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
23015         Fix size of allocated buffer.
23016
23017 2011-11-04  Andreas Schwab  <schwab@redhat.com>
23018
23019         [BZ #10103]
23020         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
23021         declarations for long double functions.
23022         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
23023
23024         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
23025
23026 2011-11-03  Andreas Schwab  <schwab@redhat.com>
23027
23028         * nscd/nscd.c (main): Don't start AVC thread until credentials are
23029         installed.
23030
23031         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
23032         is disabled.
23033
23034 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23035
23036         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
23037
23038 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
23039
23040         * include/alloca.h (stackinfo_alloca_round): Define.
23041         (extend_alloca): Use it.
23042         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
23043         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
23044         here.
23045
23046         * scripts/check-local-headers.sh: Ignore libaudit.h.
23047
23048         * nscd/Makefile (extra-objs): Make recursively expanded.
23049
23050 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
23051
23052         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
23053         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
23054
23055         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
23056         * posix/tst-rfc3484-2.c: Likewise.
23057         * posix/tst-rfc3484-3.c: Likewise.
23058
23059         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
23060         process_vm_writev.
23061         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
23062         process_vm_writev.
23063         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
23064         process_vm_writev from libc using GLIBC_2.15 version.
23065
23066         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
23067
23068 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
23069
23070         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
23071         stack usage.
23072
23073 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
23074
23075         [BZ #13367]
23076         * nss/getent.c (initgroups_keys): Show error message in case no group
23077         names are given.
23078
23079         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
23080         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
23081         __bump_nl_timestamp.
23082         * nscd/connections (nscd_init): When host database is served open
23083         netlink socket and request notification about configuration changes.
23084         (main_loop_poll): Track netlink file descriptor and bump timestamp
23085         in case data becomes available.
23086         (main_loop_epoll): Likewise.
23087         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
23088         (database_pers_head): Add extra_data fileds.
23089         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
23090         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
23091         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
23092         Adjust caller.
23093         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
23094         in6ai data, call __free_in6ai.
23095         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
23096         Add -DHAVE_NETLINK.
23097         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
23098         interface information.  Reuse previous data if netlink timestamp
23099         is not changed.
23100         (__bump_nl_timestamp): New function.
23101         (__free_in6ai): New function.
23102
23103 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
23104
23105         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
23106         close_not_cancel_no_status here.
23107         (__check_pf): Reorganize code a bit to not call close twice if OOM.
23108
23109 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
23110
23111         [BZ #13276]
23112         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
23113         return value.
23114
23115         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
23116         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
23117         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
23118
23119 2011-07-03  Andreas Jaeger  <aj@suse.de>
23120
23121         [BZ #10709]
23122         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
23123         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
23124         * math/libm-test.inc (sin_test): Add test case.
23125
23126 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
23127
23128         [BZ #13337]
23129         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
23130         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
23131
23132         * elf/chroot_canon.c (chroot_canon): Cleanups.
23133
23134         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
23135
23136         [BZ #13335]
23137         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
23138         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
23139
23140         * string/test-strchr.c: Make usable for strchrnul testing.
23141         * string/test-strchrnul.c: New file.
23142         * string/Makefile (strop-tests): Add strchrnul.
23143
23144         * po/it.po: Update from translation team.
23145         * po/es.po: Likewise.
23146
23147 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
23148
23149         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
23150         the three constants needed as parameters.  Drop the others.
23151         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
23152         __m128i_strloadu_tolower.
23153         Create and initialize variable zero and use it in all the places
23154         where _mm_setzero_si128 was used.
23155
23156         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
23157         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
23158         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
23159         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
23160         anymore.
23161         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
23162         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
23163         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
23164         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
23165         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
23166         __mpranred, __mptan.
23167         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
23168         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
23169         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
23170         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
23171         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
23172         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
23173         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
23174         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
23175         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
23176
23177 2011-10-28  Andreas Schwab  <schwab@redhat.com>
23178
23179         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
23180         redefine if SHARED.
23181         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
23182
23183         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
23184         wide char related routines to wcsmbs subdir.
23185
23186 2011-10-27  Andreas Schwab  <schwab@redhat.com>
23187
23188         [BZ #13344]
23189         * misc/sys/cdefs.h (__THROWNL): Define.
23190         * posix/unistd.h: Use __THREADNL instead of __THREAD
23191         for memory synchronization functions.
23192
23193 2011-10-26  Roland McGrath  <roland@hack.frob.com>
23194
23195         [BZ #13349]
23196         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
23197         doesn't exist.
23198         * manual/stdio.texi (Obstack Streams): Node removed.
23199
23200 2011-10-26  Andreas Schwab  <schwab@redhat.com>
23201
23202         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
23203         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
23204         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
23205
23206         * math/math_private.h (math_force_eval): Allow non-addressable
23207         arguments.
23208         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
23209
23210 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
23211
23212         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
23213         file is not needed.
23214
23215         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
23216         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
23217         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
23218         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
23219         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
23220         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
23221         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
23222         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
23223         Add AVX variants.
23224         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
23225         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
23226         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
23227         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
23228         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
23229         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
23230         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
23231         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
23232         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
23233         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
23234         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
23235         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
23236         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
23237         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
23238         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
23239         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
23240         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
23241         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
23242         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
23243
23244         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
23245         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
23246
23247         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
23248         place.  Use VEX encoding when compiling for AVX.
23249
23250 2011-10-25  Andreas Schwab  <schwab@redhat.com>
23251
23252         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
23253         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
23254
23255         * string/test-strchr.c (do_test): Don't generate NUL bytes.
23256
23257 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
23258
23259         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
23260         useless if() expression.
23261         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
23262         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
23263         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
23264         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
23265         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
23266         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
23267         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
23268         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
23269         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
23270         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
23271         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
23272         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
23273         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
23274         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
23275         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
23276         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
23277         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
23278         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
23279         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
23280
23281         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
23282
23283 2011-10-25  Andreas Schwab  <schwab@redhat.com>
23284
23285         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
23286         condition.
23287         * elf/dl-fini.c (_dl_sort_fini): Likewise.
23288
23289 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
23290
23291         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
23292         .text section.  Avoid duplicate constants.
23293         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
23294         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
23295         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
23296         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
23297         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
23298         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
23299         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
23300         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
23301         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
23302         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
23303         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
23304         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
23305         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
23306         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
23307         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
23308         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
23309         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
23310         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
23311         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
23312         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
23313         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
23314         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
23315         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
23316         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
23317         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
23318         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
23319         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
23320         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
23321         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
23322         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
23323         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
23324         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
23325         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
23326         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
23327         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
23328         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
23329         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
23330         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
23331         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
23332         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
23333         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
23334         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
23335         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
23336         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
23337         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
23338
23339 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
23340
23341         * sysdeps/x86_64/dla.h: Move to ...
23342         * sysdeps/x86_64/fpu/dla.h: ...here.
23343         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
23344         situations.  Use __builtin_fma only for gcc 4.6 and up.
23345
23346         * config.make.in: Add have-mfma4 entry.
23347         * configure.in: Substitute libc_cv_cc_fma4.
23348         * math/Makefile (dbl-only-routines): Add sincostab.
23349         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
23350         Use __sincostab not sincos.
23351         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
23352         name is a macro.
23353         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
23354         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
23355         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
23356         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
23357         using __copysign.
23358         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
23359         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
23360         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
23361         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
23362         and __inv.
23363         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
23364         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
23365         __copysign.
23366         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
23367         define aliases when function name is a macro.
23368         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
23369         sysdeps/ieee754/dbl-64/sincos.tbl.
23370         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
23371         fma4-enabled routines.
23372         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
23373         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
23374         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
23375         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
23376         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
23377         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
23378         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
23379         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
23380         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
23381         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
23382         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
23383         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
23384         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
23385         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
23386         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
23387         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
23388         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
23389         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
23390         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
23391         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
23392         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
23393         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
23394         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
23395         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
23396         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
23397         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
23398         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
23399         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
23400         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
23401         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
23402
23403         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
23404         rename.
23405         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
23406         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
23407         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
23408         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
23409         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
23410         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
23411         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
23412         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
23413
23414 2011-10-24  Andreas Schwab  <schwab@redhat.com>
23415
23416         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
23417
23418 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
23419
23420         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
23421
23422         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
23423         prediction.
23424         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
23425
23426         * string/strnlen.c: Don't define STRNLEN, reverse logic.
23427         Remove unused variable magic_bits.
23428         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
23429
23430         * string/strnlen.c: Define and use STRNLEN macro.
23431         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
23432         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
23433         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
23434         * wcsmbs/wcslen.c: Define and use WCSLEN.
23435         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
23436         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
23437         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
23438         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
23439         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
23440         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
23441         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
23442
23443 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23444
23445         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
23446         strnlen-sse2-no-bsf.
23447         Rename strlen-no-bsf to strlen-sse2-no-bsf.
23448         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
23449         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
23450         Add strnlen support.
23451         (USE_AS_STRNLEN): New macro.
23452         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
23453         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
23454         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
23455         * sysdeps/x86_64/wcslen.S: New file.
23456
23457 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
23458
23459         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
23460         XMM-moves are used for copying on small sizes.
23461
23462 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23463
23464         * wcsmbs/Makefile (strop-tests): Add wcschr.
23465         * wcsmbs/test-wcschr.c: New file.
23466         * string/test-strchr.c: Update.
23467         Add wcschr support.
23468         (WIDE): New macro.
23469
23470 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23471
23472         * wcsmbs/Makefile (strop-tests): Add wcslen.
23473         * wcsmbs/test-wcslen.c: New file.
23474         * string/test-strlen.c: Update.
23475         Add wcslen support.
23476         (WIDE): New macro.
23477
23478 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
23479
23480         * po/it.po: Update from translation team.
23481
23482 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23483
23484         * sysdeps/x86_64/wcscmp.S: Update.
23485         Fix wrong comparison semantics.
23486         wcscmp shall use signed comparison not unsigned.
23487         Don't use substraction to avoid overflow bug.
23488         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
23489         * wcsmbc/wcscmp.c: Likewise.
23490         * string/test-strcmp.c: Likewise.
23491         Add new tests to check cases with negative values.
23492
23493 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
23494
23495         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
23496         * sysdeps/x86_64/dla.h: ...here.  New file.
23497         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
23498         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
23499         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
23500         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
23501         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
23502         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
23503         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
23504         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
23505         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
23506
23507 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
23508
23509         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
23510         __ynl_finite aliases.
23511
23512 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
23513
23514         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
23515
23516         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
23517         define DLA_FMA.
23518         [DLA_FMA] (EMULV): Use DLA_FMA.
23519         [DLA_FMA] (MUL12): Use EMULV.
23520         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
23521         that are not needed.
23522         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
23523         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
23524         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
23525         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
23526         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
23527         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
23528         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
23529
23530 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
23531
23532         * math/s_nan.c: Undef __nan.
23533         * math/s_nanf.c: Undef __nanf.
23534         * math/s_nanl.c: Undef __nanl.
23535         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
23536         "math_private.h".
23537
23538 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
23539
23540         * math/s_catan.c: Add branch predictions.
23541         * math/s_catanf.c: Likewise.
23542         * math/s_catanh.c: Likewise.
23543         * math/s_catanhf.c: Likewise.
23544         * math/s_catanhl.c: Likewise.
23545         * math/s_catanl.c: Likewise.
23546         * math/s_cexp.c: Likewise.
23547         * math/s_cexpf.c: Likewise.
23548         * math/s_cexpl.c: Likewise.
23549         * math/s_clog.c: Likewise.
23550         * math/s_clog10.c: Likewise.
23551         * math/s_clog10f.c: Likewise.
23552         * math/s_clog10l.c: Likewise.
23553         * math/s_clogf.c: Likewise.
23554         * math/s_clogl.c: Likewise.
23555         * math/s_csqrt.c: Likewise.
23556         * math/s_csqrtf.c: Likewise.
23557         * math/s_csqrtl.c: Likewise.
23558         * math/s_ctanf.c: Likewise.
23559         * math/s_ctanh.c: Likewise.
23560         * math/s_ctanhf.c: Likewise.
23561         * math/s_ctanhl.c: Likewise.
23562         * math/s_ctanl.c: Likewise.
23563
23564         * math/math_private.h: Define __nan, __nanf, __nanl.
23565         * math/s_cacosh.c: Include <math_private.h>.
23566         * math/s_cacoshl.c: Likewise.
23567         * math/s_casinh.c: Likewise.
23568         * math/s_casinhf.c: Likewise.
23569         * math/s_casinhl.c: Likewise.
23570         * math/s_ccos.c: Rely entire on ccosh.
23571         * math/s_ccosf.c: Rely entire on ccoshf.
23572         * math/s_ccosl.c: Rely entirely on ccoshl.
23573         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
23574         Remove tests for FE_INVALID.
23575         * math/s_ccoshf.c: Likewise.
23576         * math/s_ccoshl.c: Likewise.
23577         * math/s_csin.c: Likewise.
23578         * math/s_csinf.c: Likewise.
23579         * math/s_csinh.c Likewise.
23580         * math/s_csinhf.c: Likewise.
23581         * math/s_csinhl.c: Likewise.
23582         * math/s_csinl.c: Likewise.
23583         * math/s_ctan.c: Likewise.
23584         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
23585         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
23586         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
23587
23588 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
23589
23590         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
23591         compilation problems.
23592
23593         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
23594         __builtin_expect.
23595
23596 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
23597
23598         * sysdeps/i386/configure.in: Test for -mfma4 option.
23599         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
23600         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
23601         COMMON_CPUID_INDEX_80000001.
23602         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
23603         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
23604         use it if FMA3 is not supported.
23605         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
23606
23607         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
23608         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
23609
23610 2011-10-20  Andreas Schwab  <schwab@redhat.com>
23611
23612         [BZ #12892]
23613         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
23614         it would create a cycle with a link time dependency.
23615
23616 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
23617
23618         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
23619         instruction.
23620         * string/Makefile (strop-tests): Add rawmemchr.
23621         * string/test-rawmemchr.c: New file.
23622
23623         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
23624         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
23625         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
23626         when compiling str{,n}casecmp and when AVX is available.  Hook up
23627         new optimized code in initializers.
23628
23629 2011-10-19  Andreas Schwab  <schwab@redhat.com>
23630
23631         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
23632         __feraiseexcept instead of feraiseexcept.
23633
23634 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
23635
23636         * math/math_private.h: Define defaults for libc_fetestexcept and
23637         libc_feupdateenv.
23638         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
23639         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
23640         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
23641         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
23642         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
23643         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
23644         libc_fetestexcept and libc_feupdateenv.
23645
23646         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
23647         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
23648         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
23649         * sysdeps/x86_64/fpu/math_private.h: Define special version of
23650         libc_feholdexcept_setround.
23651
23652         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
23653         Add s_nearbyint-c and s_nearbyintf-c.
23654         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
23655         nearbyintf inlines.
23656         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
23657         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
23658         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
23659         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
23660
23661         * math/math_private.h: Define defaults for libc_fegetround,
23662         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
23663         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
23664         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
23665         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
23666         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
23667         standard functions.
23668         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
23669         Remove comments and hacks for old compiler versions.
23670         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
23671         libc_fegetround, libc_fesetround, libc_feholdexcept, and
23672         libc_feholdexceptl.
23673
23674 2011-10-18  Andreas Schwab  <schwab@redhat.com>
23675
23676         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
23677         (__feraiseexcept_renamed): Add __NTH.
23678         (feraiseexcept): Add __NTH.  Rename local variables to fix
23679         namespace violations.
23680
23681 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
23682
23683         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
23684
23685         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
23686
23687         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
23688         recently added interfaces.
23689         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
23690
23691         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
23692         about macro parameter expansion.
23693
23694         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
23695         __NO_MATH_INLINES is defined.  Cleanups.
23696
23697         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
23698         and __floorf is target has SSE4.1.
23699         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
23700         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
23701         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
23702         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
23703
23704         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
23705         name.
23706         (floorf): Likewise.
23707
23708         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
23709
23710 2011-10-17  Andreas Schwab  <schwab@redhat.com>
23711
23712         * misc/sys/cdefs.h: Fix last change.
23713
23714         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
23715         database lookup.
23716
23717 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
23718
23719         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
23720
23721         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
23722         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
23723         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
23724         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
23725         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
23726         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
23727         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
23728         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
23729         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
23730         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
23731         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
23732         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
23733         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
23734         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
23735         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
23736         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
23737         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
23738         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
23739         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
23740         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
23741         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
23742         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
23743
23744         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
23745         ceil, ceilf, floor, floorf.
23746
23747         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
23748         Perform IRELATIVE relocations last.
23749
23750         * elf/do-rel.h: Add another parameter nrelative, replacing the
23751         local variable with the same name.  Change name of the function
23752         to end in Rel or Rela (uppercase).
23753         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
23754         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
23755         elf_dynamic_do_##reloc function.
23756
23757 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
23758
23759         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
23760         is sufficient, at least on modern CPUs.
23761
23762         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
23763
23764         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
23765         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
23766
23767         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
23768         __expl_finite.
23769         * math/bits/math-finite.h: Add entries for exp.
23770         * math/e_expl.c: Add __*_finite alias.
23771         * sysdeps/i386/fpu/e_exp.S: Likewise.
23772         * sysdeps/i386/fpu/e_expf.S: Likewise.
23773         * sysdeps/i386/fpu/e_expl.c: Likewise.
23774         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
23775         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
23776         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
23777         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
23778         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
23779         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
23780         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
23781
23782         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
23783         is sufficient, at least on modern CPUs.
23784
23785         * ctype/ctype-info.c (__ctype_init): Define.
23786         * include/ctype.h (__ctype_init): Declare.
23787         (__ctype_b_loc): The variable is always initialized.
23788         (__ctype_toupper_loc): Likewise.
23789         (__ctype_tolower_loc): Likewise.
23790         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
23791         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
23792
23793 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
23794
23795         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
23796
23797         * configure.in: Also look in $cxxmachine/include for C++ system
23798         headers.
23799
23800 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23801
23802         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
23803         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
23804         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
23805         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
23806         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
23807         (USE_AS_WMEMCMP): New macro.
23808         Fixing indents.
23809         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
23810         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
23811         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
23812         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
23813         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
23814         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
23815         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
23816         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
23817         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
23818         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
23819         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
23820         (USE_AS_WMEMCMP): New macro.
23821         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
23822         * sysdeps/string/test-memcmp.c: Update.
23823         Fix simple_wmemcmp.
23824         Add new tests.
23825         * wcsmbs/wmemcmp.c: Update.
23826         (WMEMCMP): New macro.
23827         Fix overflow bug.
23828
23829 2011-10-12  Andreas Jaeger  <aj@suse.de>
23830
23831         [BZ #13268]
23832         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
23833
23834 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
23835
23836         * libio/iofwide.c (do_length): Avoid warning.
23837
23838         * ctype/ctype.h (__isctype_f): Add missing __THROW.
23839
23840 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
23841
23842         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
23843
23844         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
23845         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
23846         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
23847         * sysdeps/i386/i686/fpu/e_log.S: New file.
23848         * sysdeps/i386/i686/fpu/e_logf.S: New file.
23849         * sysdeps/i386/i686/fpu/e_logl.S: New file.
23850
23851         * ctype/ctype.h: Add support for inlined isXXX functions when
23852         compiling C++ code.
23853
23854 2011-10-14  Andreas Schwab  <schwab@redhat.com>
23855
23856         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
23857
23858         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
23859
23860 2011-10-13  Roland McGrath  <roland@hack.frob.com>
23861
23862         [BZ #13291]
23863         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
23864
23865 2011-10-13  Andreas Schwab  <schwab@redhat.com>
23866
23867         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
23868         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
23869         feraiseexcept.
23870
23871         * sysdeps/x86_64/memrchr.S: Check for zero size.
23872
23873         * string/stratcliff.c: Add memrchr tests.
23874
23875 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23876
23877         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
23878         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
23879         rawmemchr-sse2 rawmemchr-sse2-bsf.
23880         * sysdeps/i386/i686/multiarch/memchr.S: New file.
23881         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
23882         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
23883         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
23884         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
23885         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
23886         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
23887         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
23888         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
23889         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
23890         * string/memrchr.c (MEMRCHR): New macro.
23891
23892 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
23893
23894         Add integration with gcc's -ffinite-math-only and optimize wrapper
23895         functions in libm.
23896         * Versions.def: Define GLIBC_2.15 version for libm.
23897         * math/Makefile (headers): Add bits/math-finite.h.
23898         * math/bits/math-finite.h: New file.
23899         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
23900         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
23901         * math/e_acoshl.c: Add __*_finite alias.
23902         * math/e_acosl.c: Likewise.
23903         * math/e_asinl.c: Likewise.
23904         * math/e_atan2l.c: Likewise.
23905         * math/e_atanhl.c: Likewise.
23906         * math/e_coshl.c: Likewise.
23907         * math/e_exp10.c: Likewise.
23908         * math/e_exp10f.c: Likewise.
23909         * math/e_exp10l.c: Likewise.
23910         * math/e_exp2l.c: Likewise.
23911         * math/e_fmodl.c: Likewise.
23912         * math/e_gammal_r.c: Likewise.
23913         * math/e_hypotl.c: Likewise.
23914         * math/e_j0l.c: Likewise.
23915         * math/e_j1l.c: Likewise.
23916         * math/e_jnl.c: Likewise.
23917         * math/e_lgammal_r.c: Likewise.
23918         * math/e_log10l.c: Likewise.
23919         * math/e_log2l.c: Likewise.
23920         * math/e_logl.c: Likewise.
23921         * math/e_powl.c: Likewise.
23922         * math/e_sinhl.c: Likewise.
23923         * math/e_sqrtl.c: Likewise.
23924         * math/e_scalb.c: Completely rewritten and optimized.
23925         * math/e_scalbf.c: Likewise.
23926         * math/e_scalbl.c: Likewise.
23927         * math/w_acos.c: Likewise.
23928         * math/w_acosf.c: Likewise.
23929         * math/w_acosl.c: Likewise.
23930         * math/w_acosh.c: Likewise.
23931         * math/w_acoshf.c: Likewise.
23932         * math/w_acoshl.c: Likewise.
23933         * math/w_asin.c: Likewise.
23934         * math/w_asinf.c: Likewise.
23935         * math/w_asinl.c: Likewise.
23936         * math/w_atan2.c: Likewise.
23937         * math/w_atan2f.c: Likewise.
23938         * math/w_atan2l.c: Likewise.
23939         * math/w_atanh.c: Likewise.
23940         * math/w_atanhf.c: Likewise.
23941         * math/w_atanhl.c: Likewise.
23942         * math/w_exp10.c: Likewise.
23943         * math/w_exp10f.c: Likewise.
23944         * math/w_exp10l.c: Likewise.
23945         * math/w_fmod.c: Likewise.
23946         * math/w_fmodf.c: Likewise.
23947         * math/w_fmodl.c: Likewise.
23948         * math/w_j0.c: Likewise.
23949         * math/w_j0f.c: Likewise.
23950         * math/w_j0l.c: Likewise.
23951         * math/w_j1.c: Likewise.
23952         * math/w_j1f.c: Likewise.
23953         * math/w_j1l.c: Likewise.
23954         * math/w_jn.c: Likewise.
23955         * math/w_jnf.c: Likewise.
23956         * math/w_log.c: Likewise.
23957         * math/w_logf.c: Likewise.
23958         * math/w_logl.c: Likewise.
23959         * math/w_log10.c: Likewise.
23960         * math/w_log10f.c: Likewise.
23961         * math/w_log10l.c: Likewise.
23962         * math/w_log2.c: Likewise.
23963         * math/w_log2f.c: Likewise.
23964         * math/w_log2l.c: Likewise.
23965         * math/w_pow.c: Likewise.
23966         * math/w_powf.c: Likewise.
23967         * math/w_powl.c: Likewise.
23968         * math/w_remainder.c: Likewise.
23969         * math/w_remainderf.c: Likewise.
23970         * math/w_remainderl.c: Likewise.
23971         * math/w_scalb.c: Likewise.
23972         * math/w_scalbf.c: Likewise.
23973         * math/w_scalbl.c: Likewise.
23974         * math/w_sqrt.c: Likewise.
23975         * math/w_sqrtf.c: Likewise.
23976         * math/w_sqrtl.c: Likewise.
23977         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
23978         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
23979         used.
23980         * math/math_private.h: Declare __kernel_standard_f.
23981         * math/w_cosh.c: Remove cruft and optimize a bit.
23982         * math/w_coshf.c: Likewise.
23983         * math/w_coshl.c: Likewise.
23984         * math/w_exp2.c: Likewise.
23985         * math/w_exp2f.c: Likewise.
23986         * math/w_exp2l.c: Likewise.
23987         * math/w_hypot.c: Likewise.
23988         * math/w_hypotf.c: Likewise.
23989         * math/w_hypotl.c: Likewise.
23990         * math/w_lgamma.c: Likewise.
23991         * math/w_lgamma_r.c: Likewise.
23992         * math/w_lgammaf.c: Likewise.
23993         * math/w_lgammaf_r.c: Likewise.
23994         * math/w_lgammal.c: Likewise.
23995         * math/w_lgammal_r.c: Likewise.
23996         * math/w_sinh.c: Likewise.
23997         * math/w_sinhf.c: Likewise.
23998         * math/w_sinhl.c: Likewise.
23999         * math/w_tgamma.c: Likewise.
24000         * math/w_tgammaf.c: Likewise.
24001         * math/w_tgammal.c: Likewise.
24002         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
24003         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
24004         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
24005         Minor optimizations.  Pretty printing.  Remove cruft.
24006         * sysdeps/i386/fpu/e_acosf.S: Likewise.
24007         * sysdeps/i386/fpu/e_acosh.S: Likewise.
24008         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
24009         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
24010         * sysdeps/i386/fpu/e_acosl.c: Likewise.
24011         * sysdeps/i386/fpu/e_asin.S: Likewise.
24012         * sysdeps/i386/fpu/e_asinf.S: Likewise.
24013         * sysdeps/i386/fpu/e_atan2.S: Likewise.
24014         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
24015         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
24016         * sysdeps/i386/fpu/e_atanh.S: Likewise.
24017         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
24018         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
24019         * sysdeps/i386/fpu/e_exp10.S: Likewise.
24020         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
24021         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
24022         * sysdeps/i386/fpu/e_exp2.S: Likewise.
24023         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
24024         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
24025         * sysdeps/i386/fpu/e_fmod.S: Likewise.
24026         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
24027         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
24028         * sysdeps/i386/fpu/e_hypot.S: Likewise.
24029         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
24030         * sysdeps/i386/fpu/e_log.S: Likewise.
24031         * sysdeps/i386/fpu/e_log10.S: Likewise.
24032         * sysdeps/i386/fpu/e_log10f.S: Likewise.
24033         * sysdeps/i386/fpu/e_log10l.S: Likewise.
24034         * sysdeps/i386/fpu/e_log2.S: Likewise.
24035         * sysdeps/i386/fpu/e_log2f.S: Likewise.
24036         * sysdeps/i386/fpu/e_log2l.S: Likewise.
24037         * sysdeps/i386/fpu/e_logf.S: Likewise.
24038         * sysdeps/i386/fpu/e_logl.S: Likewise.
24039         * sysdeps/i386/fpu/e_pow.S: Likewise.
24040         * sysdeps/i386/fpu/e_powf.S: Likewise.
24041         * sysdeps/i386/fpu/e_powl.S: Likewise.
24042         * sysdeps/i386/fpu/e_remainder.S: Likewise.
24043         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
24044         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
24045         * sysdeps/i386/fpu/e_scalb.S: Likewise.
24046         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
24047         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
24048         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
24049         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
24050         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
24051         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
24052         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
24053         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
24054         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
24055         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
24056         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
24057         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
24058         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
24059         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
24060         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
24061         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
24062         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
24063         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
24064         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
24065         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
24066         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
24067         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
24068         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
24069         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
24070         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
24071         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
24072         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
24073         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
24074         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
24075         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
24076         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
24077         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
24078         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
24079         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
24080         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
24081         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
24082         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
24083         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
24084         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
24085         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
24086         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
24087         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
24088         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
24089         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
24090         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
24091         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
24092         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
24093         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
24094         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
24095         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
24096         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
24097         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
24098         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
24099         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
24100         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
24101         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
24102         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
24103         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
24104         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
24105         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
24106         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
24107         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
24108         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
24109         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
24110         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
24111         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
24112         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
24113         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
24114         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
24115         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
24116         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
24117         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
24118         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
24119         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
24120         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
24121         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
24122         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
24123         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
24124         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
24125         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
24126         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
24127         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
24128         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
24129         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
24130         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
24131         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
24132         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
24133         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
24134         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
24135         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
24136         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
24137         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
24138         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
24139         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
24140         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
24141         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
24142         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
24143         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
24144         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
24145         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
24146         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
24147         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
24148         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
24149         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
24150         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
24151         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
24152         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
24153         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
24154         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
24155         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
24156         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
24157         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
24158         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
24159         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
24160         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
24161         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
24162         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
24163         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
24164         (__isnanf): Likewise.
24165         (__isinf_ns): Likewise.
24166         (__isinf_nsf): Likewise.
24167         (__finite): Likewise.
24168         (__finitef): Likewise.
24169         (__ieee754_sqrt): Define as macro.
24170         (__ieee754_sqrtf): Define as macro.
24171         (__ieee754_sqrtl): Define as macro.
24172         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
24173         inlined copy.
24174         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
24175         __FINITE_MATH_ONLY__ consistent.
24176         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
24177
24178 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
24179
24180         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
24181         of rawmemchr.
24182
24183         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
24184
24185 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
24186
24187         * po/ja.po: Update from translation team.
24188
24189 2011-10-08  Roland McGrath  <roland@hack.frob.com>
24190
24191         * locale/programs/locarchive.c (prepare_address_space): New function.
24192         (create_archive, enlarge_archive, open_archive): Use it.
24193
24194         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
24195         inside [SHARED], where it is used.
24196
24197         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
24198
24199         * nss/getent.c (netgroup_keys): Remove unused variable.
24200         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
24201
24202 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
24203
24204         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
24205         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
24206         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
24207         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
24208         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
24209         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
24210         * math/Makefile (libm-calls): Add s_isinf_ns.
24211         * math/divtc3.c: Use __isinf_nsl instead of isinf.
24212         * math/multc3.c: Likewise.
24213         * math/s_casin.c: Likewise.
24214         * math/s_casinf.c: Likewise.
24215         * math/s_casinl.c: Likewise.
24216         * math/s_ccos.c: Likewise.
24217         * math/s_ccosf.c: Likewise.
24218         * math/s_ccosl.c: Likewise.
24219         * math/s_ctan.c: Likewise.
24220         * math/s_ctanf.c: Likewise.
24221         * math/s_ctanh.c: Likewise.
24222         * math/s_ctanhf.c: Likewise.
24223         * math/s_ctanhl.c: Likewise.
24224         * math/s_ctanl.c: Likewise.
24225         * math/w_fmod.c: Likewise.
24226         * math/w_fmodf.c: Likewise.
24227         * math/w_fmodl.c: Likewise.
24228         * math/w_remainder.c: Likewise.
24229         * math/w_remainderf.c: Likewise.
24230         * math/w_remainderl.c: Likewise.
24231         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
24232         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
24233         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
24234         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
24235         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
24236         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
24237         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
24238         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
24239
24240         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
24241         of the number.
24242         * stdio-common/printf_fphex.c: Likewise.
24243         * stdio-common/printf_size.c: Likewise.
24244
24245         * math/e_exp10.c: Include math_private.h using <...> not "...".
24246         * math/e_exp10f.c: Likewise.
24247         * math/e_exp10l.c: Likewise.
24248         * math/e_exp2l.c: Likewise.
24249         * math/e_j0l.c: Likewise.
24250         * math/e_j1l.c: Likewise.
24251         * math/e_jnl.c: Likewise.
24252         * math/e_lgammal_r.c: Likewise.
24253         * math/e_rem_pio2l.c: Likewise.
24254         * math/e_scalb.c: Likewise.
24255         * math/e_scalbf.c: Likewise.
24256         * math/e_scalbl.c: Likewise.
24257         * math/k_cosl.c: Likewise.
24258         * math/k_sinl.c: Likewise.
24259         * math/k_tanl.c: Likewise.
24260         * math/s_cacoshf.c: Likewise.
24261         * math/s_catan.c: Likewise.
24262         * math/s_catanf.c: Likewise.
24263         * math/s_catanh.c: Likewise.
24264         * math/s_catanhf.c: Likewise.
24265         * math/s_catanhl.c: Likewise.
24266         * math/s_catanl.c: Likewise.
24267         * math/s_ccosh.c: Likewise.
24268         * math/s_ccoshf.c: Likewise.
24269         * math/s_ccoshl.c: Likewise.
24270         * math/s_cexp.c: Likewise.
24271         * math/s_cexpf.c: Likewise.
24272         * math/s_cexpl.c: Likewise.
24273         * math/s_clog.c: Likewise.
24274         * math/s_clog10.c: Likewise.
24275         * math/s_clog10f.c: Likewise.
24276         * math/s_clog10l.c: Likewise.
24277         * math/s_clogf.c: Likewise.
24278         * math/s_clogl.c: Likewise.
24279         * math/s_csin.c: Likewise.
24280         * math/s_csinf.c: Likewise.
24281         * math/s_csinh.c: Likewise.
24282         * math/s_csinhf.c: Likewise.
24283         * math/s_csinhl.c: Likewise.
24284         * math/s_csinl.c: Likewise.
24285         * math/s_csqrt.c: Likewise.
24286         * math/s_csqrtf.c: Likewise.
24287         * math/s_csqrtl.c: Likewise.
24288         * math/s_ctan.c: Likewise.
24289         * math/s_ctanf.c: Likewise.
24290         * math/s_ctanh.c: Likewise.
24291         * math/s_ctanhf.c: Likewise.
24292         * math/s_ctanhl.c: Likewise.
24293         * math/s_ctanl.c: Likewise.
24294         * math/s_ldexp.c: Likewise.
24295         * math/s_ldexpf.c: Likewise.
24296         * math/s_ldexpl.c: Likewise.
24297         * math/s_significand.c: Likewise.
24298         * math/s_significandf.c: Likewise.
24299         * math/s_significandl.c: Likewise.
24300         * math/w_acos.c: Likewise.
24301         * math/w_acosf.c: Likewise.
24302         * math/w_acosh.c: Likewise.
24303         * math/w_acoshf.c: Likewise.
24304         * math/w_acoshl.c: Likewise.
24305         * math/w_acosl.c: Likewise.
24306         * math/w_asin.c: Likewise.
24307         * math/w_asinf.c: Likewise.
24308         * math/w_asinl.c: Likewise.
24309         * math/w_atan2.c: Likewise.
24310         * math/w_atan2f.c: Likewise.
24311         * math/w_atan2l.c: Likewise.
24312         * math/w_atanh.c: Likewise.
24313         * math/w_atanhf.c: Likewise.
24314         * math/w_atanhl.c: Likewise.
24315         * math/w_cosh.c: Likewise.
24316         * math/w_coshf.c: Likewise.
24317         * math/w_coshl.c: Likewise.
24318         * math/w_dremf.c: Likewise.
24319         * math/w_exp10.c: Likewise.
24320         * math/w_exp10f.c: Likewise.
24321         * math/w_exp10l.c: Likewise.
24322         * math/w_exp2.c: Likewise.
24323         * math/w_exp2f.c: Likewise.
24324         * math/w_fmod.c: Likewise.
24325         * math/w_fmodf.c: Likewise.
24326         * math/w_fmodl.c: Likewise.
24327         * math/w_hypot.c: Likewise.
24328         * math/w_hypotf.c: Likewise.
24329         * math/w_hypotl.c: Likewise.
24330         * math/w_j0.c: Likewise.
24331         * math/w_j0f.c: Likewise.
24332         * math/w_j0l.c: Likewise.
24333         * math/w_j1.c: Likewise.
24334         * math/w_j1f.c: Likewise.
24335         * math/w_j1l.c: Likewise.
24336         * math/w_jn.c: Likewise.
24337         * math/w_jnf.c: Likewise.
24338         * math/w_jnl.c: Likewise.
24339         * math/w_lgamma.c: Likewise.
24340         * math/w_lgamma_r.c: Likewise.
24341         * math/w_lgammaf.c: Likewise.
24342         * math/w_lgammaf_r.c: Likewise.
24343         * math/w_lgammal.c: Likewise.
24344         * math/w_lgammal_r.c: Likewise.
24345         * math/w_log.c: Likewise.
24346         * math/w_log10.c: Likewise.
24347         * math/w_log10f.c: Likewise.
24348         * math/w_log10l.c: Likewise.
24349         * math/w_log2.c: Likewise.
24350         * math/w_log2f.c: Likewise.
24351         * math/w_log2l.c: Likewise.
24352         * math/w_logf.c: Likewise.
24353         * math/w_logl.c: Likewise.
24354         * math/w_pow.c: Likewise.
24355         * math/w_powf.c: Likewise.
24356         * math/w_powl.c: Likewise.
24357         * math/w_remainder.c: Likewise.
24358         * math/w_remainderf.c: Likewise.
24359         * math/w_remainderl.c: Likewise.
24360         * math/w_scalb.c: Likewise.
24361         * math/w_scalbf.c: Likewise.
24362         * math/w_scalbl.c: Likewise.
24363         * math/w_sinh.c: Likewise.
24364         * math/w_sinhf.c: Likewise.
24365         * math/w_sinhl.c: Likewise.
24366         * math/w_sqrt.c: Likewise.
24367         * math/w_sqrtf.c: Likewise.
24368         * math/w_sqrtl.c: Likewise.
24369         * math/w_tgamma.c: Likewise.
24370         * math/w_tgammaf.c: Likewise.
24371         * math/w_tgammal.c: Likewise.
24372
24373         * po/ja.po: Update from translation team.
24374
24375 2011-09-29  Andreas Jaeger  <aj@suse.de>
24376
24377         [BZ #13179]
24378         * sunrpc/netname.c (netname2host): Fix logic.
24379
24380         [BZ #6779]
24381         [BZ #6783]
24382         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
24383         correctly.
24384         * math/w_remainder.c (__remainder): Likewise.
24385         * math/w_remainderf.c (__remainderf): Likewise.
24386         * math/libm-test.inc (remainder_test): Add test cases.
24387
24388 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24389
24390         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
24391         sdiv_qrnnd.
24392
24393 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
24394
24395         * string/test-memcmp.c: Avoid unncessary #defines.
24396         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
24397
24398 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
24399
24400         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
24401         Use new sse2 version for core i3 - i7 as it's faster
24402         than sse42 version.
24403         (bit_Prefer_PMINUB_for_stringop): New.
24404         * sysdeps/x86_64/rawmemchr.S: Update.
24405         Replace with faster SSE2 version.
24406         * sysdeps/x86_64/memrchr.S: New file.
24407         * sysdeps/x86_64/memchr.S: Update.
24408         Replace with faster SSE2 version.
24409
24410 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
24411
24412         * elf/dl-load.c (lose): Add cast to avoid warning.
24413
24414 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
24415
24416         * po/ca.po: Update from translation team.
24417
24418         * inet/getnetgrent_r.c: Hook up nscd.
24419         * nscd/Makefile (routines): Add nscd_netgroup.
24420         (nscd-modules): Add netgroupcache.
24421         (CFLAGS-netgroupcache.c): Define.
24422         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
24423         (cache_search): Add const to second parameter.
24424         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
24425         INNETGR.
24426         (dbs): Add netgrdb entry.
24427         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
24428         (verify_persistent_db): Handle netgrdb.
24429         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
24430         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
24431         GETFDNETGR.
24432         (netgroup_response_header): Define.
24433         (innetgroup_response_header): Define.
24434         (datahead): Add netgroup_response_header and innetgroup_response_header
24435         elements.
24436         * nscd/nscd.conf: Add entries for netgroup cache.
24437         * nscd/nscd.h (dbtype): Add netgrdb.
24438         (_PATH_NSCD_NETGROUP_DB): Define.
24439         (netgroup_iov_disabled): Declare.
24440         (xmalloc, xcalloc, xrealloc): Move declarations here.
24441         (cache_search): Adjust prototype.
24442         Add netgroup-related prototypes.
24443         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
24444         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
24445         (__nscd_innetgr): Declare.
24446         * nscd/selinux.c (perms): Use access_vector_t as element type and
24447         add netgroup-related initializers.
24448         * nscd/netgroupcache.c: New file.
24449         * nscd/nscd_netgroup.c: New file.
24450         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
24451         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
24452         For four parameters use innetgr.
24453         * nss/nss_files/files-init.c: Add definition and callback for netgr.
24454         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
24455         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
24456         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
24457
24458         * nscd/connections.c (register_traced_file): Don't register file
24459         for disabled databases.
24460
24461 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
24462
24463         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
24464
24465         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
24466         from tree and freeing node.
24467
24468 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
24469
24470         * nss/nsswitch.c (__nss_database_lookup): Handle
24471         nss_parse_service_list out of memory case.
24472
24473 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
24474
24475         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
24476         out of memory case.
24477
24478 2011-10-04  Andreas Schwab  <schwab@redhat.com>
24479
24480         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
24481         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
24482         pass it down.
24483         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
24484         elf_machine_rela, elf_machine_lazy_rel.
24485         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
24486         (ELF_DYNAMIC_DO_REL): Likewise.
24487         (ELF_DYNAMIC_DO_RELA): Likewise.
24488         (ELF_DYNAMIC_RELOCATE): Likewise.
24489         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
24490         to ELF_DYNAMIC_DO_REL.
24491         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
24492         (dl_main): In trace mode always set __RTLD_NOIFUNC.
24493         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
24494         elf_machine_rela.
24495         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
24496         skip_ifunc, don't call ifunc function if non-zero.
24497         (elf_machine_rela): Likewise.
24498         (elf_machine_lazy_rel): Likewise.
24499         (elf_machine_lazy_rela): Likewise.
24500         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
24501         (elf_machine_lazy_rel): Likewise.
24502         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
24503         Likewise.
24504         (elf_machine_lazy_rel): Likewise.
24505         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
24506         Likewise.
24507         (elf_machine_lazy_rel): Likewise.
24508         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
24509         (elf_machine_lazy_rel): Likewise.
24510         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
24511         (elf_machine_lazy_rel): Likewise.
24512         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
24513         (elf_machine_lazy_rel): Likewise.
24514         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
24515         (elf_machine_lazy_rel): Likewise.
24516         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
24517         (elf_machine_lazy_rel): Likewise.
24518         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
24519         (elf_machine_lazy_rel): Likewise.
24520
24521 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
24522
24523         * nss/nss_files/files-init.c (_nss_files_init): Use static
24524         initialization for all the *_traced_file variables.
24525
24526 2011-09-28  Andreas Schwab  <schwab@redhat.com>
24527
24528         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
24529
24530 2011-09-27  Roland McGrath  <roland@hack.frob.com>
24531
24532         [BZ #13226]
24533         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
24534
24535 2011-09-27  Andreas Schwab  <schwab@redhat.com>
24536
24537         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
24538         Reread the line before reparsing it.
24539
24540 2011-09-26  Andreas Schwab  <schwab@redhat.com>
24541
24542         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
24543
24544 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
24545             Maxim Kuvyrkov  <maxim@codesourcery.com>
24546             Joseph Myers  <joseph@codesourcery.com>
24547
24548         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
24549         if needed for __stack_chk_guard.
24550
24551 2011-09-19  Roland McGrath  <roland@hack.frob.com>
24552
24553         * sysdeps/posix/spawni.c (script_execute): Always define it.
24554         It will be optimized away if unused.
24555         (maybe_script_execute): New function.
24556         (__spawni): Call it.
24557
24558         * Makerules: Don't include tls.make.
24559         (config-tls): Always set to thread.
24560         * tls.make.c: File removed.
24561
24562 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
24563
24564         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
24565         * config.make.in (CPPFLAGS-config): New substituted variable.
24566
24567 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
24568
24569         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
24570
24571         [BZ #13192]
24572         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
24573         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
24574
24575 2011-09-15  Roland McGrath  <roland@hack.frob.com>
24576
24577         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
24578         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
24579         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
24580         (CALL_FAIL): Likewise.
24581         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
24582         (CALL_FAIL): Macro removed.
24583         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
24584
24585 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
24586
24587         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
24588         for __FINITE_MATH_ONLY__ == 1.
24589
24590 2011-09-15  Andreas Schwab  <schwab@redhat.com>
24591
24592         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
24593         __ieee754_sqrt instead of sqrt.
24594         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
24595         __ieee754_sqrtf instead of sqrtf.
24596         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
24597         __floorf instead of floorf.
24598         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
24599         __floorf, __truncf instead of floorf, truncf.
24600
24601 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
24602
24603         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
24604
24605         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
24606         __extern_always_inline.
24607         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
24608         32-bit.
24609
24610 2011-09-14  Andreas Schwab  <schwab@redhat.com>
24611
24612         * elf/rtld.c (dl_main): Also relocate in dependency order when
24613         doing symbol dependency testing.
24614
24615 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
24616
24617         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
24618         Always define `refsym'.
24619
24620 2011-09-13  Andreas Schwab  <schwab@redhat.com>
24621
24622         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
24623         (__FD_ELT): Renamed from __FDELT.
24624         * misc/bits/select2.h (__FD_ELT): Likewise.
24625         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
24626         __FD_MASK instead of __FDELT, __FDMASK.
24627         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
24628         Likewise.
24629         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
24630         Likewise.
24631
24632         * elf/Makefile (gen-ldd): Fix pattern.
24633
24634         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
24635         (init_tls): Likewise.
24636
24637 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
24638
24639         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
24640
24641 2011-09-12  Andreas Schwab  <schwab@redhat.com>
24642
24643         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
24644         `struct cmsghdr *' instead of `void *'.
24645         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
24646         Likewise.
24647
24648 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
24649
24650         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
24651         if non-absolute.
24652         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
24653         ldd_rewrite_script.
24654
24655 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
24656
24657         * configure.in: Remove --with-tls option.
24658         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
24659         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
24660         out in case it is missing.
24661         * sysdeps/ia64/elf/configure.in: Likewise.
24662         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
24663         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
24664         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
24665         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
24666         * sysdeps/sh/elf/configure.in: Likewise.
24667         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
24668         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
24669         * sysdeps/x86_64/elf/configure.in: Likewise.
24670         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
24671         * sysdeps/mach/hurd/tls.h: Likewise.
24672
24673         [BZ #13067]
24674         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
24675
24676         [BZ #13090]
24677         * configure.in: Fix use of AC_INIT.
24678
24679         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
24680
24681 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
24682
24683         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
24684         __set_errno.
24685         * malloc/hooks.c: Likewise.
24686
24687         [BZ #11929]
24688         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
24689         variables statically.
24690         (narenas): Initialize.
24691         (list_lock): Initialize.
24692         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
24693         initializtion of main_arena and list_lock.  Small cleanups.
24694         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
24695         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
24696         Add initializers to main_arena and mp_.
24697         (malloc_state): Remove pagesize member.  Change all users to use
24698         GLRO(dl_pagesize).
24699
24700         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
24701         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
24702         is always initialized.
24703
24704         * malloc/malloc.c: Removed unused configurations and dead code.
24705         * malloc/arena.c: Likewise.
24706         * malloc/hooks.c: Likewise.
24707         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
24708
24709         * include/tls.h: Removed.  USE___THREAD must always be defined.
24710         * bits/libc-tsd.h: Don't handle !USE___THREAD.
24711         * elf/dl-libc.c: Likewise.
24712         * elf/dl-tsd.c: Likewise.
24713         * include/errno.h: Likewise.
24714         * include/netdb.h: Likewise.
24715         * include/resolv.h: Likewise.
24716         * inet/herrno-loc.c: Likewise.
24717         * inet/herrno.c: Likewise.
24718         * malloc/arena.c: Likewise.
24719         * malloc/hooks.c: Likewise.
24720         * malloc/malloc.c: Likewise.
24721         * resolv/res-state.c: Likewise.
24722         * resolv/res_libc.c: Likewise.
24723         * sysdeps/i386/dl-machine.h: Likewise.
24724         * sysdeps/ia64/dl-machine.h: Likewise.
24725         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
24726         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
24727         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
24728         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
24729         * sysdeps/sh/dl-machine.h: Likewise.
24730         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
24731         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
24732         * sysdeps/unix/i386/sysdep.S: Likewise.
24733         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
24734         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
24735         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
24736         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
24737         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
24738         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
24739         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
24740         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
24741         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
24742         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
24743         * sysdeps/unix/x86_64/sysdep.S: Likewise.
24744         * sysdeps/x86_64/dl-machine.h: Likewise.
24745         * tls.make.c: Likewise.
24746
24747         * configure.in: Remove --with-__thread option.  Make tests for
24748         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
24749         tls_model attribute fail if no support is available.  Remove
24750         USE_IN_LIBIO.
24751         * Makeconfig: Adjust for dropped configure option.  All features are
24752         now mandatory.
24753         * Makerules: Likewise.
24754         * Versions.def: Likewise.
24755         * argp/argp-fmtstream.c: Likewise.
24756         * argp/argp-fmtstream.h: Likewise.
24757         * argp/argp-help.c: Likewise.
24758         * assert/assert.c: Likewise.
24759         * config.h.in: Likewise.
24760         * config.make.in: Likewise.
24761         * configure: Likewise.
24762         * configure.in: Likewise.
24763         * csu/Versions: Likewise.
24764         * csu/init.c: Likewise.
24765         * elf/tst-audit2.c: Likewise.
24766         * elf/tst-tls10.c: Likewise.
24767         * elf/tst-tls10.h: Likewise.
24768         * elf/tst-tls11.c: Likewise.
24769         * elf/tst-tls12.c: Likewise.
24770         * elf/tst-tls14.c: Likewise.
24771         * elf/tst-tlsmod11.c: Likewise.
24772         * elf/tst-tlsmod12.c: Likewise.
24773         * elf/tst-tlsmod13.c: Likewise.
24774         * elf/tst-tlsmod13a.c: Likewise.
24775         * elf/tst-tlsmod14a.c: Likewise.
24776         * elf/tst-tlsmod15b.c: Likewise.
24777         * elf/tst-tlsmod16a.c: Likewise.
24778         * elf/tst-tlsmod16b.c: Likewise.
24779         * elf/tst-tlsmod7.c: Likewise.
24780         * elf/tst-tlsmod8.c: Likewise.
24781         * elf/tst-tlsmod9.c: Likewise.
24782         * gmon/gmon.c: Likewise.
24783         * grp/fgetgrent_r.c: Likewise.
24784         * grp/putgrent.c: Likewise.
24785         * hurd/fopenport.c: Likewise.
24786         * include/libc-symbols.h: Likewise.
24787         * include/tls.h: Likewise.
24788         * intl/gettextP.h: Likewise.
24789         * intl/loadinfo.h: Likewise.
24790         * locale/global-locale.c: Likewise.
24791         * locale/localeinfo.h: Likewise.
24792         * mach/devstream.c: Likewise.
24793         * malloc/arena.c: Likewise.
24794         * malloc/set-freeres.c: Likewise.
24795         * misc/err.c: Likewise.
24796         * misc/getttyent.c: Likewise.
24797         * misc/mntent_r.c: Likewise.
24798         * posix/getopt.c: Likewise.
24799         * posix/wordexp.c: Likewise.
24800         * pwd/fgetpwent_r.c: Likewise.
24801         * resolv/Versions: Likewise.
24802         * resolv/res_hconf.c: Likewise.
24803         * shadow/fgetspent_r.c: Likewise.
24804         * shadow/putspent.c: Likewise.
24805         * stdio-common/printf_fphex.c: Likewise.
24806         * stdio-common/tmpfile.c: Likewise.
24807         * stdlib/abort.c: Likewise.
24808         * stdlib/fmtmsg.c: Likewise.
24809         * sunrpc/auth_unix.c: Likewise.
24810         * sunrpc/clnt_perr.c: Likewise.
24811         * sunrpc/clnt_tcp.c: Likewise.
24812         * sunrpc/clnt_udp.c: Likewise.
24813         * sunrpc/clnt_unix.c: Likewise.
24814         * sunrpc/openchild.c: Likewise.
24815         * sunrpc/svc_simple.c: Likewise.
24816         * sunrpc/svc_tcp.c: Likewise.
24817         * sunrpc/svc_udp.c: Likewise.
24818         * sunrpc/svc_unix.c: Likewise.
24819         * sunrpc/xdr.c: Likewise.
24820         * sunrpc/xdr_array.c: Likewise.
24821         * sunrpc/xdr_rec.c: Likewise.
24822         * sunrpc/xdr_ref.c: Likewise.
24823         * sunrpc/xdr_stdio.c: Likewise.
24824
24825 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
24826
24827         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
24828
24829 2011-07-03  Andreas Jaeger  <aj@suse.de>
24830
24831         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
24832         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
24833         regenerate with gen-libm-tests.pl.
24834
24835 2010-05-12  Petr Baudis  <pasky@suse.cz>
24836
24837         [BZ #11589]
24838         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
24839         around j0() zero points by switching to j1().
24840         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
24841         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
24842         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
24843         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
24844
24845 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
24846
24847         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
24848         instead of 0.
24849         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
24850         instead of 0.
24851         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
24852         Patch in part by Pavel Roskin <proski@gnu.org>.
24853
24854         [BZ #13138]
24855         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
24856         realloc.
24857         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
24858         Free memory block if necessary.
24859
24860         [BZ #12847]
24861         * libio/genops.c (INTDEF): For string streams the _lock pointer can
24862         be NULL.  Don't lock in this case.
24863
24864 2011-09-09  Roland McGrath  <roland@hack.frob.com>
24865
24866         * elf/elf.h (ELFOSABI_GNU): New macro.
24867         (ELFOSABI_LINUX): Define to that.
24868
24869 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
24870
24871         * string/strncat.c (strncat): Undef the symbol in case it has been
24872         defined in bits/string.h.
24873
24874 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
24875
24876         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
24877
24878         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
24879         link map.
24880
24881 2011-08-17  Andreas Jaeger  <aj@suse.de>
24882
24883         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
24884
24885 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
24886             Ian Lance Taylor  <iant@google.com>
24887
24888         * math/libm-test.inc (lround_test): New testcase.
24889         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
24890
24891 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
24892
24893         * Makefile: Remove support for automatic cvs check-ins.
24894         * Makerules: Likewise.
24895         * config.make.in: Likewise.
24896         * configure.in: Likewise.
24897         * intl/Makefile: Likewise.
24898         * locale/Makefile: Likewise.
24899         * po/Makefile: Likewise.
24900         * posix/Makefile: Likewise.
24901         * sysdeps/gnu/Makefile: Likewise.
24902         * sysdeps/mach/hurd/Makefile: Likewise.
24903         * sysdeps/sparc/sparc32/Makefile: Likewise.
24904
24905         [BZ #13118]
24906         * posix/Makefile (bug-regex32-ENV): Define.
24907         Patch by John Stanley <jpsinthemix@verizon.net>.
24908
24909         * misc/Makefile (headers): Add bits/select2.h.
24910         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
24911         * misc/bits/select2.h: New file.
24912         * include/bits/select2.h: New file.
24913         * debug/Makefile (routines): Add fdelt_chk.
24914         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
24915         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
24916         FD_ISSET.
24917         * debug/fdelt_chk.c: New file.
24918
24919         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
24920         * wcsmbs/test-wmemcmp.c: Likewise.
24921         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
24922         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
24923
24924 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
24925
24926         * string/Makefile (strop-tests): Add memcmp.
24927         * string/test-wmemcmp.c: New file.
24928         * string/test-memcmp.c: Add wmemcmp support.
24929
24930 2011-09-08  Roland McGrath  <roland@hack.frob.com>
24931
24932         [BZ #13153]
24933         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
24934         2011-07-19 change.
24935
24936         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
24937         garbage value in a __mach_port_mod_refs call in the cases of the
24938         task-self and thread-self ports.
24939
24940 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24941
24942         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
24943
24944 2011-09-08  Andreas Schwab  <schwab@redhat.com>
24945
24946         * elf/dl-load.c (lose): Check for non-null L.
24947
24948 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
24949
24950         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
24951
24952         * elf/dl-libc.c (dlerror_run): Pass back error code from
24953         dl_catch_error.
24954
24955         [BZ #13123]
24956         * elf/dl-load.c (lose): Free l_origin if it is valid.
24957
24958         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
24959         names.
24960         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
24961         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
24962         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
24963         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
24964         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
24965         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
24966
24967 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24968
24969         * sysdeps/powerpc/fpu/e_hypot.c: New file.
24970         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
24971         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
24972         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
24973         * sysdeps/powerpc/fpu/k_cosf.c: New file.
24974         * sysdeps/powerpc/fpu/k_sinf.c: New file.
24975         * sysdeps/powerpc/fpu/s_cosf.c: New file.
24976         * sysdeps/powerpc/fpu/s_sinf.c: New file.
24977         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
24978         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
24979
24980 2011-08-15  Alan Modra  <amodra@gmail.com>
24981
24982         [BZ #13092]
24983         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
24984         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
24985         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
24986         ppc_mcount to static-only-routines.
24987         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
24988         __mcount_internal.
24989         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
24990         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
24991
24992 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
24993
24994         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
24995         for finite and infinity parameters.
24996
24997 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
24998
24999         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
25000         and add nop instructions for throughput optimization.
25001         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
25002
25003 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
25004
25005         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
25006         aligned copy for power7 with vector-scalar instructions.
25007         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
25008
25009 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
25010
25011         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
25012         AVX check.
25013
25014 2011-09-07  Andreas Schwab  <schwab@redhat.com>
25015
25016         [BZ #13144]
25017         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
25018         last change.
25019
25020 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
25021
25022         * sysdeps/unix/sysv/linux/x86_64/init-first.c
25023         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
25024         syscall wrapper around clock_gettime in __vdso_clock_gettime.
25025         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
25026         clock_gettime.
25027
25028 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
25029
25030         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
25031         Forgot to demangle the pointer.
25032
25033         * sysdeps/i386/sysdep.h: Define atom_text_section.
25034         * sysdeps/x86_64/sysdep.h: Likewise.
25035         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
25036         section with atom_text_section.
25037         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
25038         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
25039         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
25040         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
25041         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
25042
25043         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
25044         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
25045         already be defined.  Change to take two parameters and don't assign
25046         result to variable.  Adjust all users.
25047         Define INTERNAL_GETTIME if not already defined.
25048         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
25049         call.
25050         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
25051         HAVE_CLOCK_GETTIME_VSYSCALL.
25052         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
25053
25054         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
25055         gettimeofday vsyscall, just use time.
25056
25057 2011-09-06  Andreas Schwab  <schwab@redhat.com>
25058
25059         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
25060         <errno.h>.
25061
25062 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
25063
25064         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
25065         syscall on x86-64.
25066         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
25067         syscall.
25068         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
25069         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
25070         syscall if possible.
25071
25072 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
25073
25074         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
25075         e_ident.  Don't pass to find_mapsXX.
25076         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
25077
25078 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
25079
25080         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
25081         strchr-sse2-no-bsf strrchr-sse2-no-bsf
25082         * sysdeps/x86_64/multiarch/strchr.S: Update.
25083         Check bit_slow_BSF bit.
25084         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
25085         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
25086         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
25087
25088 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
25089
25090         [BZ #13134]
25091         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
25092         before glibc 2.15.
25093         (tryshell): Define.
25094         (__spawni): Change last parameter to be flag.  Test
25095         SPAWN_XFLAGS_USE_PATH flag to use path or not.
25096         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
25097         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
25098         * posix/spawni.c: Likewise.
25099         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
25100         * posix/spawnp.c: Likewise.  Change normal version to use
25101         SPAWN_XFLAGS_USE_PATH.
25102         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
25103         SPAWN_XFLAGS_TRY_SHELL.
25104
25105         [BZ #13150]
25106         * posix/glob.h: Remove gcc 1.x support.
25107
25108         [BZ #13068]
25109         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
25110
25111 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
25112
25113         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
25114         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
25115         strrchr-sse2-bsf
25116         * sysdeps/i386/i686/multiarch/strchr.S: New file.
25117         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
25118         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
25119         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
25120         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
25121         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
25122
25123 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
25124
25125         * sysdeps/x86_64/wcscmp.S: New file.
25126
25127         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
25128         wcscmp-c wcscmp-sse2
25129         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
25130         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
25131         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
25132         * wcsmbs/wcscmp.c: Allow renaming.
25133
25134 2011-09-05  David S. Miller  <davem@davemloft.net>
25135
25136         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
25137         stack slot, rather than the struct return pointer slot.
25138         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
25139         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
25140         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
25141         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
25142
25143 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
25144
25145         * po/ja.po: Update from translation team.
25146
25147         [BZ #13144]
25148         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
25149         kernel in 64-bit binaries.
25150
25151 2011-09-01  David S. Miller  <davem@davemloft.net>
25152
25153         * elf/elf.h (HWCAP_SPARC_*): Move to..
25154         * sysdeps/sparc/sysdep.h: this new file and add new values.
25155         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
25156         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
25157         _DL_HWCAP_COUNT to 24.
25158         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
25159         entries.
25160         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
25161         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
25162         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
25163         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
25164         instead of magic constants.
25165         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
25166
25167 2011-08-31  David S. Miller  <davem@davemloft.net>
25168
25169         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
25170         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
25171         Reimplement to do errno handling inline.
25172         (SYSCALL_ERROR_HANDLER): New macro.
25173         (__SYSCALL_STRING): Do not do errno handling in asm.
25174         (__CLONE_SYSCALL_STRING): Delete.
25175         (__INTERNAL_SYSCALL_STRING): Delete.
25176         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
25177         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
25178         (PSEUDO): Reimplement to do errno handling inline.
25179         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
25180         (SYSCALL_ERROR_HANDLER): New macro.
25181         (__SYSCALL_STRING): Do not do errno handling in asm.
25182         (__CLONE_SYSCALL_STRING): Delete.
25183         (__INTERNAL_SYSCALL_STRING): Delete.
25184         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
25185         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
25186         i386.
25187         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
25188         (inline_syscall*): Add 'err' argument.
25189         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
25190         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
25191         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
25192         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
25193
25194         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
25195         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
25196
25197 2011-08-30  Andreas Schwab  <schwab@redhat.com>
25198
25199         * elf/rtld.c (dl_main): Relocate objects in dependency order.
25200
25201 2011-08-29  Jiri Olsa <jolsa@redhat.com>
25202
25203         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
25204         directive.
25205
25206 2011-08-24  David S. Miller  <davem@davemloft.net>
25207
25208         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
25209
25210 2011-08-24  Andreas Schwab  <schwab@redhat.com>
25211
25212         * elf/Makefile: Add rules to build and run unload8 test.
25213         * elf/unload8.c: New file.
25214         * elf/unload8mod1.c: New file.
25215         * elf/unload8mod1x.c: New file.
25216         * elf/unload8mod2.c: New file.
25217         * elf/unload8mod3.c: New file.
25218
25219         * elf/dl-close.c (_dl_close_worker): Reset private search list if
25220         it wasn't used.
25221
25222 2011-08-23  David S. Miller  <davem@davemloft.net>
25223
25224         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
25225         subtract stack bias.
25226         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
25227         %sp not %fp in calculations.
25228         (_JMPBUF_UNWINDS_ADJ): Likewise.
25229
25230         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
25231         (aio_suspend): Call it to force an exception region around the
25232         AIO_MISC_WAIT() invocation.
25233
25234 2011-08-23  Andreas Schwab  <schwab@redhat.com>
25235
25236         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
25237         backslash.
25238
25239 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
25240
25241         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
25242         protection macro.
25243         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
25244         and <dl-machine.h>.
25245         (Elf64_FuncDesc): Remove.
25246
25247 2011-08-22  David S. Miller  <davem@davemloft.net>
25248
25249         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
25250         sigaltstack check, add missing cfi directives.
25251         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
25252         missing cfi directives, and sigaltstack handling.
25253
25254 2011-08-16  Andreas Schwab  <schwab@redhat.com>
25255
25256         [BZ #11724]
25257         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
25258         object is seen twice.
25259         * elf/dl-fini.c (_dl_sort_fini): Likewise.
25260
25261         * elf/Makefile (distribute): Add tst-initorder2.c.
25262         (tests): Add tst-initorder2.
25263         (modules-names): Add tst-initorder2a tst-initorder2b
25264         tst-initorder2c tst-initorder2d.  Add rules to build them.
25265         ($(objpfx)tst-initorder2.out): New rule.
25266         * elf/tst-initorder2.c: New file.
25267         * elf/tst-initorder2.exp: New file.
25268
25269 2011-08-22  Andreas Schwab  <schwab@redhat.com>
25270
25271         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
25272
25273         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
25274         dependencies back to end of function.
25275
25276         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
25277         $(elfobjdir)/ld.so.
25278
25279 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
25280
25281         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
25282         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
25283         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
25284         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
25285         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
25286         of __vdso_gettimeofday.
25287         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
25288         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
25289         attribute_hidden.
25290         (_libc_vdso_platform_setup): Remove initialization of
25291         __vdso_gettimeofday and __vdso_time.
25292
25293 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
25294
25295         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
25296         and fgetc_unlocked.
25297         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
25298         getc_unlocked.
25299
25300         * elf/dl-open.c (add_to_global): Report additions to the global scope
25301         for LD_DEBUG=scopes.
25302         (dl_open_worker): Also print scope of newly loaded dependencies.
25303         (_dl_show_scope): Indicate if there is no scope.
25304
25305         [BZ #13114]
25306         * stdio-common/Makefile (tests): Add bug24.
25307         * stdio-common/bug24.c: New file.
25308
25309 2011-08-19  Andreas Jaeger  <aj@suse.de>
25310
25311         [BZ #13114]
25312         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
25313         non-existant file when using close-on-exec mode.
25314
25315 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
25316
25317         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
25318         the very first instruction.
25319
25320         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
25321         the CFI state in the end.
25322         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
25323         inclusion of dl-trampoline.h.
25324         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
25325
25326 2011-08-19  Andreas Schwab  <schwab@redhat.com>
25327
25328         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
25329         expectations for long double.
25330
25331         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
25332         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
25333
25334 2011-08-14  David S. Miller  <davem@davemloft.net>
25335
25336         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
25337         artificual limit depends upon the system page size.
25338
25339 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
25340
25341         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
25342         * resolv/Makefile: Define CFLAGS-libresolv.
25343
25344 2011-08-17  Andreas Schwab  <schwab@redhat.com>
25345
25346         * nss/makedb.c (compute_tables): Make variables used in nested
25347         function static.
25348
25349 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
25350
25351         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
25352         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
25353         if buffer was too small.
25354
25355         * elf/pldd.c (main): Attach to all threads in the process.
25356         Rewrite /proc handling to use *at functions.
25357
25358 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
25359
25360         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
25361         specifies first scope to show.
25362         (dl_open_worker): Update callers.  Move printing scope of new
25363         object to before the relocation.
25364         * elf/rtld.c (dl_main): Update _dl_show_scope call.
25365         * sysdeps/generic/ldsodefs.h: Update declaration.
25366
25367         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
25368         string for the scope number.
25369
25370 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
25371
25372         * nscd/servicescache.c (cache_addserv): Make sure written is always
25373         initialized.
25374
25375 2011-08-14  Roland McGrath  <roland@hack.frob.com>
25376
25377         * sysdeps/i386/i486/bits/atomic.h
25378         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
25379         statement expression, so as to suppress "set but not used" warning.
25380         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
25381
25382         * string/strncat.c (STRNCAT): Use prototype definition.
25383
25384         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
25385         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
25386         -Iprograms here.
25387         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
25388         (localedef-modules): Add localedef.
25389         (locale-modules): Add locale.
25390
25391         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
25392         * elf/rtld.c (dl_main): Invert order of assignment in last change,
25393         to avoid a warning.
25394
25395 2011-08-14  David S. Miller  <davem@davemloft.net>
25396
25397         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
25398         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
25399
25400 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
25401
25402         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
25403         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
25404         * elf/rtld.c (dl_main): Set l_name of vDSO.
25405         Call _dl_show_scope when DL_DEBUG_SCOPES.
25406         (process_dl_debug): Recognize scopes flag and also set it for all.
25407         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
25408         Declare _dl_show_scope.
25409
25410         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
25411         (do_dlopen): Pass caller_dlopen to dl_open.
25412         (__libc_dlopen_mode): Initialize caller_dlopen.
25413
25414         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
25415         of libc.  Make tolower call locale-independent.  Optimize a bit by
25416         using isdigit instead of isalnum.
25417         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
25418
25419 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
25420
25421         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
25422         was a dependency or dynamically loaded.
25423
25424 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
25425
25426         * intl/l10nflist.c: Allow architecture-specific pop function.
25427         * sysdeps/x86_64/l10nflist.c: New file.
25428
25429         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
25430         classification.
25431
25432 2011-08-10  Andreas Schwab  <schwab@redhat.com>
25433
25434         * include/dirent.h: Add libc_hidden_proto for scandirat and
25435         scandirat64.  Don't declare __scandirat64.
25436         * dirent/scandirat.c: Add libc_hidden_def.
25437         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
25438         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
25439
25440 2011-08-10  David S. Miller  <davem@davemloft.net>
25441
25442         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
25443         enum.
25444         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
25445         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
25446         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
25447
25448 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
25449
25450         * Versions.def [libc]: Add GLIBC_2.15.
25451         * dirent/Makefile (routines): Add scandirat and scandirat64.
25452         * dirent/Versions [libc]: Export scandirat and scandirat64 for
25453         GLIBC_2.15.
25454         * dirent/dirent.h: Declare scandirat and scandirat64.
25455         * dirent/scandirat.c: New file.
25456         * dirent/scandirat64.c: New file.
25457         * sysdeps/wordsize-64/scandirat.c: New file.
25458         * sysdeps/wordsize-64/scandirat64.c: New file.
25459         * dirent/opendir.c: Define opendirat.
25460         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
25461         using scandirat.
25462         * dirent/scandir64.c: Adjust for scandir.c change.
25463         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
25464         __scandirat64, and __scandir_cancel_handler.
25465         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
25466         additional parameter and use openat instead of open (outside of ld.so).
25467         Add new __opendir as wrapper around __opendirat.
25468         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
25469         here without requiring old scandirat implementation.
25470
25471 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
25472
25473         * dirent/scandir.c (cancel_handler): Renamed to
25474         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
25475         defined.  Adjust users.
25476         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
25477         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
25478
25479 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
25480
25481         * string/test-string.h (IMPL): Use __STRING to expand name and then
25482         stringify it.
25483
25484         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
25485         of cleanups.
25486
25487 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
25488
25489         * string/Makefile: Update.
25490         (strop-tests): Append strncat.
25491         * string/test-wcscmp.c: New file.
25492         New comprehensive test for wcscmp.
25493         * string/test-strcmp.c: Update.
25494         (WIDE): New define.
25495
25496 2011-07-22  Andreas Schwab  <schwab@redhat.com>
25497
25498         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
25499         line.
25500
25501 2011-07-26  Andreas Schwab  <schwab@redhat.com>
25502
25503         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
25504         encoding to ACE if AI_IDN.
25505
25506 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
25507
25508         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
25509         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
25510
25511 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
25512
25513         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
25514         Fix overflow bug in strncat.
25515         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
25516
25517         * string/test-strncat.c: Update.
25518         Add new tests for checking overflow bugs.
25519
25520 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
25521
25522         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
25523         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
25524         * sysdeps/i386/i686/multiarch/strcat.S: New file.
25525         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
25526         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
25527         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
25528         * sysdeps/i386/i686/multiarch/strncat.S: New file.
25529         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
25530         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
25531
25532         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
25533         (USE_AS_STRCAT): Define.
25534         Add strcat and strncat support.
25535         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
25536
25537 2011-07-25  Andreas Schwab  <schwab@redhat.com>
25538
25539         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
25540         __n bigger than INT_MAX+1.
25541         (__strncmp_g): Likewise.
25542
25543 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
25544
25545         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
25546         * libio/stido.h: Likewise.
25547
25548         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
25549         (AF_NFC): Define.
25550         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
25551         (AF_NFC): Define.
25552
25553         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
25554         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
25555         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
25556         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
25557         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
25558
25559         [BZ #13021]
25560         * scripts/test-installation.pl: Don't expect libnss_test1 to be
25561         installed.
25562
25563         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
25564         typo.
25565         (_dl_x86_64_save_sse): Likewise.
25566
25567 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
25568
25569         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
25570         OSXSAVE.
25571         (_dl_x86_64_save_sse): Likewise.
25572
25573         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
25574
25575         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
25576
25577 2011-07-21  Andreas Schwab  <schwab@redhat.com>
25578
25579         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
25580         change.
25581         (_dl_x86_64_save_sse): Use correct AVX check.
25582
25583 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
25584
25585         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
25586         bug in strncpy/strncat.
25587         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
25588
25589 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
25590
25591         * string/tester.c (test_strcat): Add tests for different alignments
25592         of source and destination.
25593         (test_strncat): Likewise.
25594
25595 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
25596
25597         [BZ #12852]
25598         * posix/glob.c (glob): Check passed in values before using them in
25599         expressions to avoid some overflows.
25600         (glob_in_dir): Likewise.
25601
25602         [BZ #13007]
25603         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
25604         check for AVX enablement so that we don't crash with old kernels and
25605         new hardware.
25606         * elf/tst-audit4.c: Add same checks here.
25607         * elf/tst-audit6.c: Likewise.
25608
25609         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
25610
25611 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
25612
25613         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
25614
25615 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
25616
25617         * po/cs.po: Update from translation team.
25618         * po/bg.po: Likewise.
25619
25620 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
25621
25622         * misc/sys/cdefs.h: Add support for const attribute.
25623         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
25624         to gnu_dev_{major,minor,makedev} functions.
25625
25626 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
25627
25628         * intl/dcigettext.c (get_output_charset): Add missing bracket.
25629
25630 2011-07-20  Andreas Schwab  <schwab@redhat.com>
25631
25632         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
25633         strlen results.
25634
25635 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25636
25637         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
25638         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
25639         register in order to avoid conflicts with the soft frame pointer
25640         being held in r11 when necessary.
25641         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
25642         (INTERNAL_VSYSCALL_NCS): Likewise.
25643
25644 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
25645
25646         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
25647         * elf/dl-fini.c (_dl_fini): Adjust caller.
25648         * elf/dl-close.c (_dl_close_worker): Likewise.
25649         * sysdeps/generic/ldsodefs.h: Adjust declaration.
25650
25651 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
25652
25653         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
25654         "aux_cache->nlibs < 0".
25655
25656         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
25657         in the reload-count case.
25658
25659 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
25660
25661         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
25662         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
25663         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
25664         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
25665         * sysdeps/x86_64/multiarch/strcat.S: New file.
25666         * sysdeps/x86_64/multiarch/strncat.S: New file.
25667         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
25668         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
25669         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
25670         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
25671         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
25672         (USE_AS_STRCAT): Define.
25673         Add strcat and strncat support.
25674         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
25675         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
25676         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
25677         * string/strncat.c: Update.
25678         (USE_AS_STRNCAT): Define.
25679         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
25680         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
25681         and i7.
25682         * sysdeps/x86_64/multiarch/init-arch.h
25683         (bit_Prefer_PMINUB_for_stringop): New.
25684         (index_Prefer_PMINUB_for_stringop): Likewise.
25685         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
25686         bit_Prefer_PMINUB_for_stringop.
25687
25688 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
25689
25690         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
25691         buffer64.
25692         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
25693         of casting of buffer.
25694         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
25695         buffer32 and buffer64.
25696         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
25697         writes instead of casting of buffer.
25698         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
25699         buffer32.
25700         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
25701         casting of buffer.
25702
25703 2011-07-19  Andreas Schwab  <schwab@redhat.com>
25704
25705         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
25706
25707 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
25708
25709         * nscd/nscd.c (termination_handler): Don't do anything for a database
25710         if it has not yet been initialized.
25711
25712 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
25713
25714         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
25715
25716 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
25717
25718         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
25719
25720 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
25721
25722         * po/nl.po: Update from translation team.
25723         * po/sv.po: Likewise.
25724
25725 2011-07-16  Roland McGrath  <roland@hack.frob.com>
25726
25727         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
25728         now disallowed by GCC.
25729
25730         * configure.in (use-default-link): Default to yes if a test -shared
25731         link meets our qualifications.
25732         * configure: Regenerated.
25733
25734         * config.make.in (output-format): New variable.
25735         * configure.in: Check for ld --print-output-format support.
25736         * configure: Regenerated.
25737         * Makerules ($(common-objpfx)format.lds)
25738         [$(output-format) != unknown]: Just use $(output-format),
25739         instead of the linker-script munging.
25740
25741 2011-07-14  Roland McGrath  <roland@hack.frob.com>
25742
25743         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
25744         of $(common-objpfx)shlib.lds.
25745         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
25746
25747         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
25748         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
25749
25750         * configure.in (-z relro check): Adjust test code to add a large
25751         writable data section after it.
25752         * configure: Regenerated.
25753
25754 2011-07-11  Roland McGrath  <roland@hack.frob.com>
25755
25756         * configure.in (-z relro check): Fix test code to make the variable
25757         truly const.
25758         * configure: Regenerated.
25759
25760 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
25761
25762         * nscd/nscd.h (struct traced_file): Define.
25763         (struct database_dyn): Remove inotify_descr, reset_res, and filename
25764         elements.  Add traced_files.
25765         (inotify_fd): Declare.
25766         (register_traced_file): Declare.
25767         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
25768         (inotify_fd): Export.
25769         (resolv_conf_descr): Remove.
25770         (nscd_init): Move inotify descriptor creation to main.
25771         Don't register files for notification here.
25772         (register_traced_file): New function.
25773         (invalidate_cache): Don't use reset_res to determine whether to call
25774         res_init, go through the list of registered files.
25775         (main_loop_poll): The inotify descriptors are now stored in the
25776         structures for the traced files.
25777         (main_loop_epoll): Likewise
25778         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
25779         to __nss_disable_nscd.
25780         * nscd/cache.c (prune_cache): There is no single inotify descriptor
25781         for a database anymore.  Check the records for all the registered
25782         files instead.
25783         * nss/Makefile (libnss_files-routines): Add files-init.
25784         (libnss_db-routines): Add db-init.
25785         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
25786         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
25787         * nss/nss_db/db-init.c: New file.
25788         * nss/nss_files/files-init.c: New file.
25789         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
25790         __nss_lookup_function.
25791         (__nss_lookup_function): Call nss_load_library.
25792         (nss_load_all_libraries): New function.
25793         (__nss_disable_nscd): Take parameter with callback function for files
25794         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
25795         used for the cached services.
25796         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
25797         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
25798         options for features to all the files in nscd.
25799
25800         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
25801
25802 2011-07-10  Roland McGrath  <roland@hack.frob.com>
25803
25804         * csu/elf-init.c (__libc_csu_init): Comment typo.
25805
25806 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
25807
25808         * po/pl.po: Update from translation team.
25809         * po/ja.po: Likewise.
25810         * po/ru.po: Likewise.
25811         * po/ko.po: Likewise.
25812         * po/fr.po: Likewise.
25813
25814 2011-07-09  Roland McGrath  <roland@hack.frob.com>
25815
25816         * configure.in (.ctors/.dtors header and trailer check):
25817         Use an empirical test on a built program.
25818         * configure: Regenerated.
25819
25820         * configure.in (-z relro check): Use an empirical test on a built DSO.
25821         Detect, but do not require, on ia64.
25822         * configure: Regenerated.
25823
25824         * configure.in (READELF): Find it with AC_CHECK_TOOL.
25825         Update tests that use readelf to use $READELF instead.
25826         * configure: Regenerated.
25827
25828 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
25829
25830         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
25831         if the result is not used.
25832
25833 2011-07-05  Andreas Jaeger  <aj@suse.de>
25834
25835         [BZ#9696]
25836         * stdlib/tst-strtod.c: Add testcase.
25837
25838 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
25839
25840         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
25841         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
25842         The latter has a higher limit.  Take additional parameter to pass to
25843         the new function.
25844         (__pathconf): Pass file to __statfs_link_max.
25845         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
25846         __statfs_link_max.
25847         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
25848         __statfs_link_max.
25849
25850         [BZ #12868]
25851         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
25852         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
25853         Handle Lustre.
25854         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
25855         (__statfs_filesize_max): Likewise.
25856         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
25857
25858 2011-07-05  Andreas Jaeger  <aj@suse.de>
25859
25860         * resolv/res_comp.c (dn_skipname): Remove unused variable.
25861
25862 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
25863
25864         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
25865         `status' variable.
25866         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
25867         Likewise.
25868
25869 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
25870
25871         * Makefile (strop-tests): Add strncat.
25872         * string/test-strncat.c: New file.
25873
25874 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
25875
25876         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
25877
25878 2011-06-21  Andreas Jaeger  <aj@suse.de>
25879
25880         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
25881         Copy rule from iconvdata/Makefile.
25882
25883 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
25884
25885         [BZ #12922]
25886         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
25887         but no long options are defined, just return 'W'.
25888
25889 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
25890
25891         [BZ #9696]
25892         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
25893
25894 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
25895
25896         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
25897         netgroups to read.
25898         (innetgr): Likewise.
25899
25900 2011-07-05  Roland McGrath  <roland@hack.frob.com>
25901
25902         * config.make.in (install_root): Default to $(DESTDIR).
25903
25904 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
25905
25906         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
25907
25908 2011-07-02  Roland McGrath  <roland@hack.frob.com>
25909
25910         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
25911
25912         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
25913         containing directory rather than embedding absolute directory names.
25914
25915         * scripts/check-local-headers.sh: Rewritten using awk.
25916         Match by word, not by line.  Print error messages for matches.
25917         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
25918
25919         * Makerules [shlib-lds-flags empty]:
25920         ($(common-objpfx)libc_pic.opts): New target.
25921         ($(common-objpfx)libc_pic.os.clean): New target.
25922         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
25923
25924         * config.make.in (OBJCOPY): New variable.
25925         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
25926         * configure: Regenerated.
25927
25928         * config.make.in (use-default-link): New variable.
25929         * configure.in (use_default_link): Grok --with-default-link to set it.
25930         * configure: Regenerated.
25931         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
25932         (shlib-lds, shlib-lds-flags): Define to empty.
25933
25934         * Makerules (shlib-lds): New variable.
25935         (shlib-lds-flags): New variable.
25936         (build-shlib, build-moduile, build-module-asneeded): Use it.
25937         ($(common-objpfx)libc.so): Use $(shlib-lds).
25938         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
25939         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
25940
25941         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
25942         DT_FLAGS/DT_FLAGS_1 with zero flags.
25943
25944         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
25945         linker script munging.
25946
25947 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
25948
25949         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
25950         as 128-bit value.
25951         * crypt/sha512.c (sha512_process_block): Perform total addition using
25952         128-bit if possible.
25953         (__sha512_finish_ctx): Likewise.
25954         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
25955         as 64-bit value.
25956         * crypt/sha256.c (SWAP64): Define.
25957         (sha256_process_block): Perform total addition using 64-bit if
25958         possible.
25959         (__sha256_finish_ctx): Likewise.
25960
25961 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
25962
25963         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
25964         * nscd/initgrcache.c (addinitgroupsX): Likewise.
25965         * nscd/hstcache.c (cache_addhst): Likewise.
25966         * nscd/grpcache.c (cache_addgr): Likewise.
25967         * nscd/aicache.c (addhstaiX): Likewise
25968         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
25969
25970 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
25971
25972         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
25973         * nscd/initgrcache.c (addinitgroupsX): Likewise.
25974         * nscd/hstcache.c (cache_addhst): Likewise.
25975         * nscd/grpcache.c (cache_addgr): Likewise.
25976         * nscd/aicache.c (addhstaiX): Likewise
25977
25978 2011-07-01  Andreas Schwab  <schwab@redhat.com>
25979
25980         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
25981         domain only when needed.
25982
25983 2011-06-30  Andreas Schwab  <schwab@redhat.com>
25984
25985         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
25986         is always restored.
25987
25988 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
25989
25990         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
25991         are re-adding the entry.
25992         * nscd/servicescache.c (cache_addserv): Likewise.
25993
25994 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
25995
25996         * sysdeps/generic/dl-irel.h: fix protection against multiple
25997         inclusions.
25998         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
25999
26000 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
26001
26002         [BZ #12935]
26003         * malloc/memusage.sh: Fix quoting in message.
26004         * debug/xtrace.sh: Likewise.
26005
26006         * configure.in: Remove support for --experimental-malloc option, make
26007         it the default.
26008         * config.make.in: Likewise.
26009         * malloc/Makefile: Likewise.
26010
26011 2011-06-27  Andreas Schwab  <schwab@redhat.com>
26012
26013         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
26014         two-byte characters.
26015
26016 2011-06-27  Roland McGrath  <roland@hack.frob.com>
26017
26018         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
26019         AC_CACHE_CHECK invocation.
26020         * configure: Regenerated.
26021
26022         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
26023
26024 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
26025
26026         [BZ #12350]
26027         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
26028         bit from old_res_options.
26029
26030         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
26031
26032         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
26033         value type for setfct.
26034
26035 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
26036
26037         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
26038         __gettimeofday instead of gettimeofday.
26039
26040 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
26041
26042         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
26043
26044 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
26045
26046         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
26047
26048         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
26049         info.
26050
26051 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
26052
26053         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
26054         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
26055         strcpy-sse2-unaligned strncpy-sse2-unaligned
26056         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
26057         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
26058         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
26059         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
26060         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
26061         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
26062         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
26063         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
26064         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
26065         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
26066         (STRCPY): Support SSE2 and SSSE3 versions.
26067
26068 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
26069
26070         [BZ #12874]
26071         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
26072         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
26073         kernels which artificially limit size of requests.
26074
26075 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
26076
26077         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
26078         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
26079         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
26080         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
26081         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
26082         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
26083         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
26084         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
26085         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
26086         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
26087         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
26088         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
26089         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
26090         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
26091         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
26092         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
26093         Enable unaligned load optimization for Intel Core i3, i5 and i7
26094         processors.
26095         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
26096         Define.
26097         (index_Fast_Unaligned_Load): Define.
26098         (HAS_FAST_UNALIGNED_LOAD): Define.
26099
26100 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
26101
26102         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
26103
26104 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
26105
26106         [BZ #12907]
26107         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
26108         until it is clear that the information is realy needed.
26109         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
26110
26111 2011-06-22  Andreas Schwab  <schwab@redhat.com>
26112
26113         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
26114
26115 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
26116
26117         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
26118         /sys/devices/system/cpu/online if it is usable.
26119
26120         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
26121         reading the information from the /proc filesystem to once a second.
26122
26123 2011-06-21  Andreas Jaeger  <aj@suse.de>
26124
26125         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
26126         NULL after inclusion of kernel headers.
26127
26128 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
26129
26130         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
26131         calls to internal_setent.
26132
26133         [BZ #12885]
26134         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
26135         addresses using gethostbyname4_r ignore IPv4 addresses.
26136
26137         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
26138         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
26139
26140         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
26141
26142 2011-06-20  David S. Miller  <davem@davemloft.net>
26143
26144         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
26145         inclusions.
26146         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
26147
26148         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
26149         (elf_irel): Use it.
26150         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
26151         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
26152         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
26153         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
26154         * sysdeps/x86_64/dl-irel.h: Likewise.
26155
26156         * elf/dl-runtime.c: Use elf_ifunc_invoke.
26157         * elf/dl-sym.c: Likewise.
26158
26159 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
26160
26161         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
26162         need to dereference resplen2.
26163
26164 2011-06-14  Andreas Schwab  <schwab@redhat.com>
26165
26166         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
26167
26168 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
26169
26170         * Makeconfig: Define vardbdir and inst_vardbdir.
26171         * nss/Makefile: Add rules to install db-Makefile.
26172
26173         * nss/nss_db/db-XXX.c: Cleanup.
26174
26175         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
26176         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
26177         GLIBC_PRIVATE.
26178         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
26179         * nss/makedb.c: Implement -g option to specify that value strings
26180         are generated and should not be added to table iterated over for
26181         get*ent calls.
26182         * nss/nss_db/db-initgroups.c: New file.
26183
26184         * nss/getent.c: Add support for initgroups lookups through getgrouplist
26185         interface.
26186
26187         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
26188         (internal_getgrouplist): Adjust to name change.
26189         Update use_initgroups_entry if this is not the first call.
26190         * nss/databases.def: Add initgroups entry.
26191
26192         * nss/makedb.c (compute_tables): Check result of multiple hash table
26193         sizes to minimize maximum chain length.
26194
26195 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
26196
26197         * Versions.def: Add entry for libnss_db.
26198         * shlib-versions: Likewise.
26199         * nss/Makefile: Add rules to build libnss_db.
26200         * nss/Versions: Add libnss_db information.  Organize libnss_files
26201         entries better.
26202         * nss/db-Makefile: Add gshadow support.  Change rules for the new
26203         makedb progra.  Some minor improvements to generate smaller files.
26204         * nss/nss_db/nss_db.h: Move NSS database header data structures to
26205         here from...
26206         * nss/makedb.c: ...here.
26207         Improve database format to be smaller and require less memory at
26208         runtime.
26209         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
26210         db anymore.
26211         * nss/nss_db/db-netgrp.c: Likewise.
26212         * nss/nss_db/db-open.c: Likewise.
26213         * nss/nss_files/flies-XXX.x: Adjust comments.
26214         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
26215         * nss/nss_files/files-grp.c: Likewise.
26216         * nss/nss_files/files-hosts.c: Likewise.
26217         * nss/nss_files/files-network.c: Likewise.
26218         * nss/nss_files/files-proto.c: Likewise.
26219         * nss/nss_files/files-pwd.c: Likewise.
26220         * nss/nss_files/files-rpc.c: Likewise.
26221         * nss/nss_files/files-service.c: Likewise.
26222         * nss/nss_files/files-sgrp.c: Likewise.
26223         * nss/nss_files/files-spwd.c: Likewise.
26224         * nss/nss_db/db-alias.c: Removed.
26225         * nss/nss_db/dummy-db.h: Removed.
26226
26227 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
26228
26229         * nss/makedb.c: Rewritten to not use database library.
26230         * nss/Makefile: Update to build new makedb program.
26231
26232 2011-06-14  Andreas Jaeger  <aj@suse.de>
26233
26234         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
26235         memset declaration.
26236
26237 2011-06-10  Andreas Schwab  <schwab@redhat.com>
26238
26239         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
26240         tmpbuf.
26241
26242 2011-06-10  Roland McGrath  <roland@hack.frob.com>
26243
26244         * Makerules (shlib.lds): Fail if the linker script comes out empty.
26245         * elf/Makefile ($(objpfx)ld.so): Likewise.
26246
26247         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
26248         Don't list ld.so twice in dependencies.
26249
26250         * posix/bug-regex31.c: Include <stdlib.h>.
26251
26252         * nscd/hstcache.c (cache_addhst): Remove unused variable.
26253
26254         * nis/nss_compat/compat-spwd.c
26255         (getspent_next_nss_netgr): Remove unused variable.
26256         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
26257
26258         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
26259         nonmembers" output to use the right array.
26260
26261         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
26262
26263         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
26264
26265         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
26266         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
26267         * catgets/gencat.c (read_input_file): Likewise.
26268         * locale/programs/locarchive.c (enlarge_archive): Likewise.
26269
26270         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
26271         variable definition inside #if's controlling its use.
26272
26273         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
26274
26275         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
26276
26277         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
26278
26279         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
26280         unreachable code.
26281
26282         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
26283
26284         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
26285         * configure: Regenerated.
26286
26287         * Makerules: Revert last change.
26288         * elf/Makefile: Likewise.
26289
26290 2011-06-09  Roland McGrath  <roland@hack.frob.com>
26291
26292         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
26293         * elf/Makefile ($(objpfx)librtld.os): Likewise.
26294         (reloc-link): Likewise.
26295
26296 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
26297
26298         * elf/Makefile: Add rules to build pldd.
26299         * elf/pldd.c: New file.
26300         * elf/pldd-xx.c: New file.
26301
26302 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
26303
26304         * version.h: Update for 2.15 development version.
26305
26306 2011-06-07  David S. Miller  <davem@davemloft.net>
26307
26308         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
26309         ifuncs.
26310         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
26311         elf_machine_lazy_rel): Likewise.
26312         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
26313         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
26314         elf_machine_lazy_rel): Likewise.
26315         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
26316         dl_hwcap via passed in argument.
26317         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
26318         Likewise.
26319
26320 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26321
26322         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
26323
26324 2011-06-06  Roland McGrath  <roland@hack.frob.com>
26325
26326         [BZ #12849]
26327         * manual/fdl-1.1.texi: New file, verbatim from:
26328         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
26329         * manual/lgpl-2.1.texi: New file, verbatim from:
26330         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
26331         * manual/Makefile (licenses): New variable, list those new file names.
26332         (texis): Use it.
26333         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
26334
26335         * manual/fdl.texi: File removed.
26336         * manual/lesser.texi: File removed.
26337         * manual/libc.texinfo (Copying, Documentation License):
26338         Use new @include file names, put @appendix directive before @include.
26339
26340 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
26341
26342         [BZ #12841]
26343         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
26344         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
26345         (mq_open): Add __NTH.
26346
26347 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
26348
26349         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
26350         Assume Intel Core i3/i5/i7 processor if AVX is available.
26351
26352 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
26353
26354         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
26355         typo.
26356
26357 2011-05-31  Andreas Schwab  <schwab@redhat.com>
26358
26359         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
26360         memory.  Use alloca_account.  Fix memory leak when retrying.
26361
26362 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
26363
26364         * version.h (RELEASE): Bump for 2.14 release.
26365         * include/features.h (__GLIBC_MINOR__): Bump to 14.
26366
26367         * config.make.in (RANLIB): Remove entry.
26368
26369 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
26370
26371         * po/Makefile (po-sed-cmd): Add ksh to extensions.
26372         (libc.pot): Work around missing support for .ksh extension in xgettext.
26373
26374         [BZ #12684]
26375         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
26376         if both request failed.
26377         (send_dg): In case of server errors clear resplen or *resplen2.
26378
26379         [BZ #12454]
26380         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
26381         when there are multiple maps.
26382         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
26383         (_dl_fini): Remove test here.
26384
26385         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
26386
26387 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
26388
26389         [BZ #12350]
26390         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
26391         bit from old_res_options.
26392         (gaih_inet): Likewise.
26393
26394         [BZ #11099]
26395         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
26396         as signed.
26397
26398         * resolv/res_init.c (res_setoptions): Make the code more compact.
26399
26400         [BZ #11558]
26401         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
26402         set RES_USEVC.
26403
26404         [BZ #11634]
26405         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
26406
26407         * malloc/malloc.h: Mark malloc hook variables as deprecated.
26408
26409         [BZ #11781]
26410         * malloc/malloc.h: Declare malloc hook variables as volatile.
26411
26412         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
26413         in last patch.
26414
26415         [BZ #11799]
26416         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
26417         raise in the comment.
26418         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
26419         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
26420         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
26421
26422 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
26423
26424         [BZ #12811]
26425         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
26426         grow the buffers more if it already has to be sufficient.
26427         (build_wcs_upper_buffer): Likewise.
26428         * posix/regexec.c (check_matching): Likewise.
26429         (clean_state_log_if_needed): Likewise.
26430         (extend_buffers): Don't enlarge buffers beyond size of the input
26431         buffer.
26432         Patches mostly by Emil Wojak <emil@wojak.eu>.
26433         * posix/bug-regex32.c: New file.
26434         * posix/Makefile (tests): Add bug-regex32.
26435
26436         * locale/findlocale.c (_nl_find_locale): Return right away if
26437         _nl_explode_name failed.
26438         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
26439
26440         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
26441
26442         * debug/xtrace.sh: Unify messages.
26443         * malloc/memusage.sh: Likewise.
26444
26445         [BZ #12813]
26446         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
26447         time symbol from vDSO.  Substitute with vsyscall if not available.
26448         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
26449         __vdso_time.
26450
26451         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
26452         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
26453         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
26454         Add sendmmsg and internal_sendmmsg.
26455         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
26456         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
26457         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
26458
26459         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
26460         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
26461         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
26462
26463 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
26464
26465         [BZ #12813]
26466         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
26467         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
26468         available.
26469         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
26470         __vdso_getcpu.
26471
26472         [BZ #12814]
26473         * iconvdata/Makefile (tests): Add bug-iconv9.
26474         * iconvdata/bug-iconv9.c: New file.
26475
26476 2011-05-27  Andreas Schwab  <schwab@redhat.com>
26477
26478         [BZ #12814]
26479         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
26480
26481 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
26482
26483         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
26484         (struct user_regs_struct): Change intcs field back to cs.
26485
26486 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
26487
26488         * po/ja.po: Update from translation team.
26489
26490 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
26491
26492         [BZ #12795]
26493         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
26494         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
26495
26496 2011-05-20  Andreas Schwab  <schwab@redhat.com>
26497
26498         * stdlib/longlong.h: Update from GCC.
26499
26500 2011-05-23  Andreas Schwab  <schwab@redhat.com>
26501
26502         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
26503         parameter name.
26504         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
26505         Add parameter name.
26506         (__sysconf): Pass it down.
26507
26508 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
26509
26510         [BZ #12671]
26511         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
26512         some situations.
26513         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
26514         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
26515         add in in __libc_use_alloca calls.  Adjust callers.
26516         (glob): Use malloc in some situations.
26517
26518         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
26519         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
26520         pltexit.
26521
26522 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
26523
26524         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
26525         and CLOCK_BOOTTIME_ALARM.
26526
26527         [BZ #12782]
26528         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
26529         is returned.
26530
26531         * string/_strerror.c (__strerror_r): Print negative errors as signed
26532         numbers.
26533
26534         [BZ #12777]
26535         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
26536         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
26537         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
26538
26539         * configure.in: Fix typo in redirection and correct removal of test
26540         files in two cases.
26541
26542         [BZ #12788]
26543         * locale/setlocale.c (new_composite_name): Fix test to check for
26544         identical name of all categories.
26545
26546         [BZ #12792]
26547         * libio/filedoalloc.c (local_isatty): New function.
26548         (_IO_file_doallocate): Use local_isatty.
26549         * stdio-common/perror.c (perror): In case a new stream is used
26550         forward the stream error.
26551         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
26552         error flag.
26553
26554 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
26555
26556         [BZ #11869]
26557         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
26558         alloca.
26559         * include/alloca.h (extend_alloca_account): Define.
26560
26561         [BZ #11857]
26562         * posix/regex.h: Fix comments with documentation of user-accessible
26563         fields after compilation and describe correct free'ing of pattern
26564         after re_compile_pattern.
26565         Patch by Reuben Thomas <rrt@sc3d.org>.
26566
26567 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
26568
26569         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
26570         and -mno-altivec to prevent the compiler from using Altivec and/or
26571         VSX instructions when the corresponding registers are not available.
26572
26573 2011-05-19  Andreas Schwab  <schwab@redhat.com>
26574
26575         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
26576
26577 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
26578
26579         * libio/freopen.c (freopen): Use __dup2, not dup2.
26580         * libio/freopen64.c (freopen64): Likewise.
26581
26582 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
26583
26584         [BZ #12775]
26585         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
26586         * math/Makefile (tests): Add test-powl.
26587         (CFLAGS-test-powl.c): Define.
26588         * math/test-powl.c: New file.
26589
26590 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
26591
26592         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
26593
26594 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
26595
26596         [BZ #11837]
26597         * iconvdata/gb18030.c: Update to GB18020-2005.
26598
26599 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
26600
26601         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
26602         RE_SYNTAX_POSIX_AWK): Update to match recent development.
26603         Patch by Aharon Robbins <arnold@skeeve.com>.
26604
26605         [BZ #11892]
26606         * stdlib/putenv.c (putenv): Don't always create copy of the variable
26607         on the stack.
26608
26609         [BZ #11895]
26610         * misc/pselect.c (__pselect): Handle timeout value errors hidden
26611         through underflows.
26612
26613         [BZ #12766]
26614         * misc/error.c (error_at_line): Ensure file_name and old_file_name
26615         point to strings before performing equality test for error_one_per_line
26616         mode.
26617
26618         [BZ #11697]
26619         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
26620
26621         [BZ #11820]
26622         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
26623         (struct user_fpregs_struct): Avoid __uint*_t types.
26624
26625         [BZ #6420]
26626         * malloc/mtrace.c (tr_where): Add additional parameter to point to
26627         symbol info.  Use it instead of calling _dl_addr locally.
26628         (lock_and_info): New function.
26629         (tr_freehook): Call lock_and_info and pass symbol info as additional
26630         parameter to tr_where.
26631         (tr_mallochook): Likewise.
26632         (tr_reallochook): Likewise.
26633         (tr_memalignhook): Likewise.
26634
26635         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
26636         used and couldn't be at all thread-safe.
26637
26638 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
26639
26640         * libio/freopen.c (freopen): Don't close old file descriptor
26641         before the new one is opened.  Instead dup the new file descriptor
26642         to the old one after the new stream is created.
26643         * libio/freopen64.c (freopen64): Likewise.
26644         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
26645         * libio/fileops.c (_IO_new_file_close_it): Handle new
26646         _IO_FLAGS2_NOCLOSE flag.
26647         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
26648         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
26649         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
26650         _IO_FLAGS2_NOCLOSE flag.
26651         * include/unistd.h: Add hidden_proto for dup3.
26652         Define __have_dup3.
26653         * io/dup3.c: Define hidden symbol.
26654         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
26655
26656         [BZ #7101]
26657         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
26658         when an incomplete long option is used.
26659         * posix/tst-getopt_long1.c: New file.
26660         * posix/Makefile (tests): Add tst-getopt_long1.
26661
26662         [BZ #10138]
26663         * scripts/config.guess: Update from autoconf-2.68.
26664         * scripts/config.sub: Likewise.
26665
26666         [BZ #10157]
26667         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
26668         tests into ...
26669         (has_cpuclock): ...this.  New function.
26670         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
26671         macro here based on has_cpuclock code.
26672
26673         [BZ #10149]
26674         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
26675         First byte (not low byte) is now always NUL.
26676         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
26677
26678         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
26679         Use non-cancelable interfaces.
26680
26681         [BZ #9809]
26682         * locale/iso-639.def: Add entry for Sorani.
26683
26684         [BZ #11901]
26685         * include/stdlib.h: Move include protection to the right place.
26686         Define abort_msg_s.  Declare __abort_msg with it.
26687         * stdlib/abort.c (__abort_msg): Adjust type.
26688         * assert/assert.c (__assert_fail_base): New function.  Majority
26689         of code from __assert_fail.  Allocate memory for __abort_msg with
26690         mmap.
26691         (__assert_fail): Now call __assert_fail_base.
26692         * assert/assert-perr.c: Remove bulk of implementation.  Use
26693         __assert_fail_base.
26694         * include/assert.hL Declare __assert_fail_base.
26695         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
26696         mmap.
26697         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
26698
26699 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
26700
26701         [BZ #11952]
26702         [BZ #12453]
26703         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
26704         until all modules are registered in the DTV.
26705         * elf/Makefile: Add rules to build and run tst-tls19.
26706         * elf/tst-tls19.c: New file.
26707         * elf/tst-tls19mod1.c: New file.
26708         * elf/tst-tls19mod2.c: New file.
26709         * elf/tst-tls19mod3.c: New file.
26710         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
26711
26712         [BZ #12083]
26713         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
26714         correctly.
26715
26716         [BZ #12601]
26717         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
26718         two-byte sequence errors.
26719         * iconvdata/Makefile (tests): Add bug-iconv8.
26720         * iconvdata/bug-iconv8.c: New file.
26721
26722         [BZ #12626]
26723         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
26724         buf2 definition.
26725
26726         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
26727
26728         [BZ #12432]
26729         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
26730         (dummy_getcfa): New function.
26731         (init): Get _Unwind_GetCFA address, use dummy if not found.
26732         (backtrace_helper): In recursion check, also check whether CFA changes.
26733         (__backtrace): Completely initialize arg.
26734
26735         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
26736         storing incomplete byte sequence in state object.  Avoid testing for
26737         guaranteed too small input if we know there is enough data available.
26738
26739 2011-05-11  Andreas Schwab  <schwab@redhat.com>
26740
26741         * Makeconfig (+link-pie): Indent.
26742         * Rules (binaries-pie): Define if $(have-fpie) and
26743         $(build-shared).
26744         (binaries-shared): Also filter out $(binaries-pie).
26745         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
26746         * nscd/Makefile (others-pie): Add nscd.
26747         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
26748         ($(objpfx)nscd): Remove command override.
26749         * login/Makefile (others-pie): Add pt_chown.
26750         ($(objpfx)pt_chown): Remove command override.
26751         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
26752         remove command overrides.
26753
26754 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
26755
26756         * libio/tst_putwc.c: Fix error messages.
26757
26758         [BZ #12724]
26759         * libio/fileops.c (_IO_new_file_close_it): Always flush when
26760         currently writing and seek to current position when not.
26761         * libio/Makefile (tests): Add bug-fclose1.
26762         * libio/bug-fclose1.c: New file.
26763
26764 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
26765
26766         [BZ #12511]
26767         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
26768         don't set DF_1_NODELETE here.
26769         (do_lookup_x): When entering new entry test for copy relocation
26770         and if necessary set DF_1_NODELETE flag.
26771         * elf/tst-unique4.cc: New file.
26772         * elf/tst-unique4.h: New file.
26773         * elf/tst-unique4lib.cc: New file.
26774         * elf/Makefile: Add rules to build and run tst-unique4.
26775         Patch by Piotr Bury <pbury@goahead.com>.
26776
26777 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
26778
26779         [BZ #12052]
26780         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
26781
26782         [BZ #12625]
26783         * misc/mntent_r.c (addmntent): Flush the stream after the output
26784
26785         [BZ #12393]
26786         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
26787         (is_trusted_path_normalize): Skip initial colon.  Append slash
26788         to empty buffer.  Duplicate is_trusted_path code but allow
26789         constructed patch to be prefix.
26790         (is_dst): Allow $ORIGIN followed by /.
26791         (_dl_dst_substitute): Correct clearing of check_for_trusted.
26792         Correct testing of result of is_trusted_path_normalize
26793         (decompose_rpath): Fix warning.
26794
26795 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
26796
26797         [BZ #11257]
26798         * grp/initgroups.c (internal_getgrouplist): When we found the service
26799         list through the initgroups entry in nsswitch.conf do not always
26800         continue on a successful lookup.  Don't always use the
26801         __nss_group_database value if it is set.
26802         * nss/nsswitch.conf (initgroups): Change action for successful db
26803         lookup to continue for compatibility.
26804
26805 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
26806
26807         [BZ #11532]
26808         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
26809         and CP774 modules.
26810         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
26811         and CP774 modules.
26812         * iconvdata/tst-tables.sh: Likewise.
26813         * iconvdata/cp770.c: New file.
26814         * iconvdata/cp771.c: New file.
26815         * iconvdata/cp772.c: New file.
26816         * iconvdata/cp773.c: New file.
26817         * iconvdata/cp774.c: New file.
26818         * iconvdata/testdata/CP770: New file.
26819         * iconvdata/testdata/CP770..UTF8: New file.
26820         * iconvdata/testdata/CP771: New file.
26821         * iconvdata/testdata/CP771..UTF8: New file.
26822         * iconvdata/testdata/CP772: New file.
26823         * iconvdata/testdata/CP772..UTF8: New file.
26824         * iconvdata/testdata/CP773: New file.
26825         * iconvdata/testdata/CP773..UTF8: New file.
26826         * iconvdata/testdata/CP774: New file.
26827         * iconvdata/testdata/CP774..UTF8: New file.
26828
26829         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
26830         END CHARMAP line.
26831         * iconvdata/gen-8bit-gap.sh: Likewise.
26832         * iconvdata/gen-8bit.sh: Likewise.
26833
26834         * locale/iso-639.def: Add ary entry.
26835
26836         [BZ #11258]
26837         * locale/C-translit.h.in: Add U20A1 transliteration.
26838
26839         [BZ #12178]
26840         * locale/iso-639.def: Add wae entry.
26841         Patch by Kevin Bortis <bortis@translate-wae.ch>.
26842
26843         [BZ #12545]
26844         * locale/programs/localedef.c (construct_output_path): Use ssize_t
26845         for n.
26846
26847         [BZ #12711]
26848         * locale/C-translit.h.in: Add entry for U20B9.
26849         Patch by pravin.d.s@gmail.com.
26850
26851 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
26852
26853         [BZ #12713]
26854         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
26855         ENAMETOOLONG use generic getcwd.
26856         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
26857         in rtld.  Use *stat64.
26858         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
26859         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
26860         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
26861         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
26862         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
26863         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
26864         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
26865         __fstatat64 macros.
26866         * include/dirent.h: Add libc_hidden_proto for rewinddir.
26867         * dirent/rewinddir.c: Add libc_hidden_def.
26868         * sysdeps/mach/hurd/rewinddir.c: Likewise.
26869         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
26870
26871         * include/dirent.h (__alloc_dir): Add flags parameter.
26872         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
26873         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
26874         __alloc_dir.
26875         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
26876         from fdopendir if O_CLOEXEC is already set.
26877
26878 2011-03-15  Alan Modra  <amodra@gmail.com>
26879
26880         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
26881         l_tls_firstbyte_offset non-zero.  Save padding offset in
26882         l_tls_firstbyte_offset for later use.
26883         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
26884         freeing static tls block.
26885
26886 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
26887
26888         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
26889         where #ifdef was intended.  The intent is to prevent ARG_MAX from
26890         being defined by the kernel headers.
26891
26892 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
26893
26894         [BZ #12734]
26895         * resolv/resolv.h: Define RES_NOTLDQUERY.
26896         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
26897         no-tld-query and set RES_NOTLDQUERY.
26898         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
26899         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
26900         modern BIND to search name as TLD unless forbidden.
26901
26902 2011-05-07  Petr Baudis  <pasky@suse.cz>
26903             Ulrich Drepper  <drepper@gmail.com>
26904
26905         [BZ #12393]
26906         * elf/dl-load.c (fillin_rpath): Move trusted path check...
26907         (is_trusted_path): ...to here.
26908         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
26909         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
26910         using is_trusted_path_normalize() in setuid scripts.
26911
26912 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
26913
26914         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
26915         __BEGIN/__END_DECLS.
26916
26917 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
26918
26919         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
26920         NSS_STATUS_NOTFOUND if no record was found.
26921
26922 2011-05-05  Andreas Schwab  <schwab@redhat.com>
26923
26924         * sunrpc/Makefile (headers): Add rpc/netdb.h.
26925         (headers-not-in-tirpc): Remove rpc/netdb.h
26926         * resolv/netdb.h: Revert last change.
26927
26928 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
26929
26930         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
26931         circular dependency between libgcc.a and libc.a.
26932
26933 2011-05-05  Andreas Schwab  <schwab@redhat.com>
26934
26935         * resolv/netdb.h: Don't include <rpc/netdb.h>.
26936         * nis/Makefile: Don't install rpcsvc/*.
26937         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
26938         instead of <rpc/types.h>.
26939         (MAXHOSTNAMELEN): Define.
26940
26941 2011-05-03  Andreas Schwab  <schwab@redhat.com>
26942
26943         * elf/ldconfig.c (add_dir): Don't crash on empty path.
26944
26945 2011-04-28  Maciej Babinski  <mbabinski@google.com>
26946
26947         [BZ #12714]
26948         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
26949         gethostbyname4_r when IPv6 results are possible.
26950
26951 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
26952
26953         [BZ #12723]
26954         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
26955         _PC_PIPE_BUF handling.
26956
26957 2011-04-30  Bruno Haible  <bruno@clisp.org>
26958
26959         [BZ #12717]
26960         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
26961         * resolv/netdb.h (getnameinfo): Change type of flags parameter
26962         to 'int'.
26963         * inet/getnameinfo.c (getnameinfo): Likewise.
26964
26965 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
26966
26967         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
26968         to groups setting in database lookup.
26969         * nss/nsswitch.conf: Add initgroups entry.
26970
26971 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
26972
26973         [BZ #12685]
26974         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
26975         mode string.
26976         Patch by Eric Blake <eblake@redhat.com>.
26977
26978 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
26979
26980         * sunrpc/Makefile (need-export-routines): Add svc_run.
26981         (routines): Remove svc_run.
26982         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
26983         * sunrpc/clnt_perr.c (clnt_perrno): Export.
26984         * sunrpc/svc_run.c (svc_run): Likewise.
26985         * sunrpc/svc_udp.c (svcudp_create): Likewise.
26986
26987 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
26988
26989         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
26990         problem in reallocation in last patch.
26991
26992 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
26993
26994         * sunrpc/Makefile: Move inclusion of Rules.
26995
26996 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
26997
26998         * nss/nss_files/files-initgroups.c: New file.
26999         * nss/Makefile (libnss_files-routines): Add files-initgroups.
27000         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
27001         _nss_files_initgroups_dyn.
27002
27003 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
27004
27005         * elf/elf.h (R_ARM_IRELATIVE): Define.
27006
27007 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
27008
27009         * po/ru.po: Update from translation team.
27010
27011 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
27012
27013         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
27014         dependencies.
27015
27016 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
27017
27018         [BZ #12653]
27019         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
27020         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
27021         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
27022         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
27023         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
27024
27025 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
27026
27027         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
27028         differing bytes.
27029         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
27030         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
27031         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
27032
27033 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
27034
27035         [BZ #12420]
27036         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
27037         storing it.
27038         * stdlib/bug-getcontext.c: New file.
27039         * stdlib/Makefile: Add rules to build and run bug-getcontext.
27040
27041 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27042
27043         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
27044         instructions into .machine "z9-109".
27045         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
27046         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
27047
27048 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27049
27050         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
27051         between environment variables and auxiliary vector.
27052
27053 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
27054
27055         * Makefile: Add rules to build linkobj/libc.so.
27056         * include/libc-symbols.h: Define libc_hidden_nolink.
27057         * include/rpc/auth.h: Mark functions which are to be hidden.
27058         * include/rpc/auth_des.h: Likewise.
27059         * include/rpc/auth_unix.h: Likewise.
27060         * include/rpc/clnt.h: Likewise.
27061         * include/rpc/des_crypt.h: Likewise.
27062         * include/rpc/key_prot.h: Likewise.
27063         * include/rpc/pmap_clnt.h: Likewise.
27064         * include/rpc/pmap_prot.h: Likewise.
27065         * include/rpc/pmap_rmt.h: Likewise.
27066         * include/rpc/rpc_msg.h: Likewise.
27067         * include/rpc/svc.h: Likewise.
27068         * include/rpc/svc_auth.h: Likewise.
27069         * include/rpc/xdr.h: Likewise.
27070         * nis/Makefile: Link all DSOs against linkobj/libc.so.
27071         * nss/Makefile: Likewise.
27072         * sunrpc/Makefile: Don't install headers.  Build library with normal
27073         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
27074         * sunrpc/auth_des.c: Hide exported symbols by default, export some
27075         for the compat linking library.  Remove use of INTDEF/INTUSE.
27076         * sunrpc/auth_none.c: Likewise.
27077         * sunrpc/auth_unix.c: Likewise.
27078         * sunrpc/authdes_prot.c: Likewise.
27079         * sunrpc/authuxprot.c: Likewise.
27080         * sunrpc/clnt_gen.c: Likewise.
27081         * sunrpc/clnt_perr.c: Likewise.
27082         * sunrpc/clnt_raw.c: Likewise.
27083         * sunrpc/clnt_simp.c: Likewise.
27084         * sunrpc/clnt_tcp.c: Likewise.
27085         * sunrpc/clnt_udp.c: Likewise.
27086         * sunrpc/clnt_unix.c: Likewise.
27087         * sunrpc/des_crypt.c: Likewise.
27088         * sunrpc/des_soft.c: Likewise.
27089         * sunrpc/get_myaddr.c: Likewise.
27090         * sunrpc/key_call.c: Likewise.
27091         * sunrpc/key_prot.c: Likewise.
27092         * sunrpc/netname.c: Likewise.
27093         * sunrpc/pm_getmaps.c: Likewise.
27094         * sunrpc/pm_getport.c: Likewise.
27095         * sunrpc/pmap_clnt.c: Likewise.
27096         * sunrpc/pmap_prot.c: Likewise.
27097         * sunrpc/pmap_prot2.c: Likewise.
27098         * sunrpc/pmap_rmt.c: Likewise.
27099         * sunrpc/publickey.c: Likewise.
27100         * sunrpc/rpc_cmsg.c: Likewise.
27101         * sunrpc/rpc_common.c: Likewise.
27102         * sunrpc/rpc_dtable.c: Likewise.
27103         * sunrpc/rpc_prot.c: Likewise.
27104         * sunrpc/rpc_thread.c: Likewise.
27105         * sunrpc/rtime.c: Likewise.
27106         * sunrpc/svc.c: Likewise.
27107         * sunrpc/svc_auth.c: Likewise.
27108         * sunrpc/svc_authux.c: Likewise.
27109         * sunrpc/svc_raw.c: Likewise.
27110         * sunrpc/svc_run.c: Likewise.
27111         * sunrpc/svc_simple.c: Likewise.
27112         * sunrpc/svc_tcp.c: Likewise.
27113         * sunrpc/svc_udp.c: Likewise.
27114         * sunrpc/svc_unix.c: Likewise.
27115         * sunrpc/svcauth_des.c: Likewise.
27116         * sunrpc/xcrypt.c: Likewise.
27117         * sunrpc/xdr.c: Likewise.
27118         * sunrpc/xdr_array.c: Likewise.
27119         * sunrpc/xdr_float.c: Likewise.
27120         * sunrpc/xdr_intXX_t.c: Likewise.
27121         * sunrpc/xdr_mem.c: Likewise.
27122         * sunrpc/xdr_rec.c: Likewise.
27123         * sunrpc/xdr_ref.c: Likewise.
27124         * sunrpc/xdr_sizeof.c: Likewise.
27125         * sunrpc/xdr_stdio.c: Likewise.
27126
27127 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
27128
27129         [BZ #12650]
27130         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
27131         * sysdeps/ia64/dl-tls.h: Likewise.
27132         * sysdeps/powerpc/dl-tls.h: Likewise.
27133         * sysdeps/s390/dl-tls.h: Likewise.
27134         * sysdeps/sh/dl-tls.h: Likewise.
27135         * sysdeps/sparc/dl-tls.h: Likewise.
27136         * sysdeps/x86_64/dl-tls.h: Likewise.
27137         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
27138
27139 2011-03-14  Andreas Schwab  <schwab@redhat.com>
27140
27141         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
27142         rpath element also skip the following colon.
27143         (expand_dynamic_string_token): Add is_path parameter and pass
27144         down to DL_DST_REQUIRED and _dl_dst_substitute.
27145         (decompose_rpath): Call expand_dynamic_string_token with
27146         non-zero is_path.  Ignore empty rpaths.
27147         (_dl_map_object_from_fd): Call expand_dynamic_string_token
27148         with zero is_path.
27149
27150 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
27151
27152         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
27153         Make cancelable.
27154
27155 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
27156
27157         [BZ #12655]
27158         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
27159         Patch by Filipe David Manana <fdmanana@apache.org>.
27160
27161 2011-04-07  Andreas Schwab  <schwab@redhat.com>
27162
27163         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
27164         Maintain aligned stack.
27165         (CHECK_RSP): Remove unused macro.
27166
27167 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
27168
27169         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
27170         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
27171
27172 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
27173
27174         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
27175
27176         * include/features.h: Mention __USE_XOPEN2K8 in comment.
27177
27178 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
27179
27180         [BZ #12518]
27181         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
27182         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
27183         * sysdeps/x86_64/memmove.c: New file.
27184         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
27185         (memcpy): Renamed to ...
27186         (__new_memcpy): This.
27187         (memcpy): Provide GLIBC_2_14 memcpy.
27188         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
27189         (memcpy): Provide GLIBC_2_2_5 memcpy.
27190
27191 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
27192
27193         [BZ #12631]
27194         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
27195
27196 2011-03-30  Andreas Schwab  <schwab@redhat.com>
27197
27198         * misc/syncfs.c: New file.
27199         * misc/Makefile (routines): Add syncfs.
27200         * posix/unistd.h: Declare syncfs.
27201         * sysdeps/unix/syscalls.list: Add syncfs.
27202
27203 2011-04-01  Andreas Schwab  <schwab@redhat.com>
27204
27205         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
27206         open_by_handle_at.
27207         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
27208         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
27209         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
27210         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
27211         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
27212         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
27213         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
27214
27215 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
27216
27217         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
27218         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
27219         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
27220         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
27221         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
27222         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
27223         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
27224
27225         * io/Makefile: Compile fallocate.c, fallocate64.c, and
27226         sync_file_range.c with -fexceptions.
27227         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
27228         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
27229         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
27230         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
27231         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
27232         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
27233         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
27234         sync_file_range as cancellation point
27235         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
27236         now a wrapper around __call_sync_file_range with cancellation handling.
27237         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
27238         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
27239         function name to __call_sync_file_range.
27240         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
27241         Add call_sync_file_range.
27242
27243 2011-04-01  Andreas Schwab  <schwab@redhat.com>
27244
27245         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
27246         bits/timex.h.
27247
27248 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
27249
27250         * iconv/iconv.h: Fix typo in comment.
27251         * io/fcntl.h: Likewise.
27252         * libio/stdio.h: Likewise.
27253         * posix/spawn.h: Likewise.
27254         * posix/unistd.h: Likewise.
27255         * stdlib/stdlib.h: Likewise.
27256         * time/time.h: Likewise.
27257         * wcsmbs/wchar.h: Likewise.
27258
27259         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
27260         open_by_handle): Add.
27261         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
27262         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
27263         Augment a few comments.
27264         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
27265         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
27266         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
27267         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
27268         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
27269         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
27270         open_by_handle.
27271
27272         * io/fcntl.h (AT_EMPTY_PATH): Define.
27273
27274 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
27275
27276         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
27277         * sysdeps/unix/sysv/linux/bits/time.h: New file.
27278         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
27279         to...
27280         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
27281         * Versions.def: Add GLIBC_2.14.
27282         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
27283         Export.
27284
27285 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
27286
27287         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
27288         round counter.
27289         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
27290
27291 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
27292
27293         [BZ #12597]
27294         * string/test-strncmp.c (do_page_test): New function.
27295         (check2): Likewise.
27296         (test_main): Call check2.
27297         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
27298
27299 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
27300
27301         [BZ #12587]
27302         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
27303         Handle cache information in CPU leaf 4.
27304         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
27305
27306 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
27307
27308         [BZ #12583]
27309         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
27310         character representation.
27311         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
27312
27313 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
27314
27315         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
27316         END(__isnan) to END(__isnanf) to match function entry point/label
27317         EALIGN(__isnanf,...).
27318
27319 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
27320
27321         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
27322
27323 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
27324
27325         [BZ #12510]
27326         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
27327         copy from the symbol referenced in the relocation to initialize the
27328         used variable.
27329         Patch by Piotr Bury <pbury@goahead.com>.
27330         * elf/Makefile: Add rules to build and tst-unique3.
27331         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
27332         * elf/tst-unique3.cc: New file.
27333         * elf/tst-unique3.h: New file.
27334         * elf/tst-unique3lib.cc: New file.
27335         * elf/tst-unique3lib2.cc: New file.
27336
27337         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
27338
27339 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
27340
27341         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
27342         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
27343         to _start.
27344
27345 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
27346
27347         * elf/dl-load.c (_dl_map_object): If we are looking for the first
27348         to-be-loaded object along a path to loader is ld.so.
27349
27350 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
27351             Ulrich Drepper  <drepper@gmail.com>
27352
27353         * sysdeps/x86_64/memset.S: After aligning destination, code
27354         branches to different locations depending on the value of
27355         misalignment, when multiarch is enabled. Fix this.
27356
27357 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
27358
27359         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
27360         Set _x86_64_preferred_memory_instruction for AMD processsors.
27361         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
27362         Set bit_Prefer_SSE_for_memop for AMD processors.
27363
27364 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
27365
27366         * libio/fmemopen.c (fmemopen): Optimize a bit.
27367
27368 2011-03-03  Andreas Schwab  <schwab@redhat.com>
27369
27370         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
27371
27372 2011-03-03  Roland McGrath  <roland@redhat.com>
27373
27374         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
27375
27376 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
27377
27378         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
27379         __bzero_ultra1 instead of __memset_ultra1.
27380
27381 2011-02-23  Andreas Schwab  <schwab@redhat.com>
27382             Ulrich Drepper  <drepper@gmail.com>
27383
27384         [BZ #12509]
27385         * include/link.h (struct link_map): Add l_orig_initfini.
27386         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
27387         returning unsuccessfully.
27388         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
27389         close of a file loaded at startup, restore the original l_initfini
27390         list.
27391         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
27392         list, store the pointer.
27393         * elf/Makefile ($(objpfx)noload-mem): New rule.
27394         (noload-ENV): Define.
27395         (tests): Add $(objpfx)noload-mem.
27396         * elf/noload.c: Include <memcheck.h>.
27397         (main): Call mtrace.  Close all opened handles.
27398
27399 2011-02-17  Andreas Schwab  <schwab@redhat.com>
27400
27401         [BZ #12454]
27402         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
27403         dependencies are missing.
27404
27405 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27406
27407         Fix __if_freereq crash: Unlike the generic version which uses free,
27408         Hurd needs munmap.
27409         * sysdeps/mach/hurd/ifreq.h: New file.
27410
27411 2011-01-27  Petr Baudis  <pasky@suse.cz>
27412             Ulrich Drepper  <drepper@gmail.com>
27413
27414         [BZ 12445]#
27415         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
27416         to extend_alloca().
27417         * stdio-common/bug23.c: New file.
27418         * stdio-common/Makefile (tests): Add bug23.
27419
27420 2010-09-28  Andreas Schwab  <schwab@redhat.com>
27421             Ulrich Drepper  <drepper@gmail.com>
27422
27423         [BZ #12489]
27424         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
27425         before performing relro protection.  At old place add assertion
27426         to make sure nothing changed.
27427
27428 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
27429             Glauber de Oliveira Costa  <glommer@gmail.com>
27430
27431         * elf/elf.h: Add new ARM TLS relocs.
27432
27433 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
27434
27435         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
27436         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
27437         cast from r3.
27438         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
27439         'tests' variable.
27440         * sysdeps/wordsize-64/tst-writev.c: New file.
27441
27442 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
27443
27444         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
27445         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
27446         insns in _dl_start to prevent a TOC reference before relocs are
27447         resolved.
27448
27449 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
27450
27451         [BZ #12469]
27452         * Makeconfig: Remove RANLIB definition.
27453         * Makerules: Don't use RANLIB.
27454         * aclocal.m4: Remove ranlib test.
27455         * configure.in: No need to check for ranlib.
27456         * elf/rtld-Rules: Don't use RANLIB.
27457
27458 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27459
27460         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
27461         protection macro.
27462         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
27463         inclusion protection macro.
27464
27465         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
27466         SIGRTMIN and SIGRTMAX and print information in that case only when
27467         SIGRTMIN is defined.
27468
27469 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
27470
27471         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
27472         arginfo fn returning -1.
27473
27474         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
27475         and thousands string is zero terminated.
27476
27477 2011-02-03  Andreas Schwab  <schwab@redhat.com>
27478
27479         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
27480         sysdeps/unix/sysv/linux/bits/socket.h.
27481
27482 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27483
27484         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
27485         (__CPU_COUNT): Remove old macros.
27486         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
27487         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
27488         (__CPU_ALLOC, __CPU_FREE): Add macros.
27489         (__sched_cpualloc, __sched_cpufree): Add declarations.
27490
27491 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
27492
27493         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
27494         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
27495         * nscd/aicache.c (addhstaiX): Return timeout of added value.
27496         (readdhstai): Return value of addhstaiX call.
27497         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
27498         (addgrbyX): Return value returned by cache_addgr.
27499         (readdgrbyname): Return value returned by addgrbyX.
27500         (readdgrbygid): Likewise.
27501         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
27502         (addpwbyX): Return value returned by cache_addpw.
27503         (readdpwbyname): Return value returned by addhstbyX.
27504         (readdpwbyuid): Likewise.
27505         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
27506         (addservbyX): Return value returned by cache_addserv.
27507         (readdservbyname): Return value returned by addservbyX:
27508         (readdservbyport): Likewise.
27509         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
27510         (addhstbyX): Return value returned by cache_addhst.
27511         (readdhstbyname): Return value returned by addhstbyX.
27512         (readdhstbyaddr): Likewise.
27513         (readdhstbynamev6): Likewise.
27514         (readdhstbyaddrv6): Likewise.
27515         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
27516         (readdinitgroups): Return value returned by addinitgroupsX.
27517         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
27518         (prune_cache): Keep track of timeout value of re-added entries.
27519         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
27520         * nscd/nscd.h: Adjust prototypes of readd* functions.
27521
27522 2011-02-04  Roland McGrath  <roland@redhat.com>
27523
27524         * nis/nis_server.c (nis_servstate): Use the right name for 0.
27525         (nis_stats): Likewise.
27526         * nis/nis_modify.c (nis_modify): Likewise.
27527         * nis/nis_remove.c (nis_remove): Likewise.
27528         * nis/nis_add.c (nis_add): Likewise.
27529
27530         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
27531
27532         * posix/fnmatch_loop.c: Add some consts.
27533
27534         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
27535
27536 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
27537
27538         [BZ #12460]
27539         * config.make.in (config-cflags-novzeroupper): Define.
27540         * configure.in: Substitute libc_cv_cc_novzeroupper.
27541         * elf/Makefile (AVX-CFLAGS): Define.
27542         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
27543         (CFLAGS-tst-auditmod4a.c): Likewise.
27544         (CFLAGS-tst-auditmod4b.c): Likewise.
27545         (CFLAGS-tst-auditmod6b.c): Likewise.
27546         (CFLAGS-tst-auditmod6c.c): Likewise.
27547         (CFLAGS-tst-auditmod7b.c): Likewise.
27548         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
27549
27550 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
27551
27552         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
27553         function to the callback.
27554         Patch partly by Jiri Olsa <jolsa@redhat.com>.
27555
27556 2011-02-02  Andreas Schwab  <schwab@redhat.com>
27557
27558         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
27559         of errno.
27560
27561 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
27562
27563         [BZ #11724]
27564         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
27565         of constructors.
27566         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
27567         of destructors.
27568         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
27569
27570         [BZ #11724]
27571         * elf/Makefile: Add rules to build and run new test.
27572         * elf/tst-initorder.c: New file.
27573         * elf/tst-initorder.exp: New file.
27574         * elf/tst-initordera1.c: New file.
27575         * elf/tst-initordera2.c: New file.
27576         * elf/tst-initordera3.c: New file.
27577         * elf/tst-initordera4.c: New file.
27578         * elf/tst-initorderb1.c: New file.
27579         * elf/tst-initorderb2.c: New file.
27580         * elf/tst-order-a1.c: New file.
27581         * elf/tst-order-a2.c: New file.
27582         * elf/tst-order-a3.c: New file.
27583         * elf/tst-order-a4.c: New file.
27584         * elf/tst-order-b1.c: New file.
27585         * elf/tst-order-b2.c: New file.
27586         * elf/tst-order-main.c: New file.
27587         New test case by George Gensure <werkt0@gmail.com>.
27588
27589 2010-10-01  Andreas Schwab  <schwab@redhat.com>
27590
27591         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
27592         decoding ACE if AI_CANONIDN.
27593
27594 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
27595
27596         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
27597
27598 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
27599
27600         * version.h (RELEASE): Bump for 2.13 release.
27601         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
27602
27603         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
27604
27605         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
27606         MADV_NOHUGEPAGE.
27607         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
27608         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
27609         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
27610         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
27611         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
27612         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
27613
27614         * posix/getconf.c: Update copyright year.
27615         * catgets/gencat.c: Likewise.
27616         * csu/version.c: Likewise.
27617         * debug/catchsegv.sh: Likewise.
27618         * debug/xtrace.sh: Likewise.
27619         * elf/ldconfig.c: Likewise.
27620         * elf/ldd.bash.in: Likewise.
27621         * elf/sprof.c (print_version): Likewise.
27622         * iconv/iconv_prog.c: Likewise.
27623         * iconv/iconvconfig.c: Likewise.
27624         * locale/programs/locale.c: Likewise.
27625         * locale/programs/localedef.c: Likewise.
27626         * malloc/memusage.sh: Likewise.
27627         * malloc/mtrace.pl: Likewise.
27628         * nscd/nscd.c (print_version): Likewise.
27629         * nss/getent.c: Likewise.
27630
27631         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
27632         PF_CAIF, and PF_ALG.
27633         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
27634
27635 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
27636
27637         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
27638         (modules-names): Use them.
27639         (ifunc-test-modules, ifunc-pie-tests): Define.
27640         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
27641         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
27642         (test-extras): Likewise.
27643         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
27644         $(compile-command.c).
27645         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
27646         (all-built-dso): Define.
27647         (check-textrel.out, check-execstack.out): Depend on it.
27648
27649         * configure.in: Don't override --enable-multi-arch.
27650
27651 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
27652
27653         [BZ #6812]
27654         * nscd/hstcache.c (tryagain): Define.
27655         (cache_addhst): Return tryagain not notfound for temporary errors.
27656         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
27657         failed.
27658
27659 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
27660
27661         [BZ #10563]
27662         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
27663         to make the syscall.
27664         * sysdeps/unix/sysv/linux/setgroups.c: New file.
27665
27666         [BZ #12378]
27667         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
27668         and fall back to matching as normal character if the string ends before
27669         the matching ']' is found.  This is what POSIX requires.
27670         * posix/testfnm.c: Adjust test result.
27671         * posix/globtest.sh: Adjust test result.  Add new test.
27672         * posix/tst-fnmatch.input: Likewise.
27673         * posix/tst-fnmatch2.c: Add new test.
27674
27675 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
27676
27677         * elf/Makefile (check-execstack): Revert last change.  Depend on
27678         check-execstack.h.
27679         (check-execstack.h): New target.
27680         (generated): Add check-execstack.h.
27681         * elf/check-execstack.c: Include "check-execstack.h".
27682         (main): Revert last change.
27683         (handle_file): Return zero if GNU_STACK is absent and
27684         DEFAULT_STACK_PERMS doesn't include PF_X.
27685
27686 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
27687
27688         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
27689         in child fails because the descriptor is already closed.
27690         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
27691         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
27692         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
27693
27694         [BZ #12397]
27695         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
27696         syscall.
27697
27698         [BZ #10484]
27699         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
27700         temporary buffer used to handle multi lookups locally.
27701         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
27702
27703 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
27704
27705         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
27706         loader is ld.so.
27707
27708 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
27709
27710         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
27711         alignment for SSE2.
27712
27713 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
27714
27715         [BZ #12394]
27716         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
27717         characters.  When rounding increased number of integer digits recompute
27718         number of groups.
27719         * stdio-common/tst-grouping.c: New file.
27720         * stdio-common/Makefile: Add rules to build and run tst-grouping.
27721
27722 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
27723
27724         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
27725         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
27726
27727         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
27728         void.
27729         * bits/select.h: Likewise.
27730
27731 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
27732
27733         * po/ja.po: Update from translation team.
27734
27735 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
27736
27737         [BZ #11155]
27738         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
27739         implementation just like for lxstat, fxstatat, et al.
27740
27741 2010-12-27  Jim Meyering  <meyering@redhat.com>
27742
27743         [BZ #12348]
27744         * posix/regexec.c (build_trtable): Return failure indication upon
27745         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
27746
27747 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
27748
27749         [BZ #12201]
27750         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
27751         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
27752         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
27753         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
27754
27755         [BZ #12207]
27756         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
27757
27758         [BZ #12204]
27759         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
27760         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
27761
27762 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
27763
27764         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
27765         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
27766         script has SORT_BY_INIT_PRIORITY.
27767         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
27768         NO_CTORS_DTORS_SECTIONS is defined.
27769         * elf/soinit.c: Likewise.
27770         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
27771         NO_CTORS_DTORS_SECTIONS is defined.
27772         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
27773         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
27774         * sysdeps/sh/init-first.c: Likewise.
27775         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
27776
27777 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
27778
27779         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
27780         always use the slow path.
27781
27782 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
27783
27784         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
27785         similar rule which adds the sysdep directories to the header search in
27786         order to pick up the correct platform stackinfo.h.
27787         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
27788         perform test if it is, otherwise return successfully without testing.
27789         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
27790         DEFAULT_STACK_PERMS define in stackinfo.h.
27791         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
27792         defined in stackinfo.h.
27793         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
27794         DEFAULT_STACK_PERMS defined in stackinfo.h.
27795         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
27796         * sysdeps/ia64/stackinfo.h: Likewise.
27797         * sysdeps/s390/stackinfo.h: Likewise.
27798         * sysdeps/sh/stackinfo.h: Likewise.
27799         * sysdeps/sparc/stackinfo.h: Likewise.
27800         * sysdeps/x86_64/stackinfo.h: Likewise.
27801         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
27802         PF_X for powerpc64.  Retain PF_X for powerpc32.
27803
27804 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
27805
27806         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
27807         accurately.
27808         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
27809         GETDENTS_64BIT_ALIGNED.
27810
27811 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
27812
27813         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
27814
27815 2010-12-10  Andreas Schwab  <schwab@redhat.com>
27816
27817         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
27818         _GNU_SOURCE.
27819
27820         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
27821         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
27822         Remove __restrict.
27823         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
27824         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
27825
27826 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
27827
27828         [BZ #11655]
27829         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
27830         are initialized.
27831
27832 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
27833
27834         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
27835
27836 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
27837
27838         * po/it.po: Update from translation team.
27839
27840 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
27841
27842         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
27843         unused codes.
27844
27845 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
27846
27847         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
27848
27849 2010-11-24  Andreas Schwab  <schwab@redhat.com>
27850
27851         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
27852         specially.
27853         (gaih_getanswer_slice): Likewise.
27854
27855 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
27856
27857         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
27858
27859 2010-05-31  Petr Baudis  <pasky@suse.cz>
27860
27861         [BZ #11149]
27862         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
27863         silently even in the chroot mode.
27864
27865 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
27866
27867         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
27868         last patch a bit.  Pretty printing
27869
27870 2010-05-31  Petr Baudis <pasky@suse.cz>
27871
27872         [BZ #10085]
27873         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
27874         initialization of skip_initgroups_dyn.
27875
27876 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
27877
27878         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
27879         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
27880
27881 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
27882
27883         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
27884
27885 2010-11-11  Andreas Schwab  <schwab@redhat.com>
27886
27887         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
27888         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
27889         (tst-fnmatch-ENV): Set MALLOC_TRACE.
27890         ($(objpfx)tst-fnmatch-mem): New rule.
27891         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
27892         * posix/tst-fnmatch.c (main): Call mtrace.
27893
27894 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
27895
27896         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
27897         Support Intel processor model 6 and model 0x2c.
27898
27899 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
27900
27901         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
27902           signed comparison.
27903
27904 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
27905
27906         [BZ #12205]
27907         * string/test-strncasecmp.c (check_result): New function.
27908         (do_one_test): Use it.
27909         (check1): New function.
27910         (test_main): Use it.
27911         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
27912         Support strcasecmp and strncasecmp.
27913
27914 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
27915
27916         [BZ #12194]
27917         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
27918         * sysdeps/x86_64/bits/byteswap.h: Likewise.
27919
27920 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
27921
27922         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
27923         IFUNC support.
27924         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
27925         memset-x86-64.
27926         * sysdeps/x86_64/multiarch/bzero.S: New file.
27927         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
27928         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
27929         * sysdeps/x86_64/multiarch/memset.S: New file.
27930         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
27931         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
27932         Set bit_Prefer_SSE_for_memop for Intel processors.
27933         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
27934         Define.
27935         (index_Prefer_SSE_for_memop): Define.
27936         (HAS_PREFER_SSE_FOR_MEMOP): Define.
27937
27938 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
27939
27940         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
27941         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
27942
27943 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
27944
27945         [BZ #12191]
27946         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
27947         (__x86_64_raw_data_cache_size_half): Likewise.
27948         (__x86_64_raw_shared_cache_size): Likewise.
27949         (__x86_64_raw_shared_cache_size_half): Likewise.
27950
27951         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
27952         (__x86_64_raw_data_cache_size_half): Likewise.
27953         (__x86_64_raw_shared_cache_size): Likewise.
27954         (__x86_64_raw_shared_cache_size_half): Likewise.
27955         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
27956         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
27957         and __x86_64_raw_shared_cache_size_half.  Round
27958         __x86_64_data_cache_size_half, __x86_64_data_cache_size
27959         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
27960         to multiple of 256 bytes.
27961
27962 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
27963
27964         [BZ #12167]
27965         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
27966         of inacessible symlinks.  Verify result of symlink before returning it.
27967         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
27968         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
27969
27970 2010-10-28  Erich Ritz  <erichritz@gmail.com>
27971
27972         * math/math.h (isinf): Fix typo in comment.
27973
27974 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
27975
27976         * po/da.po: Update from translation team.
27977
27978 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
27979
27980         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
27981         is added to the list.
27982
27983 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27984             Ulrich Drepper  <drepper@gmail.com>
27985
27986         * elf/dl-object.c (_dl_new_object): Don't append the new object to
27987         the global list here.  Move code to...
27988         (_dl_add_to_namespace_list): ...here.  New function.
27989         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
27990         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
27991         * elf/dl-load.c (lose): Don't remove the element from the list.
27992         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
27993         (_dl_map_object): Likewise.
27994
27995 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
27996
27997         [BZ #12159]
27998         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
27999         into all bytes of SSE register.
28000         Patch by Richard Li <richardpku@gmail.com>.
28001
28002 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
28003
28004         [BZ #12140]
28005         * malloc/malloc.c (_int_free): Fill correct number of bytes when
28006         perturbing.
28007
28008 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
28009
28010         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
28011         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
28012         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
28013         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
28014         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
28015         submachine.
28016         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
28017
28018 2010-10-22  Andreas Schwab  <schwab@redhat.com>
28019
28020         * include/dlfcn.h (__RTLD_SECURE): Define.
28021         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
28022         mode & __RTLD_SECURE instead.
28023         (open_path): Rename preloaded parameter to secure.
28024         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
28025         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
28026         * elf/dl-deps.c (openaux): Likewise.
28027         * elf/rtld.c (struct map_args): Remove is_preloaded.
28028         (map_doit): Don't use it.
28029         (dl_main): Likewise.
28030         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
28031         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
28032
28033 2010-09-09  Andreas Schwab  <schwab@redhat.com>
28034
28035         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
28036         (sysd-rules-targets): Remove duplicates.
28037         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
28038         rtld-%.$o dependency.
28039
28040 2010-10-18  Andreas Schwab  <schwab@redhat.com>
28041
28042         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
28043         _dl_map_object do it.
28044
28045 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
28046
28047         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
28048         fast fma builtins, define the macros in the C99 standard.
28049         (FP_FAST_FMAF): Likewise.
28050         (FP_FAST_FMAL): Likewise.
28051         * sysdeps/x86_64/bits/mathdef.h: Likewise.
28052
28053         * bits/mathdef.h: Update copyright year.
28054         * sysdeps/powerpc/bits/mathdef.h: Likewise.
28055
28056 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
28057
28058         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
28059         builtins, define the macros in the C99 standard.
28060         (FP_FAST_FMAF): Likewise.
28061         (FP_FAST_FMAL): Likewise.
28062         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
28063         multiply/add.
28064         (FP_FAST_FMAF): Likewise.
28065
28066 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
28067
28068         [BZ #3268]
28069         * math/libm-test.inc (fma_test): Some new testcases.
28070         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
28071         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
28072         y and infinite z.  Do multiplication by C already in long double.
28073         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
28074         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
28075         y and infinite z.  Do bitwise or of inexact bit into u.d.
28076         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
28077         * sysdeps/i386/fpu/s_fmaf.S: Removed.
28078         * sysdeps/i386/fpu/s_fma.S: Removed.
28079         * sysdeps/i386/fpu/s_fmal.S: Removed.
28080
28081 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
28082
28083         [BZ #3268]
28084         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
28085         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
28086         computation is not scheduled after fetestexcept.  Fix value
28087         of minimum denormal long double.
28088
28089 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
28090
28091         [BZ #3268]
28092         * math/libm-test.inc (fma_test): Add some more tests.
28093         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
28094         correctly.
28095
28096 2010-10-15  Andreas Schwab  <schwab@redhat.com>
28097
28098         * scripts/data/localplt-s390-linux-gnu.data: New file.
28099         * scripts/data/localplt-s390x-linux-gnu.data: New file.
28100
28101 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
28102
28103         [BZ #3268]
28104         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
28105         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
28106         instead of dbl-64.
28107         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
28108         inlines.
28109         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
28110         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
28111         if one of x and y is very large and the other is subnormal.
28112         * sysdeps/s390/fpu/s_fmaf.c: New file.
28113         * sysdeps/s390/fpu/s_fma.c: New file.
28114         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
28115         * sysdeps/powerpc/fpu/s_fma.S: New file.
28116         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
28117         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
28118         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
28119
28120 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
28121
28122         [BZ #3268]
28123         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
28124         fma tests.
28125         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
28126         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
28127         * sysdeps/i386/i686/multiarch/s_fma.c: Include
28128         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
28129         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
28130         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
28131         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
28132
28133 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
28134
28135         [BZ #12078]
28136         * posix/regcomp.c (parse_branch): One more memory leak plugged.
28137         * posix/bug-regex31.input: Add test case.
28138
28139 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
28140
28141         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
28142         * posix/bug-regex31.input: New file.
28143
28144         [BZ #12078]
28145         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
28146         (parse_sub_exp): Fix last change, use postorder.
28147
28148         * posix/bug-regex31.c: New file.
28149         * posix/Makefile: Add rules to build and run bug-regex31.
28150
28151         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
28152
28153         [BZ #12078]
28154         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
28155
28156         [BZ #12108]
28157         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
28158         to have entries in sys_siglist.
28159
28160         [BZ #12093]
28161         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
28162         be NULL.
28163
28164 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
28165
28166         [BZ #3268]
28167         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
28168         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
28169         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
28170         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
28171         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
28172         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
28173         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
28174         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
28175         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
28176         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
28177         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
28178         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
28179         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
28180         * math/ftestexcept.c (fetestexcept): Likewise.
28181         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
28182         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
28183         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
28184         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
28185         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
28186         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
28187         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
28188
28189 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
28190
28191         [BZ #12107]
28192         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
28193         newline.
28194
28195 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
28196
28197         * string/bug-strstr1.c: New file.
28198         * string/Makefile: Add rules to build and run bug-strstr1.
28199
28200 2010-10-05  Eric Blake  <eblake@redhat.com>
28201
28202         [BZ #12092]
28203         * string/str-two-way.h (two_way_long_needle): Always clear memory
28204         when skipping input due to the shift table.
28205
28206 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
28207
28208         [BZ #12005]
28209         * malloc/mcheck.c: Handle large requests.
28210
28211         [BZ #12077]
28212         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
28213         for strncmp and strncasecmp.
28214         * string/stratcliff.c: Add tests for strcmp and strncmp.
28215         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
28216
28217 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
28218
28219         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
28220         __set_fpscr.
28221
28222 2010-09-30  Andreas Jaeger  <aj@suse.de>
28223
28224         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
28225         (CGROUP_SUPER_MAGIC): Define.
28226         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
28227         Handle btrfs and cgroup file systems.
28228         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
28229         Likewise.
28230
28231 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
28232
28233         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
28234         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
28235
28236 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28237
28238         [BZ #12067]
28239         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
28240         trying to locate the ELF header.
28241
28242 2010-09-27  Andreas Schwab  <schwab@redhat.com>
28243
28244         [BZ #11611]
28245         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
28246         Mask out sign-bit copies when constructing f_fsid.
28247
28248 2010-09-24  Petr Baudis <pasky@suse.cz>
28249
28250         * debug/stack_chk_fail_local.c: Add missing licence exception.
28251         * debug/warning-nop.c: Likewise.
28252
28253 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
28254
28255         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
28256         implementing getdents64 using getdents syscall, set d_type if
28257         __ASSUME_GETDENTS32_D_TYPE.
28258
28259 2010-09-16  Andreas Schwab  <schwab@redhat.com>
28260
28261         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
28262         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
28263
28264 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
28265
28266         [BZ #12037]
28267         * posix/unistd.h: Undo change of feature selection for ftruncate from
28268         2010-01-11.
28269
28270 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
28271
28272         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
28273         detection.
28274
28275 2010-09-20  Andreas Schwab  <schwab@redhat.com>
28276
28277         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
28278         fanotify_mark.
28279         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
28280
28281 2010-09-14  Andreas Schwab  <schwab@redhat.com>
28282
28283         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
28284         variables after CHECK_SP call.
28285         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
28286
28287 2010-09-13  Andreas Schwab  <schwab@redhat.com>
28288             Ulrich Drepper  <drepper@redhat.com>
28289
28290         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
28291         re-relocationg ld.so.
28292         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
28293         _dl_init_paths call.
28294         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
28295         here anymore.
28296
28297 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
28298
28299         * resolv/res_init.c (__res_vinit): Count the default server we added.
28300
28301 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
28302             Ulrich Drepper  <drepper@redhat.com>
28303
28304         [BZ #11968]
28305         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
28306         (____longjmp_chk): Use %ebx for saving value across system call.
28307         Add unwind info.
28308
28309 2010-09-06  Andreas Schwab  <schwab@redhat.com>
28310
28311         * manual/Makefile: Don't mix pattern rules with normal rules.
28312
28313 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
28314
28315         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
28316         operation.
28317         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
28318         * libio/iofopncook.c (_IO_cookie_init): Likewise.
28319         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
28320         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
28321         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
28322         Likewise.
28323
28324 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
28325
28326         [BZ #11979]
28327         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
28328         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
28329
28330 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
28331
28332         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
28333         * sysdeps/x86_64/addmul_1.S: Likewise.
28334         * sysdeps/x86_64/lshift.S: Likewise.
28335         * sysdeps/x86_64/mul_1.S: Likewise.
28336         * sysdeps/x86_64/rshift.S: Likewise.
28337         * sysdeps/x86_64/sub_n.S: Likewise.
28338         * sysdeps/x86_64/submul_1.S: Likewise.
28339
28340 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
28341
28342         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
28343         Define __sched_param instead of SCHED_* and sched_param when
28344         <bits/sched.h> is included with __need_schedparam defined.
28345         * bits/sched.h [__need_schedparam]
28346         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
28347         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
28348         (__defined_schedparam): Define to 1.
28349         (__sched_param): New structure, identical to sched_param.
28350         (__need_schedparam): Undefine.
28351
28352 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
28353
28354         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
28355         (epoll_create1): Declare.
28356
28357         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
28358
28359 2010-08-31  Andreas Schwab  <schwab@redhat.com>
28360
28361         [BZ #7066]
28362         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
28363         shifting retval into place.
28364
28365 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
28366
28367         * nis/rpcsvc/nis.h: Update copyright notice.
28368         * nis/rpcsvc/nis.x: Likewise.
28369         * nis/rpcsvc/nis_callback.h: Likewise.
28370         * nis/rpcsvc/nis_callback.x: Likewise.
28371         * nis/rpcsvc/nis_object.x: Likewise.
28372         * nis/rpcsvc/nis_tags.h: Likewise.
28373         * nis/rpcsvc/yp.h: Likewise.
28374         * nis/rpcsvc/yp.x: Likewise.
28375         * nis/rpcsvc/ypupd.h: Likewise.
28376         * nis/yp_xdr.c: Likewise.
28377         * nis/ypupdate_xdr.c: Likewise.
28378
28379         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
28380         mainly the body of pmap_getport.  Add parameters to specify timeouts.
28381         (pmap_getport): Use __libc_rpc_getport.
28382         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
28383         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
28384         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
28385
28386 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
28387
28388         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
28389         fanotify_mark.
28390
28391 2010-08-27  Roland McGrath  <roland@redhat.com>
28392
28393         * sysdeps/i386/i686/multiarch/Makefile
28394         (CFLAGS-varshift.c): New variable.
28395
28396 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
28397
28398         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
28399         * sysdeps/i386/i686/multiarch/varshift.c: New file.
28400
28401         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
28402
28403         * sysdeps/x86_64/strlen.S: Minimal code improvement.
28404
28405 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
28406
28407         * sysdeps/x86_64/strlen.S: Unroll the loop.
28408         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
28409         strlen-sse2 strlen-sse2-bsf.
28410         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
28411         __strlen_no_bsf if bit_Slow_BSF is set.
28412         (__strlen_sse42): Removed.
28413         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
28414         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
28415
28416 2010-08-25  Roland McGrath  <roland@redhat.com>
28417
28418         * sysdeps/x86_64/multiarch/varshift.S: File removed.
28419         * sysdeps/x86_64/multiarch/varshift.c: New file.
28420         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
28421         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
28422         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
28423         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
28424
28425 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
28426
28427         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
28428         strlen-sse2 strlen-sse2-bsf.
28429         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
28430         __strlen_sse2_bsf if bit_Slow_BSF is unset.
28431         (__strlen_sse2): Removed.
28432         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
28433         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
28434         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
28435         bit_Slow_BSF for Atom.
28436         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
28437         (index_Slow_BSF): Define.
28438         (HAS_SLOW_BSF): Define.
28439
28440 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
28441
28442         [BZ #10851]
28443         * resolv/res_init.c (__res_vinit): When no server address at all
28444         is given default to loopback.
28445
28446 2010-08-24  Roland McGrath  <roland@redhat.com>
28447
28448         * configure.in: Remove config-name.h generation.
28449         * configure: Regenerated.
28450         * config-name.in: File removed.
28451         * scripts/config-uname.sh: New file.
28452         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
28453         ($(objdir)config-name.h): New target.
28454
28455         * sunrpc/rpc_parse.h: Avoid nested comment.
28456
28457 2010-08-24  Richard Henderson  <rth@redhat.com>
28458             Ulrich Drepper  <drepper@redhat.com>
28459             H.J. Lu  <hongjiu.lu@intel.com>
28460
28461         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
28462         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
28463         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
28464         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
28465         _mm_alignr_epi8 with _mm_loadu_si128.
28466         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
28467         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
28468         (__m128i_shift_right): Removed.
28469         * sysdeps/i386/i686/multiarch/varshift.h: New file.
28470         * sysdeps/i386/i686/multiarch/varshift.S: New file.
28471         * sysdeps/x86_64/multiarch/varshift.h: New file.
28472         * sysdeps/x86_64/multiarch/varshift.S: New file.
28473
28474 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
28475
28476         * configure.in: Move assembler checks to before sysdep dir checking.
28477
28478 2010-08-20  Petr Baudis  <pasky@suse.cz>
28479
28480         * LICENSES: Sync the sunrpc license.
28481
28482 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
28483
28484         * sunrpc/auth_des.c: Update copyright notice once again.
28485         * sunrpc/auth_none.c: Likewise.
28486         * sunrpc/auth_unix.c: Likewise.
28487         * sunrpc/authdes_prot.c: Likewise.
28488         * sunrpc/authuxprot.c: Likewise.
28489         * sunrpc/bindrsvprt.c: Likewise.
28490         * sunrpc/clnt_gen.c: Likewise.
28491         * sunrpc/clnt_perr.c: Likewise.
28492         * sunrpc/clnt_raw.c: Likewise.
28493         * sunrpc/clnt_simp.c: Likewise.
28494         * sunrpc/clnt_tcp.c: Likewise.
28495         * sunrpc/clnt_udp.c: Likewise.
28496         * sunrpc/clnt_unix.c: Likewise.
28497         * sunrpc/des_crypt.c: Likewise.
28498         * sunrpc/des_soft.c: Likewise.
28499         * sunrpc/get_myaddr.c: Likewise.
28500         * sunrpc/getrpcport.c: Likewise.
28501         * sunrpc/key_call.c: Likewise.
28502         * sunrpc/key_prot.c: Likewise.
28503         * sunrpc/openchild.c: Likewise.
28504         * sunrpc/pm_getmaps.c: Likewise.
28505         * sunrpc/pm_getport.c: Likewise.
28506         * sunrpc/pmap_clnt.c: Likewise.
28507         * sunrpc/pmap_prot.c: Likewise.
28508         * sunrpc/pmap_prot2.c: Likewise.
28509         * sunrpc/pmap_rmt.c: Likewise.
28510         * sunrpc/rpc/auth.h: Likewise.
28511         * sunrpc/rpc/auth_unix.h: Likewise.
28512         * sunrpc/rpc/clnt.h: Likewise.
28513         * sunrpc/rpc/des_crypt.h: Likewise.
28514         * sunrpc/rpc/key_prot.h: Likewise.
28515         * sunrpc/rpc/netdb.h: Likewise.
28516         * sunrpc/rpc/pmap_clnt.h: Likewise.
28517         * sunrpc/rpc/pmap_prot.h: Likewise.
28518         * sunrpc/rpc/pmap_rmt.h: Likewise.
28519         * sunrpc/rpc/rpc.h: Likewise.
28520         * sunrpc/rpc/rpc_des.h: Likewise.
28521         * sunrpc/rpc/rpc_msg.h: Likewise.
28522         * sunrpc/rpc/svc.h: Likewise.
28523         * sunrpc/rpc/svc_auth.h: Likewise.
28524         * sunrpc/rpc/types.h: Likewise.
28525         * sunrpc/rpc/xdr.h: Likewise.
28526         * sunrpc/rpc_clntout.c: Likewise.
28527         * sunrpc/rpc_cmsg.c: Likewise.
28528         * sunrpc/rpc_common.c: Likewise.
28529         * sunrpc/rpc_cout.c: Likewise.
28530         * sunrpc/rpc_dtable.c: Likewise.
28531         * sunrpc/rpc_hout.c: Likewise.
28532         * sunrpc/rpc_main.c: Likewise.
28533         * sunrpc/rpc_parse.c: Likewise.
28534         * sunrpc/rpc_parse.h: Likewise.
28535         * sunrpc/rpc_prot.c: Likewise.
28536         * sunrpc/rpc_sample.c: Likewise.
28537         * sunrpc/rpc_scan.c: Likewise.
28538         * sunrpc/rpc_scan.h: Likewise.
28539         * sunrpc/rpc_svcout.c: Likewise.
28540         * sunrpc/rpc_tblout.c: Likewise.
28541         * sunrpc/rpc_util.c: Likewise.
28542         * sunrpc/rpc_util.h: Likewise.
28543         * sunrpc/rpcinfo.c: Likewise.
28544         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
28545         * sunrpc/rpcsvc/key_prot.x: Likewise.
28546         * sunrpc/rpcsvc/klm_prot.x: Likewise.
28547         * sunrpc/rpcsvc/mount.x: Likewise.
28548         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
28549         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
28550         * sunrpc/rpcsvc/rex.x: Likewise.
28551         * sunrpc/rpcsvc/rstat.x: Likewise.
28552         * sunrpc/rpcsvc/rusers.x: Likewise.
28553         * sunrpc/rpcsvc/sm_inter.x: Likewise.
28554         * sunrpc/rpcsvc/spray.x: Likewise.
28555         * sunrpc/rpcsvc/yppasswd.x: Likewise.
28556         * sunrpc/rtime.c: Likewise.
28557         * sunrpc/svc.c: Likewise.
28558         * sunrpc/svc_auth.c: Likewise.
28559         * sunrpc/svc_authux.c: Likewise.
28560         * sunrpc/svc_raw.c: Likewise.
28561         * sunrpc/svc_run.c: Likewise.
28562         * sunrpc/svc_simple.c: Likewise.
28563         * sunrpc/svc_tcp.c: Likewise.
28564         * sunrpc/svc_udp.c: Likewise.
28565         * sunrpc/svc_unix.c: Likewise.
28566         * sunrpc/svcauth_des.c: Likewise.
28567         * sunrpc/xcrypt.c: Likewise.
28568         * sunrpc/xdr.c: Likewise.
28569         * sunrpc/xdr_array.c: Likewise.
28570         * sunrpc/xdr_float.c: Likewise.
28571         * sunrpc/xdr_mem.c: Likewise.
28572         * sunrpc/xdr_rec.c: Likewise.
28573         * sunrpc/xdr_ref.c: Likewise.
28574         * sunrpc/xdr_sizeof.c: Likewise.
28575         * sunrpc/xdr_stdio.c: Likewise.
28576
28577         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
28578         handling.
28579
28580 2010-08-19  Andreas Schwab  <schwab@redhat.com>
28581
28582         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
28583
28584 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
28585
28586         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
28587         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
28588         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
28589         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
28590         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
28591         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
28592         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
28593         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
28594         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
28595         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
28596         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
28597         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
28598         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
28599         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
28600
28601 2010-07-26  Anton Blanchard  <anton@samba.org>
28602
28603         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
28604         * malloc/arena.c (heap_trim): Likewise.
28605
28606 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
28607
28608         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
28609         here.  Not...
28610         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
28611         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
28612
28613 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
28614
28615         * sysdeps/i386/elf/Makefile: New file.
28616
28617 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
28618
28619         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
28620         from fanotify_init.
28621         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
28622         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
28623
28624 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
28625
28626         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
28627         of strncasecmp_l.
28628         * sysdeps/multiarch/strcmp.S: Likewise.
28629
28630 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
28631
28632         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
28633         strncase_l-nonascii.
28634         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
28635         Add strncase_l-ssse3.
28636         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
28637         * sysdeps/x86_64/strcmp.S: Likewise.
28638         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
28639         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
28640         * sysdeps/x86_64/strncase.S: New file.
28641         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
28642         * sysdeps/x86_64/strncase_l.S: New file.
28643         * string/Makefile (strop-tests): Add strncasecmp.
28644         * string/test-strncasecmp.c: New file.
28645
28646         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
28647         warning.
28648
28649         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
28650         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
28651
28652 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
28653
28654         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
28655
28656 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
28657
28658         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
28659         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
28660         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
28661
28662 2010-05-01  Alan Modra  <amodra@gmail.com>
28663
28664         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
28665         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
28666         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
28667         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
28668         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
28669         tidying.  Don't tail-call __sigjmp_save for static lib.
28670         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
28671         save location.
28672         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
28673         (CALL_MCOUNT): Add eh info, and nop after bl.
28674         (TAIL_CALL_SYSCALL_ERROR): New macro.
28675         (PSEUDO_RET): Use it.
28676         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
28677         Correct save location of integer regs and cr.
28678         (_dl_profile_resolve): Correct cr save location.  Delete nops
28679         after bl when SHARED.  Reduce cfi size a little by better
28680         placement of cfi directives.
28681         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
28682         make a stack frame.  Instead use parm save area as a temp.
28683         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
28684         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
28685         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
28686         Don't make a stack frame for parent, use parm save area.
28687         Increase child stack frame to 112 bytes.  Don't save unused reg,
28688         and adjust reg usage.  Set up cfi on error recovery and
28689         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
28690         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
28691         (__makecontext): Add dummy nop after jump to exit.
28692         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
28693         Use correct parm save area and cr save, reduce stack frame.
28694         Correct cfi for possible PSEUDO_RET frame setup.
28695         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
28696         Branch to local label emitted by PSEUDO_RET rather than
28697         __syscall_error.
28698
28699 2010-08-12  Andreas Schwab  <schwab@redhat.com>
28700
28701         [BZ #11904]
28702         * locale/programs/locale.c (print_assignment): New function.
28703         (show_locale_vars): Use it.
28704
28705 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
28706
28707         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
28708         field.
28709         (struct statfs64): Likewise.
28710         (_STATFS_F_FLAGS): Define.
28711         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
28712         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
28713         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
28714         (ST_VALID): Define locally.
28715         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
28716         __statvfs_getflags, use the provided value.
28717         * sysdeps/unix/sysv/linux/kernel-features.h: Define
28718         __ASSUME_STATFS_F_FLAGS.
28719
28720         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
28721
28722         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
28723         Add sys/fanotify.h.
28724         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
28725         fanotify_mask for GLIBC_2.13.
28726         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
28727         fanotify_init and fanotify_mark.
28728         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
28729         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
28730
28731         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
28732         Add prlimit.
28733         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
28734         prlimit64 for GLIBC_2.13.
28735         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
28736         prlimit64.
28737         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
28738         syscall.
28739         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
28740         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
28741         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
28742         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
28743         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
28744         add prlimit alias.
28745         * sysdeps/unix/sysv/linux/prlimit.c: New file.
28746
28747         [BZ #11903]
28748         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
28749         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
28750
28751         * nss/Makefile: Add rules to build and run tst-nss-test1.
28752         * shlib-versions: Add entry for libnss_test1.
28753         * nss/nss_test1.c: New file.
28754         * nss/tst-nss-test1.c: New file.
28755
28756         * nss/nsswitch.c (__nss_database_custom): Define new variable.
28757         (__nss_configure_lookup): Set appropriate entry in
28758         __nss_configure_lookup to true.
28759         * nss/nsswitch.h: Define enum with indeces of databases in
28760         databases and __nss_database_custom arrays.  Declare
28761         __nss_database_custom.
28762         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
28763         to avoid using nscd when custom rules are installed.
28764         * nss/getXXbyYY_r.c: Likewise.
28765         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
28766
28767         * nss/nss_files/files-parse.c: Whitespace fixes.
28768
28769 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
28770
28771         [BZ #11883]
28772         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
28773         * posix/fnmatch_loop.c: Likewise.
28774
28775 2010-07-17  Andi Kleen  <ak@linux.intel.com>
28776
28777         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
28778         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
28779         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
28780         * Versions.def [GLIBC_2.13]: Add.
28781
28782 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
28783
28784         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
28785         Also fail if tpwd after pwuid call is NULL.
28786
28787 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
28788
28789         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
28790         when converting to ms.
28791
28792 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
28793
28794         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
28795         EOPNOTSUPP errors with ENOTTY.
28796         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
28797         EOPNOTSUPP errors with ENOTTY.
28798
28799 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
28800
28801         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
28802         Add strcasecmp_l-ssse3.
28803         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
28804         strcasecmp.
28805         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
28806         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
28807         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
28808
28809 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
28810
28811         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
28812
28813         * string/Makefile (strop-tests): Add strcasecmp.
28814         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
28815         strcasecmp_l-nonascii.
28816         (gen-as-const-headers): Add locale-defines.sym.
28817         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
28818         * sysdeps/x86_64/strcasecmp.S: New file.
28819         * sysdeps/x86_64/strcasecmp_l.S: New file.
28820         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
28821         * sysdeps/x86_64/locale-defines.sym: New file.
28822         * string/test-strcasecmp.c: New file.
28823
28824         * string/test-strcasestr.c: Test both ends of the range of characters.
28825         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
28826
28827 2010-07-29  Roland McGrath  <roland@redhat.com>
28828
28829         [BZ #11856]
28830         * manual/locale.texi (Yes-or-No Questions): Fix example code.
28831
28832 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
28833
28834         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
28835         for ld.so.
28836
28837 2010-07-27  Andreas Schwab  <schwab@redhat.com>
28838
28839         * manual/memory.texi (Malloc Tunable Parameters): Document
28840         M_PERTURB.
28841
28842 2010-07-26  Roland McGrath  <roland@redhat.com>
28843
28844         [BZ #11840]
28845         * configure.in (-fgnu89-inline check): Set and substitute
28846         gnu89_inline, not libc_cv_gnu89_inline.
28847         * configure: Regenerated.
28848         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
28849
28850 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
28851
28852         * string/test-strnlen.c: New file.
28853         * string/Makefile (strop-tests): Add strnlen.
28854         * string/tester.c (test_strnlen): Add a few more test cases.
28855         * string/tst-strlen.c: Better error reporting.
28856
28857         * sysdeps/x86_64/strnlen.S: New file.
28858
28859 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
28860
28861         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
28862         lower-latency instructions.
28863
28864 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
28865
28866         * string/test-strcasestr.c: New file.
28867         * string/test-strstr.c: New file.
28868         * string/Makefile (strop-tests): Add strstr and strcasestr.
28869         * string/str-two-way.h: Don't undefine MAX.
28870         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
28871
28872 2010-07-21  Andreas Schwab  <schwab@redhat.com>
28873
28874         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
28875         strcasestr-nonascii.
28876         (CFLAGS-strcasestr-nonascii.c): Define.
28877         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
28878         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
28879         Remove unused attribute.
28880
28881 2010-07-20  Roland McGrath  <roland@redhat.com>
28882
28883         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
28884         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
28885         ld.so.cache was broken.  With it, there is no way to disable dsocaps
28886         like LD_HWCAP_MASK can disable hwcaps.
28887
28888 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
28889
28890         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
28891
28892 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
28893
28894         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
28895         call in strcasestr.
28896         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
28897         __strcasestr_sse42_nonascii.
28898         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
28899         strcasestr-nonascii.c.
28900         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
28901
28902 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
28903
28904         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
28905         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
28906         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
28907         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
28908
28909 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
28910
28911         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
28912         fcntl.
28913
28914 2010-07-06  Andreas Schwab  <schwab@redhat.com>
28915
28916         [BZ #11577]
28917         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
28918         dl_signal_cerror.
28919
28920 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
28921
28922         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
28923         _PC_PIPE_BUF using F_GETPIPE_SZ.
28924
28925 2010-07-05  Roland McGrath  <roland@redhat.com>
28926
28927         * manual/arith.texi (Rounding Functions): Fix rint description
28928         implicit in round description.
28929
28930 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
28931
28932         * elf/Makefile: Fix linking for a few tests to make recent linker
28933         happy.
28934
28935 2010-06-30  Andreas Schwab  <schwab@redhat.com>
28936
28937         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
28938         $(common-objpfx)libc_nonshared.a.
28939
28940 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
28941
28942         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
28943         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
28944         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
28945         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
28946         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
28947         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
28948         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
28949         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
28950         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
28951         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
28952         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
28953         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
28954         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
28955         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
28956         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
28957         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
28958         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
28959         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
28960         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
28961         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
28962         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
28963         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
28964         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
28965         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
28966         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
28967         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
28968         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
28969         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
28970         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
28971         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
28972         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
28973         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
28974         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
28975         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
28976         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
28977         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
28978         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
28979         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
28980         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
28981         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
28982         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
28983         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
28984         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
28985         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
28986         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
28987         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
28988         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
28989         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
28990
28991 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
28992
28993         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
28994         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
28995         * string/memmove.c (memmove): Renamed to ...
28996         (MEMMOVE): ...this.  Default to memmove.
28997         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
28998         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
28999         (END_CHK): Define.
29000         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
29001         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
29002         mempcpy-ssse3-back memmove-ssse3-back.
29003         * sysdeps/x86_64/multiarch/bcopy.S: New file .
29004         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
29005         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
29006         * sysdeps/x86_64/multiarch/memcpy.S: New file.
29007         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
29008         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
29009         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
29010         * sysdeps/x86_64/multiarch/memmove.c: New file.
29011         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
29012         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
29013         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
29014         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
29015         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
29016         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
29017         Define.
29018         (index_Fast_Copy_Backward): Define.
29019         (HAS_ARCH_FEATURE): Define.
29020         (HAS_FAST_REP_STRING): Define.
29021         (HAS_FAST_COPY_BACKWARD): Define.
29022
29023 2010-06-21  Andreas Schwab  <schwab@redhat.com>
29024
29025         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
29026         Restore proper fallback handling.
29027
29028 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
29029
29030         [BZ #11701]
29031         * posix/group_member.c (__group_member): Correct checking loop.
29032
29033         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
29034         OOM in getpwuid_r correctly.  Return error number when the caller
29035         should return, otherwise -1.
29036         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
29037         call returning > 0 value.
29038         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
29039
29040 2010-06-07  Andreas Schwab  <schwab@redhat.com>
29041
29042         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
29043         libc_nonshared.a from targets in modules-names.
29044
29045 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
29046
29047         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
29048         requires it.
29049
29050 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
29051
29052         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
29053         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
29054         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
29055         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
29056
29057 2010-06-02  Andreas Schwab  <schwab@redhat.com>
29058
29059         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
29060
29061 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
29062
29063         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
29064         and F_GETPIPE_SZ.
29065         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
29066         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
29067         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
29068         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
29069         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
29070         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
29071
29072 2010-06-14  Roland McGrath  <roland@redhat.com>
29073
29074         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
29075
29076 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
29077
29078         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
29079         __REDIRECT followed by __THROW.
29080         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
29081         * posix/getopt.h (getopt): Likewise.
29082
29083 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
29084
29085         * hurd/lookup-at.c (__file_name_lookup_at): Accept
29086         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
29087         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
29088         in AT_FLAGS.
29089         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
29090         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
29091
29092 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
29093
29094         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
29095
29096 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
29097
29098         [BZ #11640]
29099         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
29100         Properly check family and model.
29101
29102 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
29103
29104         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
29105
29106 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
29107
29108         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
29109
29110 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
29111
29112         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
29113         symbol reference.
29114
29115 2010-05-19  Andreas Schwab  <schwab@redhat.com>
29116
29117         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
29118         symbol reference.
29119
29120 2010-05-21  Andreas Schwab  <schwab@redhat.com>
29121
29122         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
29123         and internal_recvmmsg.
29124         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
29125         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
29126         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
29127         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
29128
29129         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
29130         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
29131         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
29132
29133 2010-05-20  Andreas Schwab  <schwab@redhat.com>
29134
29135         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
29136
29137 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
29138
29139         POWER7 optimizations.
29140         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
29141         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
29142
29143 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
29144
29145         * version.h: Update for 2.13 development version.
29146
29147 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
29148
29149         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
29150         exceptions.  Return 0.
29151
29152 2010-05-07  Roland McGrath  <roland@redhat.com>
29153
29154         * elf/ldconfig.c (main): Add a const.
29155
29156 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
29157
29158         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
29159         (args_options): Add no-idn option.
29160         (ahosts_keys_int): Add idn_flags to ai_flags.
29161         (parse_option): Handle 'i' option to clear idn_flags.
29162
29163         * malloc/malloc.c (_int_free): Possible race in the most recently
29164         added check.  Only act on the data if no current modification
29165         happened.
29166
29167 See ChangeLog.17 for earlier changes.