Fix integer overflow in sysdeps/unix/sysv/linux/bits/sched.h
[platform/upstream/glibc.git] / ChangeLog
1 2013-05-10  Andreas Jaeger  <aj@suse.de>
2
3         [BZ #15448]
4         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
5         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
6
7 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
8
9         * math/gen-libm-test.pl (adjust_arg): New function.
10         (special_functions): Handle generating output in both functions
11         and arrays.
12         (parse_args): Likewise.
13         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
14         $in_func argument to parse_args.
15         * math/libm-test.inc (struct test_f_f_data): New type.
16         (IF_ROUND_INIT_): New macro.
17         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
18         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
19         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
20         (IF_ROUND_INIT_FE_UPWARD): Likewise.
21         (ROUND_RESTORE_): Likewise.
22         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
23         (ROUND_RESTORE_FE_TONEAREST): Likewise.
24         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
25         (ROUND_RESTORE_FE_UPWARD): Likewise.
26         (RUN_TEST_LOOP_f_f): New macro.
27         (acos_test_data): New variable.
28         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
29         (acos_tonearest_test_data): New variable.
30         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
31
32 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
33
34         * benchtests/bench-skeleton.c (startup): Fix coding style.
35
36 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
37
38         [BZ #6809]
39         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
40         negative infinity argument.
41         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
42         negative infinity argument.
43         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
44         negative infinity argument.
45         * math/libm-test.inc (tgamma_test): Expect errno to be set for
46         domain errors.
47
48 2013-05-10  Florian Weimer  <fweimer@redhat.com>
49
50         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
51         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
52         * iconv/iconv_prog.c (main): Likewise.
53         * locale/programs/charmap-dir.c (charmap_readdir)
54         (fopen_uncompressed): Likewise.
55         * locale/programs/locfile.c (siblings_uncached)
56         (write_locale_data): Use lstat64 instead of lstat.
57         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
58         stat.
59
60 2013-05-10  Andreas Jaeger  <aj@suse.de>
61
62         [BZ #15395]
63         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
64         localization.
65         Include <locale.h>.
66
67 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
68
69         * elf/dl-close.c (_dl_close_worker): Add comments.
70
71 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
72
73         [BZ #15359]
74         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
75         high part of pi/2.
76         (__ieee754_rem_pio2l): Update comments.
77
78         [BZ #15429]
79         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
80         high part of pi/2.
81         (__ieee754_rem_pio2l): Update comments.
82
83         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
84         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
85
86         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
87         M_PI_4l.
88
89         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
90         (M_PI_34_LOG10El): Likewise.
91         (M_PI2_LOG10El): Likewise.
92         (M_PI4_LOG10El): Likewise.
93         (M_PI_LOG10El): Likewise.
94
95 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
96
97         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
98
99 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
100
101         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
102         (MINUS_ZERO_INIT): Likewise.
103         (PLUS_INFTY_INIT): Likewise.
104         (MINUS_INFTY_INIT): Likewise.
105         (QNAN_VALUE_INIT): Likewise.
106         (MAX_VALUE_INIT): Likewise.
107         (MIN_VALUE_INIT): Likewise.
108         (MIN_SUBNORM_VALUE_INIT): Likewise.
109         (plus_zero): Initialize with PLUS_ZERO_INIT.
110         (minus_zero): Initialize with MINUS_ZERO_INIT.
111         (plus_infty): Initialize with PLUS_INFTY_INIT.
112         (minus_infty): Initialize with MINUS_INFTY_INIT.
113         (qnan_value): Initialize with QNAN_VALUE_INIT.
114         (max_value): Initialize with MAX_VALUE_INIT.
115         (min_value): Initialize with MIN_VALUE_INIT.
116         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
117
118         * math/libm-test.inc (RUN_TEST_if_f): New macro.
119         (jn_test): Use TEST_if_f instead of TEST_ff_f.
120         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
121         (yn_test): Use TEST_if_f instead of TEST_ff_f.
122
123         * math/libm-test.inc (RUN_TEST_f_f): New macro.
124         (RUN_TEST_2_f): Likewise.
125         (RUN_TEST_ff_f): Likewise.
126         (RUN_TEST_fi_f): Likewise.
127         (RUN_TEST_fl_f): Likewise.
128         (RUN_TEST_fff_f): Likewise.
129         (RUN_TEST_c_f): Likewise.
130         (RUN_TEST_f_f1): Likewise.
131         (RUN_TEST_fF_f1): Likewise.
132         (RUN_TEST_fI_f1): Likewise.
133         (RUN_TEST_ffI_f1): Likewise.
134         (RUN_TEST_c_c): Likewise.
135         (RUN_TEST_cc_c): Likewise.
136         (RUN_TEST_f_i): Likewise.
137         (RUN_TEST_f_i_tg): Likewise.
138         (RUN_TEST_ff_i_tg): Likewise.
139         (RUN_TEST_f_b): Likewise.
140         (RUN_TEST_f_b_tg): Likewise.
141         (RUN_TEST_f_l): Likewise.
142         (RUN_TEST_f_L): Likewise.
143         (RUN_TEST_sincos): Likewise.
144         * math/gen-libm-test.pl (new_test): Take new argument to indicate
145         whether to show exceptions.  Do not include ");\n" in return
146         value.
147         (special_functions): Output call to RUN_TEST_sincos instead of
148         check_float calls.  Update calls to new_test.
149         (parse_args): Output call to single RUN_TEST_* macro instead of
150         check_* calls and other assignments.  Update calls to new_test.
151
152         [BZ #2546]
153         [BZ #2560]
154         [BZ #5159]
155         [BZ #15426]
156         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
157         input to result for tgamma overflow.
158         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
159         (gamma_coeff): New variable.
160         (NCOEFF): New macro.
161         (gamma_positive): New function.
162         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
163         underflow here.  Use gamma_positive instead of exp (lgamma) for
164         other arguments.
165         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
166         (gamma_coeff): New variable.
167         (NCOEFF): New macro.
168         (gammaf_positive): New function.
169         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
170         underflow here.  Use gamma_positive instead of exp (lgamma) for
171         other arguments.
172         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
173         (gamma_coeff): New variable.
174         (NCOEFF): New macro.
175         (gammal_positive): New function.
176         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
177         underflow here.  Use gamma_positive instead of exp (lgamma) for
178         other arguments.
179         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
180         (gamma_coeff): New variable.
181         (NCOEFF): New macro.
182         (gammal_positive): New function.
183         (__ieee754_gammal_r): Handle positive infinity, overflow and
184         underflow here.  Handle NaN the same as positive infinity.  Remove
185         check x < 0xffffffff for negative integers.  Use gamma_positive
186         instead of exp (lgamma) for other arguments.
187         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
188         (gamma_coeff): New variable.
189         (NCOEFF): New macro.
190         (gammal_positive): New function.
191         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
192         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
193         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
194         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
195         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
196         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
197         * sysdeps/generic/math_private.h (__gamma_productf): New
198         prototype.
199         (__gamma_product): Likewise.
200         (__gamma_productl): Likewise.
201         * math/Makefile (libm-calls): Add gamma_product.
202         * math/libm-test.inc (tgamma_test): Add more tests.
203         * sysdeps/i386/fpu/libm-test-ulps: Update.
204         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
205
206 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
207
208         * benchtests/bench-skeleton.c (main): Preheat CPU.
209
210 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
211
212         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
213
214 2013-05-07  Roland McGrath  <roland@hack.frob.com>
215
216         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
217         and _dl_skip_args_internal.
218
219 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
220
221         * manual/message.texi (Message Translation): Talk about users.
222         Message to key mapping impacts design.
223
224 2013-05-06  Roland McGrath  <roland@hack.frob.com>
225
226         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
227
228         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
229
230         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
231         * sysdeps/wordsize-64/glob64.c: ... here.
232
233         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
234         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
235         New macros.
236
237         * debug/getlogin_r_chk.c: Moved to ...
238         * login/getlogin_r_chk.c: ... here.
239         * debug/Makefile (routines): Move getlogin_r_chk to ...
240         * login/Makefile (routines): ... here.
241         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
242         * login/Versions (libc: GLIBC_2.4): ... here.
243
244         * io/poll.c (__poll): Renamed from poll.
245         Add libc_hidden_def.
246         (poll): Define as weak alias.
247
248         * debug/ptsname_r_chk.c: Moved to ...
249         * login/ptsname_r_chk.c: ... here.
250         * debug/Makefile (routines): Move ptsname_r_chk to ...
251         * login/Makefile (routines): ... here.
252         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
253         * login/Versions (libc: GLIBC_2.4): ... here.
254
255         * posix/getlogin.c: Moved to ...
256         * login/getlogin.c: ... here.
257         * posix/getlogin_r.c: Moved to ...
258         * login/getlogin_r.c: ... here.
259         * posix/getlogin_r.c: Moved to ...
260         * login/getlogin_r.c: ... here.
261         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
262         * login/Makefile (routines): ... here.
263         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
264         * login/Versions (libc: GLIBC_2.0): ... here.
265
266         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
267         (setrlimit): Define as weak alias.
268
269         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
270         Call __ names for open, ftruncate, and close.
271         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
272         (truncate): Define as weak alias.
273
274 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
275
276         * math/gen-libm-test.pl (parse_args): Initialize x before each
277         test of frexp, modf and remquo.
278
279         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
280         test signgam value.
281
282 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
283
284         [BZ #15418]
285         [BZ #15419]
286         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
287         internal tests.
288         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
289
290 2013-05-06  Roland McGrath  <roland@hack.frob.com>
291
292         * elf/dl-writev.h: New file.
293         * elf/dl-misc.c: Include it.
294         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
295         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
296
297 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
298
299         * math/libm-test.inc (noXFails): Remove variable.
300         (noXPasses): Likewise.
301         (BUILD_COMPLEX_INT): Remove macro.
302         (print_screen): Remove xfail argument.
303         (print_screen_max_error): Likewise.
304         (update_stats): Likewise.
305         (print_max_error): Likewise.  Update calls to other affected
306         functions.
307         (print_complex_max_error): Likewise.
308         (test_single_exception): Update calls to print_screen.
309         (test_single_errno): Likewise.
310         (check_float_internal): Remove xfail argument.  Update calls to
311         other affected functions.
312         (check_float): Likewise.
313         (check_complex): Likewise.
314         (check_int): Likewise.
315         (check_long): Likewise.
316         (check_bool): Likewise.
317         (check_longlong): Likewise.
318         (main): Don't print noXFails and noXPasses.
319         * math/gen-libm-test.pl (top level): Don't mention expected
320         failure handling in comment.
321         (new_test): Don't handle expected failures.
322         (parse_args): Don't mention expected failure handling in comment.
323         (generate_testfile): Don't handle expected failures.
324         (parse_ulps): Likewise.
325         (print_ulps_file): Likewise.
326         (get_failure): Remove function.
327         (output_test): Don't handle expected failures.
328         * make/README.libm-test: Don't mention expected failure handling.
329
330         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
331         (minus_zero): Likewise.
332         (plus_infty): Likewise.
333         (minus_infty): Likewise.
334         (qnan_value): Likewise.
335         (max_value): Likewise.
336         (min_value): Likewise.
337         (min_subnorm_value): Likewise.
338         (initialize): Do not initialize those variables dynamically.
339
340 2013-05-03  Roland McGrath  <roland@hack.frob.com>
341
342         * io/open.c (__open_2): Moved to ...
343         * io/open_2.c: ... this new file.
344         * io/open64.c (__open64_2): Moved to ...
345         * io/open64_2.c: ... this new file.
346         * io/openat.c (__openat_2): Moved to ...
347         * io/openat_2.c: ... this new file.
348         * io/openat64.c (__openat64_2): Moved to ...
349         * io/openat64_2.c: ... this new file.
350         * io/Makefile (routines): Add them.
351         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
352         * sysdeps/unix/sysv/linux/open_2.c: File removed.
353         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
354         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
355         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
356         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
357         (__openat64): Add hidden_ver.
358         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
359         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
360
361         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
362         Separately conditionalize setting of GLRO(dl_sysinfo) so
363         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
364         as well, but the actual setting is only under [NEED_DL_SYSINFO].
365
366 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
367
368         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
369         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
370         definition.
371         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
372         * sysdeps/unix/sysv/linux/powerpc/init-first.c
373         (_libc_vdso_platform_setup): Add __vdso_time initialization.
374         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
375         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
376
377 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
378
379         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
380         test signgam value.
381
382         * math/libm-test.inc (hypot_test): Do not use
383         IGNORE_ZERO_INF_SIGN.
384
385 2013-05-03  Andreas Jaeger  <aj@suse.de>
386
387         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
388         Linux 3.9.
389         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
390         (PF_MAX): Adjust for VSOCK change.
391
392 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
393
394         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
395
396 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
397
398         [BZ #15264]
399         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
400         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
401         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
402
403 2013-05-02  David S. Miller  <davem@davemloft.net>
404
405         * sysdeps/sparc/fpu/libm-test-ulps: Update.
406
407 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
408
409         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
410
411 2013-05-01  Roland McGrath  <roland@hack.frob.com>
412
413         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
414
415 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
416
417         [BZ #14952]
418         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
419         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
420         Use __attribute__ ((__gnu_inline__)).
421         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
422         Don't use __attribute__ ((__gnu_inline__)).
423
424 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
425
426         [BZ #15423]
427         * math/s_catan.c (__catan): Handle small real or imaginary part of
428         input specially to avoid spurious underflow.
429         * math/s_catanf.c (__catanf): Likewise.
430         * math/s_catanh.c (__catanh): Likewise.
431         * math/s_catanhf.c (__catanhf): Likewise.
432         * math/s_catanhl.c (__catanhl): Likewise.
433         * math/s_catanl.c (__catanl): Likewise.
434         * math/libm-test.inc (catan_test): Add more tests.
435         (catanh_test): Likewise.
436         * sysdeps/i386/fpu/libm-test-ulps: Update.
437         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
438
439 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
440
441         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
442
443 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
444
445         [BZ #15416]
446         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
447         accurately for denominator in atan2.
448         * math/s_catanf.c (__catanf): Likewise.
449         * math/s_catanh.c (__catanh): Likewise.
450         * math/s_catanhf.c (__catanhf): Likewise.
451         * math/s_catanhl.c (__catanhl): Likewise.
452         * math/s_catanl.c (__catanl): Likewise.
453         * math/libm-test.inc (catan_test): Add more tests.
454         (catanh_test): Likewise.
455         * sysdeps/i386/fpu/libm-test-ulps: Update.
456         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
457
458 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
459
460         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
461
462         * benchtests/Makefile (bench): Remove slow benchmarks.
463         * benchtests/atan-inputs: Add slow benchmark inputs.
464         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
465         (BENCH_FUNC): Accept variant offset.
466         (VARIANT): Define.
467         * benchtests/bench-skeleton.c (main): Run benchmark for each
468         variant.
469         * benchtests/cos-inputs: Add slow benchmark inputs.
470         * benchtests/exp-inputs: Likewise.
471         * benchtests/pow-inputs: Likewise.
472         * benchtests/sin-inputs: Likewise.
473         * benchtests/slowatan-inputs: Remove.
474         * benchtests/slowatan.c: Remove.
475         * benchtests/slowcos-inputs: Remove.
476         * benchtests/slowcos.c: Remove.
477         * benchtests/slowexp-inputs: Remove.
478         * benchtests/slowexp.c: Remove.
479         * benchtests/slowpow-inputs: Remove.
480         * benchtests/slowpow.c: Remove.
481         * benchtests/slowsin-inputs: Remove.
482         * benchtests/slowsin.c: Remove.
483         * benchtests/slowtan-inputs: Remove.
484         * benchtests/slowtan.c: Remove.
485         * benchtests/tan-inputs: Add slow benchmark inputs.
486         * scripts/bench.pl: Parse comments and directives.
487
488         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
489         in CPPFLAGS.
490         ($(objpfx)bench-%.c): Remove *-ITER.
491         * benchtests/bench-modf.c: Remove definition of ITER.
492         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
493         (main): Loop for DURATION seconds instead of fixed number of
494         iterations.
495         * scripts/bench.pl: Don't expect iterations in parameters.
496
497 2013-04-29  Roland McGrath  <roland@hack.frob.com>
498
499         * io/fchdir.c (__fchdir): Renamed from fchdir.
500         (fchdir): Define as weak alias.
501
502 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
503
504         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
505         (ERRNO_EDOM): Likewise.
506         (ERRNO_ERANGE): Likewise.
507         (noErrnoTests): New variable.
508         (init_max_error): Set errno to 0.
509         (test_single_errno): New function.
510         (test_errno): Likewise.
511         (check_float_internal): Call test_errno.  Set errno to 0.
512         (check_complex): Refer to errno tests in comment.
513         (check_int): Call test_errno.  Set errno to 0.
514         (check_long): Likewise.
515         (check_bool): Likewise.
516         (check_longlong): Likewise.
517         (cos_test): Use ERRNO_* flags for errno tests instead of
518         check_int.
519         (expm1_test): Likewise.
520         (fmod_test): Likewise.
521         (ilogb_test): Likewise.
522         (lgamma_test): Likewise.
523         (pow_test): Likewise.
524         (remainder_test): Likewise.
525         (sin_test): Likewise.
526         (tan_test): Likewise.
527         (yn_test): Likewise.
528         (initialize): Set errno to 0.
529         (main): Print number of errno tests.
530         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
531
532 2013-04-29  Andreas Jaeger  <aj@suse.de>
533
534         [BZ #15084]
535         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
536         and RES_USEVC.
537
538         [BZ #15085]
539         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
540         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
541         unimplemented.
542
543         [BZ #15380]
544         * stdlib/random.c (__initstate): Return NULL if
545         __initstate fails.
546
547         [BZ #15086]
548         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
549         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
550         RES_SNGLKUPREOP.
551
552 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
553
554         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
555
556 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
557
558         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
559         of individual tests.
560         (casin_test): Likewise.
561         (casinh_test): Likewise.
562
563 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
564
565         [BZ #15409]
566         * math/s_catan.c (__catan): Handle arguments with large real or
567         imaginary part separately without squaring.
568         * math/s_catanf.c (__catanf): Likewise.
569         * math/s_catanh.c (__catanh): Likewise.
570         * math/s_catanhf.c (__catanhf): Likewise.
571         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
572         and redefine.
573         (__catanhl): Handle arguments with large real or imaginary part
574         separately without squaring.
575         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
576         and redefine.
577         (__catanl): Handle arguments with large real or imaginary part
578         separately without squaring.
579         * math/libm-test.inc (catan_test): Add more tests.
580         (catanh_test): Likewise.
581         * sysdeps/i386/fpu/libm-test-ulps: Update.
582         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
583
584 2013-04-27  Andreas Jaeger  <aj@suse.de>
585
586         [BZ #15007]
587         * stdlib/stdlib.h: Update guards for qecvt.
588         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
589         <stdlib.h>.
590
591 2013-04-27  Allan McRae  <allan@archlinux.org>
592
593         * sysdeps/i386/fpu/libm-test-ulps: Update.
594
595 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
596
597         [BZ #15406]
598         * math/s_catan.c: Include <float.h>.
599         (__catan): Ensure underflow exception occurs for underflowed
600         result.
601         * math/s_catanf.c: Include <float.h>.
602         (__catanf): Ensure underflow exception occurs for underflowed
603         result.
604         * math/s_catanh.c: Include <float.h>.
605         (__catanh): Ensure underflow exception occurs for underflowed
606         result.
607         * math/s_catanhf.c: Include <float.h>.
608         (__catanhf): Ensure underflow exception occurs for underflowed
609         result.
610         * math/s_catanhl.c: Include <float.h>.
611         (__catanhl): Ensure underflow exception occurs for underflowed
612         result.
613         * math/s_catanl.c: Include <float.h>.
614         (__catanl): Ensure underflow exception occurs for underflowed
615         result.
616         * math/libm-test.inc (catan_test): Add more tests.
617         (catanh_test): Likewise.
618
619         [BZ #15405]
620         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
621         underflowed result.
622         * math/s_ccoshf.c (__ccoshf): Likewise.
623         * math/s_ccoshl.c (__ccoshl): Likewise.
624         * math/s_csin.c (__csin): Likewise.
625         * math/s_csinf.c (__csinf): Likewise.
626         * math/s_csinh.c (__csinh): Likewise.
627         * math/s_csinhf.c (__csinhf): Likewise.
628         * math/s_csinhl.c (__csinhl): Likewise.
629         * math/s_csinl.c (__csinl): Likewise.
630         * math/libm-test.inc (ccos_test): Add more tests.
631         (ccosh_test): Likewise.
632         (csin_test): Likewise.
633         (csinh_test): Likewise.
634
635 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
636
637         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
638         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
639         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
640         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
641         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
642         powerpc/power5+/fpu folders.
643         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
644
645
646 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
647
648         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
649
650 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
651
652         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
653         additions to variable.
654         [$(config-machine) = x86_64] (modules-names): Likewise.
655         ($(objpfx)tst-audit3): Remove dependency.
656         ($(objpfx)tst-audit3.out): Likewise.
657         ($(objpfx)tst-audit4): Likewise.
658         ($(objpfx)tst-audit4.out): Likewise.
659         ($(objpfx)tst-audit5): Likewise.
660         ($(objpfx)tst-audit5.out): Likewise.
661         ($(objpfx)tst-audit6): Likewise.
662         ($(objpfx)tst-audit6.out): Likewise.
663         ($(objpfx)tst-audit7): Likewise.
664         ($(objpfx)tst-audit7.out): Likewise.
665         (tst-audit3-ENV): Remove variable.
666         (tst-audit4-ENV): Likewise.
667         (tst-audit5-ENV): Likewise.
668         (tst-audit6-ENV): Likewise.
669         (tst-audit7-ENV): Likewise.
670         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
671         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
672         addition to variable.
673         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
674         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
675         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
676         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
677         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
678         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
679         tst-audit3, tst-audit4 and tst-audit5.
680         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
681         tst-audit6 and tst-audit7.
682         [$(subdir) = elf] (modules-names): Add audit modules for those
683         tests.
684         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
685         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
686         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
687         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
688         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
689         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
690         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
691         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
692         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
693         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
694         [$(subdir) = elf] (tst-audit3-ENV): New variable.
695         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
696         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
697         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
698         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
699         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
700         Likewise.
701         [$(subdir) = elf && $(config-cflags-avx) = yes]
702         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
703         [$(subdir) = elf && $(config-cflags-avx) = yes]
704         (CFLAGS-tst-auditmod4a.c): Likewise.
705         [$(subdir) = elf && $(config-cflags-avx) = yes]
706         (CFLAGS-tst-auditmod4b.c): Likewise.
707         [$(subdir) = elf && $(config-cflags-avx) = yes]
708         (CFLAGS-tst-auditmod6b.c): Likewise.
709         [$(subdir) = elf && $(config-cflags-avx) = yes]
710         (CFLAGS-tst-auditmod6c.c): Likewise.
711         [$(subdir) = elf && $(config-cflags-avx) = yes]
712         (CFLAGS-tst-auditmod7b.c): Likewise.
713         * elf/tst-audit3.c: Move to ...
714         * sysdeps/x86_64/tst-audit3.c: ... here.
715         * elf/tst-audit4.c: Move to ...
716         * sysdeps/x86_64/tst-audit4.c: ... here.
717         * elf/tst-audit5.c: Move to ...
718         * sysdeps/x86_64/tst-audit5.c: ... here.
719         * elf/tst-audit6.c: Move to ...
720         * sysdeps/x86_64/tst-audit6.c: ... here.
721         * elf/tst-audit7.c: Move to ...
722         * sysdeps/x86_64/tst-audit7.c: ... here.
723         * elf/tst-auditmod3a.c: Move to ...
724         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
725         * elf/tst-auditmod3b.c: Move to ...
726         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
727         * elf/tst-auditmod4a.c: Move to ...
728         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
729         * elf/tst-auditmod4b.c: Move to ...
730         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
731         * elf/tst-auditmod5a.c: Move to ...
732         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
733         * elf/tst-auditmod5b.c: Move to ...
734         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
735         * elf/tst-auditmod6a.c: Move to ...
736         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
737         * elf/tst-auditmod6b.c: Move to ...
738         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
739         * elf/tst-auditmod6c.c: Move to ...
740         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
741         * elf/tst-auditmod7a.c: Move to ...
742         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
743         * elf/tst-auditmod7b.c: Move to ...
744         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
745
746 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
747
748         [BZ #15366]
749         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
750         define unconditionally.
751         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
752         define unconditionally.
753         (INT8_C, INT16_C, etc.): Likewise.
754
755 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
756
757         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
758         __ehdr_start with hidden visibility.
759
760         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
761
762 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
763
764         * math/libm-test.inc (cos_test): Use accurate hex constants.
765         (sincost_test): Likewise.
766
767 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
768
769         * math/libm-test.inc (catan_test): Add more tests.
770         (catanh_test): Likewise.
771
772         * math/s_catanf.c (__catanf): Use suffixed floating-point
773         constants.
774         * math/s_catanhf.c (__catanhf): Likewise.
775         * math/s_catanhl.c (__catanhl): Likewise.
776         * math/s_catanl.c (__catanl): Likewise.
777
778         [BZ #15394]
779         * math/s_catan.c (__catan): Calculate imaginary part of result
780         with log1p not log unless computing log of number close to 0.
781         * math/s_catanf.c (__catanf): Likewise.
782         * math/s_catanl.c (__catanl): Likewise.
783         * math/s_catanh.c (__catanh): Calculate real part of result with
784         log1p not log unless computing log of number close to 0.
785         * math/s_catanhf.c (__catanhf): Likewise.
786         * math/s_catanhl.c (__catanhl): Likewise.
787         * math/libm-test.inc (catan_test): Add more tests.
788         (catanh_test): Likewise.
789         * sysdeps/i386/fpu/libm-test-ulps: Update.
790         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
791
792 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
793
794         * benchtests/Makefile: Mention files in which fast and slow
795         paths of math functions are implemented.
796
797 2013-04-23  Roland McGrath  <roland@hack.frob.com>
798
799         * sysdeps/posix/timespec_get.c: New file.
800
801 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
802
803         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
804         POWER.
805         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
806         for POWER.
807         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
808         powerpc/power5/fpu folders.
809         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
810         * benchtests/Makefile: Add modf testcase.
811         * benchtests/bench-modf.c: New file: Benchmark test for mo
812
813 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
814
815         [BZ #14888]
816         * time/Makefile (tests): Add tst-strptime-whitespace.
817         * time/strptime_l.c (get_number): Use ISSPACE.
818         (__strptime_internal): Likewise.
819         * time/tst-strptime-whitespace.c: New test case.
820
821 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
822
823         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
824         member.
825         (_nss_files_init): Set it here.
826
827 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
828
829         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
830         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
831         unsigned.
832
833 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
834
835         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
836
837 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
838
839         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
840         size just once.
841
842 2013-04-21  David S. Miller  <davem@davemloft.net>
843
844         * po/ru.po: Update Russion translation from translation project.
845
846 2013-04-17  Adam Conrad  <adconrad@0c3.net>
847
848         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
849         and setfsgid.
850
851 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
852
853         * configure.in: Remove i386 configure warning. Remove i386 case.
854         * configure: Regenerate.
855         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
856         Add example to error message.
857         * sysdeps/i386/configure: Regenerate.
858
859 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
860
861         * benchtests/Makefile (bench): Add cos, tan, slowcos and
862         slowtan.
863         * benchtests/cos-inputs: New file.
864         * benchtests/slowcos-inputs: New file.
865         * benchtests/slowcos.c: New file.
866         * benchtests/slowtan-inputs: New file.
867         * benchtests/slowtan.c: New file.
868         * benchtests/tan-inputs: New file.
869
870 2013-04-16  Roland McGrath  <roland@hack.frob.com>
871
872         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
873         considered kosher.
874
875 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
876
877         * benchtests/Makefile: Include cppflags-iterator.mk to add
878         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
879
880         * Makefile.in (bench-clean): New target.
881         * benchtests/Makefile (bench-clean): Likewise.
882
883 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
884
885         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
886
887 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
888
889         * stdio-common/tstdiomisc.c: Fix coding-style violation.
890
891 2013-04-15  Andreas Schwab  <schwab@suse.de>
892
893         * nscd/grpcache.c (cache_addgr): Properly check for short write.
894         * nscd/initgrcache.c (addinitgroupsX): Likewise.
895         * nscd/pwdcache.c (cache_addpw): Likewise.
896         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
897         more than recsize.
898
899 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
900
901         * benchtests/Makefile (bench): Write all output to
902         bench-out.tmp together.
903
904 2013-04-15  Andreas Schwab  <schwab@suse.de>
905
906         * nscd/nscd.c (main): Don't fork again after closing files.
907
908 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
909
910         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
911
912         * benchtests/Rules (bench-deps): Collect dependencies into a
913         single variable.  Add Makefile to dependencies.
914         ($(objpfx)bench-%.c): Depend on bench-deps.
915
916 2013-04-12  Roland McGrath  <roland@hack.frob.com>
917             Xavier Roche  <roche+kml2@exalead.com>
918
919         [BZ #15361]
920         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
921         just that it's a file descriptor.
922         * manual/llio.texi (Synchronizing AIO Operations): Update description
923         for EBADF error from aio_fsync.
924
925 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
926
927         * Rules (bench): Move target definition...
928         * benchtests/Makefile: ... here.
929
930 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
931
932         * math/libm-test.inc (cos_test): Fix PI/2 test.
933         (sincos_test): Likewise.
934         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
935         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
936
937 2013-04-11  Andreas Schwab  <schwab@suse.de>
938
939         [BZ #13988]
940         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
941         accept exponent character only when digits were seen.
942         * stdio-common/Makefile (tests): Add bug26.
943         * stdio-common/bug26.c: New file.
944
945         [BZ #14293]
946         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
947         non-freeable.
948
949 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
950
951         * Makeconfig (rtld-prefix): Define built linker prefix.
952         * Rules (run-bench): Use it.
953         * math/Makefile (run-regen-ulps): Likewise.
954
955         * Rules (bench): Remove eval.
956
957 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
958             Roland McGrath  <roland@hack.frob.com>
959             Ondrej Bilka  <neleai@seznam.cz>
960
961         [BZ #15346]
962         * time/getdate.c: Include ctype.h and alloca.h.
963         (__getdate_r): Trim leading and trailing spaces of input.
964         * time/tst-getdate.c (tests): Add tests with leading and
965         trailing spaces.
966
967 2013-04-08  Roland McGrath  <roland@hack.frob.com>
968
969         [BZ #14280]
970         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
971         when computing value.
972
973 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
974
975         * math/README.libm-test (How can I generate "libm-test-ulps"?):
976         Use testrun.sh to run libm tests.
977
978         [BZ #15309]
979         * elf/dl-open.c (dl_open_worker): memset all of seen array.
980
981 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
982
983         [BZ #15264]
984         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
985
986 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
987
988         * Makefile.in (regen-ulps): New target.
989         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
990         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
991         [ifneq (no,$(PERL)] (regen-ulps): New target.
992         [ifeq (no,$(PERL)] (regen-ulps): New target.
993         * math/libm-test.inc (ulps_file_name): Define.
994         (output_dir): New variable.
995         (options): Add "output-dir" option.
996         (parse_opt): Handle 'o' case.
997         (main): If output_dir is non-NULL use it as a prefix
998         otherwise use "".
999         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
1000
1001 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
1002
1003         [BZ #10060, #10062]
1004         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
1005         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
1006         fail configure if __sync_val_compare_and_swap is not inlined.
1007         * sysdeps/i386/configure: Regenerate.
1008         * configure.in: Build for i686 when configured for i386.
1009         * configure: Regenerate.
1010         * README: Remove i386 reference.
1011
1012 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
1013
1014         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
1015         * sysdeps/s390/s390-64/sysdep.h: Likewise.
1016
1017 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
1018
1019         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
1020         (lmsnanval): New variables.
1021         (F): Add conversion tests.
1022         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
1023         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
1024
1025         * stdio-common/tstdiomisc.c (F): Properly collect individual
1026         tests' results.
1027
1028         [BZ #14686, #15336]
1029         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
1030         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
1031         Instead, use input NaN values or generate a qNaN by arithmetic
1032         operation.  Also fix bugs to comply with the standard.
1033         * math/libm-test.inc (remainder_test): Add more tests.
1034
1035         [BZ #15335, #15342]
1036         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
1037         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
1038         input NaN values or generate a qNaN by arithmetic operation.
1039
1040         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
1041         unreachable code.
1042
1043         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
1044         definitions.
1045
1046 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
1047
1048         [BZ #14478]
1049         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
1050         underflowed result.
1051         * math/s_cexpf.c (__cexpf): Likewise.
1052         * math/s_cexpl.c (__cexpl): Likewise.
1053         * math/libm-test.inc (cexp_test): Add more tests.
1054
1055 2013-04-03  Andreas Schwab  <schwab@suse.de>
1056
1057         [BZ #15330]
1058         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
1059         order arrays from heap if bigger than alloca cutoff.
1060
1061 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
1062
1063         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
1064         (SNAN_TESTS_double): Refer to GCC PR56831.
1065         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
1066         GCC PR56828.
1067
1068 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
1069
1070         * Rules (bench): Move bench.out after the run is complete.
1071
1072         * Rules (bench): Echo currently running benchmark.
1073
1074         * benchtests/Makefile (bench): Add atan and slowatan.
1075         * benchtests/atan-inputs: New file.
1076         * benchtests/slowatan-inputs: New file.
1077         * benchtests/slowatan.c: New file.
1078
1079         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
1080         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
1081         its value.
1082
1083         [BZ #15305]
1084         * sysdeps/unix/sysv/linux/kernel-features.h
1085         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
1086         __ASSUME_XFS_RESTRICTED_CHOWN.
1087         * sysdeps/unix/sysv/linux/pathconf.c
1088         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
1089         Save and restore errno.
1090
1091 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
1092
1093         [BZ #15327]
1094         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
1095         arguments using __kernel_casinh.
1096         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
1097         arguments using __kernel_casinhf.
1098         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
1099         arguments using __kernel_casinhl.
1100         * math/libm-test.inc (cacosh_test): Add more tests.
1101         * sysdeps/i386/fpu/libm-test-ulps: Update.
1102         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1103
1104 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
1105
1106         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
1107         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
1108
1109         * bench/Makefile (bench): Add sin and slowsin.
1110         * benchtests/sin-inputs: New file.
1111         * benchtests/slowsin-inputs: New file.
1112         * benchtests/slowsin.c: New file.
1113
1114         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
1115         (bench): Add slowexp and slowpow.
1116         (exp-ITER): Increase iterations.
1117         (pow-ITER): Likewise.
1118         * benchtests/exp-inputs: Change input.
1119         * benchtests/pow-inputs: Likewise.
1120         * benchtests/slowexp-inputs: New file.
1121         * benchtests/slowexp.c: New file.
1122         * benchtests/slowpow-inputs: New file.
1123         * benchtests/slowpow.c: New file.
1124
1125 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1126
1127         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
1128         instructions.
1129         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
1130         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
1131         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
1132         * benchtests/Makefile: Add rint benchtest.
1133         * benchtests/rint-inputs: Input for rint benchtest.
1134
1135 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
1136
1137         * Versions.def (libm): Add GLIBC_2.18.
1138         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
1139         hidden libm prototypes.
1140         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
1141         * math/Makefile (libm-calls): Add s_issignaling.
1142         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
1143         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
1144         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
1145         declaration.
1146         * math/math.h [__USE_GNU] (issignaling): New macro.
1147         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
1148         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
1149         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
1150         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
1151         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
1152         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
1153         * manual/arith.texi (issignaling): New section.
1154         * manual/libm-err-tab.pl (@all_functions): Update comment.
1155         * math/gen-libm-test.pl (parse_args): Apply special handling for
1156         issignaling.
1157         * math/libm-test.inc (print_float, issignaling_test): New
1158         functions.
1159         (check_float_internal): Add issignaling checks.
1160         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
1161         default definition.
1162         * sysdeps/powerpc/math-tests.h: New file.
1163         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
1164         tests.
1165         * math/test-snan.c (TEST_FUNC): Likewise.
1166
1167 2013-03-30  David S. Miller  <davem@davemloft.net>
1168
1169         * po/de.po: Update from translation team.
1170
1171 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
1172
1173         [BZ #10357]
1174         * math/k_casinh.c (__kernel_casinh): Handle arguments with
1175         imaginary part less than 1.0 and real part less than 0.5
1176         specially.
1177         * math/k_casinhf.c (__kernel_casinhf): Likewise.
1178         * math/k_casinhl.c (__kernel_casinhl): Likewise.
1179         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
1180         (cacos_test): Add more tests.
1181         (casin_test): Likewise.
1182         (casinh_test): Likewise.
1183         * sysdeps/i386/fpu/libm-test-ulps: Update.
1184         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1185
1186 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
1187
1188         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
1189         ONE with its value.
1190
1191         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
1192         (__pow_mp): Replace ONE and MONE with their values.
1193         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
1194         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
1195         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
1196         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
1197         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
1198         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
1199
1200         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
1201
1202         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
1203         (__pow_mp): Replace ZERO and MZERO with their values.
1204         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
1205         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
1206         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
1207         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
1208         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
1209         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
1210         (__sqr): Likewise.
1211
1212         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
1213
1214         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
1215
1216 2013-03-28  Roland McGrath  <roland@hack.frob.com>
1217
1218         * include/stdlib.h [!SHARED] (__call_tls_dtors):
1219         Declare with __attribute__ ((weak)).
1220         * stdlib/exit.c (__libc_atexit) [!SHARED]:
1221         Call __call_tls_dtors only if it's not NULL.
1222
1223 2013-03-28  Roland McGrath  <roland@hack.frob.com>
1224
1225         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
1226         didn't do it already, then set _dl_phdr and _dl_phnum based on the
1227         magic __ehdr_start linker symbol if it's defined.
1228         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
1229         them up here if it was already done.
1230
1231         * elf/dl-support.c (_dl_phdr): Make pointer to const.
1232         (_dl_aux_init): Use const in cast when setting it.
1233         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
1234         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
1235         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
1236
1237         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
1238         Declare them here.
1239         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
1240         * csu/libc-tls.c: Nor here.
1241         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
1242
1243         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
1244         (__libc_message): Never call vsyslog.
1245
1246 2013-03-28  Alan Modra  <amodra@gmail.com>
1247
1248         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
1249         Define as empty.
1250         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
1251         Likewise.
1252
1253 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1254
1255         [BZ #15214]
1256         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
1257         underflow.
1258         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1259
1260 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
1261
1262         [BZ #15304]
1263         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
1264         Don't add gid passed as argument.
1265
1266         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
1267
1268 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
1269
1270         [BZ #15307]
1271         * math/k_casinh.c (__kernel_casinh): Handle arguments with
1272         imaginary part between 1.0 and 1.5 and real part less than 0.5
1273         specially.
1274         * math/k_casinhf.c (__kernel_casinhf): Likewise.
1275         * math/k_casinhl.c (__kernel_casinhl): Likewise.
1276         * math/libm-test.inc (cacos_test): Add more tests.
1277         (casin_test): Likewise.
1278         (casinh_test): Likewise.
1279         * sysdeps/i386/fpu/libm-test-ulps: Update.
1280         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1281
1282 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
1283
1284         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
1285         constants.
1286         (norm): Likewise.
1287         (denorm): Likewise.
1288         (__dbl_mp): Likewise.
1289         (add_magnitudes): Likewise.
1290         (sub_magnitudes): Likewise.
1291         (__add): Likewise.
1292         (__sub): Likewise.
1293         (__mul): Likewise.
1294         (__sqr): Likewise.
1295         (__inv): Likewise.
1296         (__dvd): Likewise.
1297
1298         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
1299         commented code.
1300         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
1301         (__dubcos): Likewise.
1302         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
1303         (__ieee754_acos): Likewise.
1304         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
1305         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
1306         (__exp1): Likewise.
1307         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
1308         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
1309         (log1): Likewise.
1310         (my_log2): Likewise.
1311         (checkint): Likewise.
1312         * sysdeps/ieee754/dbl-64/e_remainder.c
1313         (__ieee754_remainder): Likewise.
1314         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
1315         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
1316         (bsloww): Likewise.
1317         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
1318
1319         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
1320         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
1321         MANTISSA_STORE_T to store computations on mantissa.  Use
1322         macros for rounding and division.
1323         (denorm): Likewise.
1324         (__dbl_mp): Likewise.
1325         (add_magnitudes): Likewise.
1326         (sub_magnitudes): Likewise.
1327         (__mul): Likewise.
1328         (__sqr): Likewise.
1329         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
1330         powers of two in terms of TWOPOW macro.
1331         (mp_no): Make type of mantissa as MANTISSA_T.
1332         [!RADIXI]: Define RADIXI.
1333         [!TWO52]: Define TWO52.
1334         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
1335
1336 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1337
1338         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
1339         llroundl symbol when building for PPC32.
1340
1341 2013-03-24  Mark H Weaver  <mhw@netris.org>
1342
1343         * manual/arith.texi (Normalization Functions): Fix prototypes for
1344         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
1345
1346 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1347
1348         [BZ #13889]
1349         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
1350         high value to check if expl overflow.
1351         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
1352         to check for underflow and overflow.
1353         * math/libm-test.inc: Add exp test.
1354
1355 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
1356
1357         [BZ #11120]
1358         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
1359         with NOT_IN_libc.
1360
1361 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1362
1363         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
1364         symbol.
1365
1366 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
1367
1368         * math/gen-libm-test.pl (parse_args, special_functions): Properly
1369         wrap blocks consisting of several statements.
1370
1371         * sysdeps/generic/math-tests.h: New file.
1372         * sysdeps/i386/fpu/math-tests.h: Likewise.
1373         * math/test-snan.c: Include it.
1374         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
1375
1376 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
1377
1378         [BZ #15285]
1379         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
1380         (__ieee754_j0l): Do not improve calculations using cos of twice
1381         input for inputs above LDBL_MAX / 2.0L.
1382         (__ieee754_y0l): Likewise.
1383         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
1384         (__ieee754_j1l): Do not improve calculations using cos of twice
1385         input for inputs above LDBL_MAX / 2.0L.
1386         (__ieee754_y1l): Likewise.
1387         * math/libm-test.inc (j0_test): Add another test.
1388         (j1_test): Likewise.
1389         (y0_test): Likewise.
1390         (y1_test): Likewise.
1391         * sysdeps/i386/fpu/libm-test-ulps: Update.
1392
1393 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
1394
1395         * Rules ($(objpfx)bench-%.c): Include code from a C source
1396         file.
1397
1398 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
1399
1400         [BZ #15287]
1401         * math/k_casinh.c (__kernel_casinh): Handle arguments with
1402         imaginary part 1.0 and real part less than 0.5 specially.
1403         * math/k_casinhf.c (__kernel_casinhf): Likewise.
1404         * math/k_casinhl.c (__kernel_casinhl): Likewise.
1405         * math/libm-test.inc (cacos_test): Add more tests.
1406         (casin_test): Likewise.
1407         (casinh_test): Likewise.
1408         * sysdeps/i386/fpu/libm-test-ulps: Update.
1409         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1410
1411 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
1412
1413         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
1414         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
1415
1416 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
1417
1418         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
1419         * config.make.in (config-cflags-sse4): Remove variable.
1420         (config-cflags-avx): Likewise.
1421         (config-cflags-sse2avx): Likewise.
1422         (config-cflags-novzeroupper): Likewise.
1423         (config-asflags-i686): Likewise.
1424         (have-mfma4): Likewise.
1425         (have-as-vis3): Likewise.
1426         (MIG): Likewise.
1427         * configure.in (MIG): Do not AC_SUBST.
1428         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
1429         (libc_cv_cc_sse4): Do not AC_SUBST.
1430         (libc_cv_cc_avx): Likewise.
1431         (libc_cv_cc_sse2avx): Likewise.
1432         (libc_cv_cc_novzeroupper): Likewise.
1433         (libc_cv_cc_fma4): Likewise.
1434         (libc_cv_as_i686): Likewise.
1435         (libc_cv_sparc_as_vis3): Likewise.
1436         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
1437         LIBC_CONFIG_VAR.
1438         (config-asflags-i686): Likewise.
1439         (config-cflags-avx): Likewise.
1440         (config-cflags-sse2avx): Likewise.
1441         (have-mfma4): Likewise.
1442         (config-cflags-novzeroupper): Likewise.
1443         * sysdeps/mach/configure.in (MIG): Likewise.
1444         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
1445         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
1446         LIBC_CONFIG_VAR.
1447         (config-cflags-avx): Likewise.
1448         (config-cflags-sse2avx): Likewise.
1449         (have-mfma4): Likewise.
1450         (config-cflags-novzeroupper): Likewise.
1451         * configure: Regenerated.
1452         * sysdeps/i386/configure: Likewise.
1453         * sysdeps/mach/configure: Likewise.
1454         * sysdeps/sparc/configure: Likewise.
1455         * sysdeps/x86_64/configure: Likewise.
1456
1457 2013-03-20  Roland McGrath  <roland@hack.frob.com>
1458
1459         [BZ #14812]
1460         * locale/programs/localedef.c (options): Put N_ translation marker
1461         on argument names, not just descriptions.
1462
1463 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
1464
1465         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
1466
1467 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
1468
1469         [BZ #14176]
1470         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
1471
1472 2013-03-19  Roland McGrath  <roland@hack.frob.com>
1473
1474         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
1475         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
1476         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
1477         [!BEFORE_ABORT] (before_abort): New function.
1478         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
1479         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
1480         (writev_for_fatal): New function.
1481         (WRITEV_FOR_FATAL): New macro; call that.
1482         (backtrace_and_maps): New function.
1483         (BEFORE_ABORT): New macro; call that.
1484         (struct str_list): Type removed.
1485         (__libc_message, __libc_fatal): Functions removed.
1486         Include <sysdeps/posix/libc_fatal.c> instead.
1487
1488 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
1489
1490         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
1491         constants.
1492         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
1493         double constants.
1494
1495 2013-03-19  Andreas Schwab  <schwab@suse.de>
1496
1497         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
1498         * sysdeps/gnu/configure: Regenerate.
1499
1500         * configure.in: Substitute libc_cv_rtlddir.
1501         * configure: Regenerate.
1502         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
1503         * Makeconfig (rtlddir, inst_rtlddir): New variables.
1504         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
1505         * elf/Makefile (install-others, CFLAGS-interp.c)
1506         (ldso_install, common-ldd-rewrite): Likewise.
1507         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
1508         $(inst_slibdir)/$(rtld-installed-name).
1509         * scripts/rellns-sh: Add -p option.
1510         * Makerules (make-shlib-link): Use rellns-sh to get relative name
1511         for source.
1512
1513 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
1514
1515         * manual/nptl.texi: Renamed to ...
1516         * manual/threads.texi: ... this.
1517         * manual/Makefile (chapters): Update.
1518
1519 2013-03-18  Roland McGrath  <roland@hack.frob.com>
1520
1521         [BZ #14812]
1522         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
1523         on argument names, not just descriptions.
1524         * malloc/memusagestat.c (options): Likewise.
1525         * nss/getent.c (options): Likewise.
1526
1527 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
1528
1529         [BZ #14812]
1530         * iconv/iconv_prog.c (options): Put N_ translation marker
1531         on argument names, not just descriptions.
1532         * iconv/iconvconfig.c (options): Likewise.
1533
1534 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
1535
1536         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
1537         implementation which is faster on all x86_64 architectures.
1538         Tested on AMD, Intel Nehalem, SNB, IVB.
1539         * sysdeps/x86_64/strnlen.S: Likewise.
1540
1541         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
1542         Remove all multiarch strlen and strnlen versions.
1543         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
1544         Remove strlen and strnlen related parts.
1545
1546         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
1547         Inline strlen part.
1548         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
1549
1550         * sysdeps/x86_64/multiarch/strlen.S: Remove.
1551         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
1552         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
1553         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
1554         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
1555         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
1556
1557 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
1558
1559         * manual/memory.texi (Malloc Tunable Parameters):
1560         Sort parameters alphabetically. Add comments for missing entries.
1561
1562 2013-03-17  David S. Miller  <davem@davemloft.net>
1563
1564         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1565
1566 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
1567
1568         [BZ #15283]
1569         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
1570         for arguments at most half maximum finite value.
1571         * math/libm-test.inc (j0_test): Add more tests.
1572         (j1_test): Likewise.
1573         (y0_test): Likewise.
1574         (y1_test): Likewise.
1575         * sysdeps/i386/fpu/libm-test-ulps: Update.
1576         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1577
1578         [BZ #14155]
1579         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
1580         1 / x and functions P and Q for arguments above 0x1p256L.
1581         (__ieee754_y0l): Likewise.
1582         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
1583         (__ieee754_y1l): Likewise.
1584         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
1585         (j1_test): Likewise.
1586         (y0_test): Likewise.
1587         (y1_test): Likewise.
1588
1589 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
1590
1591         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
1592         variable.
1593
1594 2013-03-15  Roland McGrath  <roland@hack.frob.com>
1595
1596         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
1597         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
1598         zero since it's initialized to EXEC_PAGESIZE.
1599
1600         * sysdeps/unix/sysv/linux/ldsodefs.h
1601         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
1602         * sysdeps/generic/ldsodefs.h: ... here.
1603
1604 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
1605
1606         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
1607
1608         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
1609         math/test-snan.c.
1610         * math/test-snan.c: Renamed from
1611         sysdeps/powerpc/fpu/test-powerpc-snan.c.
1612         * math/Makefile (tests): Add test-snan.
1613         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
1614         test-powerpc-snan.
1615
1616         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
1617         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
1618         functions.
1619         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
1620         __builtin_nan family of functions.
1621         * math/libm-test.inc (initialize): Initialize qnan_value with
1622         __builtin_nan family of functions.
1623         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
1624         Remove variables.
1625         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
1626         Remove functions.
1627         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
1628         storage class.  Initialize qNaN_var and sNaN_var with
1629         __builtin_nan and __builtin_nans families of functions,
1630         respectively.
1631
1632         * math/libm-test.inc (acosh_test): Also test with qNaN input.
1633         (sqrt_test): Remove duplicate test with qNaN input.
1634         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
1635         (round_test, signbit_test, significand_test): Note missing +/-Inf
1636         as well as qNaN tests.
1637
1638         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
1639         qNaN_var.  Fix a few strings, too.
1640         * math/libm-test.inc (nan_value): Rename to qnan_value.
1641         * math/gen-libm-test.pl (%beautify): Adjust to that.
1642         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
1643         * math/test-misc.c (main): Likewise.
1644         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
1645         to __qnan_bytes, and __qnan_union, respectively.
1646         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
1647         Likewise.
1648         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
1649         and lqnanval, respectively.
1650         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
1651         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
1652         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
1653         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
1654
1655         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
1656         * math/test-misc.c (main) [__x86_64__]: Enable test for long
1657         doubles.
1658
1659         * math/test-misc.c (main): Fix copy'n'pastos.
1660         * misc/tst-efgcvt.c (special): Likewise.
1661
1662         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
1663         Remove declarations.
1664
1665 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
1666
1667         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
1668         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
1669         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
1670         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
1671
1672 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1673
1674         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
1675         macro to return vdso values correctly in IFUNC implementations.
1676         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
1677         Optimization by using IFUNC.
1678
1679 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
1680             Richard Henderson  <rth@redhat.com>
1681             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1682
1683         * Makefile.in (bench): New target.
1684         * NEWS: Mention the benchmark framework.
1685         * Rules (bench): Likewise.
1686         (binaries-bench): Generate binaries for functions to
1687         benchmark.
1688         * benchtests/Makefile: New makefile for benchmark tests.
1689         * benchtests/bench-skeleton.c: New skeleton file for benchmark
1690         programs.
1691         * benchtests/exp-inputs: New input file for EXP function.
1692         * benchtests/pow-inputs: New input file for POW function.
1693         * scripts/bench.pl: New script to generate source files for
1694         benchmark programs.
1695
1696 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
1697
1698         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
1699         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
1700         computations on mantissa.  Use macros for rounding and
1701         division.
1702         (denorm): Likewise.
1703         (__dbl_mp): Likewise.
1704         (add_magnitudes): Likewise.
1705         (sub_magnitudes): Likewise.
1706         (__mul): Likewise.
1707         (__sqr): Likewise.
1708         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
1709         powers of two in terms of TWOPOW macro.
1710         (mp_no): Make type of mantissa as MANTISSA_T.
1711         [!RADIXI]: Define RADIXI.
1712         [!TWO52]: Define TWO52.
1713         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
1714
1715         * manual/nptl.texi (cindex): Modify threads to pthreads.
1716
1717 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
1718
1719         * sysdeps/x86_64/preconfigure: Regenerated.
1720
1721 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
1722
1723         [BZ #14155]
1724         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
1725         0x1p28 and above.
1726         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
1727         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
1728         0x1p28 and above.
1729         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
1730         * math/libm-test.inc (j0_test): Do not allow one spurious
1731         underflow exception.
1732         (y1_test): Likewise.
1733
1734 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
1735
1736         * manual/Makefile (chapters): Add nptl.
1737         * manual/debug.texi (Debugging Support): Add link to Threads
1738         chapter.
1739         * manual/nptl.texi: New file.
1740
1741         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
1742
1743 2013-03-14  Petr Baudis  <pasky@ucw.cz>
1744
1745         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
1746         for non-NULL pointer before the memory validity test. Pointed
1747         out by Holger Brunck <holger.brunck@keymile.com>.
1748
1749 2013-03-13  Andreas Schwab  <schwab@suse.de>
1750
1751         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
1752         instead of .os.
1753
1754 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
1755
1756         * timezone/zic.c: Update from tzcode 2013b.
1757
1758 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
1759
1760         * manual/install.texi (Configuring and compiling):
1761         Mention i686 and i586.
1762         * INSTALL: Regenerate.
1763
1764 2013-03-12  Roland McGrath  <roland@hack.frob.com>
1765
1766         * sysdeps/init_array/elf-init.c: New file.
1767         * csu/elf-init.c
1768         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
1769         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
1770
1771         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
1772         __gmon_start__ as global, but as static with a .preinit_array pointer.
1773         * sysdeps/init_array/gmon-start.c: New file.  Use that.
1774         * sysdeps/init_array/crti.S: New file, empty except for comments.
1775         * sysdeps/init_array/crtn.S: Likewise.
1776
1777 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
1778
1779         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
1780         definining bcopy.
1781         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
1782         Remove Prefer_SSE_for_memop.
1783         * sysdeps/x86_64/multiarch/init-arch.h: Remove
1784         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
1785         HAS_PREFER_SSE_FOR_MEMOP.
1786         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
1787         memset-x86-64.
1788         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
1789         Remove bzero, memset ifunc support.
1790         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
1791         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
1792         * sysdeps/x86_64/multiarch/memset.S: Likewise.
1793         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
1794
1795 2013-03-11  Andreas Schwab  <schwab@suse.de>
1796
1797         [BZ #15234]
1798         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
1799         by SHLIB_COMPAT.
1800         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
1801         (GLIBC_2.16): Remove pthread_atfork.
1802
1803 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
1804
1805         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
1806         (ptestcases.h): Likewise.
1807
1808 2013-03-08  Roland McGrath  <roland@hack.frob.com>
1809
1810         * Makeconfig ($(common-objpfx)config.status): Depend on
1811         sysdeps/*/preconfigure{,.in} too.
1812
1813 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
1814
1815         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
1816         (__free_hook): Use void * instead of __malloc_ptr_t.
1817         (__malloc_hook): Likewise.
1818         (__realloc_hook): Likewise.
1819         (__memalign_hook): Likewise.
1820         (__after_morecore_hook): Likewise.
1821         * malloc/arena.c (save_malloc_hook): Likewise.
1822         (save_free_hook): Likewise.
1823         * malloc/hooks.c (malloc_hook_ini): Likewise.
1824         (realloc_hook_ini): Likewise.
1825         (memalign_hook_ini): Likewise.
1826         * malloc/malloc.c (malloc_hook_ini): Likewise.
1827         (realloc_hook_ini): Likewise.
1828         (memalign_hook_ini): Likewise.
1829         (__free_hook): Likewise.
1830         (__malloc_hook): Likewise.
1831         (__realloc_hook): Likewise.
1832         (__memalign_hook): Likewise.
1833         (__libc_malloc): Likewise.
1834         (__libc_free): Likewise.
1835         (__libc_realloc): Likewise.
1836         (__libc_memalign): Likewise.
1837         (__libc_valloc): Likewise.
1838         (__libc_pvalloc): Likewise.
1839         (__libc_calloc): Likewise.
1840         (__posix_memalign): Likewise.
1841         * malloc/morecore.c (__sbrk): Likewise.
1842         (__default_morecore): Likewise.
1843
1844         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
1845
1846         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
1847         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
1848         __malloc_ptrdiff_t.
1849
1850         * malloc/malloc.h (__malloc_size_t): Remove macro.
1851         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
1852         __malloc_size_t.
1853         (old_memalign_hook): Likewise.
1854         (old_realloc_hook): Likewise.
1855         (struct hdr): Likewise.
1856         (flood): Likewise.
1857         (mallochook): Likewise.
1858         (memalignhook): Likewise.
1859         (reallochook): Likewise.
1860         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
1861         (tr_old_realloc_hook): Likewise.
1862         (tr_old_memalign_hook): Likewise.
1863         (tr_mallochook): Likewise.
1864         (tr_reallochook): Likewise.
1865         (tr_memalignhook): Likewise.
1866
1867 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1868
1869         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
1870         default_ldbl_pack and using as default implementation.
1871         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
1872         implementation.
1873         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
1874         redundant definition.
1875         (ldbl_insert_mantissa): Likewise.
1876         (ldbl_canonicalize): Likewise.
1877         (ldbl_nearbyint): Likewise.
1878         (ldbl_pack): Rename to ldbl_pack_ppc.
1879         (ldbl_unpack): Rename to ldbl_unpack_ppc.
1880         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
1881         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
1882
1883 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
1884
1885         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
1886         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
1887         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
1888         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
1889         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
1890         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
1891         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
1892         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
1893
1894 2013-03-07  Andreas Jaeger  <aj@suse.de>
1895
1896         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1897         bits/mman-linux.h.
1898
1899 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
1900
1901         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
1902         Include mpa.h and declare __MPEXP.
1903         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
1904         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
1905         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
1906         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
1907         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
1908         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
1909         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
1910
1911         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
1912         (__slowpow): Use long double EXPL and LOGL functions to
1913         compute POW.
1914         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
1915         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
1916         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
1917         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
1918         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
1919         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
1920
1921         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
1922         intermediate variable to calculate exponent.
1923         (__sqr): Likewise.
1924         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
1925         Likewise.
1926         (__sqr): Likewise.
1927
1928         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
1929         [!NO__SQR]: Define __sqr.
1930         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
1931         and NO__SQR.  Remove all code except __mul and __sqr.  Include
1932         sysdeps/ieee754/dbl-64/mpa.c.
1933         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
1934
1935         [BZ #12723]
1936         * posix/Makefile (tests): Add tst-pathconf.
1937         * posix/tst-pathconf.c: New test case.
1938         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
1939         _PC_PIPE_BUF.
1940         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
1941
1942 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
1943
1944         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
1945
1946 2013-03-06  Andreas Jaeger  <aj@suse.de>
1947
1948         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
1949         definition via __MAP_ANONYMOUS.
1950
1951         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
1952         it's not part of Linux headers.
1953
1954         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
1955         (MAP_HUGE_MASK): Define.
1956
1957         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
1958         Define.
1959         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
1960         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
1961         Define.
1962         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
1963         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
1964         Define.
1965         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
1966         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
1967         Define.
1968         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
1969
1970         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
1971         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
1972         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
1973         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
1974         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
1975         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
1976
1977         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
1978         Handle f2fs.
1979
1980         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
1981         Handle f2fs and efivarfs.
1982
1983         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
1984         f2fs.
1985
1986         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
1987         (EFIVARFS_MAGIC): Add.
1988         (F2FS_LINK_MAX): Add.
1989
1990 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
1991
1992         * stdio-common/vfprintf.c: Replace __builtin_expect with
1993         __glibc_unlikely.
1994
1995 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
1996
1997         [BZ #13550]
1998         * sysdeps/generic/bp-sym.h: Remove file.
1999         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
2000         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
2001         <bp-sym.h> and <bp-asm.h>.
2002         (__longjmp): Don't use BP_SYM.
2003         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
2004         and <bp-asm.h>.
2005         (memcpy): Don't use BP_SYM.
2006         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
2007         <bp-sym.h> and <bp-asm.h>.
2008         (memcpy): Don't use BP_SYM.
2009         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
2010         <bp-asm.h>.
2011         (memcpy): Don't use BP_SYM.
2012         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
2013         <bp-asm.h>.
2014         (memset): Don't use BP_SYM.
2015         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
2016         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
2017         (__bzero): Don't use BP_SYM.
2018         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
2019         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
2020         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
2021         <bp-sym.h> and <bp-asm.h>.
2022         (memcmp): Don't use BP_SYM.  Remove comment about bounded
2023         pointers.
2024         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
2025         <bp-sym.h> and <bp-asm.h>.
2026         (memcpy): Don't use BP_SYM.
2027         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
2028         <bp-sym.h> and <bp-asm.h>.
2029         (memset): Don't use BP_SYM.
2030         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
2031         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
2032         (__bzero): Don't use BP_SYM.
2033         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
2034         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
2035         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
2036         <bp-sym.h> and <bp-asm.h>.
2037         (strncmp): Don't use BP_SYM.  Remove comment about bounded
2038         pointers.
2039         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
2040         <bp-sym.h> and <bp-asm.h>.
2041         (memcpy): Don't use BP_SYM.
2042         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
2043         <bp-sym.h> and <bp-asm.h>.
2044         (memset): Don't use BP_SYM.
2045         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
2046         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
2047         (__bzero): Don't use BP_SYM.
2048         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
2049         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
2050         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
2051         <bp-sym.h> and <bp-asm.h>.
2052         (__memchr): Don't use BP_SYM.
2053         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
2054         <bp-sym.h> and <bp-asm.h>.
2055         (memcmp): Don't use BP_SYM.  Remove comment about bounded
2056         pointers.
2057         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
2058         <bp-sym.h> and <bp-asm.h>.
2059         (memcpy): Don't use BP_SYM.
2060         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
2061         <bp-sym.h> and <bp-asm.h>.
2062         (__mempcpy): Don't use BP_SYM.
2063         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
2064         <bp-sym.h> and <bp-asm.h>.
2065         (__memrchr): Don't use BP_SYM.
2066         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
2067         <bp-sym.h> and <bp-asm.h>.
2068         (memset): Don't use BP_SYM.
2069         (__bzero): Likewise.
2070         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
2071         <bp-sym.h> and <bp-asm.h>.
2072         (__rawmemchr): Don't use BP_SYM.
2073         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
2074         <bp-sym.h> and <bp-asm.h>.
2075         (__STRCMP): Don't use BP_SYM.
2076         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
2077         <bp-sym.h> and <bp-asm.h>.
2078         (strchr): Don't use BP_SYM.
2079         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
2080         <bp-sym.h> and <bp-asm.h>.
2081         (__strchrnul): Don't use BP_SYM.
2082         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
2083         <bp-sym.h> and <bp-asm.h>.
2084         (strlen): Don't use BP_SYM.
2085         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
2086         <bp-sym.h> and <bp-asm.h>.
2087         (strncmp): Don't use BP_SYM.  Remove comment about bounded
2088         pointers.
2089         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
2090         <bp-sym.h> and <bp-asm.h>.
2091         (__strnlen): Don't use BP_SYM.
2092         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
2093         <bp-sym.h> and <bp-asm.h>.
2094         (__GI__setjmp): Don't use BP_SYM.
2095         (_setjmp): Likewise.
2096         (__sigsetjmp): Likewise.
2097         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
2098         (L(start_addresses)): Don't use BP_SYM.
2099         (_start): Likewise.
2100         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
2101         <bp-asm.h>.
2102         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
2103         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
2104         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
2105         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
2106         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
2107         <bp-asm.h>.
2108         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
2109         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
2110         about bounded pointers.
2111         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
2112         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
2113         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
2114         <bp-asm.h>.
2115         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
2116         about bounded pointers.  Remove GKM FIXME comments.
2117         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
2118         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
2119         <bp-asm.h>.
2120         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
2121         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
2122         Remove GKM FIXME comments.
2123         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
2124         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
2125         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
2126         <bp-asm.h>.
2127         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
2128         about bounded pointers.  Remove GKM FIXME comment.
2129         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
2130         and <bp-asm.h>.
2131         (strncmp): Don't use BP_SYM.  Remove comment about bounded
2132         pointers.
2133         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
2134         <bp-sym.h> and <bp-asm.h>.
2135         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
2136         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
2137         <bp-sym.h> and <bp-asm.h>.
2138         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
2139         comment.
2140
2141 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
2142
2143         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
2144         call free(NULL).
2145
2146 2013-03-05  David S. Miller  <davem@davemloft.net>
2147
2148         * po/es.po: Update from translation team.
2149
2150 2013-03-05  Andreas Jaeger  <aj@suse.de>
2151
2152         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
2153         <bits/mman-linux.h>.
2154         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
2155         is fine.
2156         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
2157         <bits/mman-linux.h> to end of file.
2158         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
2159         is fine.
2160         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
2161         <bits/mman-linux.h> to end of file.
2162         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
2163         is fine.
2164         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
2165         <bits/mman-linux.h> to end of file.
2166
2167         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
2168         (MCL_CURRENT, MCL_FUTURE): Define here.
2169
2170 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2171
2172         [BZ #15232]
2173         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
2174         attribute_hidden.
2175         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
2176
2177 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2178
2179         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
2180         fourth parameter needed for rt_sigprocmask syscall.
2181         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
2182         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
2183         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
2184         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
2185         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
2186         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
2187
2188 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
2189
2190         [BZ #13550]
2191         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
2192         comment about bounded pointers.
2193         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
2194         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
2195
2196 2013-03-04  Andreas Jaeger  <aj@suse.de>
2197
2198         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
2199         common definitions.
2200
2201         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
2202         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
2203         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
2204         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
2205         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
2206         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
2207
2208 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2209
2210         [BZ #15055]
2211         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
2212         __ieee754_sqrl instead of __sqrl.
2213
2214 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
2215
2216         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
2217         * sysdeps/powerpc/fpu_control.h: ... here.
2218         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
2219         * sysdeps/powerpc/bits/fenvinline.h: ... here.
2220         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
2221         * sysdeps/powerpc/bits/mathinline.h: ... here.
2222
2223 2013-03-01  Roland McGrath  <roland@hack.frob.com>
2224
2225         * elf/dl-hwcaps.c (_dl_important_hwcaps):
2226         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
2227         to just [NEED_DL_SYSINFO_DSO].
2228         * elf/dl-support.c: Likewise.
2229         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
2230         * elf/rtld.c (dl_main): Likewise.
2231         * elf/setup-vdso.h (setup_vdso): Likewise.
2232         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
2233         * sysdeps/unix/sysv/linux/dl-sysdep.c
2234         (_dl_discover_osversion): Likewise.
2235
2236 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
2237
2238         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
2239         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
2240
2241 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
2242
2243         * NEWS: Mention libm performance improvements and non-x86 PI
2244         futex support.
2245
2246         * csu/libc-start.c (__pthread_initialize_minimal): Change
2247         function arguments.
2248         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
2249
2250 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
2251
2252         [BZ #13550]
2253         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
2254         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
2255         <bp-sym.h> and <bp-asm.h>.
2256         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
2257         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
2258         and <bp-asm.h>.
2259         (memcpy): Don't use BP_SYM.
2260         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
2261         <bp-asm.h>.
2262         (__mpn_add_n): Don't use BP_SYM.
2263         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
2264         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
2265         and <bp-asm.h>.
2266         (__mpn_addmul_1): Don't use BP_SYM.
2267         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
2268         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
2269         <bp-sym.h>.
2270         (_setjmp): Don't use BP_SYM.
2271         (__novmx_setjmp): Likewise.
2272         (__GI__setjmp): Likewise.
2273         (__vmx_setjmp): Likewise.
2274         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
2275         <bp-sym.h>.
2276         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
2277         (__bzero): Don't use BP_SYM.
2278         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
2279         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
2280         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
2281         <bp-sym.h> and <bp-asm.h>.
2282         (memcpy): Don't use BP_SYM.
2283         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
2284         <bp-sym.h> and <bp-asm.h>.
2285         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
2286         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
2287         <bp-sym.h> and <bp-asm.h>.
2288         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
2289         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
2290         <bp-asm.h>.
2291         (__mpn_lshift): Don't use BP_SYM.
2292         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
2293         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
2294         <bp-asm.h>.
2295         (memset): Don't use BP_SYM.
2296         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
2297         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
2298         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
2299         <bp-asm.h>.
2300         (__mpn_mul_1): Don't use BP_SYM.
2301         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
2302         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
2303         <bp-sym.h> and <bp-asm.h>.
2304         (memcmp): Don't use BP_SYM.
2305         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
2306         <bp-sym.h> and <bp-asm.h>.
2307         (memcpy): Don't use BP_SYM.
2308         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
2309         <bp-sym.h> and <bp-asm.h>.
2310         (memset): Don't use BP_SYM.
2311         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
2312         <bp-sym.h> and <bp-asm.h>.
2313         (strncmp): Don't use BP_SYM.
2314         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
2315         <bp-sym.h> and <bp-asm.h>.
2316         (memcpy): Don't use BP_SYM.
2317         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
2318         <bp-sym.h> and <bp-asm.h>.
2319         (memset): Don't use BP_SYM.
2320         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
2321         <bp-sym.h> and <bp-asm.h>.
2322         (__memchr): Don't use BP_SYM.
2323         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
2324         <bp-sym.h> and <bp-asm.h>.
2325         (memcmp): Don't use BP_SYM.
2326         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
2327         <bp-sym.h> and <bp-asm.h>.
2328         (memcpy): Don't use BP_SYM.
2329         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
2330         <bp-sym.h> and <bp-asm.h>.
2331         (__mempcpy): Don't use BP_SYM.
2332         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
2333         <bp-sym.h> and <bp-asm.h>.
2334         (__memrchr): Don't use BP_SYM.
2335         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
2336         <bp-sym.h> and <bp-asm.h>.
2337         (memset): Don't use BP_SYM.
2338         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
2339         <bp-sym.h> and <bp-asm.h>.
2340         (__rawmemchr): Don't use BP_SYM.
2341         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
2342         <bp-sym.h> and <bp-asm.h>.
2343         (__STRCMP): Don't use BP_SYM.
2344         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
2345         <bp-sym.h> and <bp-asm.h>.
2346         (strchr): Don't use BP_SYM.
2347         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
2348         <bp-sym.h> and <bp-asm.h>.
2349         (__strchrnul): Don't use BP_SYM.
2350         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
2351         <bp-sym.h> and <bp-asm.h>.
2352         (strlen): Don't use BP_SYM.
2353         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
2354         <bp-sym.h> and <bp-asm.h>.
2355         (strncmp): Don't use BP_SYM.
2356         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
2357         <bp-sym.h> and <bp-asm.h>.
2358         (__strnlen): Don't use BP_SYM.
2359         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
2360         <bp-asm.h>.
2361         (__mpn_rshift): Don't use BP_SYM.
2362         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
2363         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
2364         <bp-sym.h> and <bp-asm.h>.
2365         (__sigsetjmp): Don't use BP_SYM.
2366         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
2367         (L(start_addresses)): Don't use BP_SYM.
2368         (_start): Likewise.
2369         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
2370         <bp-asm.h>.
2371         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
2372         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
2373         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
2374         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
2375         <bp-asm.h>.
2376         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
2377         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
2378         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
2379         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
2380         <bp-asm.h>.
2381         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
2382         comments.
2383         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
2384         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
2385         <bp-asm.h>.
2386         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
2387         FIXME comments.
2388         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
2389         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
2390         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
2391         <bp-asm.h>.
2392         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
2393         comment.
2394         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
2395         and <bp-asm.h>.
2396         (strncmp): Don't use BP_SYM,
2397         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
2398         <bp-asm.h>.
2399         (__mpn_sub_n): Don't use BP_SYM.
2400         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
2401         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
2402         and <bp-asm.h>.
2403         (__mpn_submul_1): Don't use BP_SYM.
2404         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
2405         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
2406         <bp-sym.h> and <bp-asm.h>.
2407         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
2408         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
2409         <bp-sym.h> and <bp-asm.h>.
2410         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
2411         comment.
2412
2413 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2414
2415         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
2416         Use ZK to minimize writes to Z.
2417         (sub_magnitudes): Simplify code a bit.
2418         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
2419         Use ZK to minimize writes to Z.
2420         (sub_magnitudes): Simplify code a bit.
2421
2422 2013-02-27  Roland McGrath  <roland@hack.frob.com>
2423
2424         * csu/gmon-start.c: Add special exception to license text.
2425
2426 2013-02-27  Richard Henderson  <rth@redhat.com>
2427
2428         * scripts/config.guess: Update from config.git.
2429         * scripts/config.sub: Likewise.
2430
2431 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
2432
2433         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
2434
2435         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
2436
2437         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
2438
2439         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
2440
2441         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
2442
2443 2013-02-26  Roland McGrath  <roland@hack.frob.com>
2444
2445         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
2446         [$(build-shared = yes].
2447
2448 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2449
2450         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
2451         (__mul): Reduce iterations for calculating mantissa.
2452
2453         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
2454         MPTWO.
2455         (__mpranred): Likewise.
2456
2457         [BZ #15160]
2458         * malloc/memusagestat.c (main): Draw graphs for heap and stack
2459         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
2460
2461 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
2462
2463         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
2464         Define __attribute__.
2465
2466 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2467
2468         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
2469         unused.
2470         * posix/regex_internal.h (__attribute): Remove.
2471         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
2472         (re_string_context_at): Likewise.
2473         (bitset_not): Use __attribute__ and mark function as possibly
2474         unused.
2475         (bitset_merge): Likewise.
2476         (bitset_mask): Likewise.
2477         (re_string_char_size_at): Likewise.
2478         (re_string_wchar_at): Likewise.
2479         (re_string_elem_size_at): Likewise.
2480
2481 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
2482
2483         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
2484         code.
2485         (cc32): Likewise.
2486
2487         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
2488         (__acr): Likewise.
2489         (__cpy): Likewise.
2490         (norm): Likewise.
2491         (denorm): Likewise.
2492         (__dbl_mp): Likewise.
2493         (add_magnitudes): Likewise.
2494         (sub_magnitudes): Likewise.
2495         (__mul): Likewise.
2496         (__inv): Likewise.
2497
2498         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
2499         style.
2500
2501         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
2502         style.
2503
2504         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
2505         code.
2506
2507         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
2508         up changes with default code.
2509         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
2510         Likewise.
2511
2512 2013-02-24  Allan McRae  <allan@archlinux.org>
2513
2514         * manual/socket.texi (The Internet Namespace): Order menu items
2515         to match that in the file.
2516
2517         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
2518         node listing of the info page menu.
2519
2520 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
2521
2522         [BZ #13550]
2523         * sysdeps/i386/bp-asm.h: Remove file.
2524         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
2525         (PARMS): Do not use macros from bp-asm.h.
2526         (S1): Likewise.
2527         (S2): Likewise.
2528         (SIZE): Likewise.
2529         (__mpn_add_n): Do not use BP_SYM
2530         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
2531         "bp-asm.h".
2532         (PARMS): Do not use macros from bp-asm.h.
2533         (S1): Likewise.
2534         (SIZE): Likewise.
2535         (__mpn_addmul_1): Do not use BP_SYM
2536         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
2537         "bp-asm.h".
2538         (PARMS): Do not use macros from bp-asm.h.
2539         (SIGMSK): Likewise.
2540         (_setjmp): Likewise.  Do not use BP_SYM.
2541         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
2542         "bp-asm.h".
2543         (PARMS): Do not use macros from bp-asm.h.
2544         (SIGMSK): Likewise.
2545         (setjmp): Likewise.  Do not use BP_SYM.
2546         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
2547         "bp-asm.h".
2548         (PARMS): Do not use macros from bp-asm.h.
2549         (__frexp): Do not use BP_SYM.
2550         (frexp): Likewise.
2551         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
2552         "bp-asm.h".
2553         (PARMS): Do not use macros from bp-asm.h.
2554         (__frexpf): Do not use BP_SYM.
2555         (frexpf): Likewise.
2556         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
2557         "bp-asm.h".
2558         (PARMS): Do not use macros from bp-asm.h.
2559         (__frexpl): Do not use BP_SYM.
2560         (frexpl): Likewise.
2561         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
2562         "bp-asm.h".
2563         (PARMS): Do not use macros from bp-asm.h.
2564         (__remquo): Do not use BP_SYM.
2565         (remquo): Likewise.
2566         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
2567         "bp-asm.h".
2568         (PARMS): Do not use macros from bp-asm.h.
2569         (__remquof): Do not use BP_SYM.
2570         (remquof): Likewise.
2571         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
2572         "bp-asm.h".
2573         (PARMS): Do not use macros from bp-asm.h.
2574         (__remquol): Do not use BP_SYM.
2575         (remquol): Likewise.
2576         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
2577         "bp-asm.h".
2578         (PARMS): Do not use macros from bp-asm.h.
2579         (DEST): Likewise.
2580         (SRC): Likewise.
2581         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
2582         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
2583         "bp-asm.h".
2584         (PARMS): Do not use macros from bp-asm.h.
2585         (strlen): Do not use BP_SYM.
2586         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
2587         "bp-asm.h".
2588         (PARMS): Do not use macros from bp-asm.h.
2589         (S1): Likewise.
2590         (S2): Likewise.
2591         (SIZE): Likewise.
2592         (__mpn_add_n): Do not use BP_SYM.
2593         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
2594         "bp-asm.h".
2595         (PARMS): Do not use macros from bp-asm.h.
2596         (S1): Likewise.
2597         (SIZE): Likewise.
2598         (__mpn_addmul_1): Do not use BP_SYM.
2599         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
2600         weak_alias.
2601         (bzero): Likewise.
2602         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
2603         "bp-asm.h".
2604         (PARMS): Do not use macros from bp-asm.h.
2605         (S): Likewise.
2606         (SIZE): Likewise.
2607         (__mpn_lshift): Do not use BP_SYM.
2608         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
2609         "bp-asm.h".
2610         (PARMS): Do not use macros from bp-asm.h.
2611         (DEST): Likewise.
2612         (SRC): Likewise.
2613         (LEN): Likewise.
2614         (memcpy): Likewise.  Do not use BP_SYM.
2615         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
2616         libc_hidden_def and weak_alias.
2617         (mempcpy): Do not use BP_SYM in weak_alias.
2618         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
2619         "bp-asm.h".
2620         (PARMS): Do not use macros from bp-asm.h.
2621         (DEST): Likewise.
2622         (LEN): Likewise.
2623         [!BZERO_P] (CHR): Likewise.
2624         (memset): Likewise.  Do not use BP_SYM.
2625         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
2626         "bp-asm.h".
2627         (PARMS): Do not use macros from bp-asm.h.
2628         (S1): Likewise.
2629         (SIZE): Likewise.
2630         (__mpn_mul_1): Do not use BP_SYM.
2631         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
2632         "bp-asm.h".
2633         (PARMS): Do not use macros from bp-asm.h.
2634         (S): Likewise.
2635         (SIZE): Likewise.
2636         (__mpn_rshift): Do not use BP_SYM.
2637         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
2638         "bp-asm.h".
2639         (PARMS): Do not use macros from bp-asm.h.
2640         (STR): Likewise.
2641         (CHR): Likewise.
2642         (strchr): Likewise.  Do not use BP_SYM.
2643         (index): Do not use BP_SYM in weak_alias.
2644         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
2645         "bp-asm.h".
2646         (PARMS): Do not use macros from bp-asm.h.
2647         (DEST): Likewise.
2648         (SRC): Likewise.
2649         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
2650         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
2651         "bp-asm.h".
2652         (PARMS): Do not use macros from bp-asm.h.
2653         (strlen): Do not use BP_SYM.
2654         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
2655         "bp-asm.h".
2656         (PARMS): Do not use macros from bp-asm.h.
2657         (S1): Likewise.
2658         (S2): Likewise.
2659         (SIZE): Likewise.
2660         (__mpn_sub_n): Do not use BP_SYM.
2661         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
2662         "bp-asm.h".
2663         (PARMS): Do not use macros from bp-asm.h.
2664         (S1): Likewise.
2665         (SIZE): Likewise.
2666         (__mpn_submul_1): Do not use BP_SYM.
2667         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
2668         "bp-asm.h".
2669         (PARMS): Do not use macros from bp-asm.h.
2670         (S1): Likewise.
2671         (S2): Likewise.
2672         (SIZE): Likewise.
2673         (__mpn_add_n): Do not use BP_SYM.
2674         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
2675         weak_alias.
2676         (bzero): Likewise.
2677         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
2678         "bp-asm.h".
2679         (PARMS): Do not use macros from bp-asm.h.
2680         (BLK2): Likewise.
2681         (LEN): Likewise.
2682         (memcmp): Do not use BP_SYM.
2683         (bcmp): Do not use BP_SYM in weak_alias.
2684         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
2685         "bp-asm.h".
2686         (PARMS): Do not use macros from bp-asm.h.
2687         (DEST): Likewise.
2688         (SRC): Likewise.
2689         (LEN): Likewise.
2690         (memcpy): Likewise.  Do not use BP_SYM.
2691         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
2692         "bp-asm.h".
2693         (PARMS): Do not use macros from bp-asm.h.
2694         (DEST): Likewise.
2695         (SRC): Likewise.
2696         (LEN): Likewise.
2697         (memmove): Likewise.  Do not use BP_SYM.
2698         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
2699         "bp-asm.h".
2700         (PARMS): Do not use macros from bp-asm.h.
2701         (DEST): Likewise.
2702         (SRC): Likewise.
2703         (LEN): Likewise.
2704         (__mempcpy): Likewise.  Do not use BP_SYM.
2705         (mempcpy): Do not use BP_SYM in weak_alias.
2706         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
2707         "bp-asm.h".
2708         (PARMS): Do not use macros from bp-asm.h.
2709         (DEST): Likewise.
2710         (LEN): Likewise.
2711         [!BZERO_P] (CHR): Likewise.
2712         (memset): Likewise.  Do not use BP_SYM.
2713         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
2714         "bp-asm.h".
2715         (PARMS): Do not use macros from bp-asm.h.
2716         (STR2): Likewise.
2717         (strcmp): Do not use BP_SYM.
2718         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
2719         "bp-asm.h".
2720         (PARMS): Do not use macros from bp-asm.h.
2721         (STR): Likewise.
2722         (DELIM): Likewise.
2723         [USE_AS_STRTOK_R] (SAVE): Likewise.
2724         (FUNCTION): Likewise.  Do not use BP_SYM.
2725         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
2726         aliases.
2727         (strtok_r): Likewise.
2728         (__GI___strtok_r): Likewise.
2729         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
2730         (PARMS): Do not use macros from bp-asm.h.
2731         (S): Likewise.
2732         (SIZE): Likewise.
2733         (__mpn_lshift): Do not use BP_SYM.
2734         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
2735         (PARMS): Do not use macros from bp-asm.h.
2736         (STR): Likewise.
2737         (CHR): Likewise.
2738         (__memchr): Do not use BP_SYM.
2739         (memchr): Do not use BP_SYM in weak_alias.
2740         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
2741         (PARMS): Do not use macros from bp-asm.h.
2742         (BLK2): Likewise.
2743         (LEN): Likewise.
2744         (memcmp): Do not use BP_SYM.
2745         (bcmp): Do not use BP_SYM in weak_alias.
2746         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
2747         (PARMS): Do not use macros from bp-asm.h.
2748         (S1): Likewise.
2749         (SIZE): Likewise.
2750         (__mpn_mul_1): Do not use BP_SYM.
2751         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
2752         "bp-asm.h".
2753         (PARMS): Do not use macros from bp-asm.h.
2754         (STR): Likewise.
2755         (CHR): Likewise.
2756         (__rawmemchr): Do not use BP_SYM.
2757         (rawmemchr): Do not use BP_SYM in weak_alias.
2758         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
2759         (PARMS): Do not use macros from bp-asm.h.
2760         (S): Likewise.
2761         (SIZE): Likewise.
2762         (__mpn_rshift): Do not use BP_SYM.
2763         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
2764         (PARMS): Do not use macros from bp-asm.h.
2765         (SIGMSK): Likewise.
2766         (__sigsetjmp): Likewise.  Do not use BP_SYM.
2767         * sysdeps/i386/start.S: Do not include "bp-sym.h".
2768         (_start): Do not use BP_SYM.
2769         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
2770         (PARMS): Do not use macros from bp-asm.h.
2771         (DEST): Likewise.
2772         (SRC): Likewise.
2773         (__stpcpy): Likewise.  Do not use BP_SYM.
2774         (stpcpy): Do not use BP_SYM in weak_alias.
2775         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
2776         "bp-asm.h".
2777         (PARMS): Do not use macros from bp-asm.h.
2778         (DEST): Likewise.
2779         (SRC): Likewise.
2780         (LEN): Likewise.
2781         (__stpncpy): Likewise.  Do not use BP_SYM.
2782         (stpncpy): Do not use BP_SYM in weak_alias.
2783         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
2784         (PARMS): Do not use macros from bp-asm.h.
2785         (STR): Likewise.
2786         (CHR): Likewise.
2787         (strchr): Likewise.  Do not use BP_SYM.
2788         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
2789         "bp-asm.h".
2790         (PARMS): Do not use macros from bp-asm.h.
2791         (STR): Likewise.
2792         (CHR): Likewise.
2793         (__strchrnul): Likewise.  Do not use BP_SYM.
2794         (strchrnul): Do not use BP_SYM in weak_alias.
2795         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
2796         "bp-asm.h".
2797         (PARMS): Do not use macros from bp-asm.h.
2798         (STOP): Likewise.
2799         (strcspn): Do not use BP_SYM.
2800         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
2801         "bp-asm.h".
2802         (PARMS): Do not use macros from bp-asm.h.
2803         (STR): Likewise.
2804         (STOP): Likewise.
2805         (strpbrk): Likewise.  Do not use BP_SYM.
2806         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
2807         "bp-asm.h".
2808         (PARMS): Do not use macros from bp-asm.h.
2809         (STR): Likewise.
2810         (CHR): Likewise.
2811         (strrchr): Likewise.  Do not use BP_SYM.
2812         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
2813         (PARMS): Do not use macros from bp-asm.h.
2814         (SKIP): Likewise.
2815         (strspn): Do not use BP_SYM.
2816         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
2817         (PARMS): Do not use macros from bp-asm.h.
2818         (STR): Likewise.
2819         (DELIM): Likewise.
2820         (SAVE): Likewise.
2821         (FUNCTION): Likewise.  Do not use BP_SYM.
2822         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
2823         aliases.
2824         (strtok_r): Likewise.
2825         (__GI___strtok_r): Likewise.
2826         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
2827         (PARMS): Do not use macros from bp-asm.h.
2828         (S1): Likewise.
2829         (S2): Likewise.
2830         (SIZE): Likewise.
2831         (__mpn_sub_n): Do not use BP_SYM.
2832         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
2833         "bp-asm.h".
2834         (PARMS): Do not use macros from bp-asm.h.
2835         (S1): Likewise.
2836         (SIZE): Likewise.
2837         (__mpn_submul_1): Do not use BP_SYM.
2838         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
2839         <bp-sym.h>.
2840         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
2841         and <bp-asm.h>.
2842         (PARMS): Do not use macros from bp-asm.h.
2843         (FLAGS): Likewise.
2844         (PTID): Likewise.
2845         (TLS): Likewise.
2846         (CTID): Likewise.
2847         (__clone): Do not use BP_SYM.
2848         (clone): Do not use BP_SYM in weak_alias.
2849         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
2850         and <bp-asm.h>.
2851         (PARMS): Do not use macros from bp-asm.h.
2852         (LEN): Likewise.
2853         (__mmap64): Do not use BP_SYM.
2854         (mmap64): Do not use BP_SYM in weak_alias.
2855         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
2856         <bp-sym.h> and <bp-asm.h>.
2857         (PARMS): Do not use macros from bp-asm.h.
2858         (__posix_fadvise64_l64): Do not use BP_SYM.
2859         * sysdeps/unix/sysv/linux/i386/semtimedop.S
2860         (PARMS): Do not use macros from bp-asm.h.
2861         (NSOPS): Likewise.
2862         (semtimedop): Do not use BP_SYM.
2863         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
2864         and <bp-asm.h>.
2865
2866 2013-02-21  Allan McRae  <allan@archlinux.org>
2867
2868         * manual/message.texi (Charset conversion in gettext):
2869         Move @end statement to beginning of line.
2870
2871 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
2872
2873         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
2874         static.
2875         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
2876         Likewise.
2877
2878         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
2879         (denorm): Likewise.
2880         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
2881         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
2882
2883 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2884
2885         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
2886         tail-call to the resolved function if pltexit isn't needed.
2887
2888 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
2889
2890         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
2891         or Y being zero as being unlikely.
2892         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
2893         Likewise.
2894
2895 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
2896
2897         * manual/nss.texi (System Databases and Name Service Switch):
2898         Remove frobnicate @pxref.
2899
2900 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
2901
2902         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
2903         __attribute__ ((unused)) to __attribute__ ((__unused__)).
2904
2905 2013-02-20  Petr Machata  <pmachata@redhat.com>
2906
2907         * elf/elf.h (R_ARM_TARGET1): New macro.
2908         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
2909         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
2910         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
2911         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
2912         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
2913         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
2914         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
2915         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
2916         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
2917         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
2918         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
2919         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
2920         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
2921         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
2922         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
2923         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
2924         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
2925         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
2926         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
2927         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
2928         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
2929         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
2930         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
2931         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
2932         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
2933         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
2934         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
2935         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
2936         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
2937         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
2938         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
2939         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
2940         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
2941         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
2942         (R_ARM_THM_GOT_BREL12): Likewise.
2943         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
2944         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
2945         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
2946         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
2947         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
2948         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
2949         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
2950         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
2951         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
2952
2953 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
2954
2955         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
2956         __attribute_used__ to __attribute__ ((unused)).
2957
2958 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
2959
2960         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
2961         powerpc mpa.c.
2962         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
2963         comment formatting.
2964         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
2965
2966 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
2967
2968         [BZ #13550]
2969         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
2970         Remove macro.
2971         (ENTER): Remove both macro definitions.
2972         (LEAVE): Likewise.
2973         (CHECK_BOUNDS_LOW): Likewise.
2974         (CHECK_BOUNDS_HIGH): Likewise.
2975         (CHECK_BOUNDS_BOTH): Likewise.
2976         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
2977         (RETURN_BOUNDED_POINTER): Likewise.
2978         (RETURN_NULL_BOUNDED_POINTER): Likewise.
2979         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
2980         (POP_ERRNO_LOCATION_RETURN): Likewise.
2981         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
2982         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
2983         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
2984         macros.
2985         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
2986         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
2987         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
2988         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
2989         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
2990         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
2991         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
2992         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
2993         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
2994         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
2995         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
2996         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
2997         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
2998         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
2999         removed macros.
3000         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
3001         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
3002         macros.
3003         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
3004         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
3005         * sysdeps/i386/i586/memset.S (memset): Likewise.
3006         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
3007         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
3008         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
3009         macros.
3010         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
3011         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
3012         Change uses of L(2) to L(out).
3013         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
3014         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
3015         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
3016         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
3017         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
3018         removed macros.
3019         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
3020         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
3021         macros.
3022         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
3023         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
3024         (RETURN): Do not use macro LEAVE.
3025         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
3026         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
3027         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
3028         * sysdeps/i386/i686/memset.S (memset): Likewise.
3029         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
3030         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
3031         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
3032         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
3033         Likewise.
3034         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
3035         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
3036         L(1_2) and L(1_3) into L(1).
3037         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
3038         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
3039         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
3040         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
3041         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
3042         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
3043         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
3044         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
3045         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
3046         macros.
3047         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
3048         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
3049         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
3050         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
3051         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
3052         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
3053         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
3054         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
3055         * sysdeps/i386/strcspn.S (strcspn): Likewise.
3056         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
3057         * sysdeps/i386/strrchr.S (strrchr): Likewise.
3058         * sysdeps/i386/strspn.S (strspn): Likewise.
3059         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
3060         conditional code.
3061         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
3062         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
3063         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
3064         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
3065         L(1_3) into L(1_1).
3066         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
3067         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
3068         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
3069         macros.
3070         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
3071
3072 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
3073
3074         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
3075         macro.
3076
3077 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
3078
3079         * math/atest-exp.c (exp_mpn): Remove ROUND.
3080         * math/atest-exp2.c (exp_mpn): Likewise.
3081         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
3082
3083         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
3084         * stdlib/tst-tls-atexit-lib.c: Likewise.
3085         * stdlib/tst-tls-atexit.c: Likewise.
3086
3087 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
3088
3089         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
3090         and __attribute_alloc_size__.
3091
3092 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
3093
3094         * include/programs/xmalloc.h: Change __attribute_alloc_size to
3095         __attribute_alloc_size__.
3096         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
3097         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
3098
3099 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
3100
3101         * include/programs/xmalloc.h: New file.
3102         * catgets/gencat.c: Include it.
3103         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
3104         * elf/pldd.c: Likewise.
3105         * iconv/iconv_charmap.c: Likewise.
3106         * iconv/iconvconfig.c: Likewise.
3107         * iconv/strtab.c: Likewise.
3108         * locale/programs/locale.c: Likewise.
3109         * locale/programs/localedef.h: Likewise.
3110         * locale/programs/simple-hash.c: Likewise.
3111         * nscd/nscd.h: Likewise.
3112         * nss/makedb.c: Likewise.
3113         * sysdeps/generic/ldconfig.h: Likewise.
3114
3115 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
3116
3117         * Versions.def: Add GLIBC_2.18.
3118         * include/link.h (struct link_map): New member l_tls_dtor_count.
3119         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
3120         (__call_tls_dtors): Likewise.
3121         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
3122         __cxa_thread_atexit_impl.
3123         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
3124         Likewise.
3125         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
3126         Likewise.
3127         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
3128         Likewise.
3129         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
3130         Likewise.
3131         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
3132         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
3133         Likewise.
3134         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
3135         Likewise.
3136         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
3137         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
3138         Likewise.
3139         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
3140         (tests): Add test case tst-tls-atexit.
3141         (modules-names): Add shared library for tst-tls-atexit.
3142         * stdlib/Versions (GLIBC_2.17): Add __cxa_thread_atexit_impl.
3143         (GLIBC_PRIVATE): Add __call_tls_dtors.
3144         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
3145         for libstdc++.
3146         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
3147         * stdlib/tst-tls-atexit.c: New test case.
3148         * stdlib/tst-tls-atexit-lib.c: New test case.
3149
3150         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
3151
3152         * elf/Versions (ld): Add _dl_find_dso_for_object.
3153         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
3154         * elf/dl-open.c (_dl_find_dso_for_object): New function.
3155         (dl_open_worker): Use _dl_find_dso_for_object.
3156         * elf/dl-sym.c (do_sym): Likewise.
3157         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
3158
3159 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3160
3161         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
3162         Syntactic changes only.
3163         (_dl_runtime_profile): Do a tail-call to the resolved function.
3164
3165 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
3166
3167         [BZ #13550]
3168         * sysdeps/x86_64/bp-asm.h: Remove file.
3169         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
3170         <bp-sym.h> and <bp-asm.h>.
3171         (__clone): Do not use BP_SYM.
3172         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
3173         <bp-sym.h> and <bp-asm.h>.
3174         * sysdeps/unix/x86_64/sysdep.S: Likewise.
3175         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
3176         "bp-asm.h".
3177         (_setjmp): Do not use BP_SYM.
3178         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
3179         "bp-asm.h".
3180         (setjmp): Do not use BP_SYM.
3181         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
3182         libc_hidden_def.
3183         (mempcpy): Do not use BP_SYM in weak_alias.
3184         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
3185         "bp-asm.h".
3186         (strchr): Do not use BP_SYM.
3187         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
3188         "bp-asm.h".
3189         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
3190         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
3191         (_start): Do not use BP_SYM.
3192         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
3193         "bp-asm.h".
3194         (strcat): Do not use BP_SYM.
3195         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
3196         "bp-asm.h".
3197         (STRCMP): Do not use BP_SYM.
3198         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
3199         "bp-asm.h".
3200         (STRCPY): Do not use BP_SYM.
3201         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
3202         "bp-asm.h".
3203         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
3204         "bp-asm.h".
3205         (FUNCTION): Do not use BP_SYM.
3206         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
3207         weak_alias.
3208         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
3209
3210 2013-02-17  Andreas Jaeger  <aj@suse.de>
3211
3212         * time/Versions: Sort entries.
3213         * string/Versions: Likewise.
3214         * resolv/Versions: Likewise.
3215         * posix/Versions: Likewise.
3216         * iconv/Versions: Likewise.
3217         * elf/Versions: Likewise.
3218         * wcsmbs/Versions: Likewise.
3219
3220 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
3221
3222         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
3223         loop termination condition.
3224
3225         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
3226         variable to calculate EZ.
3227         (__sqr): Likewise.
3228
3229         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
3230         the lower precision input.
3231
3232 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
3233
3234         [BZ #13550]
3235         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
3236         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
3237         (run-via-rtld-prefix): Do not handle %-bp tests.
3238         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
3239         (all-object-suffixes): Remove .ob.
3240         (bppfx): Remove variable.
3241         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
3242         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
3243         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
3244         [$(build-bounded) = yes] (libtype.ob): Likewise.
3245         * Makerules (elide-routines.ob): Remove variable.
3246         (do-tests-clean): Do not handle *-bp.out.
3247         (common-mostlyclean): Do not handle *-bp and *-bp.out.
3248         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
3249         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
3250         (tests): Do not include $(tests-bp.out).
3251         (xtests): Do not include $(xtests-bp.out).
3252         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
3253         [$(build-bounded) = yes] ($(addprefix
3254         $(objpfx),$(binaries-bounded))): Remove rule.
3255         ($(objpfx)%-bp.out): Remove rule.
3256         * config.make.in (build-bounded): Remove variable.
3257         * crypt/Makefile [$(build-bounded) = yes]
3258         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
3259         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
3260         append to variable.
3261         [$(build-bounded) = yes] (install-lib): Likewise.
3262         [$(build-bounded) = yes] (generated): Likewise.
3263         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
3264         Remove rule.
3265         * intl/Makefile [$(build-bounded) = yes]
3266         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
3267         * math/Makefile [$(build-bounded) = yes]
3268         ($(tests:%=$(objpfx)%-bp): Likewise.
3269         * misc/Makefile [$(build-bounded) = yes]
3270         ($(objpfx)tst-tsearch-bp): Likewise.
3271         * nptl/Makeconfig (bounded-thread-library): Remove variable.
3272         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
3273         Remove dependency.
3274         * string/Makefile (o-objects.ob): Remove variable.
3275         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
3276         (CFLAGS-.ob): Remove variable.
3277         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
3278         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
3279         both definitions of variable.
3280         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
3281         (ASFLAGS-.ob): Remove variable.
3282
3283 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
3284
3285         [BZ #13550]
3286         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
3287         Remove __BOUNDED_POINTERS__ from condition.
3288         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
3289         * string/bits/string2.h [!__NO_STRING_INLINES &&
3290         !__BOUNDED_POINTERS__]: Likewise.
3291         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
3292         Likewise.
3293         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
3294         Remove conditional code.
3295         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
3296         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
3297         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
3298         condition.
3299
3300         [BZ #13550]
3301         * csu/libc-start.c: Do not include <bp-sym.h>.
3302         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
3303         * elf/dl-open.c: Do not include <bp-sym.h>.
3304         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
3305         * math/fegetenv.c: Do not include <bp-sym.h>.
3306         (fegetenv): Do not use BP_SYM in versioned symbols.
3307         * nptl/sysdeps/pthread/bits/libc-lockP.h
3308         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
3309         <bp-sym.h>.
3310         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3311         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
3312         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3313         (__pthread_mutex_destroy): Likewise.
3314         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3315         (__pthread_mutex_lock): Likewise.
3316         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3317         (__pthread_mutex_trylock): Likewise.
3318         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3319         (__pthread_mutex_unlock): Likewise.
3320         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3321         (__pthread_mutexattr_init): Likewise.
3322         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3323         (__pthread_mutexattr_destroy): Likewise.
3324         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3325         (__pthread_mutexattr_settype): Likewise.
3326         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3327         (__pthread_rwlock_init): Likewise.
3328         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3329         (__pthread_rwlock_destroy): Likewise.
3330         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3331         (__pthread_rwlock_rdlock): Likewise.
3332         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3333         (__pthread_rwlock_tryrdlock): Likewise.
3334         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3335         (__pthread_rwlock_wrlock): Likewise.
3336         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3337         (__pthread_rwlock_trywrlock): Likewise.
3338         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3339         (__pthread_rwlock_unlock): Likewise.
3340         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3341         (__pthread_key_create): Likewise.
3342         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3343         (__pthread_setspecific): Likewise.
3344         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3345         (__pthread_getspecific): Likewise.
3346         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
3347         Likewise.
3348         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3349         (_pthread_cleanup_push_defer): Likewise.
3350         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3351         (_pthread_cleanup_pop_restore): Likewise.
3352         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3353         (pthread_setcancelstate): Likewise.
3354         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
3355         <bp-sym.h>.
3356         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
3357         (memchr): Do not use BP_SYM in weak_alias.
3358         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
3359         (fegetenv): Do not use BP_SYM in versioned symbols.
3360         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
3361         (fesetenv): Do not use BP_SYM in versioned symbols.
3362         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
3363         (feupdateenv): Do not use BP_SYM in versioned symbols.
3364         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
3365         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
3366         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
3367         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
3368         (open64): Do not use BP_SYM in weak_alias.
3369         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
3370         (fegetenv): Do not use BP_SYM in versioned symbols.
3371         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
3372         (fesetenv): Do not use BP_SYM in versioned symbols.
3373         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
3374         (feupdateenv): Do not use BP_SYM in versioned symbols.
3375         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
3376         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
3377         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
3378         (feraiseexcept): Do not use BP_SYM in versioned symbols.
3379         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
3380         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
3381         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
3382         <bp-sym.h>.
3383         (__libc_start_main): Do not use BP_SYM.
3384
3385 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
3386
3387         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
3388         redundant return line.
3389         (norm): Likewise.
3390         (denorm): Likewise.
3391         (dbl_mp): Likewise.
3392         (sub_magnitudes): Likewise.
3393         (__add): Likewise.
3394         (__sub): Likewise.
3395         (__mul): Likewise.
3396         (__inv): Likewise.
3397         (__dvd): Likewise.
3398         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
3399         (norm): Likewise.
3400         (denorm): Likewise.
3401         (dbl_mp): Likewise.
3402         (sub_magnitudes): Likewise.
3403         (__add): Likewise.
3404         (__sub): Likewise.
3405         (__mul): Likewise.
3406         (__inv): Likewise.
3407         (__dvd): Likewise.
3408
3409         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
3410         instead of __mul.
3411         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
3412         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
3413         (cc32): Likewise.
3414
3415         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
3416         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
3417         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
3418         of __mul for squares.
3419         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
3420         function
3421         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
3422         Likewise.
3423         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
3424         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
3425
3426 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
3427
3428         [BZ #13550]
3429         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
3430         code.
3431         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
3432         prototype or function definition.  Rename ubp_* variables and
3433         parameters.  Remove argv definitions conditional on
3434         [__BOUNDED_POINTERS__].
3435         * debug/backtrace.c (__backtrace): Do not use __unbounded.
3436         * elf/dl-runtime.c (_dl_fixup): Likewise.
3437         * include/set-hooks.h (RUN_HOOK): Likewise.
3438         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
3439         definition.
3440         * string/strcpy.c (strcpy): Do not use __unbounded.
3441         * sysdeps/generic/frame.h (struct layout): Likewise.
3442         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
3443         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
3444         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
3445         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
3446         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
3447         (__backtrace): Likewise.
3448         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
3449         use __ptrvalue.
3450         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
3451         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
3452         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
3453         Likewise.
3454         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
3455         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
3456         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
3457         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
3458         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
3459         Do not use __unbounded.
3460         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
3461         Rename __unboundedrlimits parameter to rlimits in prototype.
3462         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
3463         Do not use __unbounded.
3464         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
3465         not use __ptrvalue.
3466         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
3467         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
3468         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
3469         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
3470         __ptrvalue or __unbounded.
3471         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
3472         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
3473         use __unbounded.
3474         (__new_msgctl): Do not use __ptrvalue.
3475         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
3476         __unbounded.
3477         (__libc_msgrcv): Do not use __ptrvalue.
3478         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
3479         startup_info): Do not use __unbounded.
3480         (__libc_start_main): Likewise.  Rename ubp_* variables and
3481         parameters.  Remove argv definitions conditional on
3482         [__BOUNDED_POINTERS__].
3483         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
3484         __ptrvalue.
3485         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
3486         use __unbounded.
3487         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
3488         or __ptrvalue.
3489         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
3490         use __unbounded.
3491         (__new_shmctl): Do not use __ptrvalue.
3492         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
3493         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
3494         Likewise.
3495         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
3496         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
3497         (__libc_sigaction): Likewise.
3498         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
3499         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
3500         Likewise.
3501         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
3502
3503 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
3504
3505         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
3506
3507         * string/mempcpy.c: Implement by calling memcpy.
3508
3509 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
3510
3511         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
3512
3513         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
3514         evaluation.
3515
3516         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
3517         values in the mantissa.
3518
3519         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
3520         minimize writes to Z.
3521         (sub_magnitudes): Simplify code a bit.
3522
3523 2013-02-12  Roland McGrath  <roland@hack.frob.com>
3524
3525         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
3526         from the message.  The linker prefixes all warnings with that already.
3527
3528 2013-02-12  Andreas Schwab  <schwab@suse.de>
3529
3530         [BZ #15078]
3531         * posix/regexec.c (extend_buffers): Add parameter min_len.
3532         (check_matching): Pass minimum needed length.
3533         (clean_state_log_if_needed): Likewise.
3534         (get_subexp): Likewise.
3535         * posix/Makefile (tests): Add bug-regex34.
3536         (bug-regex34-ENV): Define.
3537         * posix/bug-regex34.c: New file.
3538
3539         [BZ #11561]
3540         * posix/regcomp.c (parse_bracket_exp): When looking up collating
3541         elements compare against the byte sequence of it, not its name.
3542         * posix/Makefile (tests): Add bug-regex35.
3543         (bug-regex35-ENV): Define.
3544         * posix/bug-regex35.c: New file.
3545
3546 2013-02-11  Tom de Vries  <tom@codesourcery.com>
3547
3548         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
3549         comment.
3550         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
3551         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
3552         (CHECK_EOL): Add undef.
3553
3554 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
3555
3556         * bits/stdlib-bsearch.h: New file.
3557         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
3558         * stdlib/stdlib.h: Likewise.
3559
3560 2013-02-11  Roland McGrath  <roland@hack.frob.com>
3561
3562         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
3563         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
3564         declaration.
3565         * manual/search.texi (Array Search Function): Add missing const in
3566         lfind prototype.
3567         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
3568         declaration to use rlim_t.
3569         (Basic Scheduling Functions): Remove erroneous const from
3570         sched_getparam prototype.  Remove erroneous * from
3571         sched_get_priority_max and sched_get_priority_min prototypes.
3572         (Resource Usage): Fix summary @comment on vtimes to refer to
3573         sys/vtimes.h rather than vtimes.h.
3574         Add missing *s in vtimes prototype.
3575         (Limits on Resources): Fix ulimit prototype to return long int.
3576         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
3577         prototypes to use long int rather than double.
3578         (BSD Random): Fix initstate and setstate to use char *, not void *.
3579         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
3580         prototype to make second argument 'struct aiocb64 *const[]'.
3581         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
3582         (Status of AIO Operations): Remove erroneous const in aio_return and
3583         aio_return64 prototypes.
3584         (Synchronizing I/O): Fix sync prototype to return void.
3585         * manual/startup.texi (Suboptions): Remove an erroneous const in
3586         getsubopt prototype.
3587         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
3588         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
3589         use size_t rather than int.
3590         (Scanning All Users): Likewise for getpwent_r.
3591         (Setting Groups): Add missing const to setgroups prototype.
3592         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
3593         * manual/socket.texi (Host Names): Fix gethostbyaddr and
3594         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
3595         'const void *' rather than 'const char *'.
3596         (Host Address Functions): Likewise for inet_ntop.
3597         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
3598         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
3599         ssize_t for return value.
3600         (Sending Data): Likewise for send, sendto, sendmsg.
3601         (Socket Option Functions): Add a missing const in setsockopt prototype.
3602         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
3603         use wchar_t for the argument.
3604         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
3605         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
3606         take no arguments.
3607         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
3608         double/float/long double for second argument.
3609         Fix return types of significand, significandf, significandl.
3610         * manual/filesys.texi (Setting Permissions): Use mode_t for second
3611         argument in fchmod prototype.
3612         (File Owner): Use uid_t and gid_t in fchown prototype.
3613         (File Times): Add const to utimes, futimes, and lutimes prototypes.
3614         (Making Special Files): Use mode_t and dev_t in mknod prototype.
3615         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
3616         use 'const struct dirent **' as argument types to CMP function pointer
3617         argument.
3618         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
3619         (File Times): Fix summary magic @comment for struct utimbuf and utime
3620         to refer to utime.h, not time.h.
3621         * manual/string.texi (Argz Functions): Add missing const in
3622         argz_extract and argz_next prototypes.
3623         (Finding Tokens in a String): Likewise for basename.
3624         (String/Array Comparison): Fix typo in wcscasecmp prototype.
3625         (Copying and Concatenation): Fix typo in wmemmove prototype.
3626         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
3627         (Signal Stack): Remove erroneous const in sigstack prototype.
3628         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
3629         prototype.
3630         (Simple Calendar Time): Likewise for stime.
3631         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
3632         prototype.
3633         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
3634         say sys/sysctl.h instead.
3635         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
3636         and vsyslog prototypes.
3637
3638 2013-02-11  Tom de Vries  <tom@codesourcery.com>
3639
3640         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
3641         Remove.
3642
3643 2013-02-11  Roland McGrath  <roland@hack.frob.com>
3644
3645         * misc/sys/mman.h: Fix typo in mremap comment.
3646
3647 2013-02-08  Roland McGrath  <roland@hack.frob.com>
3648
3649         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
3650         the '\0' terminator.
3651
3652 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
3653
3654         [BZ #13550]
3655         * debug/segfault.c: Don't include <bp-checks.h>.
3656         * sysdeps/generic/bp-checks.h: Remove file.
3657         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
3658         (__GETDENTS): Don't use CHECK_N.
3659         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
3660         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
3661         (__getgroups): Don't use CHECK_N.
3662         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
3663         (setgroups): Don't use CHECK_N.
3664         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
3665         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
3666         (__libc_msgrcv): Don't use CHECK_N.
3667         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
3668         (__libc_msgsnd): Don't use CHECK_N.
3669         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
3670         <bp-checks.h>.
3671         (__libc_pread): Don't use CHECK_N.
3672         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
3673         include <bp-checks.h>.
3674         (__libc_pread64): Don't use CHECK_N.
3675         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
3676         include <bp-checks.h>.
3677         (__libc_pwrite): Don't use CHECK_N.
3678         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
3679         include <bp-checks.h>.
3680         (__libc_pwrite64): Don't use CHECK_N.
3681         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
3682         <bp-checks.h>.
3683         (__libc_pread): Don't use CHECK_N.
3684         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
3685         include <bp-checks.h>.
3686         (__libc_pread64): Don't use CHECK_N.
3687         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
3688         include <bp-checks.h>.
3689         (__libc_pwrite): Don't use CHECK_N.
3690         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
3691         include <bp-checks.h>.
3692         (__libc_pwrite64): Don't use CHECK_N.
3693         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
3694         (do_pread): Don't use CHECK_N.
3695         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
3696         (do_pread64): Don't use CHECK_N.
3697         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
3698         (do_pwrite): Don't use CHECK_N.
3699         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
3700         (do_pwrite64): Don't use CHECK_N.
3701         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
3702         (__libc_readv): Don't use CHECK_N.
3703         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
3704         (semop): Don't use CHECK_N.
3705         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
3706         <bp-checks.h>.
3707         (semtimedop): Don't use CHECK_N.
3708         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
3709         (__libc_pread): Don't use CHECK_N.
3710         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
3711         <bp-checks.h>.
3712         (__libc_pread64): Don't use CHECK_N.
3713         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
3714         <bp-checks.h>.
3715         (__libc_pwrite): Don't use CHECK_N.
3716         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
3717         <bp-checks.h>.
3718         (__libc_pwrite64): Don't use CHECK_N.
3719         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
3720         <bp-checks.h>.
3721         (__libc_msgrcv): Don't use CHECK_N.
3722         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
3723         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
3724         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
3725         (__libc_writev): Don't use CHECK_N.
3726
3727 2013-02-08  Roland McGrath  <roland@hack.frob.com>
3728
3729         * string/strcpy.c: Removed unused variable.
3730
3731         * Makeconfig (+sysdep-includes): Define with := rather than =.
3732         Use an existing include/ subdir of each sysdeps dir before it.
3733
3734 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
3735
3736         * nscd/connection.c (register_traced_file): Comment function.
3737         [HAVE_INOTIFY] (union __inev): Define.
3738         [HAVE_INOTIFY] (inotify_check_files): New function.
3739         [HAVE_INOTIFY] (clear_db_cache): Likewise.
3740         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
3741         clear_db_cache.
3742         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
3743
3744 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
3745
3746         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
3747         loaded if not already and that a failure is permanent.
3748
3749 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
3750
3751         [BZ #15006]
3752         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
3753         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
3754
3755 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
3756
3757         [BZ #13550]
3758         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
3759         (CHECK_1_NULL_OK): Likewise.
3760         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
3761         (__fxstat): Do not use CHECK_1.
3762         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
3763         <bp-checks.h>.
3764         (___fxstat64): Do not use CHECK_1.
3765         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
3766         <bp-checks.h>.
3767         (__fxstatat): Do not use CHECK_1.
3768         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
3769         <bp-checks.h>.
3770         (__fxstatat64): Do not use CHECK_1.
3771         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
3772         <bp-checks.h>.
3773         (__fxstat): Do not use CHECK_1.
3774         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
3775         <bp-checks.h>.
3776         (__fxstatat): Do not use CHECK_1.
3777         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
3778         <bp-checks.h>.
3779         (__getresgid): Do not use CHECK_1.
3780         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
3781         <bp-checks.h>.
3782         (__getresuid): Do not use CHECK_1.
3783         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
3784         <bp-checks.h>.
3785         (__lxstat): Do not use CHECK_1.
3786         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
3787         <bp-checks.h>.
3788         (__old_msgctl): Do not use CHECK_1.
3789         (__new_msgctl): Likewise.
3790         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
3791         <bp-checks.h>.
3792         (__new_setrlimit): Do not use CHECK_1.
3793         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
3794         <bp-checks.h>.
3795         (__old_shmctl): Do not use CHECK_1.
3796         (__new_shmctl): Likewise.
3797         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
3798         <bp-checks.h>.
3799         (__xstat): Do not use CHECK_1.
3800         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
3801         (__lxstat): Do not use CHECK_1.
3802         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
3803         <bp-checks.h>.
3804         (___lxstat64): Do not use CHECK_1.
3805         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
3806         (__old_msgctl): Do not use CHECK_1.
3807         (__new_msgctl): Likewise.
3808         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
3809         <bp-checks.h>.
3810         (__gettimeofday): Do not use CHECK_1.
3811         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
3812         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
3813         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
3814         <bp-checks.h>.
3815         (__gettimeofday): Do not use CHECK_1.
3816         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
3817         (__old_shmctl): Do not use CHECK_1_NULL_OK.
3818         (__new_shmctl): Do not use CHECK_1.
3819         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
3820         <bp-checks.h>.
3821         (do_sigtimedwait): Do not use CHECK_1.
3822         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
3823         <bp-checks.h>.
3824         (do_sigwaitinfo): Do not use CHECK_1.
3825         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
3826         <bp-checks.h>.
3827         (msgctl): Do not use CHECK_1.
3828         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
3829         <bp-checks.h>.
3830         (shmctl): Do not use CHECK_1.
3831         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
3832         (ustat): Do not use CHECK_1.
3833         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
3834         <bp-checks.h>.
3835         (__fxstat): Do not use CHECK_1.
3836         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
3837         <bp-checks.h>.
3838         (__fxstatat): Do not use CHECK_1.
3839         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
3840         <bp-checks.h>.
3841         (__lxstat): Do not use CHECK_1.
3842         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
3843         <bp-checks.h>.
3844         (__xstat): Do not use CHECK_1.
3845         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
3846         (__xstat): Do not use CHECK_1.
3847         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
3848         (___xstat64): Do not use CHECK_1.
3849
3850         [BZ #13550]
3851         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
3852         definitions.
3853         (CHECK_BOUNDS_HIGH): Likewise.
3854         * string/strcpy.c: Do not include <bp-checks.h>.
3855         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
3856
3857 2013-02-07  Roland McGrath  <roland@hack.frob.com>
3858
3859         * nscd/nscd-client.h (__nscd_drop_map_ref):
3860         Add __attribute__ ((unused)).
3861         * nis/nss-nisplus.h (niserr2nss): Likewise.
3862
3863         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
3864         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
3865
3866         * csu/libc-tls.c (init_static_tls, init_slotinfo):
3867         Remove inline keyword.
3868         * include/rounding-mode.h (round_away): Likewise.
3869         * libio/wfileops.c (adjust_wide_data): Likewise.
3870         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
3871         (__m128i_strloadu_tolower): Likewise.
3872         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
3873         (__m128i_strloadu_tolower): Likewise.
3874         * time/mktime.c (ydhms_diff): Likewise.
3875         * locale/elem-hash.h (elem_hash): Likewise.
3876         * locale/setlocale.c (setdata): Likewise.
3877         * posix/regex_internal.h (re_string_char_size_at): Likewise.
3878         (re_string_wchar_at): Likewise.
3879         (bitset_not, bitset_merge, bitset_mask): Likewise.
3880         [!(__GNUC__ > 3)] (inline): Remove macro.
3881         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
3882         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
3883         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
3884         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
3885         * string/memcmp.c (memcmp_bytes): Likewise.
3886         * locale/programs/locarchive.c (compute_hashval): Likewise.
3887         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
3888         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
3889         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
3890         * nss/getent.c (print_rpc, print_protocols): Likewise.
3891         (print_passwd, print_group, print_aliases): Likewise.
3892         * nis/nss-nisplus.h (niserr2nss): Likewise.
3893         * nscd/connections.c (restart_p): Likewise.
3894         Change return type to bool.
3895
3896 2013-02-05  Roland McGrath  <roland@hack.frob.com>
3897
3898         * Makeconfig (all-Depend-files): Add existing
3899         $(sorted-subdirs:=/Depend) files.
3900         (all-subdirs): Remove nss.
3901         * sysdeps/unix/inet/Subdirs: Add it here instead.
3902         * hesiod/Depend: New file.
3903
3904         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
3905         instead of calling alloca.
3906
3907         * io/lseek.c (__lseek): Rename to __libc_lseek.
3908         Define __lseek as an alias.
3909
3910         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
3911
3912 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
3913
3914         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
3915         else clause and remove check for non-standard endianness.
3916
3917 2013-02-04  David S. Miller  <davem@davemloft.net>
3918
3919         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3920
3921 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
3922
3923         [BZ #13550]
3924         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
3925         (__ubp_memchr): Remove prototype.
3926         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
3927         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
3928         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
3929         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
3930         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
3931         Remove alias.
3932         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
3933         (__ubp_memchr): Likewise.
3934         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
3935         (__ubp_memchr): Likewise.
3936         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
3937         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
3938         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
3939         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
3940         CHECK_STRING.
3941         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
3942         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
3943         (__getcwd): Do not use CHECK_STRING.
3944         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
3945         <bp-checks.h>.
3946         (__real_chown): Do not use CHECK_STRING.
3947         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
3948         <bp-checks.h>.
3949         (fchownat): Do not use CHECK_STRING.
3950         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
3951         CHECK_STRING.
3952         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
3953         <bp-checks.h>.
3954         (__lchown): Do not use CHECK_STRING.
3955         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
3956         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
3957         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
3958         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
3959         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
3960         include <bp-checks.h>.
3961         (truncate64): Do not use CHECK_STRING.
3962         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
3963         <bp-checks.h>.
3964         (__real_chown): Do not use CHECK_STRING.
3965         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
3966         <bp-checks.h>.
3967         (__lchown): Do not use CHECK_STRING.
3968         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
3969         <bp-checks.h>.
3970         (__chown): Do not use CHECK_STRING.
3971         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
3972         <bp-checks.h>.
3973         (truncate64): Do not use CHECK_STRING.
3974         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
3975         Likewise.
3976         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
3977         (__xmknod): Do not use CHECK_STRING.
3978         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
3979         <bp-checks.h>.
3980         (__xmknodat): Do not use CHECK_STRING.
3981         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
3982         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
3983
3984 2013-02-04  Andreas Schwab  <schwab@suse.de>
3985
3986         [BZ #14142]
3987         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
3988         * include/netdb.h: Likewise for h_errno.
3989         * elf/tst-stackguard1.c: Include <tls.h>.
3990
3991 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3992
3993         * elf/link.h (struct link_map): Extend the l_addr comment.
3994         * include/link.h (struct link_map): Likewise.
3995
3996 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
3997
3998         [BZ #13550]
3999         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
4000         (BOUNDED_1): Remove macro.
4001         * debug/backtrace.c: Don't include <bp-checks.h>.
4002         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
4003         (__backtrace): Likewise.
4004         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
4005         <bp-checks.h>.
4006         (__backtrace): Don't use BOUNDED_1.
4007         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
4008         <bp-checks.h>.
4009         (__backtrace): Don't use BOUNDED_1.
4010         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
4011         (__backtrace): Don't use BOUNDED_1.
4012         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
4013         (shmat): Don't use BOUNDED_N.
4014
4015 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
4016
4017         [BZ #13550]
4018         * sysdeps/generic/bp-start.h: Remove file.
4019         * csu/libc-start.c: Don't include <bp-start.h>.
4020         (LIBC_START_MAIN): Set up __environ directly instead of using
4021         INIT_ARGV_and_ENVIRON.
4022         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
4023         <bp-start.h>.
4024
4025         [BZ #13550]
4026         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
4027         definitions.
4028         (CHECK_FCNTL): Likewise.
4029         (CHECK_N_PAGES): Likewise.
4030
4031         [BZ #13550]
4032         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
4033         definitions.
4034         (CHECK_SIGSET_NULL_OK): Likewise.
4035         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
4036         <bp-checks.h>.
4037         (sigpending): Don't use CHECK_SIGSET.
4038         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
4039         <bp-checks.h>.
4040         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
4041         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
4042         <bp-checks.h>.
4043         (do_sigsuspend): Don't use CHECK_SIGSET.
4044         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
4045         use CHECK_SIGSET.
4046         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
4047         (do_sigwait): Don't use CHECK_SIGSET.
4048         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
4049         use CHECK_SIGSET.
4050         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
4051         include <bp-checks.h>.
4052         (sigpending): Don't use CHECK_SIGSET.
4053         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
4054         include <bp-checks.h>.
4055         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
4056         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
4057         <bp-checks.h>.
4058         (sigpending): Don't use CHECK_SIGSET.
4059         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
4060         <bp-checks.h>.
4061         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
4062
4063         [BZ #13550]
4064         * sysdeps/generic/bp-semctl.h: Remove file.
4065         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
4066         <bp-checks.h> and <bp-semctl.h>.
4067         (__old_semctl): Don't use CHECK_SEMCTL.
4068         (__new_semctl): Likewise.
4069         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
4070         and <bp-semctl.h>.
4071         (__old_semctl): Don't use CHECK_SEMCTL.
4072         (__new_semctl): Likewise.
4073         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
4074         <bp-checks.h> and <bp-semctl.h>.
4075         (__old_semctl): Don't use CHECK_SEMCTL.
4076         (__new_semctl): Likewise.
4077         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
4078         <bp-checks.h> and <bp-semctl.h>.
4079         (semctl): Don't use CHECK_SEMCTL.
4080
4081         [BZ #13550]
4082         * Makerules (elide-bp-thunks): Remove variable.
4083         (elide-routines.oS): Don't use $(elide-bp-thunks).
4084         (elide-routines.os): Likewise.
4085         (elide-routines.o): Likewise.
4086         (elide-routines.op): Likewise.
4087         (elide-routines.og): Likewise.
4088         (objects): Don't use $(bp-thunks).
4089         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
4090         include.
4091         (common-generated): Do not add s-proto-bp.d.
4092         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
4093         (int): Likewise.
4094         (typ): Likewise.
4095         Do not generate makefile rules for bounded-pointer thunks.
4096         * sysdeps/generic/bp-thunks.h: Remove file.
4097         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
4098         * sysdeps/unix/s-proto-bp.S: Likewise.
4099
4100         [BZ #15062]
4101         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
4102         parts of result separately when argument is not close to line from
4103         -i to i and one part of argument is small.
4104         * math/k_casinhf.c (__kernel_casinhf): Likewise.
4105         * math/k_casinhl.c (__kernel_casinhl): Likewise.
4106         * math/libm-test.inc (cacos_test): Add more tests.
4107         (casin_test): Likewise.
4108         (casinh_test): Likewise.
4109         * sysdeps/i386/fpu/libm-test-ulps: Update.
4110         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4111
4112 2013-01-31  David S. Miller  <davem@davemloft.net>
4113
4114         * po/de.po: Update from translation team.
4115
4116 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
4117
4118         * time/tzfile.c: Include stdint.h for SIZE_MAX.
4119
4120 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
4121
4122         * configure.in (_AC_PROG_CC_C89): New definition.
4123         * configure: Regenerate.
4124
4125         * configure.in (AC_PROG_CPP): New definition.
4126         * configure: Regenerate.
4127
4128 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
4129
4130         * debug/tst-backtrace.h: New file.
4131         * debug/tst-backtrace2.c: Include tst-backtrace.h.
4132         (ret): Remove variable.
4133         (x): Likewise.
4134         (FAIL): Remove macro.
4135         (NO_INLINE): Likewise.
4136         (fn1): Use match function instead of strstr.
4137         * debug/tst-backtrace3.c: Include tst-backtrace.h.
4138         (ret): Remove variable.
4139         (x): Likewise.
4140         (FAIL): Remove macro.
4141         (NO_INLINE): Likewise.
4142         (fn): Use match function instead of strstr.
4143         * debug/tst-backtrace4.c: Include tst-backtrace.h.
4144         (ret): Remove variable.
4145         (x): Likewise.
4146         (FAIL): Remove macro.
4147         (NO_INLINE): Likewise.
4148         (handle_signal): Use match function instead of strstr.
4149         * debug/tst-backtrace5.c: Include tst-backtrace.h.
4150         (ret): Remove variable.
4151         (x): Likewise.
4152         (FAIL): Remove macro.
4153         (NO_INLINE): Likewise.
4154         (handle_signal): Use match function instead of strstr.
4155
4156 2013-01-23  Roland McGrath  <roland@hack.frob.com>
4157
4158         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
4159
4160 2013-01-23  David S. Miller  <davem@davemloft.net>
4161
4162         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
4163         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
4164         argument of CAS if possible.
4165         * sysdeps/sparc/sparc64/bits/atomic.h
4166         (__arch_compare_and_exchange_val_32_acq): Likewise.
4167         (__arch_compare_and_exchange_val_64_acq): Likewise.
4168
4169 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
4170
4171         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
4172         * sysdeps/posix/ulimit.c: ... this.
4173         Include <limits.h>.
4174         * sysdeps/unix/bsd/ulimit.c: Remove file.
4175
4176 2013-01-23  Adam Conrad  <adconrad@0c3.net>
4177
4178         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
4179         (LDFLAGS-tst-array5): Likewise.
4180
4181 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
4182
4183         [BZ #15036]
4184         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
4185         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
4186         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
4187         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
4188
4189 2013-01-21  David S. Miller  <davem@davemloft.net>
4190
4191         * sysdeps/sparc/backtrace.c: New file.
4192         * sysdeps/sparc/sparc32/backtrace.h: New file.
4193         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
4194         * sysdeps/sparc/sparc64/backtrace.h: New file.
4195         * sysdeps/sparc/sparc64/backtrace.c: Delete.
4196         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
4197         -funwind-tables.
4198
4199 2013-01-21  Andreas Schwab  <schwab@suse.de>
4200
4201         [BZ #15020]
4202         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
4203         closed its stdout.
4204
4205 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
4206
4207         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
4208         "mpa2.h".
4209         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
4210
4211 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
4212             Mark Mitchell  <mark@codesourcery.com>
4213             Tom de Vries  <tom@codesourcery.com>
4214             Paul Pluzhnikov  <ppluzhnikov@google.com>
4215
4216         * debug/tst-backtrace2.c: New file.
4217         * debug/tst-backtrace3.c: Likewise.
4218         * debug/tst-backtrace4.c: Likewise.
4219         * debug/tst-backtrace5.c: Likewise.
4220         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
4221         (CFLAGS-tst-backtrace3.c): Likewise.
4222         (CFLAGS-tst-backtrace4.c): Likewise.
4223         (CFLAGS-tst-backtrace5.c): Likewise.
4224         (LDFLAGS-tst-backtrace2): Likewise.
4225         (LDFLAGS-tst-backtrace3): Likewise.
4226         (LDFLAGS-tst-backtrace4): Likewise.
4227         (LDFLAGS-tst-backtrace5): Likewise.
4228         (tests): Add new tests tst-backtrace2, tst-backtrace3,
4229         tst-backtrace4 and tst-backtrace5.
4230
4231 2013-01-18  Anton Blanchard  <anton@samba.org>
4232             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
4233
4234         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
4235         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
4236         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
4237         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
4238         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
4239         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
4240         "+r" and remove output regs list as redundant.  Add explicit inline
4241         asm to specify register of return val to work around compiler codegen
4242         bug.  Remove (int) cast on return value.  Add return type parameter to
4243         use in macro so that this macro does not truncate return value for
4244         64-bit values.
4245         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
4246         pass to INTERNAL_VSYSCALL_NCS.
4247         (INLINE_VSYSCALL): Add 'long int' as return type to
4248         INTERNAL_VSYSCALL_NCS macro invocation.
4249         (INTERNAL_VSYSCALL): Add 'long int' as return type to
4250         INTERNAL_VSYSCALL_NCS macro invocation.
4251         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
4252
4253 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
4254
4255         [BZ #14496]
4256         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
4257         Fix application of SIMD FP exception mask.
4258
4259         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
4260         mp_no from a power of two.
4261         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
4262         __mpexp_twomm1.  Use __pow_mp.
4263
4264         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
4265         multiplication.
4266
4267 2013-01-17  David S. Miller  <davem@davemloft.net>
4268
4269         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4270
4271 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
4272
4273         [BZ #15023]
4274         * include/complex.h: Condition contents on [!_COMPLEX_H].
4275         (__kernel_casinhf): New prototype.
4276         (__kernel_casinh): Likewise.
4277         (__kernel_casinhl): Likewise.
4278         * math/Makefile (libm_calls): Add k_casinh.
4279         * math/k_casinh.c: New file.
4280         * math/k_casinhf.c: Likewise.
4281         * math/k_casinhl.c: Likewise.
4282         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
4283         finite nonzero arguments.
4284         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
4285         finite nonzero arguments.
4286         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
4287         finite nonzero arguments.
4288         * math/s_casinh.c: Do not include <float.h>.
4289         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
4290         * math/s_casinhf.c: Do not include <float.h>.
4291         (__casinhf): Move code for finite nonzero arguments to
4292         k_casinhf.c.
4293         * math/s_casinhl.c: Do not include <float.h>.
4294         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
4295         redefine.
4296         (__casinhl): Move code for finite nonzero arguments to
4297         k_casinhl.c.
4298         * math/libm-test.inc (cacos_test): Add more tests.
4299         * sysdeps/i386/fpu/libm-test-ulps: Update.
4300         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4301
4302 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
4303
4304         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
4305         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
4306         [!HAVE_MREMAP]: Remove [defined linux] case.
4307         * malloc/arena.c: Do not include <malloc-sysdep.h>.
4308
4309 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
4310
4311         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
4312
4313 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
4314
4315         * elf/elf.h (R_386_SIZE32): New relocation.
4316         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
4317         R_386_SIZE32.
4318         (elf_machine_rela): Likewise.
4319         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
4320         R_X86_64_SIZE64 and R_X86_64_SIZE32.
4321
4322 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
4323
4324         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
4325         (FP_FAST_FMA): Do not define.
4326         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
4327         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
4328         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
4329         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
4330         !_SOFT_FLOAT]: Likewise.
4331         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
4332         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
4333         value.
4334         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
4335         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
4336         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
4337         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
4338         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
4339         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
4340         file.
4341
4342 2013-01-16  Andreas Schwab  <schwab@suse.de>
4343
4344         [BZ #14327]
4345         * include/stdlib.h (__mktemp): Add declaration.
4346         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
4347         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
4348
4349 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
4350
4351         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
4352         definitions.
4353         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
4354         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
4355         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
4356         definitions here.
4357         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
4358         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
4359         definitions.
4360         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
4361         and ONE.
4362         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
4363         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
4364         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
4365         definitions.
4366         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
4367         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
4368         definitions.
4369         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
4370
4371         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
4372
4373 2013-01-15  David S. Miller  <davem@davemloft.net>
4374
4375         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
4376         trunc{,f} to libm-sysdep_routes.
4377         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
4378         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
4379         file.
4380         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
4381         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
4382         file.
4383         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
4384         file.
4385         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
4386         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
4387         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
4388         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
4389         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
4390         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
4391         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
4392         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
4393
4394         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
4395         nearbyint{,f} to libm-sysdep_routes.
4396         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
4397         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
4398         New file.
4399         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
4400         file.
4401         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
4402         New file.
4403         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
4404         file.
4405         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
4406         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
4407         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
4408         file.
4409         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
4410         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
4411         file.
4412         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
4413         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
4414         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
4415
4416         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
4417         libc_feholdexcept and libc_fesetenv.
4418
4419 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
4420
4421         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
4422
4423 2013-01-14  David S. Miller  <davem@davemloft.net>
4424
4425         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
4426         (SPARC_ASM_VIS2_IFUNC): Likewise.
4427         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
4428         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
4429         use of 'siam' instruction.
4430         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
4431         Likewise.
4432         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
4433         Likewise.
4434         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
4435         Likewise.
4436         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
4437         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
4438         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
4439         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
4440         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
4441         file.
4442         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
4443         file.
4444         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
4445         file.
4446         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
4447         file.
4448         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
4449         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
4450         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
4451         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
4452         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
4453         new VIS2 routines.
4454         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
4455         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
4456         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
4457         Likewise.
4458         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
4459         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
4460         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
4461         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
4462         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
4463         routines to libm-sysdep_routines.
4464         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
4465
4466         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
4467         fdim/fdimf to libm-sysdep_routines.
4468         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
4469         file.
4470         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
4471         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
4472         file.
4473         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
4474         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
4475         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
4476         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
4477         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
4478         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
4479         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
4480
4481 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
4482
4483         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
4484         to optimize copies.
4485
4486         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
4487         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
4488         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
4489
4490         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
4491         local variable MPTWO.
4492         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
4493         Likewise.
4494
4495 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
4496
4497         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
4498         GLOB_NOESCAPE.
4499
4500 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
4501
4502         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
4503
4504 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
4505
4506         * manual/pattern.texi (glob_t): Document gl_flags.
4507         (glob64_t): Likewise.
4508
4509 2013-01-11  David S. Miller  <davem@davemloft.net>
4510
4511         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
4512         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
4513         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
4514         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
4515         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
4516         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
4517         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
4518         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
4519         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
4520         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
4521         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
4522         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
4523         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
4524
4525         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
4526         sparc V9 rather than using V8 code.
4527         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
4528         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
4529
4530         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
4531         Move to...
4532         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
4533         Here.
4534
4535 2013-01-11  Roland McGrath  <roland@hack.frob.com>
4536
4537         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
4538         not in the main loop.
4539         * configure: Regenerated.
4540
4541 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
4542
4543         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
4544         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
4545         to just #else.
4546         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
4547         [!__GLIBC_HAVE_LONG_LONG] case.
4548         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
4549         condition to just #else.
4550         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
4551         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
4552         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
4553         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
4554         unconditional.
4555         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
4556         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
4557         #elif condition to just #else.
4558         * sysdeps/unix/sysv/linux/sys/sysmacros.h
4559         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
4560         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
4561         #elif condition to just #else.
4562
4563 2013-01-11  Steve Ellcey  <sellcey@mips.com>
4564
4565         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
4566         (EF_MIPS_ARCH_64): Fix value.
4567         (EF_MIPS_ARCH_32R2): New.
4568         (EF_MIPS_ARCH_64R2): New.
4569
4570 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
4571
4572         * Makeconfig (+link-pie-before-libc): New.
4573         (+link-pie-after-libc): Likewise.
4574         (+link-pie-tests): Likewise.
4575         (+link-pie): Rewritten.
4576         (link-before-libc): Remove $(config-LDFLAGS).
4577         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
4578         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
4579         (config-LDFLAGS): Renamed to ...
4580         (rtld-LDFLAGS): This.
4581         (rtld-tests-LDFLAGS): New macro.
4582         (link-libc-rpath-link): Likewise.
4583         (link-libc-tests-rpath-link): Likewise.
4584         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
4585         (link-libc): Prepand $(link-libc-rpath-link).
4586         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
4587         (test-program-prefix): New macro.
4588         (test-via-rtld-prefix): Likewise.
4589         (test-program-cmd): Likewise.
4590         (host-test-program-cmd): Likewise.
4591         * Makefile ($(common-objpfx)testrun.sh): Replace
4592         $(run-program-prefix) with $(test-program-prefix).
4593         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
4594         $(rtld-LDFLAGS).
4595         ($(common-objpfx)shlib.lds): Likewise.
4596         (build-module-helper): Likewise.
4597         ($(common-objpfx)format.lds): Likewise.
4598         * Rules (binaries-pie-tests): New.
4599         (binaries-pie-notests): Likewise.
4600         (binaries-pie): Rewritten.
4601         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
4602         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
4603         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
4604         (make-test-out): Replace $(host-built-program-cmd) with
4605         $(host-test-program-cmd).
4606         * config.make.in (build-hardcoded-path-in-tests): New variable.
4607         * configure.in (--enable-hardcoded-path-in-tests): New configure
4608         option.
4609         (hardcoded_path_in_tests): New AC_SUBST.
4610         * configure: Regenerated.
4611         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
4612         $(built-program-cmd) with $(test-program-cmd).
4613         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
4614         (test_program_cmd): This.
4615         * elf/Makefile ($(objpfx)order.out): Run test with
4616         $(test-program-prefix).
4617         ($(objpfx)order2.out): Likewise.
4618         ($(objpfx)tst-initorder.out): Likewise.
4619         ($(objpfx)tst-initorder2.out): Likewise.
4620         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
4621         $(test-program-cmd).
4622         ($(objpfx)tst-array1-static.out): Likewise.
4623         ($(objpfx)tst-array2.out): Likewise.
4624         ($(objpfx)tst-array3.out): Likewise.
4625         ($(objpfx)tst-array4.out): Likewise.
4626         ($(objpfx)tst-array5.out): Likewise.
4627         ($(objpfx)tst-array5-static.out): Likewise.
4628         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
4629         $(test-program-cmd).
4630         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
4631         $(run-program-prefix) with $(test-program-prefix).
4632         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
4633         (test_program_prefix): This.
4634         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
4635         $(run-program-prefix) with $(test-program-prefix).
4636         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
4637         (test_program_prefix): This.
4638         * iconvdata/tst-tables.sh: Likewise.
4639         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
4640         $(run-program-prefix) with $(test-program-prefix).
4641         ($(objpfx)tst-translit.out): Likewise.
4642         ($(objpfx)tst-gettext2.out): Likewise.
4643         ($(objpfx)tst-gettext4.out): Likewise.
4644         ($(objpfx)tst-gettext6.out): Likewise.
4645         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
4646         (test_program_prefix): This.
4647         * intl/tst-gettext2.sh: Likewise.
4648         * intl/tst-gettext4.sh  Likewise.
4649         * intl/tst-gettext6.sh: Likewise.
4650         * intl/tst-translit.sh: Likewise.
4651         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
4652         with $(test-program-cmd).
4653         * libio/Makefile ($(objpfx)test-freopen.out): Replace
4654         $(run-program-prefix) with $(test-program-prefix).
4655         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
4656         (test_program_prefix): This.
4657         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
4658         $(run-program-prefix) with $(test-program-prefix).
4659         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
4660         (test_program_prefix): This.
4661         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
4662         * posix/Makefile ($(objpfx)globtest.out): Replace
4663         $(run-via-rtld-prefix) and $(test-wrapper) with
4664         $(test-program-prefix) and $(test-via-rtld-prefix).
4665         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
4666         $(test-program-prefix).
4667         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
4668         $(host-test-program-cmd).
4669         (tst-spawn-ARGS): Likewise.
4670         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
4671         $(test-program-prefix).
4672         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
4673         (test_via_rtld_prefix): This.
4674         (test_wrapper): Renamed to ...
4675         (test_program_prefix): This.
4676         (run_program_prefix): Replaced by test_program_prefix.
4677         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
4678         (test_program_prefix): This.
4679         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
4680         with $(host-test-program-cmd).
4681         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
4682         $(run-program-prefix) with $(test-program-prefix).
4683         ($(objpfx)tst-printf.out): Likewise.
4684         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
4685         $(test-program-cmd).
4686         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
4687         (test_program_prefix): This.
4688         * stdio-common/tst-unbputc.sh: Likewise.
4689         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
4690         $(run-program-prefix) with $(test-program-prefix).
4691         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
4692         (test_program_prefix): This.
4693         * string/Makefile ($(objpfx)tst-svc.out):  Replace
4694         $(built-program-cmd) with $(test-program-cmd).
4695
4696 2013-01-11  Andreas Jaeger  <aj@suse.de>
4697
4698         [BZ #15003]
4699         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
4700         value. Sync with Linux 3.7.
4701
4702 2013-01-10  David S. Miller  <davem@davemloft.net>
4703
4704         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
4705         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
4706         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
4707
4708 2013-01-10  Roland McGrath  <roland@hack.frob.com>
4709
4710         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
4711         never set.
4712         * configure: Regenerated.
4713
4714 2013-01-10  David S. Miller  <davem@davemloft.net>
4715
4716         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
4717         sparc V9 rather than using V8 code.
4718         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
4719         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
4720
4721 2013-01-10  Roland McGrath  <roland@hack.frob.com>
4722
4723         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
4724         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
4725         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
4726         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
4727         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
4728         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
4729         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
4730         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
4731         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
4732         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
4733         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
4734         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
4735         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
4736         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
4737         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
4738         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
4739         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
4740         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
4741         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
4742         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
4743         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
4744         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
4745         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
4746         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
4747         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
4748         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
4749         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
4750
4751 2013-01-10  David S. Miller  <davem@davemloft.net>
4752
4753         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4754
4755 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
4756
4757         * posix/Makefile (tests-static): New variable.
4758         (tests): Add $(tests-static).
4759         (tst-exec-static-ARGS): New variable.
4760         (tst-spawn-static-ARGS): Likewise.
4761         * posix/tst-exec-static.c: New file.
4762         * posix/tst-spawn-static.c: Likewise.
4763         * posix/tst-exec.c: Support run directly.
4764         * posix/tst-spawn.c: Likewise.
4765
4766 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
4767
4768         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
4769         long.
4770         * math/bits/mathcalls.h (llrint): Likewise.
4771         (llround): Likewise.
4772         * stdlib/stdlib.h (struct drand48_data): Likewise.
4773         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
4774         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
4775         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
4776         Likewise.
4777         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
4778         Likewise.
4779         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
4780         (elf_greg_t): Likewise.
4781         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
4782         (__jmp_buf): Likewise.
4783         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
4784         definitions.
4785         (llrint): Likewise, for all definitions.
4786         (llrintl): Likewise.
4787
4788         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
4789         Remove [__GNUC__] condition.
4790         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
4791         condition to just [__USE_ISOC99].
4792         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
4793
4794 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
4795
4796         [BZ #14200]
4797         * sysdeps/unix/sysv/linux/x86/bits/environments.h
4798         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
4799         defined.
4800         (_POSIX_V6_ILP32_OFF32): Likewise.
4801         (_XBS5_ILP32_OFF32): Likewise.
4802         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
4803         (__ILP32_OFFBIG_LDFLAGS): Likewise.
4804
4805 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
4806
4807         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
4808
4809         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
4810         doubles __mpexp_twomm1.  Adjust usage.
4811         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
4812         Remove.
4813
4814 2013-01-10  Andreas Schwab  <schwab@suse.de>
4815
4816         [BZ #14964]
4817         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
4818         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
4819
4820 2013-01-09  David S. Miller  <davem@davemloft.net>
4821
4822         [BZ #15003]
4823         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS,
4824         TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT,
4825         TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS,
4826         TCP_FASTOPEN): Define.
4827         (tcp_repair_opt): New structure.
4828         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
4829         enum values.
4830         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE,
4831         TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN,
4832         TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
4833         (tcp_cookie_transactions): New structure.
4834
4835 2013-01-09  Anton Blanchard  <anton@samba.org>
4836
4837         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
4838         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
4839         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
4840         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
4841
4842 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
4843
4844         * include/features.h (__USE_ANSI): Remove.
4845
4846 2013-01-09  Roland McGrath  <roland@hack.frob.com>
4847
4848         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
4849
4850         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
4851
4852 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
4853
4854         * sysdeps/s390/fpu/libm-test-ulps: Update.
4855
4856         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4857
4858         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
4859         (__acr): Likewise.
4860         (__cpy): Likewise.
4861         (norm): Likewise.
4862         (denorm): Likewise.
4863         (__mp_dbl): Likewise.
4864         (__dbl_mp): Likewise.
4865         (add_magnitudes): Likewise.
4866         (sub_magnitudes): Likewise.
4867         (__add): Likewise.
4868         (__sub): Likewise.
4869         (__mul): Likewise.
4870         (__inv): Likewise.
4871         (__dvd): Likewise.
4872         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
4873         (__acr): Likewise.
4874         (__cpy): Likewise.
4875         (norm): Likewise.
4876         (denorm): Likewise.
4877         (__mp_dbl): Likewise.
4878         (__dbl_mp): Likewise.
4879         (add_magnitudes): Likewise.
4880         (sub_magnitudes): Likewise.
4881         (__add): Likewise.
4882         (__sub): Likewise.
4883         (__mul): Likewise.
4884         (__inv): Likewise.
4885         (__dvd): Likewise.
4886         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
4887         (__acr): Likewise.
4888         (__cpy): Likewise.
4889         (norm): Likewise.
4890         (denorm): Likewise.
4891         (__mp_dbl): Likewise.
4892         (__dbl_mp): Likewise.
4893         (add_magnitudes): Likewise.
4894         (sub_magnitudes): Likewise.
4895         (__add): Likewise.
4896         (__sub): Likewise.
4897         (__mul): Likewise.
4898         (__inv): Likewise.
4899         (__dvd): Likewise.
4900
4901 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
4902
4903         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
4904         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
4905         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
4906         2 && __USE_EXTERN_INLINES]: Likewise.
4907
4908 2013-01-08  Andreas Jaeger  <aj@suse.de>
4909
4910         [BZ# 14985]
4911         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
4912         Remove.
4913         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
4914         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
4915
4916 2013-01-07  Anton Blanchard  <anton@samba.org>
4917
4918         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
4919         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
4920         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
4921         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
4922         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
4923         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
4924         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
4925         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
4926         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
4927         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
4928         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
4929         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
4930         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
4931         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
4932         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
4933         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
4934         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
4935         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
4936         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
4937         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
4938         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
4939         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
4940         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
4941         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
4942         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
4943         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
4944         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
4945         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
4946         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
4947         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
4948         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
4949         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
4950         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
4951         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
4952         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
4953         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
4954         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
4955         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
4956         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
4957         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
4958         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
4959         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
4960         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
4961
4962 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
4963
4964         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
4965         (__MALLOC_PMT): Likewise.
4966         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
4967         [__GNUC__], only on [_LIBC].
4968         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
4969         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
4970         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
4971         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
4972         forward declaration.
4973         (realloc_hook_ini): Likewise.
4974         (memalign_hook_ini): Likewise.
4975         (__libc_memalign): Do not use __MALLOC_PMT in variable
4976         declaration.
4977         (__libc_valloc): Likewise.
4978         (__libc_pvalloc): Likewise.
4979         (__libc_calloc): Likewise.
4980         (__posix_memalign): Likewise.
4981
4982         [BZ #14996]
4983         * math/s_casinh.c: Include <float.h>.
4984         (__casinh): Do not do computation with squaring and square root
4985         for large arguments.
4986         * math/s_casinhf.c: Include <float.h>.
4987         (__casinhf): Do not do computation with squaring and square root
4988         for large arguments.
4989         * math/s_casinhl.c: Include <float.h>.
4990         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
4991         (__casinhl): Do not do computation with squaring and square root
4992         for large arguments.
4993         * math/libm-test.inc (casin_test): Add more tests.
4994         (casinh_test): Likewise.
4995         * sysdeps/i386/fpu/libm-test-ulps: Update.
4996         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4997
4998 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
4999
5000         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
5001         (__x86_64_raw_data_cache_size): Likewise.
5002         (__x86_64_data_cache_size_half): Likewise.
5003         (__x86_64_raw_data_cache_size_half): Likewise.
5004         (__x86_64_shared_cache_size): Likewise.
5005         (__x86_64_raw_shared_cache_size): Likewise.
5006         (__x86_64_shared_cache_size_half): Likewise.
5007         (__x86_64_raw_shared_cache_size_half): Likewise.
5008         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
5009         to ...
5010         (__x86_data_cache_size): This.
5011         (__x86_64_raw_data_cache_size): Renamed to ...
5012         (__x86_raw_data_cache_size): This.
5013         (__x86_64_data_cache_size_half): Renamed to ...
5014         (__x86_data_cache_size_half): This.
5015         (__x86_64_raw_data_cache_size_half): Renamed to ...
5016         (__x86_raw_data_cache_size_half): This.
5017         (__x86_64_shared_cache_size): Renamed to ...
5018         (__x86_shared_cache_size): This.
5019         (__x86_64_raw_shared_cache_size): Renamed to ...
5020         (__x86_raw_shared_cache_size): This.
5021         (__x86_64_shared_cache_size_half): Renamed to ...
5022         (__x86_shared_cache_size_half): This.
5023         (__x86_64_raw_shared_cache_size_half): Renamed to ...
5024         (__x86_raw_shared_cache_size_half): This.
5025         * sysdeps/x86_64/memcpy.S: Updated.
5026         * sysdeps/x86_64/memset.S: Likewise.
5027         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
5028         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
5029         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
5030
5031 2013-01-04  David S. Miller  <davem@davemloft.net>
5032
5033         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5034
5035 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
5036
5037         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
5038         1 to avoid redefinition warning.
5039         (__USE_GNU): Don't define.
5040         (init_signaling_nan): Protoize.
5041
5042         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5043
5044 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
5045
5046         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
5047         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
5048         (__cpymn): Likewise.
5049         (norm): Remove commented code.
5050         (denorm): Likewise.
5051         (__mp_dbl): Likewise.
5052         (__inv): Likewise.
5053         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
5054         (__cpymn): Likewise.
5055         (norm): Remove commented code.
5056         (denorm): Likewise.
5057         (__mp_dbl): Likewise.
5058         (__inv): Likewise.
5059
5060         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
5061         mp_no value for 1.0 and 2.0.
5062         (norm): Use RADIXI instead of radixi.d.
5063         (denorm): Likewise.
5064         (__mul): Use 0.0 instead of zero.d.
5065         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
5066         mp_no value for 1.0 and 2.0.
5067         (norm): Use RADIXI instead of radixi.d.
5068         (denorm): Likewise.
5069         (__mul): Use 0.0 instead of zero.d.
5070
5071 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
5072
5073         [BZ #14994]
5074         * math/s_casinh.c (__casinh): Reduce finite argument to first
5075         quadrant then set signs of results at the end.
5076         * math/s_casinhf.c (__casinhf): Likewise.
5077         * math/s_casinhl.c (__casinhl): Likewise.
5078         * math/libm-test.inc (casin_test): Add more tests.
5079         (casinh_test): Likewise.
5080         * sysdeps/i386/fpu/libm-test-ulps: Update.
5081         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5082
5083 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
5084
5085         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
5086
5087         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
5088
5089         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
5090         declarations.
5091         (denorm): Likewise.
5092         (__mp_dbl): Likewise.
5093         (__inv): Likewise.
5094
5095         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
5096         and adjust the header comment.
5097
5098         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
5099         variable name from declaration.
5100
5101 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
5102
5103         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
5104         Initialize COMMON_CPUID_INDEX_7 element.
5105         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
5106         (CPUID_RTM): Likewise.
5107         (HAS_RTM): Likewise.
5108         (COMMON_CPUID_INDEX_7): New enum.
5109
5110 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
5111
5112         [BZ #14981]
5113         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
5114         size is zero, record memory as freed.
5115
5116 2013-01-03  Andreas Jaeger  <aj@suse.de>
5117
5118         * po/ia.po: Add new Interlingua translation.
5119
5120 2012-01-03  Allan McRae  <allan@archlinux.org>
5121
5122         * locale/programs/localedef.c: Fix description of '--posix' flag.
5123
5124 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
5125
5126         * NEWS: Update dates in second copyright notice.
5127         * README: Update copyright dates in example.
5128         * manual/libc.texinfo: Update copyright dates.
5129         * scripts/test-installation.pl: Update copyright date in --version
5130         output.
5131
5132         * hurd/ctty-input.c: Fix copyright notice formatting.
5133         * hurd/ctty-output.c: Likewise.
5134         * hurd/dtable.c: Likewise.
5135         * hurd/hurd-raise.c: Likewise.
5136         * hurd/hurdprio.c: Likewise.
5137         * hurd/msgportdemux.c: Likewise.
5138         * misc/sys/file.h: Likewise.
5139         * misc/sys/ioctl.h: Likewise.
5140         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
5141         * sysdeps/mach/hurd/chdir.c: Likewise.
5142         * sysdeps/mach/hurd/fchdir.c: Likewise.
5143         * sysdeps/mach/hurd/rename.c: Likewise.
5144         * sysdeps/mach/hurd/rmdir.c: Likewise.
5145         * sysdeps/mach/hurd/seekdir.c: Likewise.
5146         * sysdeps/mach/hurd/setsid.c: Likewise.
5147         * sysdeps/posix/wait3.c: Likewise.
5148
5149         * All files with FSF copyright notices: Update copyright dates
5150         using scripts/update-copyrights.
5151         * intl/plural.c: Regenerated.
5152         * locale/programs/charmap-kw.h: Likewise.
5153         * locale/programs/locfile-kw.h: Likewise.
5154
5155 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
5156
5157         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
5158         four values.
5159
5160         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
5161         calculation loop and add branch prediction.
5162
5163         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
5164         check access beyond bounds of m1np.
5165
5166         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
5167         MPTWO.
5168         (__inv): Remove local variable MPTWO to use the global
5169         constant.
5170         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
5171         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
5172         variable MPTWO.
5173         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
5174         MP3HALFS static const.
5175
5176 2013-01-01  David S. Miller  <davem@davemloft.net>
5177
5178         * po/ca.po: Update from translation team.
5179
5180 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
5181
5182         * scripts/update-copyrights: New file.
5183         * Makeconfig: Reformat copyright notice.
5184         * ctype/ctype.h: Likewise.
5185         * debug/swprintf_chk.c: Likewise.
5186         * elf/dl-cache.c: Likewise.
5187         * elf/dl-debug.c: Likewise.
5188         * elf/dl-object.c: Likewise.
5189         * grp/initgroups.c: Likewise.
5190         * hurd/Makefile: Likewise.
5191         * hurd/hurd/signal.h: Likewise.
5192         * hurd/hurdfault.c: Likewise.
5193         * hurd/hurdioctl.c: Likewise.
5194         * hurd/hurdlookup.c: Likewise.
5195         * hurd/intr-msg.c: Likewise.
5196         * iconv/gconv_open.c: Likewise.
5197         * libio/swprintf.c: Likewise.
5198         * locale/lc-ctype.c: Likewise.
5199         * locale/nl_langinfo.c: Likewise.
5200         * mach/Machrules: Likewise.
5201         * mach/Makefile: Likewise.
5202         * malloc/obstack.h: Likewise.
5203         * manual/Makefile: Likewise.
5204         * manual/tsort.awk: Likewise.
5205         * misc/bits/stab.def: Likewise.
5206         * nis/nis_print_group_entry.c: Likewise.
5207         * nis/nis_table.c: Likewise.
5208         * nis/nss_compat/compat-pwd.c: Likewise.
5209         * nis/nss_compat/compat-spwd.c: Likewise.
5210         * po/Makefile: Likewise.
5211         * posix/fnmatch.c: Likewise.
5212         * posix/regex.h: Likewise.
5213         * resolv/Makefile: Likewise.
5214         * resolv/nss_dns/dns-network.c: Likewise.
5215         * resolv/res_hconf.c: Likewise.
5216         * scripts/gen-sorted.awk: Likewise.
5217         * soft-fp/soft-fp.h: Likewise.
5218         * stdio-common/printf.h: Likewise.
5219         * stdlib/monetary.h: Likewise.
5220         * stdlib/random.c: Likewise.
5221         * stdlib/random_r.c: Likewise.
5222         * sysdeps/generic/Makefile: Likewise.
5223         * sysdeps/gnu/Makefile: Likewise.
5224         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
5225         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
5226         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
5227         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
5228         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
5229         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
5230         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
5231         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
5232         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
5233         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
5234         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
5235         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
5236         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
5237         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
5238         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
5239         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
5240         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
5241         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5242         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
5243         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
5244         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
5245         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
5246         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
5247         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
5248         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
5249         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
5250         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
5251         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
5252         * sysdeps/mach/hurd/errnos.awk: Likewise.
5253         * sysdeps/mach/hurd/fork.c: Likewise.
5254         * sysdeps/mach/hurd/getcwd.c: Likewise.
5255         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
5256         * sysdeps/mach/hurd/mmap.c: Likewise.
5257         * sysdeps/mach/hurd/utimes.c: Likewise.
5258         * sysdeps/mach/hurd/xmknod.c: Likewise.
5259         * sysdeps/posix/profil.c: Likewise.
5260         * sysdeps/posix/readdir_r.c: Likewise.
5261         * sysdeps/powerpc/bits/mathdef.h: Likewise.
5262         * sysdeps/powerpc/bits/setjmp.h: Likewise.
5263         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
5264         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
5265         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
5266         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
5267         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
5268         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
5269         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
5270         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
5271         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
5272         * sysdeps/pthread/lio_listio.c: Likewise.
5273         * sysdeps/sparc/dl-procinfo.h: Likewise.
5274         * sysdeps/unix/i386/sysdep.S: Likewise.
5275         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
5276         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
5277         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
5278         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
5279         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
5280         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
5281         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
5282         * sysdeps/unix/sysv/linux/speed.c: Likewise.
5283         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
5284         * sysdeps/wordsize-32/divdi3.c: Likewise.
5285         * time/sys/time.h: Likewise.
5286         * wcsmbs/Makefile: Likewise.
5287
5288 2013-01-01  David S. Miller  <davem@davemloft.net>
5289
5290         * po/fr.po: Update from translation team.
5291
5292         * catgets/gencat.c: Update copyright year.
5293         * csu/version.c: Likewise.
5294         * debug/catchsegv.sh: Likewise.
5295         * debug/pcprofiledump.c: Likewise.
5296         * debug/xtrace.sh: Likewise.
5297         * elf/ldconfig.c: Likewise.
5298         * elf/ldd.bash.in: Likewise.
5299         * elf/pldd.c: Likewise.
5300         * elf/sotruss.ksh: Likewise.
5301         * elf/sprof.c: Likewise.
5302         * iconv/iconv_prog.c: Likewise.
5303         * iconv/iconvconfig.c: Likewise.
5304         * locale/programs/locale.c: Likewise.
5305         * locale/programs/localedef.c: Likewise.
5306         * login/programs/pt_chown.c: Likewise.
5307         * malloc/memusage.sh: Likewise.
5308         * malloc/memusagestat.c: Likewise.
5309         * malloc/mtrace.pl: Likewise.
5310         * nscd/nscd.c: Likewise.
5311         * nss/getent.c: Likewise.
5312         * nss/makedb.c: Likewise.
5313         * posix/getconf.c: Likewise.
5314
5315 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
5316
5317         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
5318         numbers.
5319
5320 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
5321
5322         * math/bits/mathcalls.h (modf): Use __nonnull.
5323
5324 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
5325
5326         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
5327         (split): Use macro CN instead of the bare value.
5328         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
5329         could be used.
5330         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
5331         instead of the bare value.
5332         (power1): Likewise.
5333
5334 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
5335
5336         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
5337         __ATAN_TWOM.
5338         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
5339
5340         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
5341         their values.
5342         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
5343         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
5344         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
5345         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
5346
5347 2012-12-28  Andreas Jaeger  <aj@suse.de>
5348
5349         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
5350         values are from Linux 3.7.
5351
5352         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
5353         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
5354
5355 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
5356
5357         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
5358         TRUE case.
5359
5360         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
5361         (norm): Likewise.
5362         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
5363         variables with preprocessor constants.
5364         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
5365         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
5366         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
5367
5368 2012-12-27  Bruno Haible  <bruno@clisp.org>
5369
5370         [BZ #14317]
5371         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
5372         only if needed.
5373
5374 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
5375
5376         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
5377         and use variable directly.
5378         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
5379
5380         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
5381         MPONE.
5382         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
5383         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
5384         variable MPONE.
5385         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
5386         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
5387         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
5388         include directive.  Remove local variable MPONE.
5389         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
5390         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
5391         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
5392
5393 2012-12-25  David S. Miller  <davem@davemloft.net>
5394
5395         * version.h (RELEASE): Set to "development".
5396         (VERSION): Set to "2.17.90".
5397         * NEWS: Add 2.18 section.
5398
5399 2012-12-21  David S. Miller  <davem@davemloft.net>
5400
5401         * po/hr.po: Update from translation team.
5402
5403 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5404
5405         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
5406
5407 2012-12-19  Steve Ellcey  <sellcey@mips.com>
5408
5409         * NEWS:  Mention new memcpy for MIPS.
5410
5411 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
5412
5413         * manual/contrib.texi (Contributors): Spelling correction.
5414
5415 2012-12-15  David S. Miller  <davem@davemloft.net>
5416
5417         * po/ru.po: Update from translation team.
5418
5419 2012-12-13  David S. Miller  <davem@davemloft.net>
5420
5421         * NEWS: Mention IFUNC testsuite enhancements.
5422
5423         * po/pl.po: Update from translation team.
5424         * po/bg.po: Likewise.
5425
5426         * manual/contrib.texi (Contributors): Update entries for Hongjiu
5427         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
5428
5429 2012-12-11  David S. Miller  <davem@davemloft.net>
5430
5431         * po/sv.po: Update from translation team.
5432
5433         * po/vi.po: Update from translation team.
5434
5435         * po/cs.po: Update from translation team.
5436
5437         * po/de.po: Update from translation team.
5438         * po/eo.po: Likewise.
5439         * po/nl.po: Likewise.
5440
5441 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
5442
5443         [BZ #14246]
5444         * manual/argp.texi (Argp Helper Functions): Move node to follow
5445         Argp Parsing State.
5446
5447         [BZ #14872]
5448         * manual/conf.texi (Limits on File System Capacity): Mention if
5449         terminating null is included in the max size.
5450
5451 2012-12-10  Andreas Jaeger  <aj@suse.de>
5452
5453         * po/cs.po: Update from translation team.
5454
5455 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
5456
5457         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
5458         void pointer and cast to uintptr_t.
5459         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
5460         path.
5461         * sysdeps/s390/s390-64/memcpy.S: Likewise.
5462         * sysdeps/s390/s390-64/memset.S: Likewise.
5463
5464 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
5465
5466         [BZ #14833]
5467         * menual/message.texi (Message Translation): Fix typos.
5468         (Helper programs for gettext): Likewise.
5469
5470 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
5471
5472         [BZ #14898]
5473         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
5474         Change to -1.
5475
5476 2012-12-07  David S. Miller  <davem@davemloft.net>
5477
5478         * po/libc.pot: Update.
5479
5480 2012-12-07  Richard Henderson  <rth@redhat.com>
5481
5482         [BZ #10114]
5483         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
5484         normal/normal case to before the switch.
5485         (_FP_DIV): Likewise.
5486
5487 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
5488             Mike Frysinger  <vapier@gentoo.org>
5489
5490         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
5491         check for __NR_fadvise64_64.
5492
5493 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
5494
5495         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
5496         0, not just to plain "0" as a statement.
5497         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
5498         with cw.
5499
5500 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
5501
5502         * NEWS: Use sourceware.org in Bugzilla URL.
5503
5504 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
5505
5506         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
5507         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
5508
5509         * stdio-common/tst-put-error.c (do_test): Add newline to the
5510         padded test to ensure flush.
5511
5512 2012-12-05  Jeff Law  <law@redhat.com>
5513
5514         * sunrpc/etc.rpc (fedfs_admin): Add entry.
5515
5516 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
5517
5518         * README: Don't refer to ports add-on as distributed separately.
5519         Mention AArch64 in list of systems supported in the ports add-on.
5520
5521         * LICENSES: Add more non-FSF copyright and license notices.
5522
5523         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
5524         ((unused)).
5525
5526         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
5527
5528         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
5529         10000 as width of padded output.
5530
5531 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
5532
5533         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
5534
5535         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
5536         variable LX with __attribute__ ((unused)).
5537         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
5538         Likewise.
5539         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
5540         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
5541         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
5542         with __attribute__ ((unused)).
5543
5544 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
5545
5546         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
5547
5548 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
5549
5550         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
5551         (CFLAGS-nldbl-acos.c): New variable.
5552         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
5553         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
5554         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
5555         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
5556         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
5557         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
5558         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
5559         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
5560         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
5561         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
5562         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
5563         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
5564         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
5565         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
5566         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
5567         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
5568         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
5569         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
5570         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
5571         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
5572         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
5573         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
5574         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
5575         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
5576         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
5577         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
5578         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
5579         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
5580         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
5581         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
5582         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
5583         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
5584         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
5585         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
5586         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
5587         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
5588         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
5589         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
5590         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
5591         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
5592         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
5593         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
5594         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
5595         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
5596         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
5597         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
5598         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
5599         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
5600         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
5601         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
5602         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
5603         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
5604         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
5605         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
5606         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
5607         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
5608         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
5609         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
5610         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
5611         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
5612         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
5613         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
5614         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
5615         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
5616         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
5617         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
5618         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
5619         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
5620         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
5621         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
5622         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
5623         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
5624         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
5625         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
5626         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
5627         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
5628         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
5629         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
5630         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
5631         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
5632         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
5633         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
5634         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
5635         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
5636         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
5637         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
5638         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
5639         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
5640         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
5641         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
5642         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
5643         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
5644         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
5645         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
5646         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
5647         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
5648         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
5649
5650         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
5651         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
5652
5653         [BZ #14914]
5654         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
5655         whole low double instead of just low 47 bits when splitting values
5656         into two parts.
5657
5658 2012-12-03  Allan McRae  <allan@archlinux.org>
5659
5660         * manual/stdio.texi (Predefined Printf Handlers): Remove
5661         @hsep and @vsep usage.
5662
5663 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
5664
5665         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
5666         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
5667
5668 2012-12-03  Jeff Law  <law@redhat.com>
5669
5670         * time/sys/time.h (settimeofday): Do not mark TV argument
5671         as __nonnull.
5672
5673 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
5674
5675         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
5676         when currently writing and seek to current position when not.
5677         * libio/Makefile (tests): Remove bug-fclose1.
5678         * libio/bug-fclose1.c: Delete.
5679
5680 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
5681
5682         * manual/arith.texi (feenableexcept): Fix typo.
5683         (fedisableexcept): Likewise.
5684
5685 2012-11-30  Roland McGrath  <roland@hack.frob.com>
5686
5687         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
5688         second, differently-typed declaration, rather than a cast.
5689
5690 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
5691
5692         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
5693         * include/rpc/svc.h: ... here.
5694
5695 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
5696
5697         [BZ #13013]
5698         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
5699         depending n and resplen2 to catch cases where answer
5700         equals answerp2.
5701
5702 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
5703
5704         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
5705         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
5706
5707 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
5708
5709         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
5710
5711 2012-11-29  Roland McGrath  <roland@hack.frob.com>
5712
5713         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
5714
5715 2012-11-28  Jeff Law  <law@redhat.com>
5716
5717         [BZ #13761]
5718         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
5719         dataset_temporary.  Track alloca usage into alloca_used.
5720         If dataset is large allocate and release it via malloc/free.
5721
5722 2012-06-04  Florian Weimer  <fweimer@redhat.com>
5723
5724         [BZ #14197]
5725         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
5726
5727 2012-11-28  David S. Miller  <davem@davemloft.net>
5728
5729         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5730
5731 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
5732
5733         [BZ #14803]
5734         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
5735         of pi/2 rounded to nearest to 64 bits.
5736         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
5737         nearest to 64 bits.
5738         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
5739         bits.
5740
5741 2012-11-28  Jeff Law <law@redhat.com>
5742             Martin Osvald <mosvald@redhat.com>
5743
5744         [BZ #14889]
5745         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
5746         * sunrpc/svc.c: Include time.h.
5747         (__svc_accept_failed): New function.
5748         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
5749         any reason other than EINTR, call __svc_accept_failed.
5750         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
5751         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
5752
5753 2012-11-28  Andreas Schwab  <schwab@suse.de>
5754
5755         * scripts/abilist.awk: Also handle indirect functions in .opd
5756         section.
5757
5758 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
5759
5760         [BZ #13881]
5761         * sysdeps/x86/fpu/powl_helper.c: New file.
5762         * sysdeps/x86/fpu/Makefile: Likewise.
5763         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
5764         (p3): New object.
5765         (__ieee754_powl): Use __powl_helper for finite arguments except
5766         integer exponents below 8.
5767         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
5768         (p3): New object.
5769         (__ieee754_powl): Use __powl_helper for finite arguments except
5770         integer exponents below 8.
5771         * math/libm-test.inc (pow_test): Add more tests and enable some
5772         previously disabled tests.
5773         * sysdeps/i386/fpu/libm-test-ulps: Update.
5774         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5775
5776 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
5777             Carlos O'Donell  <carlos_odonell@mentor.com>
5778
5779         * nss/makedb.c (is_prime): Assert that input is odd and greater
5780         than 4.  Note that fact in a comment too.
5781         (next_prime): Add 4 to input.
5782
5783 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
5784
5785         [BZ #11741]
5786         * libio/Makefile (tests): Add test case tst-fwrite-error.
5787         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
5788         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
5789         * libio/tst-fwrite-error.c: New test case.
5790
5791 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
5792
5793         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
5794         before casting to void *.
5795         * include/libc-internal.h (__pointer_type): New macro.
5796         (__integer_if_pointer_type_sub): Likewise.
5797         (__integer_if_pointer_type): Likewise.
5798         (cast_to_integer): Likewise.
5799         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
5800         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
5801         before casting to atomic64_t.
5802         (atomic_exchange_acq): Likewise.
5803         (__arch_exchange_and_add_body): Likewise.
5804         (__arch_add_body): Likewise.
5805         (atomic_add_negative): Likewise.
5806         (atomic_add_zero): Likewise.
5807
5808 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
5809
5810         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
5811         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
5812         (add_fdes): Likewise.
5813         (linear_search_fdes): Likewise.
5814         (binary_search_unencoded_fdes): Likewise.
5815
5816 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
5817
5818         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
5819
5820 2012-11-24  Adam Conrad  <adconrad@0c3.net>
5821
5822         * configure.in: Autodetect C++ header directories.
5823         * configure: Regenerated.
5824
5825 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
5826
5827         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
5828
5829 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
5830
5831         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5832
5833 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
5834
5835         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
5836         LDBL_MANT_DIG == 106]: Disable some tests.
5837         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
5838         Likewise.
5839         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
5840         Likewise.
5841
5842         [BZ #14871]
5843         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
5844         input for small inputs.  Return +/- pi/2 for large inputs.
5845         * math/libm-test.inc (atan_test): Add more tests.
5846
5847         * sysdeps/generic/unwind-dw2-fde-glibc.c
5848         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
5849         __attribute__ ((unused)).
5850
5851         [BZ #14645]
5852         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
5853         x * y if x and y are nonzero and z is zero.
5854
5855         [BZ #14811]
5856         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
5857         nonzero exponents with absolute value below 0x1p-117 to +/-
5858         0x1p-117.
5859
5860         [BZ #14869]
5861         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
5862         up arguments below 2**-450, not just those below 2**-500.
5863         * math/libm-test.inc (hypot_test): Add another test.
5864
5865         [BZ #14868]
5866         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
5867         Return a+b for ratio over 2**120, not 2**60.
5868         * math/libm-test.inc (hypot_test): Add another test.
5869
5870         * math/libm-test.inc (clog_test): Use
5871         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
5872         (clog10_test): Likewise.
5873
5874         [BZ #6778]
5875         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
5876
5877 2012-11-22  Andreas Schwab  <schwab@suse.de>
5878
5879         * sysdeps/i386/fpu/libm-test-ulps: Update.
5880
5881 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
5882
5883         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
5884         printf output with newline.
5885
5886 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
5887
5888         [BZ #14865]
5889         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
5890         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
5891         -z nodlopen, -z initfirst and -z execstack support.
5892         * configure: Regenerated.
5893
5894         * elf/elf.h (DF_1_NODIRECT): New macro.
5895         (DF_1_IGNMULDEF): Likewise.
5896         (DF_1_NOKSYMS): Likewise.
5897         (DF_1_NOHDR): Likewise.
5898         (DF_1_EDITED): Likewise.
5899         (DF_1_NORELOC): Likewise.
5900         (DF_1_SYMINTPOSE): Likewise.
5901         (DF_1_GLOBAUDIT): Likewise.
5902         (DF_1_SINGLETON): Likewise.
5903         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
5904         DT_1_SUPPORTED_MASK bits.
5905         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
5906
5907 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
5908
5909         * sysdeps/unix/make-syscalls.sh: Document prefixes.
5910
5911 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
5912
5913         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
5914         macro.
5915
5916         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
5917         (sendmmsg): Move declarations...
5918         * socket/sys/socket.h: ... here.
5919         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
5920         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
5921         include it from...
5922         * socket/recvmmsg.c: ... this new file.
5923         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
5924         (sendmmsg): Rename to __sendmmsg, create weak alias and make
5925         definition of __sendmmsg hidden.
5926         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
5927         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
5928         Move ENOSYS stub into and include it from...
5929         * socket/sendmmsg.c: ... this new file.
5930         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
5931         (sysdep_routines): Move recvmmsg and sendmmsg...
5932         * socket/Makefile (routines): ... here.
5933         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
5934         (GLIBC_PRIVATE): Add __sendmmsg.
5935         * include/sys/socket.h (__sendmmsg): Add declarations.
5936         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
5937         sendmmsg.
5938
5939 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
5940
5941         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
5942         variable I1 with __attribute__ ((unused)).
5943         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
5944
5945 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
5946
5947         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
5948         DUMMY variables with __attribute__ ((unused)).
5949
5950         * bits/byteswap.h: Include <bits/types.h>.
5951         (__bswap_64): Use __uint64_t instead of unsigned long long int.
5952
5953 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
5954
5955         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
5956         string_t.  Do not manually set errno.
5957         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
5958         length with __strnlen.  Make sure to both set errno and return it on
5959         failure.
5960
5961 2012-11-19  David S. Miller  <davem@davemloft.net>
5962
5963         With help from Joseph Myers.
5964         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
5965         very large arguments properly.
5966         * math/libm-test.inc (atan_test): New tests.
5967         (atan2_test): New tests.
5968         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5969         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
5970
5971 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
5972
5973         [BZ #14856]
5974         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
5975         Define to 3.
5976
5977         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
5978         [POSIX] (EADDRNOTAVAIL): Likewise.
5979         [POSIX] (EAFNOSUPPORT): Likewise.
5980         [POSIX] (EALREADY): Likewise.
5981         [POSIX] (ECONNABORTED): Likewise.
5982         [POSIX] (ECONNREFUSED): Likewise.
5983         [POSIX] (ECONNRESET): Likewise.
5984         [POSIX] (EDESTADDRREQ): Likewise.
5985         [POSIX] (EDQUOT): Likewise.
5986         [POSIX] (EHOSTUNREACH): Likewise.
5987         [POSIX] (EIDRM): Likewise.
5988         [POSIX] (EISCONN): Likewise.
5989         [POSIX] (ELOOP): Likewise.
5990         [POSIX] (EMULTIHOP): Likewise.
5991         [POSIX] (ENETDOWN): Likewise.
5992         [POSIX] (ENETUNREACH): Likewise.
5993         [POSIX] (ENOBUFS): Likewise.
5994         [POSIX] (ENODATA): Likewise.
5995         [POSIX] (ENOLINK): Likewise.
5996         [POSIX] (ENOMSG): Likewise.
5997         [POSIX] (ENOPROTOOPT): Likewise.
5998         [POSIX] (ENOSR): Likewise.
5999         [POSIX] (ENOSTR): Likewise.
6000         [POSIX] (ENOTCONN): Likewise.
6001         [POSIX] (ENOTSOCK): Likewise.
6002         [POSIX] (EOPNOTSUPP): Likewise.
6003         [POSIX] (EOVERFLOW): Likewise.
6004         [POSIX] (EPROTO): Likewise.
6005         [POSIX] (EPROTONOSUPPORT): Likewise.
6006         [POSIX] (EPROTOTYPE): Likewise.
6007         [POSIX] (ESTALE): Likewise.
6008         [POSIX] (ETIME): Likewise.
6009         [POSIX] (ETXTBSY): Likewise.
6010         [POSIX] (EWOULDBLOCK): Likewise.
6011         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
6012         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
6013         [POSIX] (SEEK_CUR): Likewise.
6014         [POSIX] (SEEK_END): Likewise.
6015         [POSIX || UNIX98] (mode_t): Do not require.
6016         [POSIX] (off_t): Likewise.
6017         [POSIX] (pid_t): Likewise.
6018         [POSIX] (sys/stat.h): Do not allow header.
6019         [POSIX] (unistd.h): Likewise.
6020         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
6021         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
6022         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
6023         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
6024         require.
6025         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
6026         sigevent): Specify elements.
6027         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
6028         entry.
6029         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
6030         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
6031
6032         * conform/data/cpio.h-data [POSIX]: Disable whole file.
6033         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
6034         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
6035         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
6036         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
6037         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
6038         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
6039         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
6040         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
6041         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
6042         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
6043         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
6044         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
6045         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
6046         Likewise.
6047         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
6048         Likewise.
6049         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
6050         Likewise.
6051         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
6052         Likewise.
6053         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
6054         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
6055         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
6056         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
6057         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
6058         Specify lower bound on value.
6059         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
6060         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
6061         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
6062         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
6063         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
6064         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise
6065         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
6066         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
6067         value.
6068         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
6069         as optional.
6070         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
6071         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
6072         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
6073         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
6074         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
6075         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
6076         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
6077         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
6078         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
6079         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
6080         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
6081         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
6082         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
6083         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
6084         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
6085         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
6086         entry.
6087         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
6088         optional.
6089         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
6090         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
6091         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
6092         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
6093         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
6094         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
6095         Likewise.
6096         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
6097         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
6098         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
6099         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
6100         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
6101         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
6102         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
6103         as optional.
6104         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
6105         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
6106         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
6107         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
6108         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
6109         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
6110         specify as optional.
6111         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
6112         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
6113         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
6114         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
6115         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
6116         [XPG3] (NL_LANGMAX): Likewise.
6117         [POSIX || XPG3] (NL_MSGMAX): Likewise.
6118         [POSIX || XPG3] (NL_NMAX): Likewise.
6119         [POSIX || XPG3] (NL_SETMAX): Likewise.
6120         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
6121         [XPG3] (NZERO): Likewise.
6122         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
6123         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
6124         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
6125         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
6126         (REG_ERANGE): Expect.
6127         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
6128         optional-constant.
6129         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
6130         Use (void) in prototype.
6131         [POSIX] (*_t): Allow.
6132         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
6133         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
6134         (WRDE_BADVAL): Expect.
6135
6136         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
6137         expect.
6138         [XPG3 || XPG4] (O_RSYNC): Likewise.
6139         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
6140         Likewise.
6141         [XPG3 || XPG4] (pthread_sigmask): Likewise.
6142         [XPG3 || XPG4] (sigqueue): Likewise.
6143         [XPG3 || XPG4] (sigtimedwait): Likewise.
6144         [XPG3 || XPG4] (sigwaitinfo): Likewise.
6145         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
6146         [XPG3 || XPG4] (vsnprintf): Likewise.
6147         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
6148         Likewise.
6149         [XPG3 || XPG4] (blksize_t): Likewise.
6150         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
6151         Likewise.
6152         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
6153         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
6154         [XPG3 || XPG4] (struct itimerspec): Likewise.
6155         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
6156         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
6157         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
6158         [XPG3 || XPG4] (clockid_t): Likewise.
6159         [XPG3 || XPG4] (timer_t): Likewise.
6160         [XPG3 || XPG4] (clock_getres): Likewise.
6161         [XPG3 || XPG4] (clock_gettime): Likewise.
6162         [XPG3 || XPG4] (clock_settime): Likewise.
6163         [XPG3 || XPG4] (nanosleep): Likewise.
6164         [XPG3 || XPG4] (timer_create): Likewise.
6165         [XPG3 || XPG4] (timer_delete): Likewise.
6166         [XPG3 || XPG4] (timer_gettime): Likewise.
6167         [XPG3 || XPG4] (timer_getoverrun): Likewise.
6168         [XPG3 || XPG4] (timer_settime): Likewise.
6169         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
6170         [XPG3 || XPG4] (getlogin_r): Likewise.
6171         [XPG3 || XPG4] (pread): Likewise.
6172         [XPG3 || XPG4] (pthread_atfork): Likewise.
6173         [XPG3 || XPG4] (pwrite): Likewise.
6174
6175         [BZ #14835]
6176         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
6177         <bits/siginfo.h>.
6178
6179 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
6180
6181         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
6182         finalizing MALLSTREAM.
6183
6184         * sysdeps/mach/hurd/syncfs.c: New file.
6185
6186 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
6187
6188         [BZ #14719]
6189         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
6190         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
6191         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
6192         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
6193         (_nss_dns_gethostbyname4_r): Likewise.
6194         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
6195         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
6196
6197 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
6198
6199         [BZ #13763]
6200         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
6201
6202 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
6203
6204         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
6205         * elf/cache.c (print_entry): Print ",AArch64" for
6206         FLAG_AARCH64_LIB64
6207
6208         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
6209         * elf/cache.c (print_entry): Print ",hard-float" for
6210         FLAG_ARM_LIBHF.
6211
6212 2012-11-18  David S. Miller  <davem@davemloft.net>
6213
6214         With help from Joseph Myers.
6215         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
6216         cutoff to 2**-13.
6217         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
6218         cutoff to 2**-25.
6219         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
6220         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
6221         small.
6222         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
6223         * math/libm-test.inc (y0_test): New tests.
6224         (y1_test): New tests.
6225         * sysdeps/i386/fpu/libm-test-ulps: Update.
6226         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6227         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6228
6229 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
6230
6231         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
6232         64-bit targets.
6233         * configure: Regenerated.
6234
6235 2012-11-17  David S. Miller  <davem@davemloft.net>
6236
6237         [BZ #14811]
6238         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
6239         nonzero exponents with absolute value below 0x1p-128 to +/-
6240         0x1p-128.
6241
6242 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
6243
6244         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
6245
6246         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
6247
6248         * posix/getconf-speclist.c: New file.
6249         * posix/posix-envs.def: Likewise.
6250         * posix/confstr.c (START_ENV_GROUP): New macro.
6251         (END_ENV_GROUP): Likewise.
6252         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
6253         (KNOWN_PRESENT_ENV_STRING): Likewise.
6254         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
6255         (UNKNOWN_ENVIRONMENT): Likewise.
6256         (confstr): Include posix-envs.def instead of handling
6257         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
6258         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
6259         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
6260         (END_ENV_GROUP): Likewise.
6261         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
6262         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
6263         (UNKNOWN_ENVIRONMENT): Likewise.
6264         (__sysconf): Include posix-envs.def instead of handling associated
6265         cases directly here.
6266         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
6267         preprocessing getconf-speclist.c rather than running getconf or
6268         generating empty file.
6269
6270 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
6271
6272         * scripts/check-local-headers.sh: Ignore 'mach' headers.
6273
6274 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
6275
6276         [BZ #14672]
6277         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
6278
6279 2012-11-16  David S. Miller  <davem@davemloft.net>
6280
6281         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
6282         smaller than LDBL_EPSILON/2.0L, just return xm1.
6283
6284 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
6285
6286         * elf/tst-array1.c (init): Set constructor priority to 1000.
6287         (fini): Set destructor priority to 1000.
6288         * elf/tst-array2dep.c: Likewise.
6289
6290 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
6291
6292         [BZ #11741]
6293         * libio/fileops.c (_IO_new_file_write): Correctly return error.
6294         (_IO_new_file_xsputn): Also return EOF if none of the input
6295         data was written when overflow failed.
6296         * libio/iopadn.c (_IO_padn): Likewise.
6297         * libio/iowpadn.c (_IO_wpadn): Likewise.
6298         * stdio-common/tst-put-error.c: Add copyright notice.
6299         (do_test): Add case for printing padded string.
6300         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
6301         _IO_padn returned error.
6302         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
6303         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
6304         return EOF.
6305
6306 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
6307
6308         * libio/libioP.h: Add comment note that the references to C++
6309         bits are now obsolete.
6310
6311 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
6312
6313         * math/libm-test.inc (check_complex): Use asprintf.
6314
6315 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
6316
6317         * debug/pcprofiledump.c (print_version): Update copyright year.
6318         * malloc/memusagestat.c (print_version): Likewise.
6319
6320 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
6321
6322         [BZ #14831]
6323         * elf/Makefile (tests): Add tst-audit8.
6324         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
6325         ($(objpfx)tst-audit8.out): New target.
6326         (tst-audit8-ENV): New variable.
6327         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
6328         audit if l_reloc_result is NULL.
6329         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
6330         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
6331         * elf/tst-audit8.c: New file.
6332
6333 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
6334
6335         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
6336         * misc/Makefile (CFLAGS-select.c): Define.
6337         * posix/Makefile (CFLAGS-pause.c): Define.
6338
6339 2012-11-13  David S. Miller  <davem@davemloft.net>
6340
6341         * crypt/Makefile: Move test targets after toplevel Rules
6342         inclusion.  Grab any necessary sysdep routines when linking.
6343         * crypt/md5.c (md5_process_block): Remove define, we will always
6344         name it __md5_process_block.
6345         (md5_finish_ctx): Update md5_process_block call.
6346         (md5_stream): Likewise.
6347         (md5_process_bytes): Likewise.
6348         (md5_process_block): Rename to __md5_process_block and move to ...
6349         * crypt/md5-block.c: ... here.
6350         * crypt/sha256.c (sha256_process_block): Move to ...
6351         * crypt/sha256-block.c: ... here.
6352         * crypt/sha512.c (sha512_process_block): Move to ...
6353         * crypt/sha512-block.c: ... here.
6354         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
6355         path.
6356         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
6357         * sysdeps/sparc/sparc64/multiarch/Makefile
6358         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
6359         crypt subdir.
6360         (localedef-aux): Add md5 crypto assembler when in locale subdir.
6361         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
6362         multiarch changes.
6363         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
6364         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
6365         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
6366         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
6367         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
6368         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
6369         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
6370         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
6371         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
6372         file.
6373         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
6374         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
6375         file.
6376         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
6377
6378 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
6379
6380         * timezone/tzselect.ksh: Update from tzcode git revision
6381         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
6382         * timezone/zdump.c: Likewise.
6383         * timezone/zic.c: Likewise.
6384         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
6385         in TZVERSION setting, not $(PKGVERSION).
6386         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
6387         REPORT_BUGS_TO settings.
6388
6389         [BZ #14838]
6390         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
6391         macro.
6392
6393 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
6394
6395         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
6396         detection to immediately after _FP_ROUND().
6397         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
6398         bits are 0.
6399
6400 2012-11-11  David S. Miller  <davem@davemloft.net>
6401
6402         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
6403         inttypes.h
6404         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
6405         __close rather than their public counterparts.
6406
6407 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
6408
6409         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
6410         file.
6411         [UNIX98] (sem_timedwait): Do not expect.
6412         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
6413         [XPG4 || UNIX98] (sockatmark): Do not expect.
6414         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
6415         (clock_getcpuclockid): Do not expect.
6416         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
6417         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
6418         Do not expect.
6419         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
6420         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
6421         [UNIX98] (vwscanf): Likewise.
6422         [UNIX98] (vswscanf): Likewise.
6423
6424 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
6425
6426         * timezone/version.h: Remove file.
6427         * timezone/README: Do not refer to version.h.
6428         * timezone/Makefile ($(objpfx)zic.o): New dependency on
6429         $(objpfx)version.h.
6430         ($(objpfx)zdump.o): Likewise.
6431         ($(objpfx)version.h): New target.
6432
6433         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
6434         2012i.
6435         * timezone/README: Don't mention modification to tzselect.ksh.
6436         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
6437         work on unmodified tzselect.ksh.  Substitute version numbers in
6438         tzselect.ksh.
6439
6440         * Makefile (format-me): Remove.
6441         (INSTALL): Adjust indentation.  Use commands directly instead of
6442         using $(format-me).
6443
6444         * aclocal.m4 (ACX_PKGVERSION): New macro.
6445         (ACX_BUGURL): Likewise.
6446         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
6447         (PKGVERSION): New AC_DEFINE_UNQUOTED.
6448         (REPORT_BUGS_TO): Likewise.
6449         * configure: Regenerated.
6450         * config.h.in (PKGVERSION): New macro.
6451         (REPORT_BUGS_TO): Likewise.
6452         * config.make.in (PKGVERSION): New variable.
6453         (PKGVERSION_TEXI): Likewise.
6454         (REPORT_BUGS_TO): Likewise.
6455         (REPORT_BUGS_TEXI): Likewise.
6456         * Makefile (format-me): Use -I$(common-objpfx)manual.
6457         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
6458         ($(common-objpfx)manual/%): New target.
6459         (manual/%): Remove target.
6460         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
6461         (print_version): Use PKGVERSION.
6462         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
6463         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
6464         and REPORT_BUGS_TO.
6465         ($(objpfx)xtrace): Likewise.
6466         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
6467         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
6468         (print_version): Use PKGVERSION.
6469         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
6470         (do_version): Use PKGVERSION.
6471         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
6472         REPORT_BUGS_TO.
6473         (common-ldd-rewrite): Likewise.
6474         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
6475         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
6476         (print_version): Use PKGVERSION.
6477         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
6478         * elf/pldd.c (argp_program_bug_address): Remove variable.
6479         (more_help): New function.
6480         (argp): Use more_help.
6481         (print_version): Use PKGVERSION.
6482         * elf/sln.c (main): Use PKGVERSION.
6483         (usage): Use REPORT_BUGS_TO.
6484         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
6485         (top level): Use PKGVERSION.
6486         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
6487         (print_version): Use PKGVERSION.
6488         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
6489         (print_version): Use PKGVERSION.
6490         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
6491         (print_version): Use PKGVERSION.
6492         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
6493         (print_version): Use PKGVERSION.
6494         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
6495         (print_version): Use PKGVERSION.
6496         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
6497         (print_version): Use PKGVERSION.
6498         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
6499         and BUGURL.
6500         ($(objpfx)memusage): Likewise.
6501         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
6502         (do_version): Use PKGVERSION.
6503         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
6504         (print_version): Use PKGVERSION.
6505         * malloc/mtrace.pl ($PACKAGE): Remove variable.
6506         ($PKGVERSION): New variable.
6507         ($REPORT_BUGS_TO): Likewise.
6508         (usage): Use $REPORT_BUGS_TO.
6509         (top level): Use $PKGVERSION.
6510         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
6511         ($(objpfx)pkgvers.texi): New rule.
6512         ($(objpfx)stamp-pkgvers): Likewise.
6513         * manual/install.texi: Include pkgvers.texi.
6514         (--with-pkgversion): Document new configure option.
6515         (--with-bugurl): Likewise.
6516         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
6517         than necessarily for this particular distribution.  Use
6518         REPORT_BUGS_TO for where to report bugs.
6519         * INSTALL: Regenerated.
6520         * manual/libc.texinfo: Include pkgvers.texi.
6521         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
6522         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
6523         (print_version): Use PKGVERSION.
6524         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
6525         (print_version): Use PKGVERSION.
6526         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
6527         (print_version): Use PKGVERSION.
6528         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
6529         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
6530         macro.
6531         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
6532         (print_version): Use PKGVERSION.
6533         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
6534         (print_version): Use PKGVERSION.
6535         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
6536         and PKGVERSION.
6537
6538         * timezone/checktab.awk: Update from tzcode 2012i.
6539         * timezone/ialloc.c: Likewise.
6540         * timezone/private.h: Likewise.
6541         * timezone/scheck.c: Likewise.
6542         * timezone/tzfile.h: Likewise.
6543         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
6544         (TZVERSION): Hardcode tzcode version number.
6545         * timezone/zdump.c: Update from tzcode 2012i.
6546         * timezone/zic.c: Likewise.
6547         * timezone/version.h: New file.
6548         * timezone/README: Describe version.h.  Update upstream location.
6549
6550         [BZ #14824]
6551         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
6552         (mktemp): Enable declaration.
6553         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
6554         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
6555         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
6556         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
6557         Likewise.
6558         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
6559         Likewise.
6560         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
6561         Likewise.
6562         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
6563         Likewise.
6564         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
6565         Likewise.
6566         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
6567         Likewise.
6568
6569         [BZ #14821]
6570         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
6571         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
6572         for copies of such integer values.
6573         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
6574         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
6575
6576 2012-11-09  Andreas Jaeger  <aj@suse.de>
6577
6578         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
6579         definitions and declarations that are provided by
6580         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
6581
6582 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6583
6584         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
6585         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
6586         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
6587         definition.
6588
6589 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
6590
6591         * elf/elf.h: Update comment before AArch64 relocations.
6592
6593 2012-11-07  David S. Miller  <davem@davemloft.net>
6594
6595         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
6596         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
6597         (__start_context): Declare.
6598         (__makecontext_ret): Delete.
6599         (__makecontext): Hook up __start_context instead of
6600         __makecontext_ret.
6601         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
6602         (sysdep_routines): Add __start_context when in stdlib.
6603
6604 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
6605
6606         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
6607         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
6608         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
6609         hardcoded "nm".
6610         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
6611         (READELF): New variable.  Use it instead of hardcoded "readelf".
6612
6613 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
6614
6615         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
6616         * sysdeps/x86/Makefile: Here.
6617         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
6618         * sysdeps/x86/tst-xmmymm.sh: This.
6619
6620 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
6621
6622         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
6623         expectations.
6624         [UNIX98] (pthread_barrier_t): Do not expect.
6625         [UNIX98] (pthread_barrierattr_t): Likewise.
6626         [UNIX98] (pthread_spinlock_t): Likewise.
6627         [UNIX98] (pthread_barrier_destroy): Likewise.
6628         [UNIX98] (pthread_barrier_init): Likewise.
6629         [UNIX98] (pthread_barrier_wait): Likewise.
6630         [UNIX98] (pthread_barrierattr_destroy): Likewise.
6631         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
6632         [UNIX98] (pthread_barrierattr_init): Likewise.
6633         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
6634         [UNIX98] (pthread_getcpuclockid): Likewise.
6635         [UNIX98] (pthread_mutex_timedlock): Likewise.
6636         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
6637         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
6638         [UNIX98] (pthread_sigmask): Likewise.
6639         [UNIX98] (pthread_spin_destroy): Likewise.
6640         [UNIX98] (pthread_spin_init): Likewise.
6641         [UNIX98] (pthread_spin_lock): Likewise.
6642         [UNIX98] (pthread_spin_trylock): Likewise.
6643         [UNIX98] (pthread_spin_unlock): Likewise.
6644         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
6645         Do not expect.
6646         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
6647         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
6648         [XPG3 || XPG4] (pthread_cond_t): Likewise.
6649         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
6650         [XPG3 || XPG4] (pthread_key_t): Likewise.
6651         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
6652         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
6653         [XPG3 || XPG4] (pthread_once_t): Likewise.
6654         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
6655         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
6656         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
6657         [XPG3 || XPG4] (pthread_t): Likewise.
6658
6659         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
6660         not expect.
6661         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
6662
6663         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
6664         Change function return type to int.
6665
6666         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
6667         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
6668         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
6669         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
6670         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
6671         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
6672         [!POSIX] (posix_madvise): Likewise.
6673         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
6674         && !UNIX98].
6675         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
6676         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
6677         (mode_t): Likewise.
6678         (posix_mem_offset): Likewise.
6679         (posix_typed_mem_get_info): Likewise.
6680         (posix_typed_mem_open): Likewise.
6681
6682         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
6683         Change condition to [XOPEN2K8].
6684
6685         * conform/conformtest.pl: Preprocess allow-header data with -x c
6686         instead of from stdin.
6687         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
6688         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
6689         [C99-based standards] (cerfc): Likewise.
6690         [C99-based standards] (cexp2): Likewise.
6691         [C99-based standards] (cexpm1): Likewise.
6692         [C99-based standards] (clog10): Likewise.
6693         [C99-based standards] (clog1p): Likewise.
6694         [C99-based standards] (clog2): Likewise.
6695         [C99-based standards] (clgamma): Likewise.
6696         [C99-based standards] (ctgamma): Likewise.
6697         [C99-based standards] (cerff): Likewise.
6698         [C99-based standards] (cerfcf): Likewise.
6699         [C99-based standards] (cexp2f): Likewise.
6700         [C99-based standards] (cexpm1f): Likewise.
6701         [C99-based standards] (clog10f): Likewise.
6702         [C99-based standards] (clog1pf): Likewise.
6703         [C99-based standards] (clog2f): Likewise.
6704         [C99-based standards] (clgammaf): Likewise.
6705         [C99-based standards] (ctgammaf): Likewise.
6706         [C99-based standards] (cerfl): Likewise.
6707         [C99-based standards] (cerfcl): Likewise.
6708         [C99-based standards] (cexp2l): Likewise.
6709         [C99-based standards] (cexpm1l): Likewise.
6710         [C99-based standards] (clog10l): Likewise.
6711         [C99-based standards] (clog1pl): Likewise.
6712         [C99-based standards] (clog2l): Likewise.
6713         [C99-based standards] (clgammal): Likewise.
6714         [C99-based standards] (ctgammal): Likewise.
6715         * conform/data/inttypes.h-data [C99-based standards]: Include
6716         stdint.h-data.  Remove all expectations for stdint.h contents.
6717         [C99-based standards] (PRI*): Do not allow.
6718         [C99-based standards] (SCN*): Likewise.
6719         [C99-based standards] (*_t): Likewise.
6720         [C99-based-standards] (PRId8): Expect macro.
6721         [C99-based-standards] (PRIi8): Likewise.
6722         [C99-based-standards] (PRIo8): Likewise.
6723         [C99-based-standards] (PRIu8): Likewise.
6724         [C99-based-standards] (PRIx8): Likewise.
6725         [C99-based-standards] (PRIX8): Likewise.
6726         [C99-based-standards] (SCNd8): Likewise.
6727         [C99-based-standards] (SCNi8): Likewise.
6728         [C99-based-standards] (SCNo8): Likewise.
6729         [C99-based-standards] (SCNu8): Likewise.
6730         [C99-based-standards] (SCNx8): Likewise.
6731         [C99-based-standards] (PRIdLEAST8): Likewise.
6732         [C99-based-standards] (PRIiLEAST8): Likewise.
6733         [C99-based-standards] (PRIoLEAST8): Likewise.
6734         [C99-based-standards] (PRIuLEAST8): Likewise.
6735         [C99-based-standards] (PRIxLEAST8): Likewise.
6736         [C99-based-standards] (PRIXLEAST8): Likewise.
6737         [C99-based-standards] (SCNdLEAST8): Likewise.
6738         [C99-based-standards] (SCNiLEAST8): Likewise.
6739         [C99-based-standards] (SCNoLEAST8): Likewise.
6740         [C99-based-standards] (SCNuLEAST8): Likewise.
6741         [C99-based-standards] (SCNxLEAST8): Likewise.
6742         [C99-based-standards] (PRIdFAST8): Likewise.
6743         [C99-based-standards] (PRIiFAST8): Likewise.
6744         [C99-based-standards] (PRIoFAST8): Likewise.
6745         [C99-based-standards] (PRIuFAST8): Likewise.
6746         [C99-based-standards] (PRIxFAST8): Likewise.
6747         [C99-based-standards] (PRIXFAST8): Likewise.
6748         [C99-based-standards] (SCNdFAST8): Likewise.
6749         [C99-based-standards] (SCNiFAST8): Likewise.
6750         [C99-based-standards] (SCNoFAST8): Likewise.
6751         [C99-based-standards] (SCNuFAST8): Likewise.
6752         [C99-based-standards] (SCNxFAST8): Likewise.
6753         [C99-based-standards] (PRId16): Likewise.
6754         [C99-based-standards] (PRIi16): Likewise.
6755         [C99-based-standards] (PRIo16): Likewise.
6756         [C99-based-standards] (PRIu16): Likewise.
6757         [C99-based-standards] (PRIx16): Likewise.
6758         [C99-based-standards] (PRIX16): Likewise.
6759         [C99-based-standards] (SCNd16): Likewise.
6760         [C99-based-standards] (SCNi16): Likewise.
6761         [C99-based-standards] (SCNo16): Likewise.
6762         [C99-based-standards] (SCNu16): Likewise.
6763         [C99-based-standards] (SCNx16): Likewise.
6764         [C99-based-standards] (PRIdLEAST16): Likewise.
6765         [C99-based-standards] (PRIiLEAST16): Likewise.
6766         [C99-based-standards] (PRIoLEAST16): Likewise.
6767         [C99-based-standards] (PRIuLEAST16): Likewise.
6768         [C99-based-standards] (PRIxLEAST16): Likewise.
6769         [C99-based-standards] (PRIXLEAST16): Likewise.
6770         [C99-based-standards] (SCNdLEAST16): Likewise.
6771         [C99-based-standards] (SCNiLEAST16): Likewise.
6772         [C99-based-standards] (SCNoLEAST16): Likewise.
6773         [C99-based-standards] (SCNuLEAST16): Likewise.
6774         [C99-based-standards] (SCNxLEAST16): Likewise.
6775         [C99-based-standards] (PRIdFAST16): Likewise.
6776         [C99-based-standards] (PRIiFAST16): Likewise.
6777         [C99-based-standards] (PRIoFAST16): Likewise.
6778         [C99-based-standards] (PRIuFAST16): Likewise.
6779         [C99-based-standards] (PRIxFAST16): Likewise.
6780         [C99-based-standards] (PRIXFAST16): Likewise.
6781         [C99-based-standards] (SCNdFAST16): Likewise.
6782         [C99-based-standards] (SCNiFAST16): Likewise.
6783         [C99-based-standards] (SCNoFAST16): Likewise.
6784         [C99-based-standards] (SCNuFAST16): Likewise.
6785         [C99-based-standards] (SCNxFAST16): Likewise.
6786         [C99-based-standards] (PRId32): Likewise.
6787         [C99-based-standards] (PRIi32): Likewise.
6788         [C99-based-standards] (PRIo32): Likewise.
6789         [C99-based-standards] (PRIu32): Likewise.
6790         [C99-based-standards] (PRIx32): Likewise.
6791         [C99-based-standards] (PRIX32): Likewise.
6792         [C99-based-standards] (SCNd32): Likewise.
6793         [C99-based-standards] (SCNi32): Likewise.
6794         [C99-based-standards] (SCNo32): Likewise.
6795         [C99-based-standards] (SCNu32): Likewise.
6796         [C99-based-standards] (SCNx32): Likewise.
6797         [C99-based-standards] (PRIdLEAST32): Likewise.
6798         [C99-based-standards] (PRIiLEAST32): Likewise.
6799         [C99-based-standards] (PRIoLEAST32): Likewise.
6800         [C99-based-standards] (PRIuLEAST32): Likewise.
6801         [C99-based-standards] (PRIxLEAST32): Likewise.
6802         [C99-based-standards] (PRIXLEAST32): Likewise.
6803         [C99-based-standards] (SCNdLEAST32): Likewise.
6804         [C99-based-standards] (SCNiLEAST32): Likewise.
6805         [C99-based-standards] (SCNoLEAST32): Likewise.
6806         [C99-based-standards] (SCNuLEAST32): Likewise.
6807         [C99-based-standards] (SCNxLEAST32): Likewise.
6808         [C99-based-standards] (PRIdFAST32): Likewise.
6809         [C99-based-standards] (PRIiFAST32): Likewise.
6810         [C99-based-standards] (PRIoFAST32): Likewise.
6811         [C99-based-standards] (PRIuFAST32): Likewise.
6812         [C99-based-standards] (PRIxFAST32): Likewise.
6813         [C99-based-standards] (PRIXFAST32): Likewise.
6814         [C99-based-standards] (SCNdFAST32): Likewise.
6815         [C99-based-standards] (SCNiFAST32): Likewise.
6816         [C99-based-standards] (SCNoFAST32): Likewise.
6817         [C99-based-standards] (SCNuFAST32): Likewise.
6818         [C99-based-standards] (SCNxFAST32): Likewise.
6819         [C99-based-standards] (PRId64): Likewise.
6820         [C99-based-standards] (PRIi64): Likewise.
6821         [C99-based-standards] (PRIo64): Likewise.
6822         [C99-based-standards] (PRIu64): Likewise.
6823         [C99-based-standards] (PRIx64): Likewise.
6824         [C99-based-standards] (PRIX64): Likewise.
6825         [C99-based-standards] (SCNd64): Likewise.
6826         [C99-based-standards] (SCNi64): Likewise.
6827         [C99-based-standards] (SCNo64): Likewise.
6828         [C99-based-standards] (SCNu64): Likewise.
6829         [C99-based-standards] (SCNx64): Likewise.
6830         [C99-based-standards] (PRIdLEAST64): Likewise.
6831         [C99-based-standards] (PRIiLEAST64): Likewise.
6832         [C99-based-standards] (PRIoLEAST64): Likewise.
6833         [C99-based-standards] (PRIuLEAST64): Likewise.
6834         [C99-based-standards] (PRIxLEAST64): Likewise.
6835         [C99-based-standards] (PRIXLEAST64): Likewise.
6836         [C99-based-standards] (SCNdLEAST64): Likewise.
6837         [C99-based-standards] (SCNiLEAST64): Likewise.
6838         [C99-based-standards] (SCNoLEAST64): Likewise.
6839         [C99-based-standards] (SCNuLEAST64): Likewise.
6840         [C99-based-standards] (SCNxLEAST64): Likewise.
6841         [C99-based-standards] (PRIdFAST64): Likewise.
6842         [C99-based-standards] (PRIiFAST64): Likewise.
6843         [C99-based-standards] (PRIoFAST64): Likewise.
6844         [C99-based-standards] (PRIuFAST64): Likewise.
6845         [C99-based-standards] (PRIxFAST64): Likewise.
6846         [C99-based-standards] (PRIXFAST64): Likewise.
6847         [C99-based-standards] (SCNdFAST64): Likewise.
6848         [C99-based-standards] (SCNiFAST64): Likewise.
6849         [C99-based-standards] (SCNoFAST64): Likewise.
6850         [C99-based-standards] (SCNuFAST64): Likewise.
6851         [C99-based-standards] (SCNxFAST64): Likewise.
6852         [C99-based-standards] (PRIdMAX): Likewise.
6853         [C99-based-standards] (PRIiMAX): Likewise.
6854         [C99-based-standards] (PRIoMAX): Likewise.
6855         [C99-based-standards] (PRIuMAX): Likewise.
6856         [C99-based-standards] (PRIxMAX): Likewise.
6857         [C99-based-standards] (PRIXMAX): Likewise.
6858         [C99-based-standards] (SCNdMAX): Likewise.
6859         [C99-based-standards] (SCNiMAX): Likewise.
6860         [C99-based-standards] (SCNoMAX): Likewise.
6861         [C99-based-standards] (SCNuMAX): Likewise.
6862         [C99-based-standards] (SCNxMAX): Likewise.
6863         [C99-based-standards] (PRIdPTR): Likewise.
6864         [C99-based-standards] (PRIiPTR): Likewise.
6865         [C99-based-standards] (PRIoPTR): Likewise.
6866         [C99-based-standards] (PRIuPTR): Likewise.
6867         [C99-based-standards] (PRIxPTR): Likewise.
6868         [C99-based-standards] (PRIXPTR): Likewise.
6869         [C99-based-standards] (SCNdPTR): Likewise.
6870         [C99-based-standards] (SCNiPTR): Likewise.
6871         [C99-based-standards] (SCNoPTR): Likewise.
6872         [C99-based-standards] (SCNuPTR): Likewise.
6873         [C99-based-standards] (SCNxPTR): Likewise.
6874         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
6875         allow.
6876         * conform/data/stdint.h-data: Update comments to clarify
6877         requirements.
6878         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
6879         type.
6880         [C99-based standards] (INT8_MAX): Likewise.
6881         [C99-based standards] (INT16_MIN): Likewise.
6882         [C99-based standards] (INT16_MAX): Likewise.
6883         [C99-based standards] (INT32_MIN): Likewise.
6884         [C99-based standards] (INT32_MAX): Likewise.
6885         [C99-based standards] (INT64_MIN): Likewise.
6886         [C99-based standards] (INT64_MAX): Likewise.
6887         [C99-based standards] (UINT8_MAX): Likewise.
6888         [C99-based standards] (UINT16_MAX): Likewise.
6889         [C99-based standards] (UINT32_MAX): Likewise.
6890         [C99-based standards] (UINT64_MAX): Likewise.
6891         [C99-based standards] (INT_LEAST8_MIN): Likewise.
6892         [C99-based standards] (INT_LEAST8_MAX): Likewise.
6893         [C99-based standards] (INT_LEAST16_MIN): Likewise.
6894         [C99-based standards] (INT_LEAST16_MAX): Likewise.
6895         [C99-based standards] (INT_LEAST32_MIN): Likewise.
6896         [C99-based standards] (INT_LEAST32_MAX): Likewise.
6897         [C99-based standards] (INT_LEAST64_MIN): Likewise.
6898         [C99-based standards] (INT_LEAST64_MAX): Likewise.
6899         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
6900         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
6901         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
6902         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
6903         [C99-based standards] (INT_FAST8_MIN): Likewise.
6904         [C99-based standards] (INT_FAST8_MAX): Likewise.
6905         [C99-based standards] (INT_FAST16_MIN): Likewise.
6906         [C99-based standards] (INT_FAST16_MAX): Likewise.
6907         [C99-based standards] (INT_FAST32_MIN): Likewise.
6908         [C99-based standards] (INT_FAST32_MAX): Likewise.
6909         [C99-based standards] (INT_FAST64_MIN): Likewise.
6910         [C99-based standards] (INT_FAST64_MAX): Likewise.
6911         [C99-based standards] (UINT_FAST8_MAX): Likewise.
6912         [C99-based standards] (UINT_FAST16_MAX): Likewise.
6913         [C99-based standards] (UINT_FAST32_MAX): Likewise.
6914         [C99-based standards] (UINT_FAST64_MAX): Likewise.
6915         [C99-based standards] (INTPTR_MIN): Likewise.
6916         [C99-based standards] (INTPTR_MAX): Likewise.
6917         [C99-based standards] (UINTPTR_MAX): Likewise.
6918         [C99-based standards] (INTMAX_MIN): Likewise.
6919         [C99-based standards] (INTMAX_MAX): Likewise.
6920         [C99-based standards] (UINTMAX_MAX): Likewise.
6921         [C99-based standards] (PTRDIFF_MIN): Likewise.
6922         [C99-based standards] (PTRDIFF_MAX): Likewise.
6923         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
6924         [C99-based standards] (SIZE_MAX): Likewise.
6925         [C99-based standards] (WCHAR_MAX): Likewise.
6926         [C99-based standards] (WINT_MAX): Likewise.
6927         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
6928         constraint on value.
6929         [C99-based standards] (WCHAR_MIN): Likewise.
6930         [C99-based standards] (WINT_MIN): Likewise.
6931         [C99-based standards] (*_t): Allow.
6932         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
6933         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
6934         Include math.h-data and complex.h-data.  Remove all expectations
6935         of math.h and complex.h contents.
6936         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
6937         at end of line.
6938         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
6939         (struct tm): Expect tag.
6940         [C99-based-standards] (wcstof): Expect function.
6941         [C99-based-standards] (wcstold): Likewise.
6942         [C99-based-standards] (wcstoll): Likewise.
6943         [C99-based-standards] (wcstoull): Likewise.
6944         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
6945         macro-int-constant.  Specify type.
6946         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
6947         constraint on value.
6948         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
6949         Specify type.
6950         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
6951         Specify value.
6952         [ISO C standards]: Do not allow headers.
6953         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
6954         wcs[abcdefghijklmnopqrstuvwxyz]*.
6955         [ISO C standards] (*_t): Do not allow.
6956         * conform/data/wctype.h-data [C99-based standards] (iswblank):
6957         Expect function.
6958         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
6959         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
6960         Specify type.
6961         [ISO C standards]: Do not allow headers.
6962         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
6963         is[abcdefghijklmnopqrstuvwxyz]*.
6964         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
6965         to[abcdefghijklmnopqrstuvwxyz]*.
6966         [ISO C standards] (*_t): Do not allow.
6967         * conform/data/stdalign.h-data: New file.
6968         * conform/data/stdbool.h-data: Likewise.
6969         * conform/data/stdnoreturn.h-data: Likewise.
6970
6971 2012-11-07  Roland McGrath  <roland@hack.frob.com>
6972
6973         [BZ #14815]
6974         * manual/filesys.texi (Directory Entries): Typo fix.
6975         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
6976
6977 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
6978
6979         * elf/elf.h (EM_AARCH64): New macro.
6980         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
6981         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
6982         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
6983         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
6984         (R_AARCH64_TLSDESC): Likewise.
6985         (NT_ARM_TLS): Likewise.
6986         (NT_ARM_HW_BREAK): Likewise.
6987         (NT_ARM_HW_WATCH): Likewise.
6988
6989 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
6990
6991         [BZ #14811]
6992         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
6993         (__ieee754_powl): Saturate nonzero exponents with absolute value
6994         below 0x1p-79 to +/- 0x1p-79.
6995         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
6996         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
6997         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
6998         nonzero exponents with absolute value below 0x1p-32 to +/-
6999         0x1p-32.
7000         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
7001         (__ieee754_powl): Saturate nonzero exponents with absolute value
7002         below 0x1p-79 to +/- 0x1p-79.
7003         * math/libm-test.inc (pow_test): Add more tests.
7004
7005 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7006
7007         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
7008         _dl_s390_cap_flags with kernel. Increase string length.
7009         (_dl_s390_platforms): Add z196 and zEC12.
7010
7011 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
7012
7013         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
7014         Change XOPEN21K to XOPEN2K.
7015
7016 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
7017
7018         * string/memmove.c: Use memcpy when possible.
7019
7020 2012-11-06  Andreas Jaeger  <aj@suse.de>
7021
7022         * po/eo.po: Update from translation team.
7023
7024 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
7025
7026         [BZ #14793]
7027         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
7028         exponent and small x and y exponents, scale x or y up.  Increase
7029         by 2 the exponent used in scaling up.
7030         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
7031         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
7032         * math/libm-test.inc (fma_test): Add more tests.
7033         (fma_test_towardzero): Likewise.
7034         (fma_test_downward): Likewise.
7035         (fma_test_upward): Likewise.
7036
7037 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
7038
7039         [BZ #14805]
7040         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
7041         fenv_t *.
7042
7043         [BZ #14801]
7044         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
7045         namespace for names of struct fields.
7046         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
7047         fenv_t fields.
7048         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
7049         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
7050
7051 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7052
7053         [BZ #3665]
7054         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
7055
7056 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
7057
7058         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
7059         PTR_DEMANGLE.
7060
7061         [BZ #5246]
7062         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
7063         PTR_DEMANGLE.
7064
7065 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
7066
7067         [BZ #14797]
7068         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
7069         definitely overflow as x * y not x * y + z.
7070         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
7071         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
7072         * math/libm-test.inc (fma_test): Add more tests.
7073         (fma_test_towardzero): Likewise.
7074         (fma_test_downward): Likewise.
7075         (fma_test_upward): Likewise.
7076
7077 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
7078
7079         [BZ #157]
7080
7081         * include/stub-tag.h: Remove file.
7082         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
7083         '#include' of it.
7084         * manual/maint.texi (Porting): Don't reference it.
7085         * Makerules ($(objpfx)stubs): Likewise.
7086         * dirent/closedir.c: Don't include <stub-tag.h>.
7087         * dirent/dirfd.c: Likewise.
7088         * dirent/fdopendir.c: Likewise.
7089         * dirent/getdents.c: Likewise.
7090         * dirent/getdents64.c: Likewise.
7091         * dirent/opendir.c: Likewise.
7092         * dirent/readdir.c: Likewise.
7093         * dirent/readdir64.c: Likewise.
7094         * dirent/readdir64_r.c: Likewise.
7095         * dirent/readdir_r.c: Likewise.
7096         * dirent/rewinddir.c: Likewise.
7097         * dirent/seekdir.c: Likewise.
7098         * dirent/telldir.c: Likewise.
7099         * gmon/profil.c: Likewise.
7100         * grp/setgroups.c: Likewise.
7101         * inet/if_index.c: Likewise.
7102         * io/access.c: Likewise.
7103         * io/chdir.c: Likewise.
7104         * io/chmod.c: Likewise.
7105         * io/chown.c: Likewise.
7106         * io/close.c: Likewise.
7107         * io/dup.c: Likewise.
7108         * io/dup2.c: Likewise.
7109         * io/dup3.c: Likewise.
7110         * io/euidaccess.c: Likewise.
7111         * io/faccessat.c: Likewise.
7112         * io/fchdir.c: Likewise.
7113         * io/fchmod.c: Likewise.
7114         * io/fchmodat.c: Likewise.
7115         * io/fchown.c: Likewise.
7116         * io/fchownat.c: Likewise.
7117         * io/fcntl.c: Likewise.
7118         * io/flock.c: Likewise.
7119         * io/fstatfs.c: Likewise.
7120         * io/fstatfs64.c: Likewise.
7121         * io/fstatvfs.c: Likewise.
7122         * io/fstatvfs64.c: Likewise.
7123         * io/futimens.c: Likewise.
7124         * io/fxstat.c: Likewise.
7125         * io/fxstat64.c: Likewise.
7126         * io/fxstatat.c: Likewise.
7127         * io/fxstatat64.c: Likewise.
7128         * io/getcwd.c: Likewise.
7129         * io/isatty.c: Likewise.
7130         * io/lchmod.c: Likewise.
7131         * io/lchown.c: Likewise.
7132         * io/link.c: Likewise.
7133         * io/linkat.c: Likewise.
7134         * io/lseek.c: Likewise.
7135         * io/lseek64.c: Likewise.
7136         * io/lxstat64.c: Likewise.
7137         * io/mkdir.c: Likewise.
7138         * io/mkdirat.c: Likewise.
7139         * io/mkfifo.c: Likewise.
7140         * io/mkfifoat.c: Likewise.
7141         * io/open.c: Likewise.
7142         * io/open64.c: Likewise.
7143         * io/openat.c: Likewise.
7144         * io/openat64.c: Likewise.
7145         * io/pipe.c: Likewise.
7146         * io/pipe2.c: Likewise.
7147         * io/poll.c: Likewise.
7148         * io/posix_fadvise.c: Likewise.
7149         * io/posix_fadvise64.c: Likewise.
7150         * io/posix_fallocate.c: Likewise.
7151         * io/posix_fallocate64.c: Likewise.
7152         * io/read.c: Likewise.
7153         * io/readlink.c: Likewise.
7154         * io/readlinkat.c: Likewise.
7155         * io/rmdir.c: Likewise.
7156         * io/sendfile.c: Likewise.
7157         * io/sendfile64.c: Likewise.
7158         * io/statfs.c: Likewise.
7159         * io/statfs64.c: Likewise.
7160         * io/statvfs.c: Likewise.
7161         * io/statvfs64.c: Likewise.
7162         * io/symlink.c: Likewise.
7163         * io/symlinkat.c: Likewise.
7164         * io/ttyname.c: Likewise.
7165         * io/ttyname_r.c: Likewise.
7166         * io/umask.c: Likewise.
7167         * io/unlink.c: Likewise.
7168         * io/unlinkat.c: Likewise.
7169         * io/utime.c: Likewise.
7170         * io/utimensat.c: Likewise.
7171         * io/write.c: Likewise.
7172         * io/xmknod.c: Likewise.
7173         * io/xmknodat.c: Likewise.
7174         * io/xstat.c: Likewise.
7175         * io/xstat64.c: Likewise.
7176         * login/getpt.c: Likewise.
7177         * login/grantpt.c: Likewise.
7178         * login/unlockpt.c: Likewise.
7179         * math/e_acoshl.c: Likewise.
7180         * math/e_acosl.c: Likewise.
7181         * math/e_asinl.c: Likewise.
7182         * math/e_atan2l.c: Likewise.
7183         * math/e_atanhl.c: Likewise.
7184         * math/e_coshl.c: Likewise.
7185         * math/e_expl.c: Likewise.
7186         * math/e_fmodl.c: Likewise.
7187         * math/e_gammal_r.c: Likewise.
7188         * math/e_hypotl.c: Likewise.
7189         * math/e_j0l.c: Likewise.
7190         * math/e_j1l.c: Likewise.
7191         * math/e_jnl.c: Likewise.
7192         * math/e_lgammal_r.c: Likewise.
7193         * math/e_log10l.c: Likewise.
7194         * math/e_log2l.c: Likewise.
7195         * math/e_logl.c: Likewise.
7196         * math/e_powl.c: Likewise.
7197         * math/e_rem_pio2l.c: Likewise.
7198         * math/e_sinhl.c: Likewise.
7199         * math/e_sqrtl.c: Likewise.
7200         * math/fclrexcpt.c: Likewise.
7201         * math/fedisblxcpt.c: Likewise.
7202         * math/feenablxcpt.c: Likewise.
7203         * math/fegetenv.c: Likewise.
7204         * math/fegetexcept.c: Likewise.
7205         * math/fegetround.c: Likewise.
7206         * math/feholdexcpt.c: Likewise.
7207         * math/fesetenv.c: Likewise.
7208         * math/fesetround.c: Likewise.
7209         * math/feupdateenv.c: Likewise.
7210         * math/fgetexcptflg.c: Likewise.
7211         * math/fraiseexcpt.c: Likewise.
7212         * math/fsetexcptflg.c: Likewise.
7213         * math/ftestexcept.c: Likewise.
7214         * math/k_cosl.c: Likewise.
7215         * math/k_rem_pio2l.c: Likewise.
7216         * math/k_sinl.c: Likewise.
7217         * math/k_tanl.c: Likewise.
7218         * math/s_asinhl.c: Likewise.
7219         * math/s_atanl.c: Likewise.
7220         * math/s_cbrtl.c: Likewise.
7221         * math/s_erfl.c: Likewise.
7222         * math/s_expm1l.c: Likewise.
7223         * math/s_log1pl.c: Likewise.
7224         * math/s_tanhl.c: Likewise.
7225         * misc/acct.c: Likewise.
7226         * misc/brk.c: Likewise.
7227         * misc/chflags.c: Likewise.
7228         * misc/chroot.c: Likewise.
7229         * misc/fchflags.c: Likewise.
7230         * misc/fgetxattr.c: Likewise.
7231         * misc/flistxattr.c: Likewise.
7232         * misc/fremovexattr.c: Likewise.
7233         * misc/fsetxattr.c: Likewise.
7234         * misc/fsync.c: Likewise.
7235         * misc/ftruncate.c: Likewise.
7236         * misc/futimes.c: Likewise.
7237         * misc/futimesat.c: Likewise.
7238         * misc/getdomain.c: Likewise.
7239         * misc/getdtsz.c: Likewise.
7240         * misc/gethostid.c: Likewise.
7241         * misc/gethostname.c: Likewise.
7242         * misc/getloadavg.c: Likewise.
7243         * misc/getpagesize.c: Likewise.
7244         * misc/getsysstats.c: Likewise.
7245         * misc/getxattr.c: Likewise.
7246         * misc/gtty.c: Likewise.
7247         * misc/ioctl.c: Likewise.
7248         * misc/lgetxattr.c: Likewise.
7249         * misc/listxattr.c: Likewise.
7250         * misc/llistxattr.c: Likewise.
7251         * misc/lremovexattr.c: Likewise.
7252         * misc/lsetxattr.c: Likewise.
7253         * misc/lutimes.c: Likewise.
7254         * misc/madvise.c: Likewise.
7255         * misc/mincore.c: Likewise.
7256         * misc/mlock.c: Likewise.
7257         * misc/mlockall.c: Likewise.
7258         * misc/mmap.c: Likewise.
7259         * misc/mprotect.c: Likewise.
7260         * misc/msync.c: Likewise.
7261         * misc/munlock.c: Likewise.
7262         * misc/munlockall.c: Likewise.
7263         * misc/munmap.c: Likewise.
7264         * misc/preadv.c: Likewise.
7265         * misc/preadv64.c: Likewise.
7266         * misc/ptrace.c: Likewise.
7267         * misc/pwritev.c: Likewise.
7268         * misc/pwritev64.c: Likewise.
7269         * misc/readv.c: Likewise.
7270         * misc/reboot.c: Likewise.
7271         * misc/remap_file_pages.c: Likewise.
7272         * misc/removexattr.c: Likewise.
7273         * misc/revoke.c: Likewise.
7274         * misc/select.c: Likewise.
7275         * misc/setdomain.c: Likewise.
7276         * misc/setegid.c: Likewise.
7277         * misc/seteuid.c: Likewise.
7278         * misc/sethostid.c: Likewise.
7279         * misc/sethostname.c: Likewise.
7280         * misc/setregid.c: Likewise.
7281         * misc/setreuid.c: Likewise.
7282         * misc/setxattr.c: Likewise.
7283         * misc/sstk.c: Likewise.
7284         * misc/stty.c: Likewise.
7285         * misc/swapoff.c: Likewise.
7286         * misc/swapon.c: Likewise.
7287         * misc/sync.c: Likewise.
7288         * misc/syncfs.c: Likewise.
7289         * misc/syscall.c: Likewise.
7290         * misc/truncate.c: Likewise.
7291         * misc/ualarm.c: Likewise.
7292         * misc/usleep.c: Likewise.
7293         * misc/ustat.c: Likewise.
7294         * misc/utimes.c: Likewise.
7295         * misc/vhangup.c: Likewise.
7296         * misc/writev.c: Likewise.
7297         * posix/_exit.c: Likewise.
7298         * posix/alarm.c: Likewise.
7299         * posix/execve.c: Likewise.
7300         * posix/fexecve.c: Likewise.
7301         * posix/fork.c: Likewise.
7302         * posix/fpathconf.c: Likewise.
7303         * posix/getaddrinfo.c: Likewise.
7304         * posix/getegid.c: Likewise.
7305         * posix/geteuid.c: Likewise.
7306         * posix/getgid.c: Likewise.
7307         * posix/getgroups.c: Likewise.
7308         * posix/getlogin.c: Likewise.
7309         * posix/getlogin_r.c: Likewise.
7310         * posix/getpgid.c: Likewise.
7311         * posix/getpid.c: Likewise.
7312         * posix/getppid.c: Likewise.
7313         * posix/getresgid.c: Likewise.
7314         * posix/getresuid.c: Likewise.
7315         * posix/getsid.c: Likewise.
7316         * posix/getuid.c: Likewise.
7317         * posix/glob64.c: Likewise.
7318         * posix/nanosleep.c: Likewise.
7319         * posix/pathconf.c: Likewise.
7320         * posix/pause.c: Likewise.
7321         * posix/posix_madvise.c: Likewise.
7322         * posix/pread.c: Likewise.
7323         * posix/pread64.c: Likewise.
7324         * posix/pwrite.c: Likewise.
7325         * posix/pwrite64.c: Likewise.
7326         * posix/sched_getaffinity.c: Likewise.
7327         * posix/sched_getp.c: Likewise.
7328         * posix/sched_gets.c: Likewise.
7329         * posix/sched_primax.c: Likewise.
7330         * posix/sched_primin.c: Likewise.
7331         * posix/sched_rr_gi.c: Likewise.
7332         * posix/sched_setaffinity.c: Likewise.
7333         * posix/sched_setp.c: Likewise.
7334         * posix/sched_sets.c: Likewise.
7335         * posix/sched_yield.c: Likewise.
7336         * posix/setgid.c: Likewise.
7337         * posix/setlogin.c: Likewise.
7338         * posix/setpgid.c: Likewise.
7339         * posix/setresgid.c: Likewise.
7340         * posix/setresuid.c: Likewise.
7341         * posix/setsid.c: Likewise.
7342         * posix/setuid.c: Likewise.
7343         * posix/sleep.c: Likewise.
7344         * posix/spawni.c: Likewise.
7345         * posix/sysconf.c: Likewise.
7346         * posix/times.c: Likewise.
7347         * posix/wait.c: Likewise.
7348         * posix/wait3.c: Likewise.
7349         * posix/wait4.c: Likewise.
7350         * posix/waitpid.c: Likewise.
7351         * resolv/gai_sigqueue.c: Likewise.
7352         * resource/getpriority.c: Likewise.
7353         * resource/getrlimit.c: Likewise.
7354         * resource/getrusage.c: Likewise.
7355         * resource/nice.c: Likewise.
7356         * resource/setpriority.c: Likewise.
7357         * resource/setrlimit.c: Likewise.
7358         * resource/ulimit.c: Likewise.
7359         * rt/aio_cancel.c: Likewise.
7360         * rt/aio_fsync.c: Likewise.
7361         * rt/aio_read.c: Likewise.
7362         * rt/aio_sigqueue.c: Likewise.
7363         * rt/aio_suspend.c: Likewise.
7364         * rt/aio_write.c: Likewise.
7365         * rt/clock_getres.c: Likewise.
7366         * rt/clock_gettime.c: Likewise.
7367         * rt/clock_nanosleep.c: Likewise.
7368         * rt/clock_settime.c: Likewise.
7369         * rt/lio_listio.c: Likewise.
7370         * rt/mq_close.c: Likewise.
7371         * rt/mq_getattr.c: Likewise.
7372         * rt/mq_notify.c: Likewise.
7373         * rt/mq_open.c: Likewise.
7374         * rt/mq_receive.c: Likewise.
7375         * rt/mq_send.c: Likewise.
7376         * rt/mq_setattr.c: Likewise.
7377         * rt/mq_timedreceive.c: Likewise.
7378         * rt/mq_timedsend.c: Likewise.
7379         * rt/mq_unlink.c: Likewise.
7380         * rt/shm_open.c: Likewise.
7381         * rt/shm_unlink.c: Likewise.
7382         * rt/timer_create.c: Likewise.
7383         * rt/timer_delete.c: Likewise.
7384         * rt/timer_getoverr.c: Likewise.
7385         * rt/timer_gettime.c: Likewise.
7386         * rt/timer_settime.c: Likewise.
7387         * setjmp/__longjmp.c: Likewise.
7388         * setjmp/setjmp.c: Likewise.
7389         * signal/kill.c: Likewise.
7390         * signal/killpg.c: Likewise.
7391         * signal/raise.c: Likewise.
7392         * signal/sigaction.c: Likewise.
7393         * signal/sigaltstack.c: Likewise.
7394         * signal/sigblock.c: Likewise.
7395         * signal/sigignore.c: Likewise.
7396         * signal/sigintr.c: Likewise.
7397         * signal/signal.c: Likewise.
7398         * signal/sigpause.c: Likewise.
7399         * signal/sigpending.c: Likewise.
7400         * signal/sigqueue.c: Likewise.
7401         * signal/sigreturn.c: Likewise.
7402         * signal/sigset.c: Likewise.
7403         * signal/sigsetmask.c: Likewise.
7404         * signal/sigstack.c: Likewise.
7405         * signal/sigsuspend.c: Likewise.
7406         * signal/sigtimedwait.c: Likewise.
7407         * signal/sigvec.c: Likewise.
7408         * signal/sigwait.c: Likewise.
7409         * signal/sigwaitinfo.c: Likewise.
7410         * signal/sysv_signal.c: Likewise.
7411         * socket/accept.c: Likewise.
7412         * socket/accept4.c: Likewise.
7413         * socket/bind.c: Likewise.
7414         * socket/connect.c: Likewise.
7415         * socket/getpeername.c: Likewise.
7416         * socket/getsockname.c: Likewise.
7417         * socket/getsockopt.c: Likewise.
7418         * socket/isfdtype.c: Likewise.
7419         * socket/listen.c: Likewise.
7420         * socket/recv.c: Likewise.
7421         * socket/recvfrom.c: Likewise.
7422         * socket/recvmsg.c: Likewise.
7423         * socket/send.c: Likewise.
7424         * socket/sendmsg.c: Likewise.
7425         * socket/sendto.c: Likewise.
7426         * socket/setsockopt.c: Likewise.
7427         * socket/shutdown.c: Likewise.
7428         * socket/sockatmark.c: Likewise.
7429         * socket/socket.c: Likewise.
7430         * socket/socketpair.c: Likewise.
7431         * stdio-common/ctermid.c: Likewise.
7432         * stdio-common/cuserid.c: Likewise.
7433         * stdio-common/remove.c: Likewise.
7434         * stdio-common/rename.c: Likewise.
7435         * stdio-common/renameat.c: Likewise.
7436         * stdio-common/tempname.c: Likewise.
7437         * stdlib/getcontext.c: Likewise.
7438         * stdlib/makecontext.c: Likewise.
7439         * stdlib/setcontext.c: Likewise.
7440         * stdlib/swapcontext.c: Likewise.
7441         * stdlib/system.c: Likewise.
7442         * streams/fattach.c: Likewise.
7443         * streams/fdetach.c: Likewise.
7444         * streams/getmsg.c: Likewise.
7445         * streams/getpmsg.c: Likewise.
7446         * streams/putmsg.c: Likewise.
7447         * streams/putpmsg.c: Likewise.
7448         * sysdeps/unix/bsd/getpt.c: Likewise.
7449         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
7450         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
7451         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
7452         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
7453         Likewise.
7454         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
7455         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
7456         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
7457         * sysvipc/msgctl.c: Likewise.
7458         * sysvipc/msgget.c: Likewise.
7459         * sysvipc/msgrcv.c: Likewise.
7460         * sysvipc/msgsnd.c: Likewise.
7461         * sysvipc/semctl.c: Likewise.
7462         * sysvipc/semget.c: Likewise.
7463         * sysvipc/semop.c: Likewise.
7464         * sysvipc/semtimedop.c: Likewise.
7465         * sysvipc/shmat.c: Likewise.
7466         * sysvipc/shmctl.c: Likewise.
7467         * sysvipc/shmdt.c: Likewise.
7468         * sysvipc/shmget.c: Likewise.
7469         * termios/tcdrain.c: Likewise.
7470         * termios/tcflow.c: Likewise.
7471         * termios/tcflush.c: Likewise.
7472         * termios/tcgetattr.c: Likewise.
7473         * termios/tcgetpgrp.c: Likewise.
7474         * termios/tcsendbrk.c: Likewise.
7475         * termios/tcsetattr.c: Likewise.
7476         * termios/tcsetpgrp.c: Likewise.
7477         * time/adjtime.c: Likewise.
7478         * time/clock.c: Likewise.
7479         * time/getitimer.c: Likewise.
7480         * time/gettimeofday.c: Likewise.
7481         * time/setitimer.c: Likewise.
7482         * time/settimeofday.c: Likewise.
7483         * time/stime.c: Likewise.
7484         * time/time.c: Likewise.
7485
7486 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
7487
7488         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
7489         /usr/old/bin.
7490
7491         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
7492         instead of spaces.
7493         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
7494
7495 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
7496
7497         [BZ #14796]
7498         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
7499         FE_TONEAREST before applying Dekker multiplication and Knuth
7500         addition.  Clear inexact exceptions and check for exact zero
7501         results afterwards.
7502         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
7503         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
7504         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
7505         * math/libm-test.inc (fma_test): Add more tests.
7506         (fma_test_towardzero): Likewise.
7507         (fma_test_downward): Likewise.
7508         (fma_test_upward): Likewise.
7509         * sysdeps/generic/math_private.h (default_libc_fesetround): New
7510         function.
7511         (libc_fesetround): New macro.
7512         (libc_fesetroundf): Likewise.
7513         (libc_fesetroundl): Likewise.
7514         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
7515         function.
7516         (libc_fesetround_387): Likewise.
7517         (libc_fesetroundf): New macro.
7518         (libc_fesetround): Likewise.
7519         (libc_fesetroundl): Likewise.
7520         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
7521         function.
7522         (libc_fesetroundf): New macro.
7523         (libc_fesetround): Likewise.
7524         (libc_fesetroundl): Likewise.
7525         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
7526         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
7527         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
7528         libm_hidden_ver.
7529         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
7530         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
7531         libm_hidden_def.
7532         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
7533         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
7534         libm_hidden_ver.
7535         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
7536         libm_hidden_def.
7537
7538         [BZ #3439]
7539         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
7540         integer constant usable in #if and use that to give value to enum
7541         constant.
7542         (FE_DIVBYZERO): Likewise.
7543         (FE_UNDERFLOW): Likewise.
7544         (FE_OVERFLOW): Likewise.
7545         (FE_INVALID): Likewise.
7546         (FE_INVALID_SNAN): Likewise.
7547         (FE_INVALID_ISI): Likewise.
7548         (FE_INVALID_IDI): Likewise.
7549         (FE_INVALID_ZDZ): Likewise.
7550         (FE_INVALID_IMZ): Likewise.
7551         (FE_INVALID_COMPARE): Likewise.
7552         (FE_INVALID_SOFTWARE): Likewise.
7553         (FE_INVALID_SQRT): Likewise.
7554         (FE_INVALID_INTEGER_CONVERSION): Likewise.
7555         (FE_TONEAREST): Likewise.
7556         (FE_TOWARDZERO): Likewise.
7557         (FE_UPWARD): Likewise.
7558         (FE_DOWNWARD): Likewise.
7559         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
7560         (FE_DIVBYZERO): Likewise.
7561         (FE_OVERFLOW): Likewise.
7562         (FE_UNDERFLOW): Likewise.
7563         (FE_INEXACT): Likewise.
7564         (FE_TONEAREST): Likewise.
7565         (FE_DOWNWARD): Likewise.
7566         (FE_UPWARD): Likewise.
7567         (FE_TOWARDZERO): Likewise.
7568         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
7569         (FE_UNDERFLOW): Likewise.
7570         (FE_OVERFLOW): Likewise.
7571         (FE_DIVBYZERO): Likewise.
7572         (FE_INVALID): Likewise.
7573         (FE_TONEAREST): Likewise.
7574         (FE_TOWARDZERO): Likewise.
7575         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
7576         (FE_OVERFLOW): Likewise.
7577         (FE_UNDERFLOW): Likewise.
7578         (FE_DIVBYZERO): Likewise.
7579         (FE_INEXACT): Likewise.
7580         (FE_TONEAREST): Likewise.
7581         (FE_TOWARDZERO): Likewise.
7582         (FE_UPWARD): Likewise.
7583         (FE_DOWNWARD): Likewise.
7584         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
7585         (FE_DIVBYZERO): Likewise.
7586         (FE_OVERFLOW): Likewise.
7587         (FE_UNDERFLOW): Likewise.
7588         (FE_INEXACT): Likewise.
7589         (FE_TONEAREST): Likewise.
7590         (FE_DOWNWARD): Likewise.
7591         (FE_UPWARD): Likewise.
7592         (FE_TOWARDZERO): Likewise.
7593
7594 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
7595
7596         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
7597
7598 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
7599
7600         * scripts/cross-test-ssh.sh (command): Use newlines to separate
7601         commands.  Quote $PWD.
7602         (blacklist_exports): Don't use remove_newlines.  Replace "declare
7603         -x" by "export".
7604         (remove_newlines): Remove.
7605
7606 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
7607
7608         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
7609         * stdlib/stdlib.h (atof): Moved to ...
7610         * include/bits/stdlib-float.h: Here.  New file.
7611         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
7612         * stdlib/bits/stdlib-float.h: New file.
7613         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
7614         -mno-sse -mno-mmx.
7615         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
7616         <xmmintrin.h>.
7617
7618 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
7619
7620         * conform/conformtest.pl (@headers): Add fenv.h.
7621         * conform/data/fenv.h-data: New file.
7622         * include/fenv.h [_ISOMAC]: Disable all contents of file except
7623         include of <math/fenv.h>.
7624
7625         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
7626         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
7627         && !UNIX98].  Enables tests for XOPEN2K8.
7628         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
7629         POSIX2008]: Likewise.
7630
7631         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
7632         (struct rusage): Do not expect type or its members.
7633
7634         [BZ #3439]
7635         * math/math.h (FP_NAN): Define macro to integer constant usable in
7636         #if and use that to give value to enum constant.
7637         (FP_INFINITE): Likewise.
7638         (FP_ZERO): Likewise.
7639         (FP_SUBNORMAL): Likewise.
7640         (FP_NORMAL): Likewise.
7641
7642 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
7643
7644         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
7645         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
7646         arguments.
7647
7648 2012-11-02  Roland McGrath  <roland@hack.frob.com>
7649
7650         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
7651         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
7652         autoconf-time if not.
7653         * configure.in: Remove AC_PREREQ.
7654
7655 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
7656
7657         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
7658         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
7659         of the internal implementation.
7660
7661 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
7662
7663         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
7664         except include of <misc/sys/syslog.h>.
7665
7666 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
7667
7668         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
7669         function returns with a NULL context exit with zero.
7670
7671 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
7672
7673         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
7674
7675 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
7676
7677         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
7678         (run_program_cmd): This.
7679         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
7680         (tst_langinfo): New variable.  Use it.
7681
7682 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
7683
7684         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
7685         floating point opcodes.
7686
7687 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
7688
7689         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
7690         variable.
7691
7692         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
7693
7694         * sysdeps/mach/hurd/powerpc: Remove directory.
7695         * sysdeps/mach/powerpc: Likewise.
7696
7697 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
7698
7699         * scripts/check-local-headers.sh: Ignore c++ headers.
7700
7701 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
7702
7703         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
7704         __libc_cleanup_region_start argument.
7705
7706 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
7707
7708         [BZ #14784]
7709         [BZ #14785]
7710         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
7711         x * y using scaling, not as x * y + z.
7712         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
7713         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
7714         * math/libm-test.inc (fma_test): Add more tests.
7715         (fma_test_towardzero): Likewise.
7716         (fma_test_downward): Likewise.
7717         (fma_test_upward): Likewise.
7718
7719 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
7720
7721         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
7722
7723 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
7724
7725         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
7726         New variable.
7727
7728 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
7729
7730         * rt/tst-shm.c (worker): Correct checking for mmap failure.
7731
7732 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
7733
7734         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
7735         Fix sort order.
7736         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
7737         Likewise.
7738
7739 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
7740
7741         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
7742         Fix the order of the list for glibc 2.17.
7743         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
7744         Likewise.
7745
7746 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
7747
7748         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7749
7750 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
7751
7752         [BZ #14610]
7753         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
7754         for low part of x being zero before using __atanl (y).
7755         * math/libm-test.inc (atan2_test): Add another test.
7756
7757         * manual/install.texi (Configuring and compiling): Document
7758         general use of test-wrapper and test-wrapper-env.
7759         * INSTALL: Regenerated.
7760
7761         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
7762         (__fma): Do not extract and scale down low bits on after-rounding
7763         systems when result rounded to normal precision would have normal
7764         exponent.
7765         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
7766         (__fmal): Do not extract and scale down low bits on after-rounding
7767         systems when result rounded to normal precision would have normal
7768         exponent.
7769         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
7770         (__fmal): Do not extract and scale down low bits on after-rounding
7771         systems when result rounded to normal precision would have normal
7772         exponent.
7773         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
7774         macro.
7775         (fma_test): Add more tests.
7776         (fma_test_towardzero): Likewise.
7777         (fma_test_downward): Likewise.
7778         (fma_test_upward): Likewise.
7779
7780 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
7781
7782         * sysdeps/i386/tininess.h: Renamed to ...
7783         * sysdeps/x86/tininess.h: This.
7784         * sysdeps/x86_64/tininess.h: Removed.
7785
7786 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
7787
7788         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
7789         input.  Use $(build-program-cmd).
7790         ($(objpfx)tst-array1-static.out): Likewise.
7791         ($(objpfx)tst-array2.out): Likewise.
7792         ($(objpfx)tst-array3.out): Likewise.
7793         ($(objpfx)tst-array4.out): Likewise.
7794         ($(objpfx)tst-array5.out): Likewise.
7795         ($(objpfx)tst-array5-static.out): Likewise.
7796
7797 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
7798
7799         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
7800         if defined.
7801
7802         * nss/nsswitch.h (nss_interface_function): Provide new
7803         macro for use with NSS functions.
7804         * grp/initgroups.c: Use new macro.
7805         * nss/getXXbyYY.c: Likewise.
7806         * nss/getXXbyYY_r.c: Likewise.
7807         * nss/getXXent.c: Likewise.
7808         * nss/getXXent_r.c: Likewise.
7809         * sysdeps/posix/getaddrinfo.c: Likewise.
7810
7811 2012-10-30  Andreas Jaeger  <aj@suse.de>
7812
7813         * po/ru.po: Update Russion translation from translation project.
7814
7815 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
7816
7817         [BZ #14152]
7818         [BZ #14783]
7819         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
7820         result and shift together with sticky bit instead of replicating
7821         round-to-nearest rounding.
7822         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
7823         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
7824         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
7825         missing underflow exceptions.
7826         (fma_test_towardzero): Add more tests.
7827         (fma_test_downward): Likewise.
7828         (fma_test_upward): Likewise.
7829
7830         [BZ #14047]
7831         * sysdeps/generic/tininess.h: New file.
7832         * sysdeps/i386/tininess.h: Likewise.
7833         * sysdeps/sh/tininess.h: Likewise.
7834         * sysdeps/x86_64/tininess.h: Likewise.
7835         * stdlib/tst-strtod-underflow.c: Likewise.
7836         * stdlib/tst-tininess.c: Likewise.
7837         * stdlib/strtod_l.c: Include <tininess.h>.
7838         (round_and_return): Do not set errno for exact underflow cases.
7839         Force an underflow exception when setting errno for underflow.
7840         Determine underflow based on rounding to normal precision if
7841         TININESS_AFTER_ROUNDING.
7842         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
7843         ERANGE for exact underflow cases.
7844         * stdlib/Makefile (tests): Add tst-tininess and
7845         tst-strtod-underflow.
7846         ($(objpfx)tst-tininess): Use $(link-libm).
7847         ($(objpfx)tst-strtod-underflow): Likewise.
7848
7849 2012-10-30  Andreas Jaeger  <aj@suse.de>
7850
7851         [BZ#14767]
7852         * elf/Makefile (tests): Remove conditional for have-initfini-array
7853         since this is now always required and the variable does not exist
7854         anymore.
7855         (tests-static): Likewise.
7856         (modules-names): Likewise.
7857
7858         * po/eo.po: Add Esperanto translation from translation project.
7859
7860         * elf/tst-array1.c (fini_array): Make writeable so that it can be
7861         merged with constructor/destructor.
7862         (init_array): Likewise.
7863         * elf/tst-array2dep.c (fini_array): Likewise.
7864         (init_array): Likewise.
7865
7866 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
7867
7868         * manual/message.texi: Delete @cartouche tags.
7869
7870 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
7871
7872         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
7873         EOPNOTSUPP.
7874         * sysdeps/mach/hurd/fsync.c: Likewise.
7875
7876         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
7877         [_POSIX_REALTIME_SIGNALS]: Change condition to
7878         [_POSIX_REALTIME_SIGNALS > 0].
7879
7880 2012-10-27  Andreas Jaeger  <aj@suse.de>
7881
7882         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
7883         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
7884         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
7885         [__WORDSIZE != 64]: Likewise.
7886
7887 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
7888
7889         *  iconvdata/tst-table.sh: Remove ${SHELL}.
7890         *  iconvdata/tst-tables.sh: Likewise.
7891
7892 2012-10-25  David S. Miller  <davem@davemloft.net>
7893
7894         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
7895         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
7896         of strtoull.
7897
7898         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
7899         ifunc-impl-list.c
7900         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
7901         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
7902         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
7903         file.
7904
7905 2012-10-25  Roland McGrath  <roland@hack.frob.com>
7906
7907         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
7908         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
7909         __getdirentries.
7910
7911 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
7912             Jim Blandy  <jimb@codesourcery.com>
7913
7914         * scripts/cross-test-ssh.sh: New file.
7915         * manual/install.texi (Configuring and compiling): Document use of
7916         cross-test-ssh.sh.
7917         * INSTALL: Regenerated.
7918
7919 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
7920
7921         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
7922         EOPNOTSUPP.
7923
7924 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
7925
7926         * Makeconfig (run-program-prefix): Fix comment.
7927
7928 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
7929             Jim Blandy  <jimb@codesourcery.com>
7930
7931         * Makeconfig (test-wrapper): New variable,
7932         (test-wrapper-env): Likewise.
7933         [$(cross-compiling) = yes && $(test-wrapper) != ""]
7934         (run-built-tests): Define to yes.
7935         (run-program-prefix): Use $(test-wrapper).
7936         (built-program-cmd): Likewise.
7937         * Rules (make-test-out): Use $(test-wrapper-env) and
7938         $(host-built-program-cmd).
7939         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
7940         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
7941         tst-pathopt.sh.
7942         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
7943         $(test-wrapper-env) to tst-rtld-load-self.sh.
7944         ($(objpfx)order2.out): Use $(test-wrapper).
7945         ($(objpfx)tst-initorder.out): Likewise.
7946         ($(objpfx)tst-initorder2.out): Likewise.
7947         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
7948         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
7949         (test_wrapper_env): New variable.  Use it to run ld.so.
7950         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
7951         Use it to run ld.so.
7952         (test_wrapper_env): Likewise.
7953         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
7954         $(test-wrapper) to run-iconv-test.sh.
7955         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
7956         (ICONV): Use $test_wrapper.
7957         * posix/Makefile ($(objpfx)globtest.out): Pass
7958         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
7959         globtest.sh, not $(run-program-prefix).
7960         * posix/globtest.sh (run_via_rtld_prefix): New variable.
7961         (test_wrapper): Likewise.
7962         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
7963         set together with run_via_rtld_prefix.
7964         (run_program_prefix): Define in terms of test_wrapper and
7965         run_via_rtld_prefix.
7966
7967 2012-10-24  Roland McGrath  <roland@hack.frob.com>
7968
7969         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
7970         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
7971         Targets removed.
7972
7973         [BZ #14743]
7974         * include/time.h: Remove librt_hidden_proto (clock_gettime).
7975         Declare __clock_getres, __clock_gettime, __clock_settime,
7976         __clock_nanosleep, and __clock_getcpuclockid.
7977         * rt/clock_gettime.c: Define __clock_gettime as an alias.
7978         Remove librt_hidden_def (clock_gettime).
7979         * sysdeps/unix/clock_gettime.c: Likewise.
7980         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
7981         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
7982         * rt/clock_getres.c: Define __clock_getres as an alias.
7983         * sysdeps/posix/clock_getres.c: Likewise.
7984         * rt/clock_settime.c: Define __clock_settime as an alias.
7985         * sysdeps/unix/clock_settime.c: Likewise.
7986         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
7987         * sysdeps/unix/clock_nanosleep.c: Likewise.
7988         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
7989         * rt/clock-compat.c: New file.
7990         * rt/Makefile (librt-routines): Add clock-compat and move
7991         $(clock-routines) to ...
7992         (routines): ... here, new variable.
7993         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
7994         Don't add get_clockfreq here.
7995         * rt/Versions (libc: GLIBC_2.17): New version set.
7996         Add clock_* symbols here.
7997         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
7998         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
7999         (GLIBC_2.17): Add clock_* symbols.
8000         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
8001         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
8002         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
8003         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
8004         Likewise.
8005         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
8006         Likewise.
8007         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
8008         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
8009         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
8010         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
8011         * NEWS: Mention the move.
8012
8013         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
8014         Use __open, __read, __close rather than their public counterparts.
8015         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
8016         (__get_clockfreq_via_cpuinfo): Likewise.
8017         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
8018         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
8019
8020         * config.h.in (HAVE_IFUNC): New #undef.
8021         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
8022         was successful.
8023         * configure: Regenerated.
8024
8025 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
8026
8027         * configure.in: Move READELF check to start of file.
8028         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
8029         libc_cv_asm_gnu_indirect_function in the process.
8030         * configure: Regenerated.
8031
8032 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
8033
8034         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
8035         send the output to /dev/null.
8036         (libc_cv_cc_with_libunwind): Likewise.
8037         (libc_cv_as_noexecstack): Likewise.
8038         * configure: Regenerate.
8039
8040 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
8041
8042         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
8043
8044         * posix/globtest.sh (TMPDIR): Do not set.
8045         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
8046         (testout): Likewise.
8047
8048 2012-10-24  Andreas Jaeger  <aj@suse.de>
8049
8050         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
8051         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
8052         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
8053         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
8054         posix_fadvise64, posix_fallocate64.
8055
8056         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
8057         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
8058         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
8059         Likewise.
8060         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
8061         Likewise.
8062         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
8063
8064         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
8065         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
8066         <bits/fcntl-linux.h>.
8067         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
8068
8069         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
8070         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
8071         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
8072         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
8073         [__WORDSIZE != 64]: Likewise.
8074
8075 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
8076
8077         * Makeconfig (run-built-tests): New variable.
8078         * Rules [$(cross-compiling) = yes]: Change condition to
8079         [$(run-built-tests) = no].
8080         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
8081         to [$(run-built-tests) = yes].
8082         * elf/Makefile [$(cross-compiling) = no]: Likewise
8083         * grp/Makefile [$(cross-compiling) = no]: Likewise.
8084         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
8085         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
8086         * intl/Makefile [$(cross-compiling) = no]: Likewise.
8087         * io/Makefile [$(cross-compiling) = no]: Likewise.
8088         * libio/Makefile [$(cross-compiling) = no]: Likewise.
8089         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
8090         * misc/Makefile [$(cross-compiling) = no]: Likewise.
8091         * posix/Makefile [$(cross-compiling) = no]: Likewise.
8092         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
8093         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
8094         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
8095         * string/Makefile [$(cross-compiling) = no]: Likewise.
8096
8097         * posix/Makefile ($(objpfx)globtest.out): Pass
8098         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
8099         $(rtld-installed-name).
8100         * posix/globtest.sh (elf_objpfx): Remove variable.
8101         (rtld_installed_name): Likewise.
8102         (library_path): Likewise.
8103         (run_program_prefix): New variable.  Use for running globtest
8104         binary.
8105
8106 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
8107             Joseph Myers  <joseph@codesourcery.com>
8108
8109         * Makeconfig (host-built-program-cmd): New variable.
8110         * elf/Makefile (tst-stackguard1-ARGS): Use
8111         $(host-built-program-cmd).
8112         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
8113         (tst-spawn-ARGS): Likewise.
8114         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
8115
8116 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
8117             Jim Blandy  <jimb@codesourcery.com>
8118
8119         * Makeconfig (run-via-rtld-prefix): New variable.
8120         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
8121         (built-program-cmd): Likewise.
8122
8123 2012-10-22  Andreas Jaeger  <aj@suse.de>
8124
8125         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
8126         __O_RSYNC if it exists, otherwise to O_SYNC.
8127
8128 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
8129             Joseph Myers  <joseph@codesourcery.com>
8130
8131         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
8132         /dev/null.
8133         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
8134         from /dev/null
8135         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
8136         /dev/null.
8137
8138 2012-10-22  Andreas Jaeger  <aj@suse.de>
8139
8140         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
8141         Define always.
8142         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
8143
8144         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8145         bits/fcntl-linux.h.
8146
8147         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
8148         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
8149
8150         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
8151         to __O_LARGEFILE.
8152         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
8153         to __O_LARGEFILE.
8154
8155 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
8156             Joseph Myers  <joseph@codesourcery.com>
8157
8158         * config.make.in (NM): New variable.
8159
8160 2012-10-21  Andreas Jaeger  <aj@suse.de>
8161
8162         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
8163         definitions and declarations that are provided by
8164         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
8165
8166 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
8167
8168         [BZ #14683]
8169         * elf/Makefile (tests-static): Add tst-leaks1-static.
8170         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
8171         ($(objpfx)tst-leaks1-static): New rule.
8172         ($(objpfx)tst-leaks1-static-mem): Likewise.
8173         (tst-leaks1-static-ENV): New macro.
8174         * elf/dl-open.c (dl_open_worker): Check the main application
8175         only if SHARED is defined.
8176         * elf/tst-leaks1-static.c: New file.
8177
8178 2012-10-20  Andreas Jaeger  <aj@suse.de>
8179
8180         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
8181         generic values for Linux.
8182         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
8183         and declarations that are provided by <bits/fcntl-linux.h> and
8184         include <bits/fcntl-linux.h>.
8185         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8186         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
8187
8188 2012-10-20  Roland McGrath  <roland@hack.frob.com>
8189
8190         * io/fcntl.h: Move include of <bits/types.h> to the top and
8191         include it unconditionally.
8192
8193 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
8194
8195         * wcsmbs/Makefile (tests-ifunc): New variable.
8196         (tests): Add $(tests-ifunc).
8197         * wcsmbs/test-wcschr-ifunc.c: New file.
8198         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
8199         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
8200         * wcsmbs/test-wcslen-ifunc.c: Likewise.
8201         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
8202         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
8203
8204         * string/Makefile (tests-ifunc): New variable.
8205         (tests): Add $(tests-ifunc).
8206         * string/test-memccpy.c (TEST_NAME): New macro.
8207         * string/test-memchr.c (TEST_NAME): Likewise.
8208         * string/test-memcmp.c (TEST_NAME): Likewise.
8209         * string/test-memcpy.c (TEST_NAME): Likewise.
8210         * string/test-memmem.c (TEST_NAME): Likewise.
8211         * string/test-memmove.c (TEST_NAME): Likewise.
8212         * string/test-memset.c (TEST_NAME): Likewise.
8213         * string/test-rawmemchr.c (TEST_NAME): Likewise.
8214         * string/test-stpcpy.c (TEST_NAME): Likewise.
8215         * string/test-stpncpy.c (TEST_NAME): Likewise.
8216         * string/test-strcasecmp.c (TEST_NAME): Likewise.
8217         * string/test-strcasestr.c (TEST_NAME): Likewise.
8218         * string/test-strcat.c (TEST_NAME): Likewise.
8219         * string/test-strchr.c (TEST_NAME): Likewise.
8220         * string/test-strcmp.c(TEST_NAME): Likewise.
8221         * string/test-strcpy.c (TEST_NAME): Likewise.
8222         * string/test-strcspn.c (TEST_NAME): Likewise.
8223         * string/test-strlen.c (TEST_NAME): Likewise.
8224         * string/test-strncasecmp.c (TEST_NAME): Likewise.
8225         * string/test-strncmp.c (TEST_NAME): Likewise.
8226         * string/test-strncpy.c (TEST_NAME): Likewise.
8227         * string/test-strnlen.c (TEST_NAME): Likewise.
8228         * string/test-strpbrk.c (TEST_NAME): Likewise.
8229         * string/test-strrchr.c (TEST_NAME): Likewise.
8230         * string/test-strspn.c (TEST_NAME): Likewise.
8231         * string/test-strstr.c (TEST_NAME): Likewise.
8232         * string/test-bcopy-ifunc.c: New file.
8233         * string/test-bzero-ifunc.c: Likewise.
8234         * string/test-memccpy-ifunc.c: Likewise.
8235         * string/test-memchr-ifunc.c: Likewise.
8236         * string/test-memcmp-ifunc.c: Likewise.
8237         * string/test-memcpy-ifunc.c: Likewise.
8238         * string/test-memmem-ifunc.c: Likewise.
8239         * string/test-memmove-ifunc.c: Likewise.
8240         * string/test-mempcpy-ifunc.c: Likewise.
8241         * string/test-memset-ifunc.c: Likewise.
8242         * string/test-rawmemchr-ifunc.c: Likewise.
8243         * string/test-stpcpy-ifunc.c: Likewise.
8244         * string/test-stpncpy-ifunc.c: Likewise.
8245         * string/test-strcasecmp-ifunc.c: Likewise.
8246         * string/test-strcasestr-ifunc.c: Likewise.
8247         * string/test-strcat-ifunc.c: Likewise.
8248         * string/test-strchr-ifunc.c: Likewise.
8249         * string/test-strchrnul-ifunc.c: Likewise.
8250         * string/test-strcmp-ifunc.c: Likewise.
8251         * string/test-strcpy-ifunc.c: Likewise.
8252         * string/test-strcspn-ifunc.c: Likewise.
8253         * string/test-strlen-ifunc.c: Likewise.
8254         * string/test-strncasecmp-ifunc.c: Likewise.
8255         * string/test-strncat-ifunc.c: Likewise.
8256         * string/test-strncmp-ifunc.c: Likewise.
8257         * string/test-strncpy-ifunc.c: Likewise.
8258         * string/test-strnlen-ifunc.c: Likewise.
8259         * string/test-strpbrk-ifunc.c: Likewise.
8260         * string/test-strrchr-ifunc.c: Likewise.
8261         * string/test-strspn-ifunc.c: Likewise.
8262         * string/test-strstr-ifunc.c: Likewise.
8263
8264         * debug/Makefile (tests-ifunc): New variable.
8265         (tests): Add $(tests-ifunc).
8266         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
8267         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
8268         * debug/test-stpcpy_chk-ifunc.c: New file.
8269         * debug/test-strcpy_chk-ifunc.c: Likewise.
8270
8271 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
8272
8273         [BZ #13601]
8274         * elf/dl-load.c (open_verify): Retry read if the entire ELF
8275         header is not read in.
8276
8277 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
8278
8279         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
8280         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
8281         directly.  Pass built executable to script as
8282         $(built-program-cmd).
8283         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
8284         $testprogram without using LD_LIBRARY_PATH and $ldso.
8285
8286         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
8287         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
8288         $(rtld-installed-name).
8289         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
8290         (rtld_installed_name): Likewise.
8291         (library_path): Likewise.
8292         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
8293         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
8294         $(run-program-prefix) to tst-tables.sh.
8295         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
8296         it to run tst-table-from and tst-table-to.
8297         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
8298         Pass it to tst-table.sh.
8299         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
8300         $(run-program-prefix) to tst-gettext.sh.
8301         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
8302         tst-translit.sh.
8303         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
8304         tst-gettext2.sh.
8305         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
8306         to run tst-gettext.
8307         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
8308         to run tst-gettext2.
8309         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
8310         to run tst-translit.
8311         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
8312         $(run-program-prefix) to tst-mtrace.sh.
8313         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
8314         to run tst-mtrace.
8315         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
8316         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
8317         $(rtld-installed-name).
8318         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
8319         (rtld_installed_name): Likewise.
8320         (run_program_prefix): New variable.  Use it to run wordexp-test.
8321
8322         * Makeconfig (ARCH): Remove all definitions.
8323         (machine): Likewise.
8324         [ARCH]: Remove conditional code.
8325         [!objdir]: Give error.
8326         [!objdir] (objpfx): Remove.
8327         [!objdir] (common-objpfx): Likewise.
8328         [!objdir] (common-objdir): Likewise.
8329         * configure.in (config_makefile): Remove.  Hardcode Makefile in
8330         AC_CONFIG_FILES call.
8331         * configure: Regenerated.
8332
8333         [BZ #13888]
8334         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
8335         or TMPDIR.
8336         (testout): Likewise.
8337
8338         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
8339         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
8340         $(rtld-installed-name).
8341         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
8342         (rtld_installed_name): Likwise.
8343         (runit): Remove function.
8344         (run_getconf): New variable,  Use it for running getconf binary.
8345
8346 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
8347
8348         [BZ #14716]
8349         * string/test-memmem.c (check_result): New function.
8350         (do_one_test): Use it.
8351         (check1): New function.
8352         (test_main): Use it.
8353
8354 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
8355
8356         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
8357
8358 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
8359
8360         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
8361         (_G_LSEEK64): Likewise.
8362         (_G_MMAP64): Likewise.
8363         (_G_FSTAT64): Likewise.
8364         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
8365         (_G_LSEEK64): Likewise.
8366         (_G_MMAP64): Likewise.
8367         (_G_FSTAT64): Likewise.
8368         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
8369         unconditional.  Call __mmap64 directly.
8370         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
8371         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
8372         __lseek64 directly.
8373         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
8374         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
8375         __mmap64 directly.
8376         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
8377         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
8378         __lseek64 directly.
8379         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
8380         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
8381         __lseek64 directly.
8382         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
8383         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
8384         __lseek64 directly.
8385         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
8386         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
8387         __fxstat64 directly.
8388         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
8389         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
8390         unconditional.
8391         (freopen64) [!_G_OPEN64]: Remove conditional code.
8392         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
8393         unconditional.
8394         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
8395         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
8396         unconditional.
8397         (ftello64) [!_G_LSEEK64]: Remove conditional code.
8398         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
8399         unconditional.
8400         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
8401         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
8402         unconditional.
8403         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
8404         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
8405         unconditional.
8406         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
8407         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
8408         unconditional.
8409         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
8410         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
8411         unconditional.
8412         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
8413
8414 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
8415
8416         [BZ #12140]
8417         * manual/memory.texi (Malloc Tunable Parameters): Add note
8418         about free list pointers overwriting some perturb bytes.
8419         Wording suggested by Roland McGrath.
8420
8421 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
8422
8423         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
8424         (lgamma_test): Likewise.
8425         (tgamma_test): Likewise.
8426
8427 2012-10-16  Florian Weimer  <fweimer@redhat.com>
8428
8429         [BZ #14700]
8430         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
8431         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
8432
8433 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
8434
8435         * NEWS: Mention BZ #14716.
8436         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
8437         when removing AVAILABLE1_USES_J macro.
8438
8439 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
8440
8441         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
8442         (__bswap_64): __uint64_t for unsigned 64-bit int.
8443
8444 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
8445
8446         * include/string.h (memmem): Declare libc hidden alias.
8447         * string/memmem.c (memmem): Define libc hidden alias.
8448         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
8449         __read, __close instead of open, read, close.
8450
8451 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
8452
8453         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
8454         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
8455         global and hidden.
8456         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
8457         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
8458         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
8459         Likewise.
8460         (__rawmemchr_sse2): Likewise.
8461         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
8462         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
8463         (__strchr_sse2): Likewise.
8464         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
8465         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
8466         (__strcasecmp_sse2): Likewise.
8467         (__strncasecmp_sse2): Likewise.
8468         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
8469         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
8470         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
8471         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
8472         (__strrchr_sse2): Likewise.
8473         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
8474         ifunc-impl-list.c.
8475         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
8476         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
8477         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
8478         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
8479         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
8480         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
8481         * sysdeps/x86_64/multiarch/memset.S: Likewise.
8482         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
8483         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
8484         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
8485         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
8486         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
8487         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
8488         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
8489         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
8490         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
8491         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
8492         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
8493         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
8494         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
8495         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
8496         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
8497         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
8498         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
8499         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
8500         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
8501         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
8502         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
8503         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
8504         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
8505
8506         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
8507         global and hidden.
8508         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
8509         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
8510         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
8511         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
8512         Likewise.
8513         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
8514         Likewise.
8515         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
8516         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
8517         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
8518         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
8519         ifunc-impl-list.c.
8520         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
8521         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
8522         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
8523         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
8524         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
8525         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
8526         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
8527         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
8528         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
8529         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
8530         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
8531         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
8532         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
8533         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
8534         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
8535         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
8536         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
8537         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
8538         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
8539         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
8540         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
8541         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
8542         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
8543         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
8544         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
8545         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
8546         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
8547         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
8548         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
8549         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
8550         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
8551         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
8552         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
8553         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
8554         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
8555         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
8556         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
8557         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
8558         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
8559         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
8560         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
8561
8562         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
8563         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
8564         * include/ifunc-impl-list.h: New file.
8565         * misc/ifunc-impl-list.c: Likewise.
8566         * misc/Makefile (routines): Add ifunc-impl-list.
8567         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
8568         * string/test-string.h: Include <ifunc-impl-list.h>.
8569         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
8570         impl_array): New variables.
8571         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
8572         are defined.
8573         (test_init): Call __libc_ifunc_impl_list to initialize
8574         func_list if TEST_IFUNC and TEST_NAME are defined.
8575
8576         * string/Makefile (strop-tests): Add bcopy and bzero.
8577         * string/test-bcopy.c: New file.
8578         * string/test-bzero.c: Likewise.
8579         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
8580         defined.
8581         * string/test-memset.c: Support bzero test if TEST_BZERO is
8582         defined.
8583         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
8584         __libc_memmove.
8585         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
8586         __libc_memset.
8587         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
8588         of memset.
8589
8590 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
8591
8592         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
8593         * configure: Regenerated.
8594
8595         * Makeconfig (+link-static-before-libc): Don't include
8596         $(link-static-libc).
8597
8598         * libio/libio.h (_IO_pos_t): Remove.
8599
8600 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
8601
8602         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
8603         McGrath.
8604
8605 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
8606
8607         * crypt/crypt-entry.c: Include fips-private.h.
8608         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
8609         * crypt/md5c-test.c (main): Tolerate disabled MD5.
8610         * sysdeps/unix/sysv/linux/fips-private.h: New file.
8611         * sysdeps/generic/fips-private.h: New file, dummy fallback.
8612
8613 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
8614
8615         * crypt/crypt-private.h: Include stdbool.h.
8616         (_ufc_setup_salt_r): Return bool.
8617         * crypt/crypt-entry.c: Include errno.h.
8618         (__crypt_r): Return NULL with EINVAL for bad salt.
8619         * crypt/crypt_util.c (bad_for_salt): New.
8620         (_ufc_setup_salt_r): Check that salt is long enough and within
8621         the specified alphabet.
8622         * crypt/badsalttest.c: New file.
8623         * crypt/Makefile (tests): Add it.
8624         ($(objpfx)badsalttest): New.
8625
8626 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
8627
8628         * NEWS: Add entry for BZ #14602.
8629
8630 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
8631
8632         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
8633         type-generic.
8634         * math/libm-test.inc: Update comment listing what functions and
8635         macros are tested.
8636         (isgreater_test): New function.
8637         (isgreaterequal_test): Likewise.
8638         (isless_test): Likewise.
8639         (islessequal_test): Likewise.
8640         (islessgreater_test): Likewise.
8641         (isunordered_test): Likewise.
8642         (main): Call the new functions.
8643
8644 2012-10-09  Roland McGrath  <roland@hack.frob.com>
8645
8646         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
8647         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
8648         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
8649         * sysdeps/i386/configure: Regenerated.
8650         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
8651         * sysdeps/mach/configure: Regenerated.
8652         * sysdeps/mach/hurd/configure: Regenerated.
8653         * sysdeps/powerpc/configure: Regenerated.
8654         * sysdeps/powerpc/powerpc32/configure: Regenerated.
8655         * sysdeps/powerpc/powerpc64/configure: Regenerated.
8656         * sysdeps/s390/s390-32/configure: Regenerated.
8657         * sysdeps/s390/s390-64/configure: Regenerated.
8658         * sysdeps/sh/configure: Regenerated.
8659         * sysdeps/sparc/configure: Regenerated.
8660         * sysdeps/unix/sysv/linux/configure: Regenerated.
8661         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
8662         * sysdeps/x86_64/configure: Regenerated.
8663
8664         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
8665         defined.  Don't check if MAP is NULL.
8666
8667 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
8668
8669         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
8670         (_G_stat64): Likewise.
8671         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
8672         (_G_stat64): Likewise.
8673         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
8674         instead of struct _G_stat64.
8675         * libio/fileops.c (mmap_remap_check): Likewise.
8676         (decide_maybe_mmap): Likewise.
8677         (_IO_new_file_seekoff): Likewise.
8678         (_IO_file_stat): Likewise.
8679         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
8680         _G_off64_t.
8681         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
8682         instead of struct _G_stat64.
8683         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
8684
8685 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
8686
8687         [BZ #14602]
8688         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
8689         Replace with ...
8690         (CHECK_EOL): New macro.
8691         (two_way_short_needle): Check beginning of haystack for EOL.  Use
8692         CHECK_EOL.
8693         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
8694         Replace with CHECK_EOL.
8695         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
8696         Replace with CHECK_EOL.
8697
8698 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
8699
8700         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
8701         type-generic.
8702         * math/libm-test.inc: Update comment listing what functions and
8703         macros are tested.
8704         (finite_test): New function.
8705         (isinf_test): Likewise.
8706         (isnan_test): Likewise.
8707         (fpclassify_test): Test subnormal input.
8708         (isfinite_test): Likewise.
8709         (isnormal_test): Likewise.
8710         (main): Call the new functions.
8711
8712 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
8713
8714         [BZ #14660]
8715         * Makerules (%.dynsym): Force C locale when running
8716         $(OBJDUMP) --dynamic-syms.
8717
8718 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
8719
8720         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
8721         <stdint.h>.
8722
8723 2012-10-06  David S. Miller  <davem@davemloft.net>
8724
8725         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
8726         upper 32-bits of the length value in %o2 since we use branch-on-register
8727         tests which consider the entire 64-bit register.
8728
8729 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
8730
8731         * string/test-strstr.c (check2): Add a test for page boundary.
8732
8733 2012-10-05  David S. Miller  <davem@davemloft.net>
8734
8735         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
8736         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
8737         file.
8738         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
8739         sysdep_routines.
8740         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
8741         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
8742         and bzero when HWCAP_SPARC_CRYPTO is present.
8743
8744 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
8745
8746         [BZ #14602]
8747         * string/test-strstr.c (check2): New function.
8748         (test_main): Call check2.
8749
8750         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
8751         and bug-strchr1.
8752         * string/bug-strcasestr1.c (do_test): Moved to ...
8753         * string/test-strcasestr.c (check1): Here.  New function.
8754         (do_one_test): Break out result checking code into ...
8755         (check_result): This.  New function.
8756         (do_one_test): Call check_result.
8757         (test_main): Call check1.
8758         * string/bug-strchr1.c (do_test): Moved to ...
8759         * string/test-strchr.c (check1): Here.  New function.
8760         (do_one_test): Break out result checking code into ...
8761         (check_result): This.  New function.
8762         (do_one_test): Call check_result.
8763         (test_main): Call check1.
8764         * string/bug-strstr1.c (main): Moved to ...
8765         * string/test-strstr.c (check1): Here.  New function.
8766         (do_one_test): Break out result checking code into ...
8767         (check_result): This.  New function.
8768         (do_one_test): Call check_result.
8769         (test_main): Call check1.
8770         * string/bug-strcasestr1.c: Removed.
8771         * string/bug-strchr1.c: Likewise.
8772         * string/bug-strstr1.c: Likewise.
8773
8774         * elf/Makefile (dl-routines): Add hwcaps.
8775         * elf/dl-support.c (_dl_important_hwcaps): Removed.
8776         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
8777         (_dl_important_hwcaps): Moved to ...
8778         * elf/dl-hwcaps.c: Here.  New file.
8779         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
8780
8781         [BZ #14557]
8782         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
8783         if IS_IN_rtld isn't defined.
8784
8785         * elf/dl-support.c (_dl_sysinfo_map): New.
8786         Include "get-dynamic-info.h" and "setup-vdso.h".
8787         (_dl_non_dynamic_init): Call setup_vdso.
8788         * elf/dynamic-link.h: Don't include <assert.h>.
8789         (elf_get_dynamic_info): Moved to ...
8790         * elf/get-dynamic-info.h: Here.  New file.
8791         * elf/dynamic-link.h: Include "get-dynamic-info.h".
8792         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
8793         * elf/setup-vdso.h: Here.  New file.
8794         * elf/rtld.c: Include "setup-vdso.h".
8795         (dl_main): Call setup_vdso.
8796
8797 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
8798
8799         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
8800         creal in comment listing functions tested.  List finite, isinf,
8801         isnan, isless, islessequal, isgreater, isgreaterequal,
8802         islessgreater, isunordered, lgamma_r and pow10 as functions and
8803         macros not tested.  Mention which functions not tested are aliases
8804         for other functions.  Fix typo.  Note that signs of NaNs are not
8805         tested.
8806
8807         * scripts/config.guess: Update from config.git.
8808         * scripts/config.sub: Likewise.
8809
8810 2012-10-04  Roland McGrath  <roland@hack.frob.com>
8811
8812         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
8813         * misc/madvise.c (madvise): Renamed to __madvise.
8814         Make madvise a weak alias.
8815         * include/sys/mman.h: Declare __madvise.
8816         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
8817         * sysdeps/unix/syscalls.list
8818         (madvise): Make __madvise the strong name, and madvise a weak alias.
8819         * sysdeps/unix/sysv/linux/syscalls.list
8820         (madvise, mmap): Remove redundant entries.
8821         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
8822         * malloc/malloc.c (mtrim): Likewise.
8823         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
8824
8825 2012-10-03  Roland McGrath  <roland@hack.frob.com>
8826
8827         * sysdeps/mach/hurd/dl-cache.c: File removed.
8828         * config.h.in (USE_LDCONFIG): New #undef.
8829         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
8830         * configure: Regenerated.
8831         * elf/Makefile (dl-routines): Add dl-cache only under
8832         [$(use-ldconfig) = yes].
8833         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
8834         cache on [USE_LDCONFIG].
8835         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
8836         [USE_LDCONFIG].
8837         * elf/rtld.c (dl_main): Likewise.
8838
8839 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
8840
8841         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
8842         _SC_LEVEL4_CACHE_LINESIZE.
8843
8844 2012-10-03  Roland McGrath  <roland@hack.frob.com>
8845
8846         * sysdeps/unix/bsd/confstr.h: File removed.
8847
8848 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
8849
8850         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
8851         sys/sdt-config.h.
8852
8853 2012-10-02  Roland McGrath  <roland@hack.frob.com>
8854
8855         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
8856         Make 'mapoff' field ElfW(Off) rather than off_t.
8857
8858 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
8859
8860         * nscd/Makefile: Remove nscd-cflags and all its users.
8861         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
8862         (CFLAGS-nonlib): Add compiler flags for nscd modules.
8863
8864         [BZ #10631]
8865         * malloc.c (malloc_printerr): Clarify error message.
8866
8867 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
8868
8869         [BZ #14648]
8870         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
8871         Set bit_FMA_Usable if FMA is supported.
8872         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
8873         macro.
8874         (bit_FMA4_Usable): Updated.
8875         (index_FMA_Usable): New macro.
8876         (CPUID_FMA): Likewise
8877         (HAS_FMA): Defined with bit_FMA_Usable.
8878
8879 2012-10-01  Roland McGrath  <roland@hack.frob.com>
8880
8881         * bits/types.h (__swblk_t): Type removed.
8882         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
8883         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
8884         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
8885         (__SWBLK_T_TYPE): Likewise.
8886         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
8887         (__SWBLK_T_TYPE): Likewise.
8888         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
8889         (__SWBLK_T_TYPE): Likewise.
8890         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
8891         (__SWBLK_T_TYPE): Likewise.
8892
8893 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
8894             Honza Horak <hhorak@redhat.com>
8895
8896         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
8897         (xdr_mapname): Use YPMAXMAP as maxsize.
8898         (xdr_peername): Use YPMAXPEER as maxsize.
8899         (xdr_keydat): Use YPAXRECORD as maxsize.
8900         (xdr_valdat): Use YPMAXRECORD as maxsize.
8901
8902 2012-10-01  Roland McGrath  <roland@hack.frob.com>
8903
8904         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
8905
8906         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
8907         * csu/init-first.c: ... here.
8908         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
8909         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
8910         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
8911         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
8912         * sysdeps/i386/init-first.c: File removed.
8913         * sysdeps/sh/init-first.c: File removed.
8914
8915 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
8916
8917         [BZ #14645]
8918         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
8919         if x * y might underflow to zero and z is zero.
8920         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
8921         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
8922         * math/libm-test.inc (min_subnorm_value): New variable.
8923         (fma_test): Add more tests.
8924         (fma_test_towardzero): Likewise.
8925         (fma_test_downward): Likewise
8926         (fma_test_upward): Likewise.
8927         (initialize): Set min_subnorm_value.
8928
8929 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
8930
8931         [BZ #14638]
8932         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
8933         0 + 0.
8934         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
8935         mode for addition resulting in exact zero.
8936         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
8937         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
8938         exact 0 + 0.
8939         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
8940         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
8941         * math/libm-test.inc (fma_test): Add more tests.
8942         (fma_test_towardzero): New function.
8943         (fma_test_downward): Likewise.
8944         (fma_test_upward): Likewise.
8945         (main): Call the new functions.
8946
8947 2012-09-28  David S. Miller  <davem@davemloft.net>
8948
8949         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
8950
8951 2012-09-28  Roland McGrath  <roland@hack.frob.com>
8952
8953         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
8954         instead of SIGALRM.
8955
8956         * sysdeps/gnu/_G_config.h: Moved to ...
8957         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
8958         * sysdeps/mach/hurd/_G_config.h: Moved to ...
8959         * sysdeps/generic/_G_config.h: ... here.
8960
8961         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
8962
8963         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
8964
8965         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
8966         Conditionalize target on [libnss_test1.so-version].
8967
8968         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
8969
8970         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
8971         (elfobjdir): Move out of conditionals.
8972
8973         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
8974         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
8975         (__nss_lookup_function): Conditionalize label remove_from_tree on
8976         [!DO_STATIC_NSS || SHARED], matching its only use.
8977
8978 2012-09-28  David S. Miller  <davem@davemloft.net>
8979
8980         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
8981         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
8982         file.
8983         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
8984         sysdep_routines.
8985         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
8986         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
8987         when HWCAP_SPARC_CRYPTO is present.
8988
8989 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
8990
8991         * io/tst-mknodat.c: Create a FIFO instead of a socket.
8992
8993 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
8994
8995         [BZ #6530]
8996         * stdio-common/vfprintf.c (process_string_arg): Revert
8997         2000-07-22 change.
8998
8999 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
9000
9001         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
9002         for testcase.
9003         * stdio-common/tst-sprintf.c: Include <locale.h>
9004         (main): Test sprintf's handling of incomplete multibyte
9005         characters.
9006
9007 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
9008
9009         * elf/dl-runtime.c (VERSYMIDX): Removed.
9010         * elf/dl-version.c (VERSYMIDX): Likewise.
9011         * elf/do-rel.h (VERSYMIDX): Likewise.
9012         (VALIDX): Likewise.
9013         * elf/dynamic-link.h (VERSYMIDX): Likewise.
9014         * elf/rtld.c (VALIDX): Likewise.
9015         (ADDRIDX): Likewise.
9016         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
9017         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
9018         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
9019         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
9020         (VALIDX): Likewise.
9021         (ADDRIDX): Likewise.
9022
9023 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
9024
9025         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
9026
9027 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
9028
9029         [BZ #11438]
9030         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
9031         to global scope.
9032         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
9033         addresses are in the same scope as 192.0.2/24.
9034         * posix/gai.conf: Document new scope table defaults.
9035
9036 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
9037
9038         [BZ #5298]
9039         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
9040         for ftell.  Compute offsets from write pointers instead.
9041         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
9042
9043 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
9044
9045         [BZ #14543]
9046         * libio/Makefile (tests): New test case tst-fseek.
9047         * libio/tst-fseek.c: New test case to verify that fseek/ftell
9048         combination works in wide mode.
9049         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
9050         state when the external buffer state changes.
9051
9052 2012-09-27  David S. Miller  <davem@davemloft.net>
9053
9054         [BZ #14376]
9055         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
9056         pass reloc->r_addend in as the 'high' argument to
9057         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
9058
9059         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9060
9061 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
9062
9063         * rt/tst-aio2.c: Include <pthread.h>.
9064         * rt/tst-aio3.c: Likewise.
9065
9066 2012-09-27  Steve Ellcey  <sellcey@mips.com>
9067
9068         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
9069
9070 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
9071
9072         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
9073         contents on [SHARED].
9074
9075 2012-09-26  Marek Polacek  <polacek@redhat.com>
9076
9077         [BZ #14530]
9078         [BZ #13741]
9079         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
9080         for C++ and GCC <4.3 as well as for non GCC compilers.
9081
9082 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
9083
9084         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9085
9086 2012-09-25  Roland McGrath  <roland@hack.frob.com>
9087
9088         * Makefile.in (all, install): Declare with .PHONY.
9089         Reported by Michael Hope <michael.hope@linaro.org>.
9090
9091 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
9092
9093         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
9094         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
9095         system header.
9096         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
9097         Likewise.
9098         (sydep_routines): Add the new and the internal functions.
9099         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
9100         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
9101         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
9102         (GLIBC_2.17): Add the new function.
9103         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
9104         (GLIBC_2.17): Likewise.
9105         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
9106         (GLIBC_2.17): Likewise.
9107         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
9108         (GLIBC_2.17): Likewise.
9109         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
9110
9111 2012-09-25  Alan Modra  <amodra@gmail.com>
9112
9113         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
9114         Add release barrier before setting once_control to say
9115         initialisation is done.  Add hints on lwarx.  Use macro in
9116         place of isync.
9117         (clear_once_control): Add release barrier.
9118
9119 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
9120
9121         [BZ #13629]
9122         * math/s_clog.c (__clog): Handle more values close to |z| = 1
9123         specially.
9124         * math/s_clog10.c (__clog10): Likewise.
9125         * math/s_clog10f.c (__clog10f): Likewise.
9126         * math/s_clog10l.c (__clog10l): Likewise.
9127         * math/s_clogf.c (__clogf): Likewise.
9128         * math/s_clogl.c (__clogl): Likewise.
9129         * math/Makefile (libm-calls): Add x2y2m1.
9130         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
9131         (__x2y2m1): Likewise.
9132         (__x2y2m1l): Likewise.
9133         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
9134         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
9135         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
9136         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
9137         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
9138         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
9139         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
9140         * sysdeps/i386/fpu/libm-test-ulps: Update.
9141         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9142
9143         [BZ #14621]
9144         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
9145         int as type of variable DEPTH.
9146         (glob): Use size_t instead of int as type of variables NEWCOUNT
9147         and OLD_PATHC.
9148
9149 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9150
9151         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
9152         Add s_sincosf-sse2.
9153         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
9154         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
9155         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
9156         macros for using routine as __sincosf_ia32.
9157         Use macro for function declaration and weak_alias.
9158         * sysdeps/i386/fpu/libm-test-ulps: Update.
9159
9160         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
9161         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9162
9163         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
9164         subnormal argument.
9165         * math/s_cexpf.c (__cexpf): Likewise.
9166         * math/s_csinf.c (__csinf): Likewise.
9167         * math/s_csinhf.c (__csinhf): Likewise.
9168         * math/s_ctanf.c (__ctanf): Likewise.
9169         * math/s_ctanhf.c (__ctanhf): Likewise.
9170         * math/s_ccosh.c (__ccoshf): Likewise.
9171         * math/s_cexp.c (__cexpl): Likewise.
9172         * math/s_csin.c (__csin): Likewise.
9173         * math/s_csinh.c (__csinh): Likewise.
9174         * math/s_ctan.c (__ctan): Likewise.
9175         * math/s_ctanh.c (ctanh): Likewise.
9176         * math/s_ccoshl.c (__ccoshl): Likewise.
9177         * math/s_cexpl.c (__cexpl): Likewise.
9178         * math/s_csinl.c (__csinl): Likewise.
9179         * math/s_csinhl.c (__csinhl): Likewise.
9180         * math/s_ctanl.c (__ctanl): Likewise.
9181         * math/s_ctanhl.c (__ctanhl): Likewise.
9182
9183 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
9184
9185         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
9186         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
9187         (_IO_off_t): Define to __off_t, not _G_off_t.
9188         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
9189         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
9190         (_IO_wint_t): Define to wint_t, not _G_wint_t.
9191         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
9192         type of __dummy and __dummy2 fields.
9193         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
9194         (_G_ssize_t): Likewise.
9195         (_G_off_t): Likewise.
9196         (_G_pid_t): Likewise.
9197         (_G_uid_t): Likewise.
9198         (_G_wchar_t): Likewise.
9199         (_G_wint_t): Likewise.
9200         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
9201         (_G_ssize_t): Likewise.
9202         (_G_off_t): Likewise.
9203         (_G_pid_t): Likewise.
9204         (_G_uid_t): Likewise.
9205         (_G_wchar_t): Likewise.
9206         (_G_wint_t): Likewise.
9207         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
9208         (_G_ssize_t): Likewise.
9209         (_G_off_t): Likewise.
9210         (_G_pid_t): Likewise.
9211         (_G_uid_t): Likewise.
9212         (_G_wchar_t): Likewise.
9213         (_G_wint_t): Likewise.
9214
9215 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
9216
9217         * malloc/arena.c: Include malloc-sysdep.h.
9218         (shrink_heap): Use check_may_shrink_heap to decide if madvise
9219         is sufficient to shrink the heap or an unmap is needed.
9220         * sysdeps/generic/malloc-sysdep.h: New file.  Define
9221         new function check_may_shrink_heap.
9222         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
9223         new function check_may_shrink_heap.
9224
9225 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
9226
9227         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
9228         comments.
9229
9230 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
9231
9232         * catgets/test-gencat.sh: Add "set -e".
9233         * elf/tst-pathopt.sh: Likewise.
9234         * grp/tst_fgetgrent.sh: Likewise.
9235         * iconvdata/run-iconv-test.sh: Likewise.
9236         * intl/tst-gettext.sh: Likewise.
9237         * intl/tst-gettext2.sh: Likewise.
9238         * intl/tst-gettext4.sh: Likewise.
9239         * intl/tst-gettext6.sh: Likewise.
9240         * intl/tst-translit.sh: Likewise.
9241         * io/ftwtest-sh: Likewise.
9242         * libio/test-freopen.sh: Likewise.
9243         * malloc/tst-mtrace.sh: Likewise.
9244         * posix/globtest.sh: Likewise.
9245         * posix/tst-getconf.sh: Likewise.
9246         * posix/wordexp-tst.sh: Likewise.
9247         * stdio-common/tst-printf.sh: Likewise.
9248         * stdio-common/tst-unbputc.sh: Likewise.
9249         * stdlib/tst-fmtmsg.sh: Likewise.
9250         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
9251         * catgets/Makefile: Do not specify -e option when running
9252         testsuite shell scripts.
9253         * elf/Makefile: Likewise.
9254         * grp/Makefile: Likewise.
9255         * iconvdata/Makefile: Likewise.
9256         * intl/Makefile: Likewise.
9257         * io/Makefile: Likewise.
9258         * libio/Makefile: Likewise.
9259         * malloc/Makefile: Likewise.
9260         * posix/Makefile: Likewise.
9261         * stdio-common/Makefile: Likewise.
9262         * stdlib/Makefile: Likewise.
9263         * sysdeps/x86_64/Makefile: Likewise.
9264
9265         * io/ftwtest-sh: Add copyright header.
9266         * posix/globtest.sh: Likewise.
9267         * posix/tst-getconf.sh: Likewise.
9268         * posix/wordexp-tst.sh: Likewise.
9269         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
9270
9271 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
9272
9273         [BZ #13679]
9274         * Makeconfig (+link): Defined as $(+link-static) if
9275         $(build-shared) isn't yes.
9276         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
9277         isn't yes.
9278         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
9279
9280         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
9281
9282         [BZ #14562]
9283         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
9284         new chunk size with MALLOC_ALIGN_MASK.
9285
9286 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
9287
9288         [BZ #5044]
9289         * stdio-common/printf_fphex.c: Include <stdbool.h> and
9290         <rounding-mode.h>.
9291         (__printf_fphex): Determine rounding using get_rounding_mode and
9292         round_away.
9293         * stdio-common/tst-printf-round.c (struct hex_test): New
9294         structure.
9295         (hex_tests): New variable.
9296         (test_hex_in_one_mode): New function.
9297         (do_test): Also run tests for hex float output.
9298
9299 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
9300
9301         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
9302         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
9303         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
9304         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
9305         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
9306         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
9307         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
9308         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
9309
9310 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
9311
9312         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
9313         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
9314         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
9315         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
9316
9317 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
9318
9319         [BZ #14579]
9320         * elf/rtld.c (dl_main): Limit the check for self loading to normal
9321         mode only.
9322         * elf/tst-rtld-load-self.sh: New test.
9323         * elf/Makefile: Run it.
9324
9325 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
9326
9327         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
9328         (tst-writev-ENV): Remove.
9329         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
9330
9331 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
9332
9333         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
9334
9335 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
9336
9337         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
9338         unconditional.
9339         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
9340         Likewise.
9341         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
9342         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
9343         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
9344         Likewise.
9345
9346 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
9347
9348         [BZ #14587]
9349         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
9350         * config.make.in (have-cpp-asm-debuginfo): Removed.
9351         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
9352         * configure: Regenerated.
9353
9354 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
9355
9356         [BZ #5044]
9357         * stdio-common/printf_fp.c: Include <stdbool.h> and
9358         <rounding-mode.h>.
9359         (___printf_fp): Determine rounding using get_rounding_mode and
9360         round_away.
9361         * stdio-common/tst-printf-round.c: New file.
9362         * stdio-common/Makefile (tests): Add tst-printf-round.
9363         (link-libm): New variable.
9364         ($(objpfx)tst-printf-round): Depend in $(link-libm).
9365
9366 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
9367
9368         [BZ #14576]
9369         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
9370         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
9371         Likewise.
9372         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
9373         Likewise.
9374
9375 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
9376
9377         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
9378         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
9379         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
9380         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
9381
9382 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
9383
9384         [BZ #14518]
9385         * include/rounding-mode.h: New file.
9386         * sysdeps/generic/get-rounding-mode.h: Likewise.
9387         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
9388         * stdlib/strtod_l.c: Include <rounding-mode.h>.
9389         (MAX_VALUE): New macro.
9390         (MIN_VALUE): Likewise.
9391         (overflow_value): New function.
9392         (underflow_value): Likewise.
9393         (round_and_return): Use overflow_value and underflow_value to
9394         determine return values in overflow and underflow cases.  Use
9395         round_away to determine rounding depending on rounding mode.
9396         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
9397         determine return values in overflow and underflow cases.
9398         * stdlib/tst-strtod-round.c: Include <fenv.h>.
9399         (struct test_results): New structure.
9400         (struct test): Use struct test_results to store expected results
9401         for all rounding modes.
9402         (TEST): Include expected results for all rounding modes.
9403         (test_in_one_mode): New function.
9404         (do_test): Use test_in_one_mode to compute and check results.
9405         Check results for all rounding modes.
9406         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
9407         $(link-libm).
9408
9409 2012-12-09  Allan McRae  <allan@archlinux.org>
9410
9411         * sysdeps/i386/fpu/libm-test-ulps: Update
9412
9413 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
9414
9415         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
9416         (_G_int32_t): Likewise.
9417         (_G_uint16_t): Likewise.
9418         (_G_uint32_t): Likewise.
9419         (_G_HAVE_BOOL): Likewise.
9420         (_G_HAVE_ATEXIT): Likewise.
9421         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
9422         (_G_HAVE_IO_FILE_OPEN): Likewise.
9423         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
9424         (_G_int32_t): Likewise.
9425         (_G_uint16_t): Likewise.
9426         (_G_uint32_t): Likewise.
9427         (_G_HAVE_BOOL): Likewise.
9428         (_G_HAVE_ATEXIT): Likewise.
9429         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
9430         (_G_HAVE_IO_FILE_OPEN): Likewise.
9431         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
9432         (_G_int32_t): Likewise.
9433         (_G_uint16_t): Likewise.
9434         (_G_uint32_t): Likewise.
9435         (_G_HAVE_BOOL): Likewise.
9436         (_G_HAVE_ATEXIT): Likewise.
9437         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
9438         (_G_HAVE_IO_FILE_OPEN): Likewise.
9439
9440 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
9441
9442         * csu/libc-tls.c: Update copyright years.
9443
9444 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
9445
9446         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
9447         [!_G_USING_THUNKS]: Remove conditional code.
9448         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
9449         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
9450
9451         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
9452         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
9453         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
9454         (_G_VTABLE_LABEL_PREFIX): Likewise.
9455         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
9456         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
9457         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
9458         (_G_VTABLE_LABEL_PREFIX): Likewise.
9459         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
9460         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
9461         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
9462         (_G_VTABLE_LABEL_PREFIX): Likewise.
9463         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
9464
9465 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
9466
9467         * libio/Makefile: Include ../Makeconfig before tests.
9468         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
9469         only if $(build-shared) is yes.
9470
9471         * iconv/gconv_db.c: Update copyright years.
9472
9473 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9474
9475         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
9476         unwind info if defined PIC. Fix special cases description.
9477         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
9478
9479         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
9480         DP_HI_MASK entry.
9481         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
9482
9483 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
9484
9485         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
9486
9487         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
9488         is NULL.
9489
9490         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
9491         (LDLIBS-tst-chk4): This.
9492         (LDFLAGS-tst-chk5): Renamed to ...
9493         (LDLIBS-tst-chk5): This.
9494         (LDFLAGS-tst-chk6): Renamed to ...
9495         (LDLIBS-tst-chk6): This.
9496         (LDFLAGS-tst-lfschk4): Renamed to ...
9497         (LDLIBS-tst-lfschk4): This.
9498         (LDFLAGS-tst-lfschk5): Renamed to ...
9499         (LDLIBS-tst-lfschk5): This.
9500         (LDFLAGS-tst-lfschk6): Renamed to ...
9501         (LDLIBS-tst-lfschk6): This.
9502
9503         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
9504         on $(common-objpfx)soversions.mk.
9505
9506 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
9507
9508         [BZ #10014]
9509         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
9510         example host name.
9511
9512 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
9513
9514         * malloc/arena.c (arena_get_retry): New function that gets
9515         another arena for the caller to try its request on.
9516         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
9517         current arena cannot fulfill the request.
9518         (__libc_memalign): Likewise.
9519         (__libc_memalign): Likewise.
9520         (__libc_pvalloc): Likewise.
9521         (__libc_calloc): Likewise.
9522
9523 2012-09-05  John Tobey  <john.tobey@gmail.com>
9524
9525         [BZ #13542]
9526         * manual/arith.texi (Operations on Complex): Fix description
9527         of carg branch cut.
9528
9529 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
9530
9531         [BZ #10014]
9532         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
9533         host name.
9534
9535         [BZ #10038]
9536         * manual/memory.texi (Memory): Make order of menu items match
9537         order of sections.
9538
9539 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
9540
9541         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
9542         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
9543         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
9544
9545 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
9546
9547         * csu/libc-tls.c (static_dtv): Renamed to ...
9548         (_dl_static_dtv): This.  Make it global.
9549         (_dl_initial_dtv): Removed.
9550         (__libc_setup_tls): Updated.
9551         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
9552         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
9553         DL_INITIAL_DTV.
9554
9555 2012-09-06  Petr Machata  <pmachata@redhat.com>
9556
9557         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
9558         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
9559         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
9560         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
9561
9562 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
9563
9564         [BZ #14545]
9565         * csu/libc-tls.c (_dl_initial_dtv): New variable.
9566         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
9567         freeing dtv[-1].
9568
9569 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
9570
9571         [BZ #14544]
9572         * Makeconfig (link-static-before-libc): Replace $(+prector)
9573         with $(+prectorT).
9574         (link-static-after-libc): Replace $(+postctor) with
9575         $(+postctorT).
9576         (link-bounded): Replace $(+prector)/$(+postctor) with
9577         $(+prectorT)/$(+postctorT).
9578         (+prectorT): New macro.
9579         (+postctorT): Likewise.
9580
9581 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
9582
9583         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
9584         (round_str): Handle values above the maximum for IBM long double
9585         as inexact.
9586         * stdlib/tst-strtod-round.c (tests): Regenerated.
9587
9588 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9589
9590         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
9591         assembler flag.
9592         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
9593         zarch_nohighgprs around the zarch optimized routines.
9594         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
9595         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
9596         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
9597         for zarch.
9598
9599 2012-09-05  David S. Miller  <davem@davemloft.net>
9600
9601         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9602
9603         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
9604         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
9605         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
9606         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
9607         entries.
9608
9609 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
9610
9611         * malloc/arena.c: Fold copyright years.
9612         * malloc/mcheck.c, malloc/memusage.c: Likewise.
9613
9614 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
9615
9616         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
9617
9618 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
9619
9620         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
9621
9622 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
9623
9624         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
9625         change internal state upon failure.
9626
9627 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
9628
9629         * malloc/mcheck.c (mcheck_check_all): Fix typo.
9630         * malloc/memusage.c (mmap): Likewise.
9631         (mmap64, mremap): Likewise.  Adjust name in comment.
9632
9633 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
9634
9635         * libio/fileops.c: Fix typos in comments.
9636         * libio/oldfileops.c: Likewise.
9637         * libio/wfileops.c: Likewise.
9638
9639 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
9640
9641         [BZ #1349]
9642         * malloc/Makefile (tests): Add tst-malloc-usable test case.
9643         (tst-malloc-usable-ENV): Set environment for test case.
9644         * malloc/hooks.c (malloc_check_get_size): New function to get
9645         requested size.
9646         * malloc/malloc.c (musable): Use malloc_check_get_size.
9647         * malloc/tst-malloc-usable.c: New test case.
9648
9649 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
9650
9651         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
9652
9653 2012-09-05  Allan McRae  <allan@archlinux.org>
9654
9655         [BZ #13966]
9656         * configure.in (CXX_SYSINCLUDES): Use compiler output to
9657         determine header location.
9658         * configure: Regenerated.
9659
9660 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
9661
9662         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
9663         float format.
9664         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
9665         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
9666         format.
9667         (test): Regenerate.
9668
9669 2012-09-04  David S. Miller  <davem@davemloft.net>
9670
9671         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
9672         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
9673         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
9674
9675 2012-09-04  Florian Weimer  <fweimer@redhat.com>
9676
9677         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
9678         failures.
9679
9680         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
9681
9682 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
9683
9684         [BZ #9914]
9685         * libio/iogetdelim.c: Include <limits.h>.
9686         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
9687         + len + 1 would overflow.
9688
9689 2012-09-03  Andreas Jaeger  <aj@suse.de>
9690
9691         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9692         * sysdeps/i386/fpu/libm-test-ulps: Update.
9693
9694 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9695
9696         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
9697         Add s_sinf-sse2, s_conf-sse2.
9698
9699         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
9700         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
9701         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
9702         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
9703
9704         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
9705         for using routine as __sinf_ia32.
9706         Use macro for function declaration and weak_alias.
9707         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
9708         for using routine as __cosf_ia32.
9709         Use macro for function declaration and weak_alias.
9710
9711         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
9712         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
9713
9714         * sysdeps/x86_64/fpu/s_sinf.S: New file.
9715         * sysdeps/x86_64/fpu/s_cosf.S: New file.
9716         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9717
9718         * math/libm-test.inc (cos_test): Add more test cases.
9719         (sin_test): Likewise.
9720         (sincos_test): Likewise.
9721
9722 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9723
9724         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
9725         (IFUNC_RESOLVE): Make pointers to the specialized implementations
9726         hidden.
9727         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
9728
9729 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
9730
9731         [BZ #14538]
9732         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
9733         first element of the GOT.
9734         (elf_machine_load_address): Return the difference between
9735         the runtime address of _DYNAMIC and elf_machine_dynamic ().
9736
9737 2012-09-01  Allan McRae  <allan@archlinux.org>
9738
9739         [BZ #13412]
9740         * configure.in (AWK): Require gawk version 3.0 or later.
9741         * configure: Regenerated.
9742
9743 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
9744
9745         * sysdeps/unix/sysv/linux/kernel-features.h
9746         (__ASSUME_POSIX_CPU_TIMERS): Remove.
9747         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
9748         [__NR_clock_getres]: Make code unconditional.
9749         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
9750         (clock_getcpuclockid): Remove code left unreachable by removal of
9751         conditionals.
9752         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
9753         code unconditional.
9754         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
9755         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
9756         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
9757         Make code unconditional.
9758         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
9759         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
9760         * sysdeps/unix/sysv/linux/clock_settime.c
9761         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
9762         conditional code.
9763         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
9764         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
9765
9766 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
9767
9768         [BZ #14476]
9769         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
9770         scripts/test-installation.pl.
9771
9772         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
9773         and $ld_so_version if it is set.
9774
9775 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
9776
9777         [BZ #14516]
9778         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
9779         failure if reading from procfs failed.
9780         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
9781
9782 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
9783
9784         * sysdeps/unix/sysv/linux/kernel-features.h
9785         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
9786         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
9787         Remove conditional code.
9788         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
9789         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
9790         Remove conditional code.
9791         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
9792         * sysdeps/unix/sysv/linux/i386/fxstat.c
9793         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
9794         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
9795         * sysdeps/unix/sysv/linux/i386/fxstatat.c
9796         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
9797         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
9798         * sysdeps/unix/sysv/linux/i386/lxstat.c
9799         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
9800         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
9801         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
9802         Remove conditional code.
9803         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
9804         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
9805         Remove conditional code.
9806         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
9807         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
9808         <kernel-features.h>.
9809         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
9810         Remove.
9811         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
9812         Remove conditional code.
9813         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
9814         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
9815         Remove conditional.
9816
9817 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
9818
9819         [BZ #5400]
9820         * NEWS: Add fixed bug number.
9821
9822 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
9823
9824         [BZ #14519]
9825         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
9826         underflowing exponent in case of negative sign.
9827         * stdlib/tst-strtod-round-data: Add more tests.
9828         * stdlib/tst-strtod-round.c (tests): Regenerated.
9829
9830         [BZ #3479]
9831         * stdlib/strtod_l.c (NDIG): Remove.
9832         (HEXNDIG): Likewise.
9833         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
9834         smallest representable value.
9835         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
9836         lie within an exact representation of 1/2 ulp of the result.
9837         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
9838         unconditionally.
9839         (TENS_P9_IDX): Define unconditionally.
9840         (TENS_P9_SIZE): Likewise.
9841         (TENS_P10_IDX): Likewise.
9842         (TENS_P10_SIZE): Likewise.
9843         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
9844         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
9845         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
9846         entries for 10^2^13 and 10^2^14.
9847         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
9848         (TENS_P13_IDX): Define.
9849         (TENS_P13_SIZE): Likewise.
9850         (TENS_P14_IDX): Likewise.
9851         (TENS_P14_SIZE): Likewise.
9852         (_fpioconst_pow10): Change array size to
9853         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
9854         unconditional.
9855         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
9856         1024]: Add entries for 10^2^13 and 10^2^14.
9857         [LAST_POW10 > _LAST_POW10]: Remove #error.
9858         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
9859         (_fpioconst_pow10): Change array size to
9860         FPIOCONST_POW10_ARRAY_SIZE.
9861         * stdlib/gen-fpioconst.c: New file.
9862         * stdlib/gen-tst-strtod-round.c: Likewise.
9863         * stdlib/tst-strtod-round-data: Likewise.
9864         * stdlib/tst-strtod-round.c: Likewise.
9865         * stdlib/Makefile (tests): Add tst-strtod-round.
9866
9867         [BZ #14459]
9868         * stdlib/strtod_l.c: Include <stdint.h>.
9869         (NDEBUG): Do not define.
9870         (round_and_return): Change EXPONENT parameter to type intmax_t.
9871         Rearrange calculations to avoid internal overflow possibilities.
9872         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
9873         Rearrange calculations to avoid internal overflow possibilities.
9874         Assert that number fits inside MPNSIZE limbs.
9875         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
9876         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
9877         calculations and add assertions to avoid internal overflow
9878         possibilities.  Add casts to avoid signed/unsigned operations.
9879         * stdlib/tst-strtod-overflow.c: New file.
9880         * stdlib/Makefile (tests): Add tst-strtod-overflow.
9881
9882 2012-08-25  Marek Polacek  <polacek@redhat.com>
9883
9884         * time/time.h: Fix some typos in comments.
9885
9886 2012-08-23  Roland McGrath  <roland@hack.frob.com>
9887
9888         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
9889         * posix/tst-rfc3484-2.c: Likewise.
9890         * posix/tst-rfc3484-3.c: Likewise.
9891
9892 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
9893
9894         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
9895         (EF_ARM_ABI_FLOAT_HARD): Likewise.
9896
9897 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
9898
9899         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
9900         #include of fxstatat64.c.
9901
9902 2012-08-22  Roland McGrath  <roland@hack.frob.com>
9903
9904         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
9905         * shadow/getspent_r.c: Likewise.
9906         * shadow/getspnam.c: Likewise.
9907         * shadow/getspnam_r.c: Likewise.
9908         * gshadow/getsgent.c: Likewise.
9909         * gshadow/getsgent_r.c: Likewise.
9910         * gshadow/getsgnam.c: Likewise.
9911         * gshadow/getsgnam_r.c: Likewise.
9912         * inet/getnetbyad.c: Likewise.
9913         * inet/getnetbyad_r.c: Likewise.
9914         * inet/getnetbynm.c: Likewise.
9915         * inet/getnetbynm_r.c: Likewise.
9916         * inet/getnetent.c: Likewise.
9917         * inet/getnetent_r.c: Likewise.
9918         * inet/getproto.c: Likewise.
9919         * inet/getproto_r.c: Likewise.
9920         * inet/getprtent.c: Likewise.
9921         * inet/getprtent_r.c: Likewise.
9922         * inet/getprtname.c: Likewise.
9923         * inet/getprtname_r.c: Likewise.
9924         * inet/getrpcbyname.c: Likewise.
9925         * inet/getrpcbyname_r.c: Likewise.
9926         * inet/getrpcbynumber.c: Likewise.
9927         * inet/getrpcbynumber_r.c: Likewise.
9928         * inet/getrpcent.c: Likewise.
9929         * inet/getrpcent_r.c: Likewise.
9930         * inet/getaliasent.c: Likewise.
9931         * inet/getaliasent_r.c: Likewise.
9932         * inet/getaliasname.c: Likewise.
9933         * inet/getaliasname_r.c: Likewise.
9934         * nscd/getgrgid_r.c: Likewise.
9935         * nscd/getgrnam_r.c: Likewise.
9936         * nscd/gethstbyad_r.c: Likewise.
9937         * nscd/gethstbynm3_r.c: Likewise.
9938         * nscd/getpwnam_r.c: Likewise.
9939         * nscd/getpwuid_r.c: Likewise.
9940         * nscd/getsrvbynm_r.c: Likewise.
9941         * nscd/getsrvbypt_r.c: Likewise.
9942         * nscd/gai.c: Likewise.
9943
9944         * configure.in (build_nscd): New substituted variable, set
9945         by --disable-build-nscd and defaults to $use_nscd.
9946         * configure: Regenerated.
9947         * config.make.in (build-nscd): New substituted variable.
9948         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
9949         Change conditional to require [$(build-nscd) = yes] as well.
9950         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
9951
9952         [BZ# 13696]
9953         * configure.in (use_nscd): New substituted variable, set by
9954         --disable-nscd.  If enabled, define USE_NSCD.
9955         * configure: Regenerated.
9956         * config.h.in: Add USE_NSCD.
9957         * config.make.in (use-nscd): New substituted variable.
9958         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
9959         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
9960         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
9961         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
9962         (CFLAGS-getgrnam_r.c): Likewise.
9963         (CFLAGS-initgroups.c): Likewise.
9964         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
9965         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
9966         Variables removed.
9967         * inet/getnetgrent_r.c
9968         (nscd_setnetgrent): New function, broken out of ...
9969         (setnetgrent): ... here.  Call it.
9970         (innetgr): Conditionalize nscd bits on [USE_NSCD].
9971         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
9972         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
9973         * nscd/Makefile (routines, aux): Move definitions after include of
9974         Makeconfig.  Conditionalize on [$(use-nscd) != no].
9975         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
9976         Conditionalize on [USE_NSCD].
9977         (is_nscd, nscd_init_cb): Likewise.
9978         (nss_load_library): Conditionalize init callback on [USE_NSCD].
9979         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
9980         * nss/nss_db/db-init.c: Likewise.
9981         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
9982         [USE_NSCD].
9983         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
9984         (make_request): Use it.
9985         (cache_valid_p): New function.
9986         (__check_pf): Use it.
9987         * NEWS: Add item for --disable-nscd.
9988
9989 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
9990
9991         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
9992         to support sed >= 4.2.1-20-ga9bf076.
9993         * configure: Regenerated.
9994
9995 2012-08-22  Roland McGrath  <roland@hack.frob.com>
9996
9997         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
9998         Conditionalize whole body on [IREL].
9999
10000 2012-08-22  Jeff Law <law@redhat.com>
10001
10002         [BZ #14505]
10003         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
10004         if the family is PF_UNSPEC.
10005
10006 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
10007
10008         * Makerules (lib-version): Rename from V.
10009         (install-lib-nosubdir): Change V to lib-version.
10010
10011 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
10012
10013         [BZ #14252]
10014         * powerpc32/power6/wcschr.c: New file.
10015         * powerpc32/power6/wcscpy.c: New file.
10016         * powerpc32/power6/wcsrchr.c: New file.
10017         * powerpc64/power6/wcschr.c: New file.
10018         * powerpc64/power6/wcscpy.c: New file.
10019         * powerpc64/power6/wcsrchr.c: New file.
10020
10021 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
10022
10023         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
10024         (two_way_short_needle): Use it.
10025         * string/strstr.c (AVAILABLE1_USES_J): Define.
10026         * string/strcasestr.c: Likewise.
10027
10028         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
10029         array references.
10030         * string/strcasestr.c (TOLOWER): Make side-effect safe.
10031
10032         [BZ #11607]
10033         * NEWS: Add an entry.
10034         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
10035         define their defaults.
10036         (two_way_short_needle): Detect end-of-string on-the-fly.
10037         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
10038         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
10039         * string/bug-strcasestr1.c: New test.
10040         * string/Makefile: Run it.
10041
10042 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
10043
10044         [BZ #11607]
10045         * string/str-two-way.h (two_way_short_needle): Optimize matching of
10046         the first character.
10047
10048 2012-08-21  Roland McGrath  <roland@hack.frob.com>
10049
10050         * csu/elf-init.c (__libc_csu_irel): Function removed.
10051         * csu/libc-start.c (apply_irel): New function.
10052         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
10053
10054 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
10055
10056         * sysdeps/unix/sysv/linux/kernel-features.h
10057         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
10058         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
10059         <kernel-features.h>.
10060         [__NR_fadvise64_64]: Make code unconditional.
10061         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
10062         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
10063         !__NR_fadvise64_64)]: Likewise.
10064         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
10065         !__NR_fadvise64_64))]: Likewise.
10066         [__NR_fadvise64]: Make code unconditional.
10067         [!__NR_fadvise64]: Remove conditional code.
10068         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
10069         <kernel-features.h>.
10070         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
10071         unconditional.
10072         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
10073         conditional code.
10074         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
10075         not include <kernel-features.h>.
10076         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
10077         unconditional.
10078         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
10079         conditional code.
10080         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
10081         include <kernel-features.h>.
10082         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
10083         unconditional.
10084         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
10085         conditional code.
10086
10087 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
10088
10089         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
10090         slight instruction rearrangements per scrollpipe analysis.
10091         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
10092
10093 2012-08-20  Roland McGrath  <roland@hack.frob.com>
10094
10095         * manual/syslog.texi (syslog; vsyslog, closelog):
10096         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
10097         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
10098
10099         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
10100         DSOCAPS to match condition on defining it.
10101
10102 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
10103
10104         * sysdeps/unix/sysv/linux/kernel-features.h
10105         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
10106         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
10107         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
10108         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
10109         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
10110         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
10111         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
10112         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
10113         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
10114         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
10115
10116         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
10117         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
10118
10119         * sysdeps/unix/sysv/linux/kernel-features.h
10120         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
10121         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
10122         unconditional.
10123         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
10124         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
10125         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
10126         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
10127         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
10128         Make code unconditional.
10129         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
10130         (__mmap64) [!__NR_mmap2]: Likewise.
10131         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
10132         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
10133         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
10134         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
10135         [__NR_mmap2]: Make code unconditional.
10136         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
10137         (__mmap64) [!__NR_mmap2]: Likewise.
10138
10139 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10140
10141         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
10142
10143 2012-08-18  Andreas Jaeger  <aj@suse.de>
10144
10145         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
10146
10147 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
10148
10149         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
10150         * include/unistd.h (__have_sock_cloexec): Likewise.
10151         (__have_pipe2): Likewise.
10152         (__have_dup3): Likewise.
10153
10154 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
10155
10156         [BZ #9685]
10157         * include/unistd.h (__have_pipe2): Change define into an extern int.
10158         (__have_dup3): Likewise.
10159         * socket/have_sock_cloexec.c: Include fcntl.h.
10160         (__have_pipe2): New variable.
10161         (__have_dup3): Likewise.
10162
10163 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
10164
10165         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
10166
10167 2012-08-17  Marek Polacek  <polacek@redhat.com>
10168
10169         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
10170         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
10171
10172 2012-08-17  Roland McGrath  <roland@hack.frob.com>
10173
10174         * configure.in: Add AC_SUBST for sysheaders.
10175         * configure: Regenerated.
10176         * config.make.in (sysheaders): New substituted variable.
10177
10178         * sysdeps/unix/mkfifo.c: Moved ...
10179         * sysdeps/posix/mkfifo.c: ... here.
10180         * sysdeps/unix/mkfifoat.c: Moved ...
10181         * sysdeps/posix/mkfifoat.c: ... here.
10182
10183         * sysdeps/unix/utime.c: Moved ...
10184         * sysdeps/posix/utime.c: ... here.
10185
10186         * sysdeps/unix/time.c: Moved ...
10187         * sysdeps/posix/time.c: ... here.
10188         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
10189         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
10190
10191         * sysdeps/unix/nice.c: Moved ...
10192         * sysdeps/posix/nice.c: ... here.
10193
10194         * sysdeps/unix/alarm.c: Moved ...
10195         * sysdeps/posix/alarm.c: ... here.
10196
10197         * intl/Makefile ($(codeset_mo)): Depend on the input file.
10198
10199 2012-08-17  Jeff Law <law@redhat.com>
10200
10201         * intl/Makefile (codeset_mo): New variable.
10202         ($(codeset_mo)): New target.
10203         (tst-codeset.out): Depend on that.  Remove explicit rule.
10204         (tst-gettext3.out, tst-gettext5.out): Likewise.
10205         (LOCPATH-ENV, tst-codeset-ENV): New variables.
10206         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
10207         * intl/tst-codeset.sh: Remove.
10208         * intl/tst-gettext3.sh: Likewise.
10209         * intl/tst-gettext5.sh: Likewise.
10210
10211 2012-08-17  Roland McGrath  <roland@hack.frob.com>
10212
10213         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
10214         * sysdeps/unix/syscalls.list: ... here.
10215
10216         * sysdeps/posix/getaddrinfo.c
10217         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
10218         (gaiconf_init, gaiconf_reload): Use them.
10219         [!_STATBUF_ST_NSEC]
10220         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
10221         Define using time_t rather than struct timespec.
10222
10223         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
10224         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
10225         Macros removed.
10226         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
10227         [!NO_THREADS].
10228         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
10229         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
10230         Likewise.
10231
10232         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
10233         __libc_cleanup_push argument.
10234
10235         * bits/param.h: New file.
10236         * misc/sys/param.h: New file.
10237         * include/sys/param.h: New file.
10238         * misc/Makefile (headers): Add bits/param.h.
10239         * sysdeps/generic/sys/param.h: File removed.
10240         * sysdeps/unix/sysv/linux/bits/param.h: New file.
10241         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
10242         * sysdeps/mach/hurd/bits/param.h: New file.
10243         * sysdeps/mach/hurd/sys/param.h: File removed.
10244
10245         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
10246         last change.
10247
10248         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
10249         [_IO_MTSAFE_IO].
10250         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
10251         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
10252         New macros.
10253
10254         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
10255         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
10256         rather than -D_IO_MTSAFE_IO conditionally.
10257         * stdio-common/Makefile (CPPFLAGS): Likewise.
10258         * wcsmbs/Makefile (CPPFLAGS): Likewise.
10259         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
10260         Use $(libio-mtsafe).
10261         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
10262         of -D_IO_MTSAFE_IO.
10263         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
10264         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
10265         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
10266         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
10267         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
10268         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
10269         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
10270         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
10271         (CFLAGS-fread_u_chk.c): Likewise.
10272         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
10273         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
10274         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
10275         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
10276         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
10277         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
10278         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
10279         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
10280         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
10281
10282         * libio/Makefile: Test [$(libc-reentrant) = yes]
10283         instead of [$(filter %REENTRANT, $(defines)) nonempty].
10284
10285         * Makeconfig
10286         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
10287         * sysdeps/pthread/configure: File removed.
10288         * sysdeps/pthread/Makeconfig: New file.
10289         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
10290         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
10291
10292 2012-08-16  Gary Benson  <gbenson@redhat.com>
10293
10294         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
10295         unmapping the first object in a namespace.
10296
10297 2012-08-16  Roland McGrath  <roland@hack.frob.com>
10298
10299         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
10300         (__internal_setnetgrent): ... this.  Add internal_function to
10301         definition.  Add libc_hidden_def.
10302         (setnetgrent): Update caller.
10303         (internal_endnetgrent): Renamed to ...
10304         (__internal_endnetgrent): ... this.  Add internal_function to
10305         definition.  Add libc_hidden_def.
10306         (endnetgrent): Update caller.
10307         (internal_getnetgrent_r): Renamed to ...
10308         (__internal_getnetgrent_r): ... this.  Add internal_function to
10309         definition.  Add libc_hidden_def.
10310         (__getnetgrent_r): Update caller.
10311         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
10312
10313 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
10314
10315         * stdlib/longlong.h: Update from GCC.
10316
10317 2012-08-16  Roland McGrath  <roland@hack.frob.com>
10318
10319         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
10320         on _QL, which is set by umul_ppmm but never used.
10321         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
10322         variables, which are set by GMP macros but never used.
10323         * stdio-common/_itowa.c (_itowa): Likewise.
10324         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
10325         * stdlib/mod_1.c (mpn_mod_1): Likewise.
10326
10327 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
10328
10329         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
10330         struct La_sh_regs is not constant.
10331         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
10332         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
10333         and struct La_sparc64_regs are not constant.
10334
10335 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
10336
10337         * sysdeps/unix/sysv/linux/kernel-features.h
10338         (__ASSUME_POSIX_TIMERS): Remove.
10339         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
10340         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
10341         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
10342         Make code unconditional.
10343         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
10344         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
10345         Make code unconditional.
10346         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
10347         * sysdeps/unix/sysv/linux/clock_nanosleep.c
10348         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
10349         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
10350         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
10351         Make code unconditional.
10352         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
10353         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
10354         (__libc_missing_posix_timers): Remove.
10355
10356 2012-08-15  Roland McGrath  <roland@hack.frob.com>
10357
10358         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
10359         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
10360
10361         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
10362
10363         * elf/dl-sym.c: Include <stdlib.h>.
10364
10365         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
10366         constants, which avoids warnings in 32-bit builds.
10367
10368         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
10369         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
10370
10371         * misc/lseek.c: File moved to ...
10372         * io/lseek.c: ... here.
10373
10374         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
10375
10376         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
10377         shifting LEN more than 31 bits at once.
10378
10379 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10380
10381         [BZ #14195]
10382         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
10383         segmentation fault for a case of two empty input strings.
10384         * string/test-strncasecmp.c (check1): Renamed to...
10385         (bz12205): ...this.
10386         (bz14195): Add new testcase for two empty input strings and N > 0.
10387         (test_main): Call new testcase, adapt for renamed function.
10388
10389 2012-08-15  Andreas Jaeger  <aj@suse.de>
10390
10391         [BZ #14090]
10392         * crypt/md5test2.c: New test, based on test supplied by Serge
10393         Belyshev <belyshev@depni.sinp.msu.ru>.
10394         * crypt/Makefile (xtests): Add md5test-giant..
10395         * crypt/Makefile ($(objpfx)md5test-giant): Add.
10396
10397 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
10398
10399         [BZ #14090]
10400         * crypt/md5.c (md5_process_block): Don't assume the buffer
10401         length is less than 2**32.
10402         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
10403         length is less than 2**64.
10404
10405 2012-08-15  Roland McGrath  <roland@hack.frob.com>
10406
10407         * string/str-two-way.h: Include <sys/param.h>.
10408         (MAX): Macro removed.
10409
10410         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
10411         Move #define and #undef of memmove to just before and after
10412         including <string.h>.
10413
10414         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
10415         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
10416         and after including <string.h>.  Move declarations of
10417         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
10418         to before #include "string/memmove.c".
10419
10420         * include/dirent.h: Declare __getdirentries.
10421
10422         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
10423         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
10424
10425 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
10426
10427         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
10428         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
10429         * sysdeps/i386/configure: Regenerated.
10430         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
10431         STABS_CURRENT_FILE, and STABS_FUN.
10432         (END): Remove call to STABS_FUN_END.
10433         (STABS_CURRENT_FILE1): Delete.
10434         (STABS_CURRENT_FILE): Likewise.
10435         (STABS_FUN): Likewise.
10436         (STABS_FUN_END): Likewise.
10437         (STABS_FUN2): Likewise.
10438         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
10439         * sysdeps/x86_64/configure: Regenerated.
10440
10441 2012-08-14  Roland McGrath  <roland@hack.frob.com>
10442
10443         * elf/dl-open.c: Include <atomic.h>.
10444         * elf/dl-lookup.c: Likewise.
10445
10446 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
10447
10448         * sysdeps/unix/sysv/linux/kernel-features.h
10449         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
10450         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
10451         unconditionally.
10452         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
10453         unconditionally.
10454         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
10455         condition on __ASSUME_CLONE_THREAD_FLAGS.
10456
10457 2012-08-14  Andreas Jaeger  <aj@suse.de>
10458
10459         * sysdeps/i386/fpu/libm-test-ulps: Update.
10460
10461 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
10462
10463         * include/atomic.h (atomic_exchange_and_add): Split into ...
10464         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
10465         New atomic macros.
10466
10467 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
10468
10469         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10470
10471 2012-08-13  Jeff Law <law@redhat.com>
10472
10473         * manual/stdio.texi (snprintf): Clarify handling of the trailing
10474         null byte in the output string.
10475
10476 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
10477
10478         * sysdeps/unix/sysv/linux/kernel-features.h
10479         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
10480         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
10481         (__ASSUME_ARG_MAX_STACK_BASED): Define.
10482         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
10483         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
10484         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
10485         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
10486
10487 2012-08-09  Jeff Law <law@redhat.com>
10488
10489         [BZ #13939]
10490         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
10491         When avoid_arena is set, don't retry in the that arena.  Pick the
10492         next one, whatever it might be.
10493         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
10494         (arena_lock): Pass in new parameter to arena_get2.
10495         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
10496         arena_get2.
10497         (__libc_malloc): Unify retrying after main arena failure with
10498         __libc_memalign version.
10499         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
10500
10501 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
10502
10503         [BZ #14166]
10504         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
10505         to __redirect_strstr.
10506         (__strstr_sse42): Use typeof __redirect_strstr.
10507         (__strstr_ia32): Likewise.
10508         (__libc_strstr): New prototype.
10509         (strstr): Renamed to ...
10510         (__libc_strstr): This.
10511         (strstr): New strong alias of __libc_strstr.
10512         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
10513         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
10514         __redirect_time.
10515         Include <time.h>.
10516         (__libc_time): New prototype.
10517         (time_ifunc): Replace time with __libc_time.
10518         (time): New strong alias and hidden definition of __libc_time.
10519         (__GI_time): Remove strong alias.
10520         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
10521         Include <stddef.h>.
10522         (memmove): Redefined to __redirect_memmove.
10523         (__memmove_sse2): Use typeof __redirect_memmove.
10524         (__memmove_ssse3): Likewise.
10525         (__memmove_ssse3_back): Likewise.
10526         (__libc_memmove): New prototype.
10527         (memmove): Renamed to ...
10528         (__libc_memmove): This.
10529         (memmove): New strong alias of __libc_memmove.
10530
10531 2012-08-08  Mark Salter  <msalter@redhat.com>
10532
10533         * elf/elf.h
10534         (R_MN10300_TLS_GD): Define.
10535         (R_MN10300_TLS_LD): Likewise.
10536         (R_MN10300_TLS_LDO): Likewise.
10537         (R_MN10300_TLS_GOTIE): Likewise.
10538         (R_MN10300_TLS_IE): Likewise.
10539         (R_MN10300_TLS_LE): Likewise.
10540         (R_MN10300_TLS_DTPMOD): Likewise.
10541         (R_MN10300_TLS_DTPOFF): Likewise.
10542         (R_MN10300_TLS_TPOFF): Likewise.
10543         (R_MN10300_SYM_DIFF): Likewise.
10544         (R_MN10300_ALIGN): Likewise.
10545         (R_MN10300_NUM): Update.
10546
10547 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
10548
10549         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
10550         Remove.
10551
10552 2012-08-08  Roland McGrath  <roland@hack.frob.com>
10553
10554         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
10555
10556         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
10557         sysdeps/unix -> sysdeps/posix move.
10558         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
10559
10560 2012-08-07      Allan McRae     <allan@archlinux.org>
10561
10562         [BZ #14303]
10563         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
10564         (SUNOS_CPP): Likewise.
10565         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
10566         not found.
10567         (open_input): Call CPP using execvp.
10568
10569 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
10570
10571         * sysdeps/unix/sysv/linux/kernel-features.h
10572         (__ASSUME_PROT_GROWSUPDOWN): Remove.
10573         (__ASSUME_NO_CLONE_DETACHED): Likewise.
10574         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
10575         (__ASSUME_WAITID_SYSCALL): Likewise.
10576         * sysdeps/unix/sysv/linux/dl-execstack.c
10577         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
10578         code unconditional.
10579         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
10580         conditional code.
10581         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
10582         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
10583         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
10584         code.
10585         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
10586         unconditional.
10587         [__ASSUME_WAITID_SYSCALL]: Likewise.
10588         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
10589
10590 2012-08-07  Roland McGrath  <roland@hack.frob.com>
10591
10592         * sysdeps/unix/closedir.c: Renamed to ...
10593         * sysdeps/posix/closedir.c: ... here.
10594         * sysdeps/unix/dirfd.c: Renamed to ...
10595         * sysdeps/posix/dirfd.c: ... here.
10596         * sysdeps/unix/dirstream.h: Renamed to ...
10597         * sysdeps/posix/dirstream.h: ... here.
10598         * sysdeps/unix/fdopendir.c: Renamed to ...
10599         * sysdeps/posix/fdopendir.c: ... here.
10600         * sysdeps/unix/opendir.c: Renamed to ...
10601         * sysdeps/posix/opendir.c: ... here.
10602         * sysdeps/unix/readdir.c: Renamed to ...
10603         * sysdeps/posix/readdir.c: ... here.
10604         * sysdeps/unix/readdir_r.c: Renamed to ...
10605         * sysdeps/posix/readdir_r.c: ... here.
10606         * sysdeps/unix/rewinddir.c: Renamed to ...
10607         * sysdeps/posix/rewinddir.c: ... here.
10608         * sysdeps/unix/seekdir.c: Renamed to ...
10609         * sysdeps/posix/seekdir.c: ... here.
10610         * sysdeps/unix/telldir.c: Renamed to ...
10611         * sysdeps/posix/telldir.c: ... here.
10612         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
10613         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
10614         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
10615         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
10616
10617         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
10618         * bits/fcntl.h: ... here.
10619
10620         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
10621         not 0.
10622         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
10623         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
10624         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
10625         (struct flock): Move l_start, l_len to the beginning.
10626         Use __pid_t for l_pid.
10627         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
10628         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
10629         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
10630         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
10631         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
10632         [__USE_LARGEFILE64] (struct flock64): New type.
10633         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
10634
10635         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
10636         * bits/dirent.h: ... here.
10637
10638         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
10639         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
10640
10641 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
10642
10643         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
10644         Change from 2.6.0 to 2.6.16.
10645         * sysdeps/unix/sysv/linux/configure: Regenerated.
10646         * sysdeps/unix/sysv/linux/kernel-features.h
10647         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
10648         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
10649         version.
10650         (__ASSUME_UTIMES): Likewise.
10651         (__ASSUME_CLONE_STOPPED): Remove.
10652         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
10653         architectures, not kernel version.
10654         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
10655         (__ASSUME_NO_CLONE_DETACHED): Likewise.
10656         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
10657         (__ASSUME_WAITID_SYSCALL): Likewise.
10658         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
10659         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
10660         * README: State 2.6.16 as minimum Linux kernel version.  Do not
10661         refer to older versions.
10662
10663 2012-08-06  Roland McGrath  <roland@hack.frob.com>
10664
10665         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
10666         Define alphasort64 as an alias.
10667         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
10668         Define versionsort64 as an alias.
10669         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
10670         Define scandir64 as an alias.
10671         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
10672         Define scandirat64 as an alias.
10673         * dirent/alphasort64.c (alphasort64):
10674         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
10675         * dirent/versionsort64.c: Likewise.
10676         * dirent/scandir64.c: Likewise.
10677         * dirent/scandirat64.c: Likewise.
10678         * sysdeps/wordsize-64/alphasort.c: File removed.
10679         * sysdeps/wordsize-64/alphasort64.c: File removed.
10680         * sysdeps/wordsize-64/scandir.c: File removed.
10681         * sysdeps/wordsize-64/scandir64.c: File removed.
10682         * sysdeps/wordsize-64/scandirat.c: File removed.
10683         * sysdeps/wordsize-64/scandirat64.c: File removed.
10684         * sysdeps/wordsize-64/versionsort.c: File removed.
10685         * sysdeps/wordsize-64/versionsort64.c: File removed.
10686         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
10687         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
10688         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
10689         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
10690         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
10691         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
10692         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
10693         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
10694
10695         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
10696         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
10697         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
10698         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
10699         [defined __arch64__ || defined __sparcv9]
10700         (__INO_T_MATCHES_INO64_T): New macro.
10701         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
10702         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
10703         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
10704         * sysdeps/unix/sysv/linux/bits/dirent.h
10705         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
10706         (_DIRENT_MATCHES_DIRENT64): New macro.
10707
10708         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
10709         Define lockf64 as an alias.
10710         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
10711         Define fseeko64 as an alias.
10712         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
10713         Define ftello64 as an alias.
10714         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
10715         Define _IO_fgetpos64 and fgetpos64 as aliases.
10716         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
10717         Define _IO_fsetpos64 and fsetpos64 as aliases.
10718         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
10719         Conditionalize body on this.
10720         * libio/fseeko64.c: Likewise.
10721         * libio/ftello64.c: Likewise.
10722         * libio/iofgetpos64.c: Likewise.
10723         * libio/iofsetpos64.c: Likewise.
10724         * sysdeps/wordsize-64/lockf.c: File removed.
10725         * sysdeps/wordsize-64/lockf64.c: File removed.
10726         * sysdeps/wordsize-64/fseeko.c: File removed.
10727         * sysdeps/wordsize-64/fseeko64.c: File removed.
10728         * sysdeps/wordsize-64/ftello.c: File removed.
10729         * sysdeps/wordsize-64/ftello64.c: File removed.
10730         * sysdeps/wordsize-64/iofgetpos.c: File removed.
10731         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
10732         * sysdeps/wordsize-64/iofsetpos.c: File removed.
10733         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
10734         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
10735         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
10736         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
10737         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
10738         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
10739         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
10740         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
10741         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
10742         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
10743         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
10744
10745         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
10746         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
10747         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
10748         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
10749         [defined __arch64__ || defined __sparcv9]
10750         (__OFF_T_MATCHES_OFF64_T): New macro.
10751         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
10752         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
10753         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
10754         (__OFF_T_MATCHES_OFF64_T): New macro.
10755
10756 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
10757
10758         * stdlib/secure-getenv.c (__secure_getenv): Replace
10759         GLIBC_2_16 with GLIBC_2_17.
10760
10761 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
10762
10763         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
10764         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
10765
10766 2012-08-03  David S. Miller  <davem@davemloft.net>
10767
10768         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10769
10770 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
10771
10772         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
10773         Remove.
10774         (__ASSUME_CORRECT_SI_PID): Likewise.
10775         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
10776         (__ASSUME_TMPFS_NAME): Likewise.
10777         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
10778         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
10779         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
10780         (HAVE_AUX_SECURE): Make definition unconditional.
10781         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
10782         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
10783
10784 2012-08-03  Roland McGrath  <roland@hack.frob.com>
10785
10786         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
10787         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
10788         * sysdeps/mach/hurd/eloop-threshold.h: New file.
10789         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
10790         __eloop_threshold instead of SYMLOOP_MAX.
10791
10792         * sysdeps/generic/eloop-threshold.h: New file.
10793         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
10794         of MAXSYMLINKS.
10795         * elf/chroot_canon.c (chroot_canon): Likewise.
10796
10797 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
10798
10799         [BZ #13717]
10800         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
10801         Change to 2.6.0 everywhere.
10802         * sysdeps/unix/sysv/linux/configure: Regenerated.
10803         * sysdeps/unix/sysv/linux/kernel-features.h
10804         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
10805         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
10806         kernel versions.
10807         (__ASSUME_POSIX_TIMERS): Define unconditionally.
10808         (__ASSUME_FUTEX_REQUEUE): Remove.
10809         (__ASSUME_STATFS64): Define unconditionally.
10810         (__ASSUME_AT_SECURE): Likewise.
10811         (__ASSUME_CORRECT_SI_PID): Likewise.
10812         (__ASSUME_TGKILL): Define without depending on kernel version for
10813         i386.
10814         (__ASSUME_UTIMES): Likewise.
10815         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
10816         kernel version.
10817         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
10818         (__ASSUME_TMPFS_NAME): Likewise.
10819         * README: Update reference to Linux kernel versions.
10820
10821 2012-08-02  Marek Polacek  <polacek@redhat.com>
10822
10823         [BZ# 14150]
10824         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
10825         libc_cv_asm_type_prefix with %.
10826         * configure: Regenerated.
10827         * include/libc-symbols.h: Remove comment about
10828         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
10829         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
10830         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
10831         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
10832         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
10833         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
10834         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
10835         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
10836         * elf/tst-unique2mod1.c: Likewise.
10837         * elf/tst-unique1mod2.c: Likewise.
10838         * elf/tst-unique1mod1.c: Likewise.
10839         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
10840         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
10841         Replace ASM_TYPE_DIRECTIVE with .type.
10842         * sysdeps/s390/s390-64/sysdep.h: Likewise.
10843         * sysdeps/i386/sysdep.h: Likewise.
10844         * sysdeps/x86_64/sysdep.h: Likewise.
10845         * sysdeps/sh/sysdep.h: Likewise.
10846         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
10847         Do not define ASM_TYPE_DIRECTIVE.
10848         * sysdeps/powerpc/sysdep.h: Likewise.
10849         * sysdeps/powerpc/powerpc32/sysdep.h:
10850         Replace ASM_TYPE_DIRECTIVE with .type.
10851         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
10852         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
10853         * sysdeps/i386/fpu/e_powf.S: Likewise.
10854         * sysdeps/i386/fpu/e_expl.S: Likewise.
10855         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
10856         * sysdeps/i386/fpu/e_acosh.S: Likewise.
10857         * sysdeps/i386/fpu/e_pow.S: Likewise.
10858         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
10859         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
10860         * sysdeps/i386/fpu/s_expm1.S: Likewise.
10861         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
10862         * sysdeps/i386/fpu/e_log2.S: Likewise.
10863         * sysdeps/i386/fpu/e_log2l.S: Likewise.
10864         * sysdeps/i386/fpu/e_scalb.S: Likewise.
10865         * sysdeps/i386/fpu/e_powl.S: Likewise.
10866         * sysdeps/i386/fpu/e_log10f.S: Likewise.
10867         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
10868         * sysdeps/i386/fpu/e_logl.S: Likewise.
10869         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
10870         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
10871         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
10872         * sysdeps/i386/fpu/e_log2f.S: Likewise.
10873         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
10874         * sysdeps/i386/fpu/e_log.S: Likewise.
10875         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
10876         * sysdeps/i386/fpu/e_logf.S: Likewise.
10877         * sysdeps/i386/fpu/e_log10l.S: Likewise.
10878         * sysdeps/i386/fpu/e_atanh.S: Likewise.
10879         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
10880         * sysdeps/i386/fpu/e_log10.S: Likewise.
10881         * sysdeps/i386/fpu/s_frexp.S: Likewise.
10882         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
10883         * sysdeps/i386/fpu/s_asinh.S: Likewise.
10884         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
10885         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
10886         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
10887         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
10888         * sysdeps/i386/i686/strtok.S: Likewise.
10889         * sysdeps/i386/i386-mcount.S: Likewise.
10890         * sysdeps/i386/strtok.S: Likewise.
10891         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
10892         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
10893         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
10894         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
10895         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
10896         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
10897         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
10898         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
10899         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
10900         * sysdeps/x86_64/_mcount.S: Likewise.
10901         * sysdeps/x86_64/strtok.S: Likewise.
10902         * sysdeps/sh/_mcount.S: Likewise.
10903
10904 2012-08-01  Roland McGrath  <roland@hack.frob.com>
10905
10906         * libio/iofopen.c: Include <fcntl.h>.
10907         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
10908         (_IO_fopen64, fopen64): Define as aliases.
10909         * libio/iofopen64.c: Include <fcntl.h>.
10910         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
10911         Conditionalize body on this.
10912         * sysdeps/wordsize-64/iofopen.c: File removed.
10913         * sysdeps/wordsize-64/iofopen64.c: File removed.
10914
10915 2012-08-01  Marek Polacek  <polacek@redhat.com>
10916
10917         * libc/Makeconfig: Use elf in place of binfmt-subdir.
10918         Use dlfcn directly instead of a variable.
10919         (binfmt-subdir): Do not define.
10920         (dlfcn): Likewise.
10921
10922 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
10923
10924         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
10925         Remove all definitions.
10926         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
10927         <kernel-features.h>.
10928         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
10929         (miss_F_GETOWN_EX): Remove all definitions.
10930         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
10931         macro definition.
10932         [!__ASSUME_FCNTL64]: Remove conditional code.
10933         [__ASSUME_FCNTL64]: Make code unconditional.
10934         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
10935         <kernel-features.h>.
10936         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
10937         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
10938         (lockf64) [__NR_fcntl64]: Make code unconditional.
10939         (lockf64) [__ASSUME_FCNTL64]: Likewise.
10940
10941         * sysdeps/unix/sysv/linux/kernel-features.h
10942         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
10943         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
10944         Make code unconditional.
10945         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
10946         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
10947         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
10948         [__NR_vfork]: Make code unconditional.
10949         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
10950         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
10951         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
10952         [__NR_vfork]: Make code unconditional.
10953         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
10954         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
10955
10956 2012-08-01  Roland McGrath  <roland@hack.frob.com>
10957
10958         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
10959         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
10960
10961         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
10962         Define mkstemp64 as an alias.
10963         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
10964         Define mkstemps64 as an alias.
10965         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
10966         Define mkostemp64 as an alias.
10967         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
10968         Define mkostemps64 as an alias.
10969         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
10970         Conditionalize body on this.
10971         * misc/mkostemp64.c: Likewise.
10972         * misc/mkostemps64.c: Likewise.
10973         * misc/mkstemps64.c: Likewise.
10974         * sysdeps/wordsize-64/mkstemp64.c: File removed.
10975         * sysdeps/wordsize-64/mkostemp64.c: File removed.
10976         * sysdeps/wordsize-64/mkostemp.c: File removed.
10977         * sysdeps/wordsize-64/mkstemp.c: File removed.
10978         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
10979         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
10980         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
10981         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
10982
10983         [BZ #14138]
10984         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
10985         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
10986         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
10987         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
10988
10989         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
10990         compat_symbol macros from <shlib-compat.h> rather than the underlying
10991         default_symbol_version and symbol_version macros, so that DEFAULT
10992         lines in shlib-versions are respected.
10993         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
10994
10995 2012-08-01  Florian Weimer  <fweimer@redhat.com>
10996
10997         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
10998         Declare with warn_unused_result.
10999         (setgid, setregid, setegid, setresgid): Likewise.
11000         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
11001         Likewise.
11002         * WUR-REPORT: Remove set*id functions.
11003
11004 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
11005
11006         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
11007
11008 2012-07-31  Roland McGrath  <roland@hack.frob.com>
11009
11010         * include/sys/socket.h (__libc_accept, __libc_accept4):
11011         Add attribute_hidden.
11012         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
11013
11014         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
11015         use of PTR_MANGLE.
11016         * inet/getnetgrent_r.c (setup): Likewise.
11017
11018         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
11019
11020 2012-07-31  David S. Miller  <davem@davemloft.net>
11021
11022         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11023
11024 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
11025
11026         [BZ #13629]
11027         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
11028         value between 1.0 and 2.0 and smaller part has absolute value less
11029         than 1.0.
11030         * math/s_clog10.c (__clog10): Likewise.
11031         * math/s_clog10f.c (__clog10f): Likewise.
11032         * math/s_clog10l.c (__clog10l): Likewise.
11033         * math/s_clogf.c (__clogf): Likewise.
11034         * math/s_clogl.c (__clogl): Likewise.
11035         * math/libm-test.inc (clog_test): Add more tests.
11036         (clog10_test): Likewise.
11037         * sysdeps/i386/fpu/libm-test-ulps: Update.
11038         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11039
11040 2012-07-31  Florian Weimer  <fweimer@redhat.com>
11041
11042         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
11043         Exit with zero in case no suitable GID is found, and write a
11044         message to standard error.
11045
11046 2012-07-30  Roland McGrath  <roland@hack.frob.com>
11047
11048         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
11049         rather than to 1.
11050         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
11051         (MAXPATHLEN): Removed.
11052         (NOGROUP, NODEV): New macros.
11053         (setbit, clrbit, isset, isclr): New macros.
11054         (howmany, roundup, powerof2): New macros.
11055         (DEV_BSIZE): New macro.
11056
11057         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
11058         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
11059
11060         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
11061         definition on [!__NO_LONG_DOUBLE_MATH].
11062
11063         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
11064         PTR_MANGLE and PTR_DEMANGLE.
11065
11066         * socket/accept4.c (accept4): Rename to __libc_accept4.
11067         Define accept4 as a weak alias.
11068
11069         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
11070         on [_DIRENT_HAVE_D_TYPE].
11071         * io/ftw.c (ftw_dir): Likewise.
11072
11073         * io/xmknod.c (__xmknod): Don't check PATH for being null.
11074
11075         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
11076
11077         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
11078         Use the BSD numbers rather than the arbitrary ones we had.
11079         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
11080         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
11081         (SIGXCPU, SIGXFSZ): New macros.
11082         (_NSIG): Now 32.
11083
11084         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
11085         initializer on [_LIBC_REENTRANT].
11086
11087         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
11088         definitions inside [_POSIX_MAPPED_FILES].
11089
11090         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
11091
11092         * dirent/opendir.c: Include <fcntl.h>.
11093
11094         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
11095         (__libc_getspecific): Likewise.
11096         (__libc_key_create): Likewise.
11097
11098         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
11099         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
11100         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
11101         (tmpfile64): Define as alias.
11102         * sysdeps/wordsize-64/tmpfile.c: File removed.
11103         * sysdeps/wordsize-64/tmpfile64.c: File removed.
11104         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
11105         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
11106
11107         * stdio-common/vfscanf.c: Include <stdbool.h>.
11108         * nss/makedb.c: Likewise.
11109         * stdio-common/_i18n_number.h: Likewise.
11110         * argp/argp-help.c: Likewise.
11111         * posix/wordexp.c: Likewise.
11112         * sysdeps/posix/spawni.c: Likewise.
11113         * nss/nss_files/files-initgroups.c: Likewise.
11114         * stdio-common/reg-modifier.c: Include <stdlib.h>.
11115         * nss/nss_files/files-initgroups.c: Likewise.
11116         * nss/nss_db/db-netgrp.c: Likewise.
11117         * nss/nss_db/db-initgroups.c: Likewise.
11118         * io/fchmodat.c: Include <sys/stat.h>.
11119
11120         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
11121         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
11122
11123         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
11124         [HAVE_MMAP].
11125
11126         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
11127         Add multiple inclusion protection.
11128
11129 2012-07-27  David S. Miller  <davem@davemloft.net>
11130
11131         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11132
11133 2012-07-27  Gary Benson  <gbenson@redhat.com>
11134
11135         [BZ #14298]
11136         * elf/rtld.c: Include <stap-probe.h>.
11137         (dl_main): Added static probes "init_start" and "init_complete".
11138         * elf/dl-load.c: Include <stap-probe.h>.
11139         (lose): Take new parameter "nsid".
11140         Added static probe "map_failed".
11141         (_dl_map_object_from_fd): Pass namespace id to lose.
11142         Added static probe "map_start".
11143         (open_verify): Pass namespace id to lose.
11144         * elf/dl-open.c: Include <stap-probe.h>.
11145         (dl_open_worker) Added static probes "map_complete", "reloc_start"
11146         and "reloc_complete".
11147         * elf/dl-close.c: Include <stap-probe.h>.
11148         (_dl_close_worker): Added static probes "unmap_start" and
11149         "unmap_complete".
11150         * elf/rtld-debugger-interface.txt: New file documenting the above.
11151
11152 2012-07-26  Roland McGrath  <roland@hack.frob.com>
11153
11154         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
11155         rather than a string variable.
11156         * sunrpc/rpc_main.c (h_output): Likewise.
11157         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
11158
11159 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
11160
11161         * inet/check_native.c: New file.
11162
11163 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
11164
11165         [BZ #13629]
11166         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
11167         if larger part has absolute value 1.0.
11168         * math/s_clog10.c (__clog10): Likewise.
11169         * math/s_clog10f.c (__clog10f): Likewise.
11170         * math/s_clog10l.c (__clog10l): Likewise.
11171         * math/s_clogf.c (__clogf): Likewise.
11172         * math/s_clogl.c (__clogl): Likewise.
11173         * math/libm-test.inc (clog_test): Add more tests.
11174         (clog10_test): Likewise.
11175         * sysdeps/i386/fpu/libm-test-ulps: Update.
11176         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11177
11178         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
11179         (pltexit): Likewise.
11180         (La_regs): Likewise.
11181         (La_retval): Likewise.
11182         (int_retval): Likewise.
11183         Update #error for removed macros to refer only to definitions in
11184         tst-audit.h.
11185         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
11186         macro.
11187         (pltexit): Likewise.
11188         (La_regs): Likewise.
11189         (La_retval): Likewise.
11190         (int_retval): Likewise.
11191         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
11192         macro.
11193         (pltexit): Likewise.
11194         (La_regs): Likewise.
11195         (La_retval): Likewise.
11196         (int_retval): Likewise.
11197         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
11198         macro.
11199         (pltexit): Likewise.
11200         (La_regs): Likewise.
11201         (La_retval): Likewise.
11202         (int_retval): Likewise.
11203         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
11204         macro.
11205         (pltexit): Likewise.
11206         (La_regs): Likewise.
11207         (La_retval): Likewise.
11208         (int_retval): Likewise.
11209         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
11210         macro.
11211         (pltexit): Likewise.
11212         (La_regs): Likewise.
11213         (La_retval): Likewise.
11214         (int_retval): Likewise.
11215         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
11216         macro.
11217         (pltexit): Likewise.
11218         (La_regs): Likewise.
11219         (La_retval): Likewise.
11220         (int_retval): Likewise.
11221         * sysdeps/generic/tst-audit.h: Update comment to refer only to
11222         macro definitions in tst-audit.h.
11223         * sysdeps/i386/tst-audit.h: New file.
11224         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
11225         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
11226         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
11227         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
11228         * sysdeps/sh/tst-audit.h: Likewise.
11229         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
11230         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
11231         * sysdeps/x86_64/tst-audit.h: Likewise.
11232
11233 2012-07-26  Andreas Jaeger  <aj@suse.de>
11234
11235         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
11236         ptrace.
11237
11238         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
11239         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
11240         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
11241         PTRACE_O_MASK.
11242         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
11243         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
11244         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
11245
11246         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
11247         value.
11248
11249         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
11250         _sigsys.
11251         (si_call_addr, si_syscall, si_arch): Define new macro.
11252         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
11253         _sigsys.
11254         (si_call_addr, si_syscall, si_arch): Define new marcro.
11255         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
11256         _sigsys.
11257         (si_call_addr, si_syscall, si_arch): Define new macro.
11258         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
11259         _sigsys.
11260         (si_call_addr, si_syscall, si_arch): Define new macro.
11261
11262 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
11263
11264         [BZ #13717]
11265         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
11266         Change to 2.4.21 where previously 2.4.1.
11267         * sysdeps/unix/sysv/linux/configure: Regenerated.
11268         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
11269         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
11270         Linux kernel version.
11271         (__ASSUME_STD_AUXV): Remove.
11272         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
11273         kernel version.
11274         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
11275         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
11276         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
11277         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
11278         (__ASSUME_NETLINK_SUPPORT): Likewise.
11279         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
11280         (__no_netlink_support): Remove conditional definition.
11281         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
11282         Remove.
11283         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
11284         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
11285         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
11286         (if_nameindex_ioctl): Remove.
11287         (if_nameindex_netlink): Do not handle __no_netlink_support.
11288         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
11289         code.
11290         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
11291         Remove conditional code.
11292         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
11293         code.
11294         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
11295         unconditional.
11296         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
11297         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
11298         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
11299         Remove.
11300         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
11301         [!__ASSUME_STD_AUXV]: Remove conditional code.
11302         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
11303         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
11304         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
11305         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
11306         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
11307         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
11308         code.
11309         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
11310         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
11311         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
11312         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
11313         conditional code.
11314         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
11315         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
11316         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
11317         code.
11318         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
11319         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
11320         conditional code.
11321         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
11322         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
11323         code unconditional.
11324         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
11325         conditional code.
11326         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
11327         unconditional.
11328         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
11329         conditional code.
11330         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
11331         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
11332         unconditional.
11333         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
11334         conditional code.
11335         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
11336         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
11337         code unconditional.
11338         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
11339         conditional code.
11340         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
11341         unconditional.
11342         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
11343         conditional code.
11344         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
11345         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
11346         code unconditional.
11347         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
11348         conditional code.
11349         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
11350         unconditional.
11351         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
11352         conditional code.
11353
11354 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
11355
11356         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
11357         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
11358         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
11359         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
11360         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
11361         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
11362         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
11363         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
11364         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
11365         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
11366         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
11367         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
11368         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
11369         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
11370         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
11371         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
11372         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
11373         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
11374         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
11375         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
11376         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
11377         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
11378         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
11379
11380 2012-07-25  Florian Weimer  <fweimer@redhat.com>
11381
11382         * Versions.def: Add GLIBC_2.17.
11383         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
11384         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
11385         Introduce __libc_secure_getenv.
11386         * stdlib/Versions (2.17): Add secure_getenv
11387         (GLIBC_PRIVATE): Add __libc_secure_getenv.
11388         * stdlib/secure-getenv.c: Rename __secure_getenv to
11389         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
11390         symbol __secure_getenv for GLIBC_2.0.
11391         * stdlib/tst-secure-getenv.c: New.
11392         * stdlib/Makefile (tests): Add testcase.
11393         * manual/startup.texi (Environment Access): Document
11394         secure_getenv.
11395         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
11396         __libc_secure_getenv.
11397         * inet/ruserpass.c (ruserpass): Likewise.
11398         * malloc/mtrace.c (mtrace): Likewise.
11399         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
11400         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
11401         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
11402         * sysdeps/posix/tempname.c: Likewise.  Evaluate
11403         HAVE_SECURE_GETENV.
11404         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
11405         __secure_getenv to __libc_secure_getenv.
11406         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
11407         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
11408         Likewise.
11409         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
11410         Likewise.
11411         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
11412         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
11413         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
11414         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
11415         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
11416         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
11417         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
11418
11419 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
11420
11421         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
11422         (struct La_i86_retval): Likewise.
11423         (struct La_x86_64_regs): Likewise.
11424         (struct La_x86_64_retval): Likewise.
11425         (struct La_x32_regs): Likewise.
11426         (struct La_x32_retval): Likewise.
11427         (struct La_ppc32_regs): Likewise.
11428         (struct La_ppc32_retval): Likewise.
11429         (struct La_ppc64_regs): Likewise.
11430         (struct La_ppc64_retval): Likewise.
11431         (struct La_sh_regs): Likewise.
11432         (struct La_sh_retval): Likewise.
11433         (struct La_s390_32_regs): Likewise.
11434         (struct La_s390_32_retval): Likewise.
11435         (struct La_s390_64_regs): Likewise.
11436         (struct La_s390_64_retval): Likewise.
11437         (struct La_sparc32_regs): Likewise.
11438         (struct La_sparc32_retval): Likewise.
11439         (struct La_sparc64_regs): Likewise.
11440         (struct La_sparc64_retval): Likewise.
11441         (struct audit_ifaces): Remove architecture-specific pltenter and
11442         pltexit members.
11443         * sysdeps/i386/ldsodefs.h: New file.
11444         * sysdeps/powerpc/ldsodefs.h: Likewise.
11445         * sysdeps/s390/ldsodefs.h: Likewise.
11446         * sysdeps/sh/ldsodefs.h: Likewise.
11447         * sysdeps/sparc/ldsodefs.h: Likewise.
11448         * sysdeps/x86_64/ldsodefs.h: Likewise.
11449
11450 2012-07-25  Marek Polacek  <polacek@redhat.com>
11451
11452         [BZ #6808]
11453         * math/libm-test.inc (yn_test): Add another test.
11454         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
11455         to ERANGE when the result is +-Inf.
11456         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
11457         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
11458         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
11459         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
11460
11461 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
11462
11463         * conform/data/time.h-data (NULL): Use macro-constant.  Require
11464         equal to 0.
11465         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
11466         clock_t.
11467         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
11468
11469 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
11470
11471         * configure.in <sysdeps resolving>: Correct printing
11472         Implies_before.
11473         * configure: Regenerate.
11474
11475 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
11476
11477         * math/w_ilogb.c: Include <limits.h>.
11478         * math/w_ilogbl.c: Likewise.
11479
11480 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
11481
11482         * manual/lang.texi (__va_copy): Document primarily as ISO C99
11483         va_copy.  Document allowing for unavailable va_copy only as
11484         pre-C99 compatibility.
11485         * manual/string.texi (Copying and Concatenation): Use va_copy
11486         instead of __va_copy in concat example.
11487
11488 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
11489
11490         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
11491         (__sendto): Use create_address_port.  Initialize APORT and deallocate
11492         it if not null.
11493
11494         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
11495         with O_NOLINK passed to __file_name_lookup.
11496
11497         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
11498         with O_NOLINK passed to __file_name_lookup.
11499
11500         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
11501         negative N or less than NGIDS.
11502
11503         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
11504         type to string_t.  Set ERANGE as errno and return it if NAME is not big
11505         enough.  Use memcpy instead of strncpy.
11506
11507 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
11508
11509         * elf/Makefile (check-data): Remove.
11510         (localplt.data): New vpath directive.
11511         ($(objpfx)check-localplt.out): Use localplt.data from vpath
11512         instead of $(check-data).
11513         * scripts/data/localplt-generic.data: Move to ...
11514         * sysdeps/generic/localplt.data: ... here.
11515         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
11516         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
11517         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
11518         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
11519         ... here.
11520         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
11521         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
11522         ... here.
11523         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
11524         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
11525         ... here.
11526         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
11527         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
11528         ... here.
11529         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
11530         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
11531         ... here.
11532         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
11533         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
11534         ... here.
11535
11536 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11537
11538         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
11539         PPC32 and PPC64 files.
11540         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
11541         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
11542
11543 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11544
11545         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
11546         __makecontext_ret to ...
11547         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
11548         ... here and call exit if uc_link is NULL.  New file.
11549         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
11550         __makecontext_ret.S.
11551         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
11552         __makecontext_ret to ...
11553         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
11554         ... here and call exit if uc_link is NULL.  New file.
11555         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
11556         __makecontext_ret.S.
11557
11558 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11559
11560         * elf/elf.h (R_390_IRELATIVE): New definition.
11561         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
11562         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
11563         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
11564         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
11565         (elf_machine_lazy_rel): Likewise.
11566         * sysdeps/s390/dl-irel.h: New file.
11567         * sysdeps/s390/s390-64/memcpy.S: New asm code.
11568         * sysdeps/s390/s390-64/memset.S: New asm code.
11569         * sysdeps/s390/s390-64/memcmp.S: New asm code.
11570         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
11571         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
11572         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
11573         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
11574         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
11575         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
11576         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
11577         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
11578         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
11579         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
11580         * sysdeps/s390/s390-32/memcpy.S: New asm code.
11581         * sysdeps/s390/s390-32/memset.S: New asm code.
11582         * sysdeps/s390/s390-32/memcmp.S: New asm code.
11583
11584 2012-07-17  Marek Polacek  <polacek@redhat.com>
11585
11586         [BZ #14349]
11587         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
11588         * sysdeps/s390/s390-64/configure.in: Likewise.
11589         * sysdeps/sparc/configure.in: Likewise.
11590         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
11591         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
11592         * sysdeps/i386/configure.in: Likewise.
11593         * sysdeps/x86_64/configure.in: Likewise.
11594         * sysdeps/sh/configure.in: Likewise.
11595         * sysdeps/s390/s390-32/configure: Regenerated.
11596         * sysdeps/s390/s390-64/configure: Likewise.
11597         * sysdeps/x86_64/configure: Likewise.
11598         * sysdeps/sh/configure: Likewise.
11599         * sysdeps/powerpc/powerpc64/configure: Likewise.
11600         * sysdeps/powerpc/powerpc32/configure: Likewise.
11601         * sysdeps/sparc/configure: Likwise.
11602         * sysdeps/i386/configure: Likewise.
11603
11604         * elf/dl-open.c: Comment fixes.
11605
11606 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
11607
11608         * Makefile [CXX] (check-data): Remove.
11609         [CXX] (c++-types.data): New vpath directive.
11610         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
11611         vpath.  Do not allow for C++ type data being missing.
11612         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
11613         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
11614         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
11615         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
11616         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
11617         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
11618         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
11619         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
11620         ... here.
11621         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
11622         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
11623         ... here.
11624         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
11625         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
11626         ... here.
11627         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
11628         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
11629         ... here.
11630         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
11631         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
11632         ... here.
11633         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
11634         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
11635         ... here.
11636         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
11637         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
11638         ... here.
11639         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
11640         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
11641
11642         * elf/tls-macros.h (TLS_LE): Move architecture-specific
11643         definitions to architecture-specific files.
11644         (TLS_IE): Likewise.
11645         (TLS_LD): Likewise.
11646         (TLS_GD): Likewise.
11647         * sysdeps/i386/tls-macros.h: New file.
11648         * sysdeps/powerpc/tls-macros.h: Likewise.
11649         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
11650         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
11651         * sysdeps/sh/tls-macros.h: Likewise.
11652         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
11653         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
11654         * sysdeps/x86_64/tls-macros.h: Likewise.
11655
11656 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
11657
11658         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
11659         zero value for regular exit case.
11660
11661         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
11662         (__start_context): Preserve zero value for regular exit case.
11663
11664 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
11665             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11666
11667         * manual/setjmp.texi (setcontext): Clarify normal process
11668         termination when uc_link is the null pointer.
11669         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
11670         exit call.
11671
11672 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
11673
11674         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
11675         preprocessor.  Test for each exception mask separately.
11676
11677 2012-07-16  Andreas Jaeger  <aj@suse.de>
11678
11679         * po/ru.po: Update from translation team.
11680
11681 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
11682
11683         * conform/data/string.h-data (NULL): Use macro-constant.  Require
11684         equal to 0.
11685         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
11686         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
11687         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
11688         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
11689         [ISO || ISO99 || ISO11] (*_t): Do not allow.
11690
11691 2012-07-13  Andreas Jaeger  <aj@suse.de>
11692
11693         * po/fr.po: Update from translation team.
11694
11695 2012-07-12  Marek Polacek  <polacek@redhat.com>
11696
11697         [BZ #14173]
11698         * math/libm-test.inc (yn_test): Add test for BZ #14173.
11699         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
11700         loop condition.
11701
11702 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
11703
11704         [BZ #13717]
11705         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
11706         Change to 2.4.1 where previously 2.4.0.
11707         * sysdeps/unix/sysv/linux/configure: Regenerated.
11708         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
11709         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
11710         version.
11711         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
11712         (__ASSUME_AT_CLKTCK): Remove.
11713         (__ASSUME_AT_PAGESIZE): Likewise.
11714         (__ASSUME_AT_XID): Likewise.
11715         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
11716         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
11717         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
11718         unconditionally.
11719         (HAVE_AUX_PAGESIZE): Likewise.
11720         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
11721         [__ASSUME_AT_CLKTCK]: Make code unconditional.
11722         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
11723
11724 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
11725
11726         [BZ #14307]
11727         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
11728         the temporary buffer used to invoke __gethostbyname2_r,
11729         __gethostbyaddr_r and gethostbyname4_r to make room for struct
11730         host_data / struct gaih_addrtuple.
11731         * resolv/nss_dns/dns-host.c (global scope): Move definition of
11732         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
11733         header file nss/nsswitch.h.
11734         * nss/nsswitch.h (global scope): Add definition of implementation
11735         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
11736         resolv/nss_dns/dns-host.c).
11737
11738 2012-07-11  Andreas Jaeger  <aj@suse.de>
11739
11740         * po/fr.po: Update from translation team.
11741
11742         * po/sv.po: Update from translation team
11743         * po/fr.po: Another update from translation team.
11744
11745 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11746
11747         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
11748         for subnormals or multiply small sinh result by itself.
11749         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
11750         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11751
11752 2012-07-11  David S. Miller  <davem@davemloft.net>
11753
11754         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11755
11756 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
11757
11758         [BZ #14347]
11759         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
11760         (INTERNAL_MARK): Shift it here.
11761
11762 2012-07-10  Marek Polacek  <polacek@redhat.com>
11763
11764         [BZ #14151]
11765         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
11766         libc_cv_asm_global_directive with .globl.
11767         * configure: Regenerated.
11768         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
11769         with .globl.
11770         * sysdeps/i386/configure: Regenerated.
11771         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
11772         with .globl.
11773         * sysdeps/x86_64/configure: Regenerated.
11774         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
11775         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
11776         * elf/tst-unique2mod2.c: Likewise.
11777         * elf/tst-unique2mod1.c: Likewise.
11778         * elf/tst-unique1mod2.c: Likewise.
11779         * elf/tst-unique1mod1.c: Likewise.
11780         * sysdeps/s390/s390-32/sysdep.h: Likewise.
11781         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
11782         * sysdeps/s390/s390-64/sysdep.h: Likewise.
11783         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
11784         * sysdeps/mach/sysdep.h: Likewise.
11785         * sysdeps/i386/sysdep.h: Likewise.
11786         * sysdeps/i386/i386-mcount.S: Likewise.
11787         * sysdeps/x86_64/_mcount.S: Likewise.
11788         * sysdeps/x86_64/sysdep.h: Likewise.
11789         * sysdeps/sh/_mcount.S: Likewise.
11790         * sysdeps/sh/sysdep.h: Likewise.
11791         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
11792         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
11793         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
11794         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
11795         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
11796         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
11797         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
11798         * locale/localeinfo.h: Likewise.
11799         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
11800         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
11801
11802 2012-07-09  Roland McGrath  <roland@hack.frob.com>
11803
11804         [BZ #14336]
11805         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
11806         system".
11807         * manual/message.texi (The Uniforum approach): Likewise.
11808         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
11809         (glibc iconv Implementation): Likewise.
11810
11811 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
11812
11813         [BZ #14337]
11814         * math/s_clog.c (__clog): Avoid scaling a value down where that
11815         could result in underflow.
11816         * math/s_clog10.c (__clog10): Likewise.
11817         * math/s_clog10f.c (__clog10f): Likewise.
11818         * math/s_clog10l.c (__clog10l): Likewise.
11819         * math/s_clogf.c (__clogf): Likewise.
11820         * math/s_clogl.c (__clogl): Likewise.
11821         * math/libm-test.inc (clog_test): Add more tests.
11822         (clog10_test): Likewise.
11823         * sysdeps/i386/fpu/libm-test-ulps: Update.
11824         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11825
11826 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
11827
11828         [BZ #14283]
11829         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
11830         by 7 not 8 to examine high bit of fractional part.
11831
11832         [BZ #14042]
11833         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
11834         for call to __mcount_internal.
11835         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
11836         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
11837         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
11838
11839 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
11840
11841         [BZ #14154]
11842         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
11843         approximation for values within 0x1p-13f of an odd multiple of
11844         pi/4.
11845         * math/libm-test.inc (tan_test): Do not allow spurious underflow
11846         exception.  Add more tests.
11847         * sysdeps/i386/fpu/libm-test-ulps: Update.
11848
11849         [BZ #6778]
11850         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
11851         inputs and return -1 for them.  Do not check for +Inf in case not
11852         reachable for +Inf.
11853         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
11854         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
11855         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
11856         and return -1 for them.  Do not check for +Inf in case not
11857         reachable for +Inf.
11858         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
11859         define.
11860         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
11861         and return -1 for them.  Do not check for +Inf in case not
11862         reachable for +Inf.
11863         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
11864         spurious underflow.
11865         * sysdeps/i386/fpu/libm-test-ulps: Update.
11866         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11867
11868 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
11869
11870         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
11871
11872 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
11873
11874         [BZ #14157]
11875         [BZ #14331]
11876         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
11877         could result in spurious underflow.  Scale down values above
11878         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
11879         * math/s_csqrtf.c (__csqrtf): Likewise.
11880         * math/s_csqrtl.c (__csqrtl): Likewise.
11881         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
11882         spurious underflow.
11883         * sysdeps/i386/fpu/libm-test-ulps: Update.
11884         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11885
11886 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
11887
11888         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
11889         xopen-msg.sed.
11890         * catgets/xopen-msg.awk: New file.
11891         * catgets/xopen-msg.sed: Removed.
11892
11893         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
11894         po2text.sed.
11895         * intl/po2test.awk: New file.
11896         * intl/po2test.sed: Removed.
11897
11898 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
11899
11900         [BZ #14328]
11901         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
11902         or multiply small sinh result by itself.
11903         * math/s_ctanf.c (__ctanf): Likewise.
11904         * math/s_ctanh.c (__ctanh): Likewise.
11905         * math/s_ctanhf.c (__ctanhf): Likewise.
11906         * math/s_ctanhl.c (__ctanhl): Likewise.
11907         * math/s_ctanl.c (__ctanl): Likewise.
11908         * math/libm-test.inc (ctan_test_tonearest): New function.
11909         (ctan_test_towardzero): Likewise.
11910         (ctan_test_downward): Likewise.
11911         (ctan_test_upward): Likewise.
11912         (ctanh_test_tonearest): Likewise.
11913         (ctanh_test_towardzero): Likewise.
11914         (ctanh_test_downward): Likewise.
11915         (ctanh_test_upward): Likewise.
11916         (main): Call these new functions.
11917         * sysdeps/i386/fpu/libm-test-ulps: Update.
11918         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11919
11920 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
11921
11922         * .gitignore: Delete /ports entry.
11923
11924 2012-07-03  Andreas Jaeger  <aj@suse.de>
11925
11926         * po/bg.po: Update from translation team.
11927         * po/cs.po: Likewise.
11928         * po/de.po: Likewise.
11929         * po/hr.po: Likewise.
11930         * po/nl.pl: Likewise.
11931         * po/pl.po: Likewise.
11932         * po/vi.po: Likewise.
11933
11934 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
11935
11936         * Makeconfig [!+link] (+link-before-libc): New variable.
11937         [!+link] (+link-after-libc): Likewise.
11938         [!+link] (+link-tests): Likewise.
11939         [!+link] (+link): Define in terms of $(+link-before-libc) and
11940         $(+link-after-libc).
11941         [!+link-static] (+link-static-before-libc): New variable.
11942         [!+link-static] (+link-static-after-libc): Likewise.
11943         [!+link-static] (+link-static-tests): Likewise.
11944         [!+link-static] (+link-static): Define in terms of
11945         $(+link-static-before-libc) and $(+link-static-after-libc).
11946         [build-shared] (link-libc-before-gnulib): New variable.
11947         [build-shared] (link-libc-tests): Likewise.
11948         [build-shared] (link-libc): Define in terms of
11949         $(link-libc-before-gnulib).
11950         [!build-shared] (link-libc-tests): New variable.
11951         (link-libc-static-tests): New variable.
11952         [!gnulib] (gnulib-arch): New variable.
11953         [!gnulib] (gnulib-tests): Likewise.
11954         [!gnulib] (static-gnulib-arch): Likewise.
11955         [!gnulib] (static-gnulib-tests): Likewise.
11956         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
11957         Define with "=" instead of ":=".
11958         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
11959         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
11960         * Rules (binaries-all-notests): New variable.
11961         (binaries-all-tests): Likewise.
11962         (binaries-static-notests): Likewise.
11963         (binaries-static-tests): Likewise.
11964         (binaries-all): Define using $(binaries-all-notests) and
11965         $(binaries-all-tests).
11966         (binaries-static): Define using $(binaries-static-notests) and
11967         $(binaries-static-tests).
11968         (binaries-shared-tests): New variable.
11969         (binaries-shared-notests): Likewise.
11970         (binaries-shared): Remove variable.
11971         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
11972         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
11973         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
11974         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
11975         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
11976         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
11977         * elf/Makefile (sln-modules): New variable.
11978         (extra-objs): Add $(sln-modules:=.o).
11979         (ldconfig-modules): Add static-stubs.
11980         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
11981         * elf/static-stubs.c: New file.
11982
11983         [BZ #14283]
11984         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
11985         by 7 not 8 to examine high bit of fractional part.  Use volatile
11986         variables when splitting into final array of floats if
11987         __FLT_EVAL_METHOD__ != 0.
11988         * math/libm-test.inc (cos_test): Add another test.
11989         (sin_test): Likewise.
11990         * sysdeps/i386/fpu/libm-test-ulps: Update.
11991
11992         [BZ #14273]
11993         * math/libm-test.inc (cosh_test): Add more tests.
11994
11995         * version.h (RELEASE): Set to "development".
11996         (VERSION): Set to "2.16.90".
11997
11998 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
11999
12000         * NEWS: Update copyright. Remove last-updated date.
12001         Mention math library bug fixes and timezone data changes.
12002         * README: Mention GNU/Hurd, x32, and HPPA support status.
12003
12004 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
12005
12006         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
12007
12008 2012-06-27  Andreas Jaeger  <aj@suse.de>
12009
12010         * manual/contrib.texi (Contributors): Add Samuel Thibault.
12011
12012 2012-06-25  Andreas Jaeger  <aj@suse.de>
12013
12014         * sysdeps/s390/fpu/libm-test-ulps: Update.
12015
12016 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
12017             Thomas Schwinge  <thomas@codesourcery.com>
12018
12019         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
12020         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
12021         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
12022         fanotify_mark.
12023
12024 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
12025
12026         * sysdeps/mach/start.c: Remove file.
12027         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
12028         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
12029         * sysdeps/sh/init-first.c: Likewise.
12030
12031         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
12032         registers for frame unwinding purposes, add CFI directives.
12033         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
12034         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
12035         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
12036         Likewise.
12037
12038         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
12039         __fortify_fail returning.
12040         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
12041
12042         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
12043         sysdeps/sh/____longjmp_chk.S.
12044         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
12045         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
12046         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
12047         (gen-as-const-headers): Append sigaltstack-offsets.sym.
12048
12049         * sysdeps/sh/abort-instr.h: New file.
12050         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
12051         process in case exit returns.
12052
12053         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
12054         initialize the GOT register before use.
12055
12056         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
12057         calculation of ARGC > 4.
12058
12059         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
12060         meaningful names to some local labels.
12061
12062 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
12063             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
12064
12065         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
12066         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
12067         (__arch_compare_and_exchange_val_16_acq): Likewise.
12068         (__arch_compare_and_exchange_val_32_acq): Likewise.
12069         (atomic_exchange_and_add): Fix gUSA sequence.
12070         (atomic_add): Likewise.
12071         (atomic_add_negative): Likewise.
12072         (atomic_add_zero): Likewise.
12073         (atomic_bit_test_set): Likewise.
12074
12075 2012-06-22  Andreas Schwab  <schwab@redhat.com>
12076
12077         [BZ #13579]
12078         * include/link.h (struct link_map): Add l_free_initfini.
12079         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
12080         l_initfini.
12081         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
12082         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
12083         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
12084         set.
12085
12086 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
12087
12088         * configure.in: Use AC_LANG_SOURCE.
12089         * configure: Regenerate.
12090
12091 2012-06-22  Roland McGrath  <roland@hack.frob.com>
12092
12093         * configure.in (libc_cv_localstatedir): New substituted variable.
12094         * configure: Regenerated.
12095         * config.make.in (localstatedir): New variable, substituted from
12096         libc_cv_localstatedir.
12097         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
12098         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
12099         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
12100         * sysdeps/gnu/configure: Regenerated.
12101
12102 2012-06-21  Jeff Law  <law@redhat.com>
12103
12104         [BZ #14277]
12105         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
12106         free.  Simplify list management for _LIBC case.
12107
12108 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
12109
12110         [BZ #14273]
12111         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
12112         Clear sign bit of 64-bit integer value before comparing against
12113         overflow value.
12114
12115         * sysdeps/mach/configure: Regenerated.
12116
12117 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
12118
12119         [BZ #14278]
12120         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
12121
12122 2012-06-21  Jeff Law  <law@redhat.com>
12123
12124         [BZ #13882]
12125         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
12126         uint16_t for elements in the "seen" array to avoid char overflows.
12127         * elf/dl-fini.c (_dl_sort_fini): Likewise.
12128         * elf/dl-open.c (dl_open_worker): Likewise.
12129
12130 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
12131
12132         * scripts/list-sources.sh: Scan PORTS for translations.
12133         * po/libc.pot: Regenerated.
12134
12135 2012-06-21  Andreas Jaeger  <aj@suse.de>
12136
12137         [BZ #12194]
12138         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
12139         warning.
12140         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
12141         * bits/byteswap-16.h (__bswap_16): Likewise.
12142         * bits/byteswap.h (__bswap_constant_16): Likewise.
12143
12144 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
12145
12146         [BZ #14117]
12147         * sysdeps/i386/fpu_control.h: Removed.
12148         * sysdeps/x86_64/fpu_control.h: Moved to ...
12149         * sysdeps/x86/fpu_control.h: Here.
12150
12151         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
12152         (_FPU_SETCW): Likewise.
12153
12154 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
12155
12156         [BZ #14117]
12157         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
12158         * sysdeps/x86/fpu/bits/mathinline.h: This.
12159         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
12160
12161         [BZ #14050]
12162         [BZ #14117]
12163         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
12164         functions if __x86_64__ is defined.
12165
12166 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
12167
12168         * string/endian.h: Add !__ASSEMBLER__ condition for including
12169         conversion interfaces.
12170
12171 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
12172
12173         [BZ #14241]
12174         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
12175         of ABS(x) in calculating zero to negative powers other than odd
12176         integers.
12177         * math/libm-test.inc (pow_test): Add more tests.
12178
12179 2012-06-15  Andreas Jaeger  <aj@suse.de>
12180
12181         * manual/contrib.texi (Contributors): Update entry of Liubov
12182         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
12183         Machado Filho.
12184
12185 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
12186
12187         * string/string.h: Add __wur to GNU version of strerror_r.
12188
12189 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
12190
12191         [BZ #14229]
12192         * string/Makefile (tests): Add tst-strtok_r.
12193         * string/tst-strtok_r.c: New file.
12194         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
12195         RAX_LP/RDX_LP on SAVE_PTR.
12196
12197 2012-06-14  Roland McGrath  <roland@hack.frob.com>
12198
12199         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
12200
12201 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
12202
12203         * libm_test.inc (csqrt_test): Allow more spurious underflow
12204         exceptions.
12205         (j0_test): Likewise.
12206         (j1_test): Likewise.
12207         (y0_test): Likewise.
12208         (y1_test): Likewise.
12209
12210 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
12211
12212         * po/Makefile (libc.pot): Use UTF-8 charset.
12213
12214 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
12215
12216         [BZ #14210]
12217         Suppress sign-conversion warning from FD_SET.
12218         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
12219         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
12220         not unsigned long int.
12221         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
12222
12223 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
12224
12225         [BZ #14050]
12226         [BZ #14117]
12227         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
12228         __extern_always_inline instead of __extern_inline.
12229         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
12230         (__signbit): Likewise.
12231         (__signbitl): Support C++ namespace.
12232         (lrintf): New inline function.
12233         (lrint): Likewise.
12234         (llrintf): Likewise.
12235         (llrint): Likewise.
12236         (fmaxf): Likewise.
12237         (fmax): Likewise.
12238         (fminf): Likewise.
12239         (fmin): Likewise.
12240         (rint): Likewise.
12241         (rintf): Likewise.
12242         (ceil): Likewise.
12243         (ceilf): Likewise.
12244         (floor): Likewise.
12245         (floorf): Likewise.
12246         (nearbyint): Likewise.
12247         (nearbyintf): Likewise.
12248
12249 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
12250
12251         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
12252         non-default versions.
12253
12254 2012-06-11  Roland McGrath  <roland@hack.frob.com>
12255
12256         [BZ #14218]
12257         * manual/argp.texi (Argp): Reword argp_parse description slightly.
12258
12259 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
12260
12261         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
12262         (FE_UPWARD, FE_DOWNWARD): Don't define.
12263         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
12264         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
12265
12266         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
12267         reading it.
12268         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
12269         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
12270
12271 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
12272
12273         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
12274         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
12275         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
12276         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
12277
12278 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
12279
12280         [BZ #14117]
12281         * sysdeps/i386/fpu/bits/fenv.h: Removed.
12282         * sysdeps/i386/fpu/Implies: New file.
12283         * sysdeps/x86_64/fpu/Implies: Likewise.
12284         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
12285         * sysdeps/x86/fpu/bits/fenv.h: This.
12286
12287         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
12288         __SSE_MATH__.
12289
12290 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
12291
12292         [BZ #14134]
12293         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
12294         character 0xffff that matches the last element of the
12295         conversion table.
12296
12297 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12298
12299         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
12300         fmodl commit.
12301
12302 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12303
12304         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
12305         values higher than 25.6283.
12306
12307 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12308
12309         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
12310         subnormal exponent extraction and add some __builtin_expect.
12311         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
12312         Fix for subnormal mantissa calculation.
12313
12314 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
12315
12316         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
12317         cpu2 is -1 and errno is not ENOSYS.
12318
12319 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
12320
12321         [BZ #14117]
12322         * sysdeps/i386/i486/bits/string.h: Renamed to ...
12323         * sysdeps/x86/bits/string.h: This.
12324         * sysdeps/x86_64/bits/string.h: Removed.
12325
12326         * sysdeps/i386/i486/bits/string.h: Define inline functions only
12327         if not compiling for x86-64, but compiling for >= i486.
12328
12329         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
12330         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
12331
12332         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
12333         New macro from Linux kernel 3.4.0.
12334         (FP_XSTATE_MAGIC2): Likewise.
12335         (FP_XSTATE_MAGIC2_SIZE): Likewise.
12336         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
12337         (struct _fpx_sw_bytes): New struct.
12338         (struct _xsave_hdr): Likewise.
12339         (struct _ymmh_state): Likewise.
12340         (struct _xstate): Likewise.
12341
12342         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
12343         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
12344         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
12345         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
12346         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
12347         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
12348
12349         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
12350         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
12351         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
12352         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
12353         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
12354         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
12355
12356 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
12357
12358         [BZ #13743]
12359         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
12360         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
12361         (sysdep_headers): Include sys/platform/ppc.h.
12362         * sysdeps/powerpc/test-gettimebase.c: Test for
12363         __ppc_get_timebase() to catch future ISA opcode/insn changes.
12364         * manual/Makefile (appendices): Include platform.texi.
12365         * manual/contrib.texi (Contributors): Update @node pointers.
12366         * manual/maint.texi (Maintenance): Likewise.
12367         (Platform): New node.
12368         * manual/platform.texi: New file.  Document the new features.
12369
12370 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
12371             Jakub Jelinek  <jakub@redhat.com>
12372
12373         [BZ #14188]
12374         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
12375         where __builtin_expect is unavailable.
12376
12377 2012-06-03  David S. Miller  <davem@davemloft.net>
12378
12379         * stdlib/longlong.h: Updated from GCC.
12380
12381 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
12382
12383         [BZ #14042]
12384         * sysdeps/powerpc/powerpc32/mcount.c: New file.
12385         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
12386         __mcount_internal.
12387         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
12388         (GLIBC_2.16): Likewise.
12389
12390 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
12391
12392         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
12393
12394 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
12395
12396         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
12397         (default-abi): New variable.
12398         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
12399         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
12400         variable.
12401         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
12402         Likewise.
12403         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
12404         Likewise.
12405         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
12406         Likewise.
12407
12408         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
12409         definition.  Document in comment.
12410
12411 2012-06-01  David S. Miller  <davem@davemloft.net>
12412
12413         * stdlib/longlong.h: Updated from GCC.
12414
12415 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
12416
12417         [BZ #14117]
12418         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
12419         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
12420         sys/debugreg.h sys/io.h here.
12421         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
12422         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
12423         sys/io.h.
12424         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
12425         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
12426         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
12427         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
12428         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
12429         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
12430
12431         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
12432         Define only if __x86_64__ is defined.
12433
12434 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
12435
12436         [BZ #14048]
12437         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
12438         Use int64_t for variable i.
12439         * math/libm-test.inc (fmod_test): Add more tests.
12440
12441         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
12442         z computation is not scheduled after fetestexcept.
12443         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
12444         Use math_force_eval instead of asm to ensure calculation scheduled
12445         before exception test.
12446         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
12447         Ensure a1 + u.d computation is not scheduled after fetestexcept.
12448
12449 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
12450
12451         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
12452         computation is not scheduled after fetestexcept.
12453
12454 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
12455
12456         [BZ #14117]
12457         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
12458         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
12459
12460 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12461
12462         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
12463         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
12464
12465 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
12466
12467         [BZ #14117]
12468         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
12469         <bits/wordsize.h>.
12470         (__WCHAR_MIN): Support __WORDSIZE == 64.
12471         (__WCHAR_MAX): Likewise.
12472
12473         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
12474         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
12475
12476         [BZ #14183]
12477         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
12478         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
12479
12480         [BZ #14117]
12481         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
12482         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
12483
12484         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
12485         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
12486
12487         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
12488         Defined to 1 if __x86_64__ isn't defined.
12489         (_STAT_VER_LINUX_OLD): New.
12490         (st_atime): Remove duplicate.
12491         (st_mtime): Likewise.
12492         (st_ctime): Likewise.
12493
12494 2012-05-31  David S. Miller  <davem@davemloft.net>
12495
12496         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
12497         entries.
12498
12499 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
12500
12501         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
12502         gen-libm-test.pl.
12503
12504         [BZ #14132]
12505         * elf/dl-reloc.c: Include <_itoa.h>.
12506         (_dl_reloc_bad_type): Remove use of INTUSE.
12507         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
12508         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
12509         * stdio-common/psiginfo.c (psiginfo): Likewise.
12510         * stdio-common/psignal.c (psignal): Likewise.
12511         * string/strsignal.c (strsignal): Likewise.
12512         * include/signal.h (_sys_siglist): Declare hidden proto.
12513         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
12514         INTVARDEF with libc_hidden_data_def.
12515         * stdio-common/itoa-udigits.c: Likewise.
12516         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
12517         (_itoa_lower_digits_internal): Remove declaration.
12518         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
12519         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
12520         (_sys_sigabbrev_internal): Remove aliases.
12521         (_sys_siglist): Define hidden alias.
12522
12523 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
12524
12525         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12526         bits/sysctl.h.
12527
12528 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
12529
12530         [BZ #14117]
12531         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
12532         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
12533
12534         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
12535         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
12536         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
12537         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
12538         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
12539         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
12540
12541         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
12542         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
12543         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
12544
12545         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
12546         with __addr.
12547         (insw): Likewise.
12548         (insl): Likewise.
12549         (outsb): Likewise.
12550         (outsw): Likewise.
12551         (outsl): Likewise.
12552
12553         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
12554         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
12555         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
12556
12557         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
12558         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
12559         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
12560         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
12561         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
12562         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
12563
12564         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
12565         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
12566
12567         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
12568         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
12569
12570         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
12571         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
12572         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
12573
12574         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
12575         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
12576         to ...
12577         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
12578
12579         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
12580         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
12581         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
12582
12583         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
12584         for x86-64.
12585         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
12586
12587 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
12588
12589         * math/math.h (M_El): Use two more decimal places.
12590         (M_LOG2El): Likewise.
12591         (M_LOG10El): Likewise.
12592         (M_LN2l): Likewise.
12593         (M_LN10l): Likewise.
12594         (M_PIl): Likewise.
12595         (M_PI_2l): Likewise.
12596         (M_PI_4l): Likewise.
12597         (M_1_PIl): Likewise.
12598         (M_2_PIl): Likewise.
12599         (M_2_SQRTPIl): Likewise.
12600         (M_SQRT2l): Likewise.
12601         (M_SQRT1_2l): Likewise.
12602
12603 2012-05-31  David S. Miller  <davem@davemloft.net>
12604
12605         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
12606         values between float registers.
12607         * sysdeps/sparc/sparc64/memset.S: Likewise.
12608         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
12609
12610 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
12611
12612         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
12613         -D_FORTIFY_SOURCE=1.
12614         (CPPFLAGS-tst-longjmp_chk.c): Define.
12615         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
12616         (CPPFLAGS-tst-longjmp_chk2.c): Define.
12617         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
12618         CFLAGS-tst-wchar-h.c.
12619
12620 2012-05-31  Marek Polacek  <polacek@redhat.com>
12621
12622         [BZ #14132]
12623         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
12624         __endmntent_internal): Remove declaration.
12625         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
12626         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
12627         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
12628
12629 2012-05-30  David S. Miller  <davem@davemloft.net>
12630
12631         * sysdeps/sparc/sparc32/soft-fp/q_util.c
12632         (___Q_simulate_exceptions): Use real FP ops rather than writing
12633         into the %fsr.
12634         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
12635         Likewise.
12636
12637 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
12638
12639         [BZ #14117]
12640         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
12641         * sysdeps/x86/bits/xtitypes.h: This.
12642
12643         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
12644         * sysdeps/x86/bits/wordsize.h: This.
12645
12646         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
12647         * sysdeps/x86/bits/huge_vall.h: This.
12648
12649         * sysdeps/i386/bits/select.h: Removed.
12650         * sysdeps/x86_64/bits/select.h: Renamed to ...
12651         * sysdeps/x86/bits/select.h: This.
12652
12653         * sysdeps/i386/bits/setjmp.h: Removed.
12654         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
12655         * sysdeps/x86/bits/setjmp.h: This.
12656
12657         * sysdeps/i386/bits/mathdef.h: Removed.
12658         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
12659         * sysdeps/x86/bits/mathdef.h: This.
12660
12661 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
12662
12663         [BZ #14132]
12664         * include/sys/socket.h (__connect_internal)
12665         (__libc_sa_len_internal): Remove declaration.
12666         (__connect, __libc_sa_len): Declare hidden_proto.
12667         (SA_LEN): Remove use of INTUSE.
12668         * socket/connect.c: Add libc_hidden_def.
12669         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
12670         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
12671         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
12672         alias.
12673         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
12674         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
12675         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
12676         of adding _internal alias.
12677
12678 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
12679
12680         [BZ #14117]
12681         * sysdeps/i386/bits/link.h: Removed.
12682         * sysdeps/i386/bits/linkmap.h: Likewise.
12683         * sysdeps/x86_64/bits/link.h: Renamed to ...
12684         * sysdeps/x86/bits/link.h: This.
12685         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
12686         * sysdeps/x86/bits/linkmap.h: This.
12687
12688         * sysdeps/i386/bits/endian.h: Removed.
12689         * sysdeps/x86_64/bits/endian.h: Renamed to ...
12690         * sysdeps/x86/bits/endian.h: This.
12691
12692         * sysdeps/i386/bits/byteswap.h: Removed.
12693         * sysdeps/i386/bits/byteswap-16.h: Likewise.
12694         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
12695         * sysdeps/x86/bits/byteswap.h: This.
12696         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
12697         * sysdeps/x86/bits/byteswap-16.h: This.
12698         * sysdeps/i386/Implies: Add x86.
12699         * sysdeps/x86_64/Implies: Likewise.
12700
12701 2012-05-30  David S. Miller  <davem@davemloft.net>
12702
12703         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
12704         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
12705         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
12706         (FP_TRAPPING_EXCEPTIONS): Define.
12707         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
12708         (FP_TRAPPING_EXCEPTIONS): Define.
12709         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
12710         subnormals only when inexact has been signalled or underflow
12711         exceptions are enabled.
12712         (_FP_PACK_CANONICAL): Likewise.
12713
12714 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
12715
12716         [BZ #14183]
12717         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
12718         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
12719
12720 2012-05-30  Richard Henderson  <rth@twiddle.net>
12721
12722         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
12723         with #ifndef NOT_IN_libc.
12724
12725         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
12726         marked to avoid plt entry.
12727
12728 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
12729
12730         [BZ #14112]
12731         * Makeconfig (default-abi): New macro.
12732         (abi-includes): Likewise.
12733         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
12734         $(abi-$(default-abi)-lib-soname) for soname if defined.
12735         ($(common-objpfx)gnu/lib-names.stmp): Generate from
12736         abi-variants.
12737         * Makefile (installed-stubs): Likewise.
12738         * include/stubs-biarch.h: Removed.
12739         * scripts/lib-names.awk: Only handle one library at a time.
12740         * scripts/soversions.awk: Remove WORDSIZE support.
12741         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
12742         entries.
12743         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
12744         Removed.
12745         (syscall-list-default-condition): Likewise.
12746         (syscall-list-default-condition): Likewise.
12747         (syscall-list-includes): Likewise.
12748         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
12749         syscall-list-* with abi-*.  Handle undefined abi-variants.
12750         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
12751         * sysdeps/unix/sysv/linux/i386/Implies: New file.
12752         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
12753         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
12754         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
12755         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
12756         Removed.
12757         (syscall-list-32-options): Likewise.
12758         (syscall-list-32-condition): Likewise.
12759         (syscall-list-64-options): Likewise.
12760         (syscall-list-64-condition): Likewise.
12761         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
12762         macro.
12763         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
12764         Renamed to ...
12765         (abi-*): This.
12766         (abi-64-ld-soname): New macro.
12767         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
12768         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
12769         Renamed to ...
12770         (abi-*): This.
12771         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
12772         * sysdeps/x86_64/x32/shlib-versions: Likewise.
12773
12774 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
12775
12776         * sysdeps/unix/sysv/linux/kernel-features.h
12777         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
12778         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
12779         include <kernel-features.h>.
12780         [!__NR_ftruncate64]: Remove conditional code.
12781         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
12782         [__NR_ftruncate64]: Make code unconditional.
12783         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
12784         * sysdeps/unix/sysv/linux/truncate64.c: Do not
12785         include <kernel-features.h>.
12786         [!__NR_ftruncate64]: Remove conditional code.
12787         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
12788         [__NR_ftruncate64]: Make code unconditional.
12789         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
12790         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
12791         include <kernel-features.h>.
12792         [!__NR_ftruncate64]: Remove conditional code.
12793         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
12794         [__NR_ftruncate64]: Make code unconditional.
12795         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
12796         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
12797         include <kernel-features.h>.
12798         [!__NR_ftruncate64]: Remove conditional code.
12799         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
12800         [__NR_ftruncate64]: Make code unconditional.
12801         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
12802
12803         * configure.in (libc_cv_fpie): Weaken to a compile test using
12804         LIBC_TRY_CC_OPTION.
12805         * configure: Regenerated.
12806
12807 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12808
12809         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
12810         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
12811         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
12812         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
12813         Refreshed.
12814         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
12815         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
12816         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
12817         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
12818         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
12819         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
12820         Refreshed.
12821
12822 2012-05-27  David S. Miller  <davem@davemloft.net>
12823
12824         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
12825         (___Q_zero): New.
12826         (__Q_simulate_exceptions): Return void.  Change to simulate
12827         exceptions by writing into the %fsr.
12828         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
12829         (__Qp_handle_exceptions): Likewise.
12830         (numbers): Delete.
12831         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
12832         __Qp_handle_exceptions.
12833         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
12834         __Qp_handle_exceptions.
12835         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
12836         as unused and give dummy FP_RND_NEAREST initializer.
12837         (FP_INHIBIT_RESULTS): Define.
12838         (___Q_simulate_exceptions): Update declaration.
12839         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
12840         formatting.
12841         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
12842         as unused and give dummy FP_RND_NEAREST initializer.
12843         (__Qp_handle_exceptions): Update declaration.
12844         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
12845         formatting.
12846
12847 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
12848
12849         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
12850         the temporary FPU control word.
12851         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
12852         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
12853         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
12854         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
12855         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
12856         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
12857         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
12858         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
12859         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
12860         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
12861         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
12862
12863 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
12864
12865         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
12866         fields.
12867
12868 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
12869
12870         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
12871         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
12872         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
12873         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
12874         Likewise.
12875         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
12876         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
12877         Likewise.
12878
12879 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
12880
12881         * po/h.po: Update from translation team.
12882
12883 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
12884
12885         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
12886
12887         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
12888         handling of denormals.
12889         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
12890         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
12891         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
12892         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
12893         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
12894         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
12895         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
12896         Likewise.
12897
12898 2012-05-26  Marek Polacek  <polacek@redhat.com>
12899
12900         [BZ #14152]
12901         * math/libm-test.inc (fma_test): Don't always expect underflow
12902         exception.
12903
12904 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
12905
12906         [BZ #12416]
12907         * elf/tst-execstack.c: Include stackinfo.h.
12908         (do_test): Adjust test case to ensure that pthread_getattr_np
12909         behaviour remains the same after marking stack executable.
12910
12911 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
12912
12913         * sysdeps/unix/sysv/linux/kernel-features.h
12914         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
12915         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
12916         kernel-features.h.
12917         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
12918         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
12919         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
12920         kernel-features.h.
12921         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
12922         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
12923
12924 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
12925
12926         * configure.in: Define the default includes to being none.
12927         * configure: Regenerated.
12928
12929 2012-05-25  Roland McGrath  <roland@hack.frob.com>
12930
12931         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
12932         * sysdeps/x86_64/setjmp.S: Likewise.
12933         * sysdeps/i386/bsd-setjmp.S: Likewise.
12934         * sysdeps/i386/bsd-_setjmp.S: Likewise.
12935         * sysdeps/i386/setjmp.S: Likewise.
12936         * sysdeps/i386/__longjmp.S: Likewise.
12937         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
12938         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
12939
12940         * include/stap-probe.h: New file.
12941         * configure.in: Handle --enable-systemtap.
12942         * configure: Regenerated.
12943         * config.h.in (USE_STAP_PROBE): New #undef.
12944         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
12945         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
12946         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
12947
12948 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
12949
12950         [BZ #13717]
12951         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
12952         to 2.4.0 where earlier.
12953         * sysdeps/unix/sysv/linux/configure: Regenerated.
12954         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
12955         <kernel-features.h>.
12956         [__ASSUME_32BITUIDS]: Make code unconditional.
12957         [!__ASSUME_32BITUIDS]: Remove conditional code.
12958         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
12959         <kernel-features.h>.
12960         [__ASSUME_32BITUIDS]: Make code unconditional.
12961         [!__ASSUME_32BITUIDS]: Remove conditional code.
12962         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
12963         [__ASSUME_32BITUIDS]: Make code unconditional.
12964         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
12965         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
12966         <kernel-features.h>.
12967         [__ASSUME_32BITUIDS]: Make code unconditional.
12968         [!__ASSUME_32BITUIDS]: Remove conditional code.
12969         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
12970         <kernel-features.h>.
12971         [__ASSUME_32BITUIDS]: Make code unconditional.
12972         [!__ASSUME_32BITUIDS]: Remove conditional code.
12973         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
12974         <kernel-features.h>.
12975         [__ASSUME_32BITUIDS]: Make code unconditional.
12976         [!__ASSUME_32BITUIDS]: Remove conditional code.
12977         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
12978         <kernel-features.h>.
12979         [__ASSUME_32BITUIDS]: Make code unconditional.
12980         [!__ASSUME_32BITUIDS]: Remove conditional code.
12981         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
12982         <kernel-features.h>.
12983         [__ASSUME_32BITUIDS]: Make code unconditional.
12984         [!__ASSUME_32BITUIDS]: Remove conditional code.
12985         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
12986         <kernel-features.h>.
12987         [__ASSUME_32BITUIDS]: Make code unconditional.
12988         [!__ASSUME_32BITUIDS]: Remove conditional code.
12989         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
12990         <kernel-features.h>.
12991         [__ASSUME_32BITUIDS]: Make code unconditional.
12992         [!__ASSUME_32BITUIDS]: Remove conditional code.
12993         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
12994         <kernel-features.h>.
12995         [__ASSUME_32BITUIDS]: Make code unconditional.
12996         [!__ASSUME_32BITUIDS]: Remove conditional code.
12997         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
12998         <kernel-features.h>.
12999         [__ASSUME_32BITUIDS]: Make code unconditional.
13000         [!__ASSUME_32BITUIDS]: Remove conditional code.
13001         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
13002         <kernel-features.h>.
13003         [__ASSUME_32BITUIDS]: Make code unconditional.
13004         [!__ASSUME_32BITUIDS]: Remove conditional code.
13005         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
13006         <kernel-features.h>.
13007         [__NR_setresgid] (__setresgid): Do not declare.
13008         [__ASSUME_32BITUIDS]: Make code unconditional.
13009         [!__ASSUME_32BITUIDS]: Remove conditional code.
13010         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
13011         <kernel-features.h>.
13012         [__NR_setresuid] (__setresuid): Do not declare.
13013         [__ASSUME_32BITUIDS]: Make code unconditional.
13014         [!__ASSUME_32BITUIDS]: Remove conditional code.
13015         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
13016         <kernel-features.h>.
13017         [__ASSUME_32BITUIDS]: Make code unconditional.
13018         [!__ASSUME_32BITUIDS]: Remove conditional code.
13019         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
13020         <kernel-features.h>.
13021         [__ASSUME_32BITUIDS]: Make code unconditional.
13022         [!__ASSUME_32BITUIDS]: Remove conditional code.
13023         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
13024         <kernel-features.h>.
13025         [__ASSUME_32BITUIDS]: Make code unconditional.
13026         [!__ASSUME_32BITUIDS]: Remove conditional code.
13027         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
13028         <kernel-features.h>.
13029         [__ASSUME_32BITUIDS]: Make code unconditional.
13030         [!__ASSUME_32BITUIDS]: Remove conditional code.
13031         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
13032         <kernel-features.h>.
13033         [__ASSUME_32BITUIDS]: Make code unconditional.
13034         [!__ASSUME_32BITUIDS]: Remove conditional code.
13035         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
13036         <kernel-features.h>.
13037         [__ASSUME_32BITUIDS]: Make code unconditional.
13038         [!__ASSUME_32BITUIDS]: Remove conditional code.
13039         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
13040         <kernel-features.h>.
13041         [__ASSUME_32BITUIDS]: Make code unconditional.
13042         [!__ASSUME_32BITUIDS]: Remove conditional code.
13043         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
13044         <kernel-features.h>.
13045         [__ASSUME_32BITUIDS]: Make code unconditional.
13046         [!__ASSUME_32BITUIDS]: Remove conditional code.
13047         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
13048         <kernel-features.h>.
13049         [__ASSUME_32BITUIDS]: Make code unconditional.
13050         [!__ASSUME_32BITUIDS]: Remove conditional code.
13051         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
13052         <kernel-features.h>.
13053         [__ASSUME_32BITUIDS]: Make code unconditional.
13054         [!__ASSUME_32BITUIDS]: Remove conditional code.
13055         * sysdeps/unix/sysv/linux/kernel-features.h
13056         (__ASSUME_SETRESUID_SYSCALL): Remove.
13057         (__ASSUME_SETRESGID_SYSCALL): Likewise.
13058         (__ASSUME_32BITUIDS): Likewise.
13059         (__ASSUME_LDT_WORKS): Likewise.
13060         (__ASSUME_O_DIRECTORY): Likewise.
13061         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
13062         architecture but not kernel version.
13063         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
13064         (__ASSUME_MMAP2_SYSCALL): Likewise.
13065         (__ASSUME_STAT64_SYSCALL): Likewise.
13066         (__ASSUME_IPC64): Likewise.
13067         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
13068         <kernel-features.h>.
13069         [__ASSUME_32BITUIDS]: Make code unconditional.
13070         [!__ASSUME_32BITUIDS]: Remove conditional code.
13071         * sysdeps/unix/sysv/linux/opendir.c: Do not include
13072         <kernel-features.h>.
13073         [__ASSUME_O_DIRECTORY]: Make code unconditional.
13074         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
13075         132096]: Remove conditional code.
13076         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
13077         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
13078         <kernel-features.h>.
13079         [__ASSUME_32BITUIDS]: Make code unconditional.
13080         [!__ASSUME_32BITUIDS]: Remove conditional code.
13081         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
13082         <kernel-features.h>.
13083         [__ASSUME_32BITUIDS]: Make code unconditional.
13084         [!__ASSUME_32BITUIDS]: Remove conditional code.
13085         * sysdeps/unix/sysv/linux/setegid.c: Do not include
13086         <kernel-features.h>.
13087         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
13088         unconditional.
13089         (__setresgid): Do not declare.
13090         [__ASSUME_32BITUIDS]: Make code unconditional.
13091         [!__ASSUME_32BITUIDS]: Remove conditional code.
13092         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
13093         <kernel-features.h>.
13094         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
13095         unconditional.
13096         (__setresuid): Do not declare.
13097         [__ASSUME_32BITUIDS]: Make code unconditional.
13098         [!__ASSUME_32BITUIDS]: Remove conditional code.
13099         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
13100         <kernel-features.h>.
13101         [__ASSUME_32BITUIDS]: Make code unconditional.
13102         [!__ASSUME_32BITUIDS]: Remove conditional code.
13103         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
13104         <kernel-features.h>.
13105         [__ASSUME_32BITUIDS]: Make code unconditional.
13106         [!__ASSUME_32BITUIDS]: Remove conditional code.
13107
13108 2012-05-25  Richard Henderson  <rth@twiddle.net>
13109
13110         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
13111         dl_hwcap to ifunc resolver.
13112         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
13113         elf_ifunc_invoke.
13114         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
13115         dl_hwcap to ifunc resolver.
13116         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
13117
13118 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
13119
13120         [BZ #14153]
13121         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
13122         for |x| <= 2**-26, not 2**-57.
13123         * math/libm-test.inc (acos_test): Do not allow spurious underflow
13124         exception.
13125
13126 2012-05-24  Jeff Law  <law@redhat.com>
13127
13128         * stdio-common/Makefile (tests): Add bug25.
13129         * stdio-common/bug25.c: New test.
13130
13131 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
13132
13133         [BZ #13576]
13134         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
13135         multiple of MALLOC_ALIGNMENT in size.
13136         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
13137
13138 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
13139
13140         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
13141         Require >= 256.
13142         (FILENAME_MAX): Use macro-int-constant.
13143         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
13144         (_IOFBF): Use macro-int-constant.
13145         (_IOLBF): Likewise.
13146         (_IONBF): Likewise.
13147         (SEEK_CUR): Likewise.
13148         (SEEK_END): Likewise.
13149         (SEEK_SET): Likewise.
13150         (TMP_MAX): Likewise.
13151         (EOF): Use macro-int-constant.  Require < 0.
13152         (NULL): Use macro-constant.  Require == 0.
13153         (stdin): Require type to be FILE *.
13154         (stdout): Likewise.
13155         (stderr): Likewise.
13156         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
13157         macro-int-constant.
13158         (EXIT_SUCCESS): Likewise.
13159         (NULL): Use macro-constant.  Require == 0.
13160         (RAND_MAX): Use macro-int-constant.
13161         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
13162         [C99-based standards] (strtof): Require function.
13163         [C99-based standards] (strtold): Likewise.
13164         [C99-based standards] (strtoll): Likewise.
13165         [C99-based standards] (strtoull): Likewise.
13166         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
13167         [ISO || ISO99 || ISO11] (limits.h): Likewise.
13168         [ISO || ISO99 || ISO11] (math.h): Likewise.
13169         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
13170         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
13171         [ISO || ISO99 || ISO11] (*_t): Do not allow.
13172
13173 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
13174
13175         [BZ #14132]
13176         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
13177         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
13178         * intl/dgettext.c (DCGETTEXT): Likewise.
13179         * intl/gettext.c (DCGETTEXT): Likewise.
13180         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
13181         * posix/regex_internal.h (gettext): Likewise.
13182         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
13183         Remove declaration.
13184         * include/argz.h (__argz_count_internal)
13185         (__argz_stringify_internal): Remove declaration.
13186         (__argz_count, __argz_stringify): Declare hidden proto.
13187         * intl/dcgettext.c: Remove use of INTDEF.
13188         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
13189         * string/argz-stringify.c: Likewise.
13190         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
13191         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
13192         Declare hidden proto.
13193         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
13194         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
13195         Declare hidden proto.
13196         * include/stdio.h (__asprintf_internal): Don't declare.
13197         (__asprintf): Don't define as macro.  Declare hidden proto.
13198         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
13199         (__fsetlocking): Declare hidden proto.
13200         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
13201         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
13202         hidden proto.
13203         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
13204         (_IO_setlinebuf): Remove use of INTUSE.
13205         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
13206         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
13207         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
13208         Remove declaration.
13209         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
13210         (_IO_do_flush): Remove use of INTUSE.
13211         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
13212         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
13213         (_IO_adjust_column, _IO_least_wmarker)
13214         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
13215         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
13216         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
13217         (_IO_default_doallocate, _IO_wdefault_doallocate)
13218         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
13219         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
13220         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
13221         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
13222         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
13223         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
13224         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
13225         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
13226         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
13227         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
13228         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
13229         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
13230         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
13231         proto.
13232         (_IO_flush_all_internal, _IO_adjust_column_internal)
13233         (_IO_default_uflow_internal, _IO_default_finish_internal)
13234         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
13235         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
13236         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
13237         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
13238         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
13239         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
13240         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
13241         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
13242         (_IO_file_close_internal, _IO_file_close_it_internal)
13243         (_IO_file_underflow_internal, _IO_file_overflow_internal)
13244         (_IO_file_init_internal, _IO_file_attach_internal)
13245         (_IO_file_fopen_internal, _IO_file_read_internal)
13246         (_IO_file_sync_internal, _IO_file_seek_internal)
13247         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
13248         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
13249         (_IO_str_underflow_internal, _IO_str_overflow_internal)
13250         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
13251         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
13252         (_IO_list_all_internal, _IO_link_in_internal)
13253         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
13254         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
13255         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
13256         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
13257         (_IO_do_write_internal, _IO_padn_internal)
13258         (_IO_getline_info_internal, _IO_getline_internal)
13259         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
13260         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
13261         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
13262         (_IO_vfscanf_internal, _IO_vfprintf_internal)
13263         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
13264         (_IO_init_internal, _IO_un_link_internal): Don't declare.
13265         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
13266         with libc_hidden_ver, remove use of INTUSE.
13267         * libio/genops.c: Likewise.
13268         * libio/freopen.c: Likewise.
13269         * libio/freopen64.c: Likewise.
13270         * libio/iofclose.c: Likewise.
13271         * libio/iofdopen.c: Likewise.
13272         * libio/iofflush.c: Likewise.
13273         * libio/iofflush_u.c: Likewise.
13274         * libio/iofgets.c: Likewise.
13275         * libio/iofgets_u.c: Likewise.
13276         * libio/iofopen.c: Likewise.
13277         * libio/iofopncook.c: Likewise.
13278         * libio/iofread.c: Likewise.
13279         * libio/iofread_u.c: Likewise.
13280         * libio/ioftell.c: Likewise.
13281         * libio/iofwrite.c: Likewise.
13282         * libio/iogetline.c: Likewise.
13283         * libio/iogets.c: Likewise.
13284         * libio/iogetwline.c: Likewise.
13285         * libio/iopadn.c: Likewise.
13286         * libio/iopopen.c: Likewise.
13287         * libio/ioseekoff.c: Likewise.
13288         * libio/ioseekpos.c: Likewise.
13289         * libio/iosetbuffer.c: Likewise.
13290         * libio/iosetvbuf.c: Likewise.
13291         * libio/ioungetc.c: Likewise.
13292         * libio/ioungetwc.c: Likewise.
13293         * libio/iovdprintf.c: Likewise.
13294         * libio/iovsprintf.c: Likewise.
13295         * libio/iovsscanf.c: Likewise.
13296         * libio/memstream.c: Likewise.
13297         * libio/obprintf.c: Likewise.
13298         * libio/oldfileops.c: Likewise.
13299         * libio/oldiofclose.c: Likewise.
13300         * libio/oldiofdopen.c: Likewise.
13301         * libio/oldiofopen.c: Likewise.
13302         * libio/oldiopopen.c: Likewise.
13303         * libio/oldstdfiles.c: Likewise.
13304         * libio/putc.c: Likewise.
13305         * libio/setbuf.c: Likewise.
13306         * libio/setlinebuf.c: Likewise.
13307         * libio/stdfiles.c: Likewise.
13308         * libio/strops.c: Likewise.
13309         * libio/vasprintf.c: Likewise.
13310         * libio/vscanf.c: Likewise.
13311         * libio/vsnprintf.c: Likewise.
13312         * libio/vswprintf.c: Likewise.
13313         * libio/wfiledoalloc.c: Likewise.
13314         * libio/wfileops.c: Likewise.
13315         * libio/wgenops.c: Likewise.
13316         * libio/wmemstream.c: Likewise.
13317         * libio/wstrops.c: Likewise.
13318         * libio/__fpurge.c: Likewise.
13319         * libio/__fsetlocking.c: Likewise.
13320         * assert/assert.c: Likewise.
13321         * debug/fgets_chk.c: Likewise.
13322         * debug/fgets_u_chk.c: Likewise.
13323         * debug/fread_chk.c: Likewise.
13324         * debug/fread_u_chk.c: Likewise.
13325         * debug/gets_chk.c: Likewise.
13326         * debug/obprintf_chk.c: Likewise.
13327         * debug/vasprintf_chk.c: Likewise.
13328         * debug/vdprintf_chk.c: Likewise.
13329         * debug/vsnprintf_chk.c: Likewise.
13330         * debug/vsprintf_chk.c: Likewise.
13331         * malloc/mtrace.c: Likewise.
13332         * misc/error.c: Likewise.
13333         * misc/syslog.c: Likewise.
13334         * stdio-common/asprintf.c: Likewise.
13335         * stdio-common/fxprintf.c: Likewise.
13336         * stdio-common/getw.c: Likewise.
13337         * stdio-common/isoc99_fscanf.c: Likewise.
13338         * stdio-common/isoc99_scanf.c: Likewise.
13339         * stdio-common/isoc99_vfscanf.c: Likewise.
13340         * stdio-common/isoc99_vscanf.c: Likewise.
13341         * stdio-common/isoc99_vsscanf.c: Likewise.
13342         * stdio-common/printf-prs.c: Likewise.
13343         * stdio-common/printf_fp.c: Likewise.
13344         * stdio-common/printf_fphex.c: Likewise.
13345         * stdio-common/printf_size.c: Likewise.
13346         * stdio-common/putw.c: Likewise.
13347         * stdio-common/scanf.c: Likewise.
13348         * stdio-common/sprintf.c: Likewise.
13349         * stdio-common/tmpfile.c: Likewise.
13350         * stdio-common/vfprintf.c: Likewise.
13351         * stdio-common/vfscanf.c: Likewise.
13352         * stdlib/strfmon_l.c: Likewise.
13353         * sunrpc/openchild.c: Likewise.
13354         * sunrpc/xdr_stdio.c: Likewise.
13355         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
13356         * sysdeps/mach/hurd/tmpfile.c: Likewise.
13357
13358 2012-05-24  Roland McGrath  <roland@hack.frob.com>
13359
13360         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
13361
13362         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
13363         in the third column, to generate for the shared library an IFUNC
13364         that uses _dl_vdso_vsym.
13365         * Makerules (COMPILE.c, compile-stdin.c): New variables.
13366         * Makeconfig (object-suffixes-noshared): New variable.
13367
13368         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
13369         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
13370         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
13371         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
13372
13373         [BZ #14132]
13374         * include/sys/time.h (__gettimeofday): Remove macro.
13375         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
13376         * time/gettimeofday.c (__gettimeofday): Remove #undef.
13377         Remove INTDEF.
13378         (__gettimeofday): Add libc_hidden_def.
13379         (gettimeofday): Add libc_hidden_weak.
13380         * sysdeps/mach/gettimeofday.c: Likewise.
13381         * sysdeps/posix/gettimeofday.c: Likewise.
13382         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
13383         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
13384         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
13385         (__gettimeofday_internal): Remove strong_alias.
13386         (__gettimeofday): Add libc_hidden_def.
13387         (gettimeofday): Add libc_hidden_weak.
13388         * sysdeps/unix/syscalls.list (gettimeofday):
13389         Remove __gettimeofday_internal alias.
13390
13391 2012-05-24  Daniel Jacobowitz  <drow@false.org>
13392             H.J. Lu  <hongjiu.lu@intel.com>
13393
13394         [BZ #12495]
13395         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
13396         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
13397         (largebin_index_32_big): New.
13398         (largebin_index): Use it for 16-byte alignment.
13399         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
13400         correction with front_misalign.
13401
13402 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
13403
13404         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
13405         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
13406         Likewise.
13407         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
13408         Likewise.
13409         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
13410         Likewise.
13411         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
13412         Likewise.
13413         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
13414         Likewise.
13415         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
13416         Likewise.
13417         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
13418         Likewise.
13419         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
13420         Likewise.
13421         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
13422         Likewise.
13423         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
13424         Likewise.
13425         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
13426         Likewise.
13427         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
13428         Likewise.
13429
13430         * scripts/data/c++-types-x32-linux-gnu.data: New file.
13431         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
13432
13433 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
13434
13435         [BZ #10846]
13436         [BZ #14036]
13437         * math/libm-test.inc (exp_test): Add test from bug 14036.
13438         (pow_test): Add test from bug 10846.
13439
13440         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
13441         and other flags.
13442         (special_function): Do not include flags in test name.
13443         (parse_args): Likewise.
13444         * sysdeps/i386/fpu/libm-test-ulps: Update.
13445         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
13446         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
13447         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
13448         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13449
13450         * math/gen-libm-test.pl (%beautify): Add entries for underflow
13451         exceptions.
13452         * math/libm-test.inc ("Philosophy"): Update comment about
13453         exception testing.
13454         (UNDERFLOW_EXCEPTION): New macro.
13455         (UNDERFLOW_EXCEPTION_OK): Likewise.
13456         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
13457         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
13458         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
13459         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
13460         (INVALID_EXCEPTION_OK): Update value.
13461         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
13462         (OVERFLOW_EXCEPTION_OK): Likewise.
13463         (IGNORE_ZERO_INF_SIGN): Likewise.
13464         (test_exceptions): Handle underflow exceptions.
13465         (acos_test): Update for underflow exception expectations.
13466         (cexp_test): Likewise.
13467         (clog_test): Likewise.
13468         (clog10_test): Likewise.
13469         (csqrt_test): Likewise.
13470         (ctan_test): Likewise.
13471         (ctanh_test): Likewise.
13472         (exp_test): Likewise.
13473         (exp10_test): Likewise.
13474         (exp2_test): Likewise.
13475         (expm1_test): Likewise.
13476         (fma_test): Likewise.
13477         (j0_test): Likewise.
13478         (jn_test): Likewise.
13479         (nexttoward_test): Likewise.
13480         (pow_test): Likewise.
13481         (scalbn_test): Likewise.
13482         (scalbln_test): Likewise.
13483         (tan_test): Likewise.
13484         (y1_test): Likewise.
13485         * sysdeps/i386/fpu/libm-test-ulps: Update.
13486         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13487
13488 2012-05-23  David S. Miller  <davem@davemloft.net>
13489
13490         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
13491         (__libc_sigaction): Remove unused local variables.
13492
13493 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
13494
13495         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
13496
13497 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
13498
13499         mktime: avoid signed integer overflow
13500         * time/mktime.c (__mktime_internal): Do not mishandle the case
13501         where diff == INT_MIN.
13502
13503         mktime: simplify computation of average
13504         * time/mktime.c (ranged_convert): Use new time_t_avg function
13505         instead of rolling our own (probably-slower) code.
13506
13507         mktime: do not assume signed right shift propagates sign bit
13508         * time/mktime.c (isdst_differ): New static function.
13509         (__mktime_internal): No need to normalize tm_isdst now.
13510         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
13511         tm_isdst values.
13512
13513         mktime: merge another wrapv change from gnulib
13514         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
13515         from some compilers.
13516
13517         mktime: remove incorrect attempt at unusual arithmetics
13518         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
13519         The code didn't really work on such machines anyway.
13520         (TYPE_MINIMUM): Assume two's complement.
13521         (twos_complement_arithmetic): Verify that long_int and time_t
13522         are two's complement (or unsigned, in the latter case).
13523
13524         mktime: check signed shifts on long_int and time_t, too
13525         * time/mktime.c (SHR): Check that shifts work as desired
13526         on the types long_int and time_t too, as SHR is used on
13527         such types.
13528
13529         mktime: do not assume 'long' is wide enough
13530         * time/mktime.c (verify): Move decl up.
13531         (long_int): New type.
13532         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
13533         to remove assumption in the code that 'long' is wide enough to
13534         store year values.  This assumption is not true on x32 and on
13535         some non-glibc platforms.
13536
13537         mktime: merge wrapv change from gnulib
13538         * time/mktime.c (WRAPV): New macro.
13539         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
13540         (guess_time_tm, __mktime_internal): Do not assume that signed
13541         integer overflow wraps around; modern compilers generate code
13542         where this assumption is no longer valid.
13543
13544 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
13545
13546         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
13547         Replace "jmp L(pseudo_end)" with "ret".
13548         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
13549         Likewise.
13550
13551 2012-05-23  Andreas Jaeger  <aj@suse.de>
13552
13553         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
13554         * sysdeps/unix/sysv/linux/poll.c: Remove file.
13555
13556 2012-05-23  Andreas Jaeger  <aj@suse.de>
13557             Maximilian Attems  <max@stro.at>
13558
13559         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
13560         New macros.
13561
13562 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
13563
13564         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
13565         code so that pseudo_end is just ret and the stack pointer is
13566         correct also for static library in error case.
13567
13568 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
13569
13570         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
13571         move to syscalls.list.
13572         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
13573         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
13574         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
13575         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
13576
13577         * manual/install.texi (Running make install): Do not mention Linux
13578         kernel version for which pt_chown is not needed.
13579         (Linux): Do not mention problems with nscd with 2.0 kernels.
13580         * INSTALL: Regenerated.
13581
13582 2012-05-23  Andreas Jaeger  <aj@suse.de>
13583
13584         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
13585         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
13586         macro.
13587         * sysdeps/unix/sysv/linux/s390/bits/mman.h
13588         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
13589         * sysdeps/unix/sysv/linux/sh/bits/mman.h
13590         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
13591         * sysdeps/unix/sysv/linux/i386/bits/mman.h
13592         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
13593         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
13594         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
13595         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
13596         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
13597         * sysdeps/unix/sysv/linux/bits/in.h
13598         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
13599
13600 2012-05-22  Roland McGrath  <roland@hack.frob.com>
13601
13602         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
13603         (PREPARE_VERSION): Just use assert instead, it will be elided
13604         under [NDEBUG] anyway.
13605
13606 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
13607
13608         * sysdeps/unix/sysv/linux/Makefile: Include
13609         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
13610         (sysdep_routines): Remove sysctl.
13611         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
13612         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
13613         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
13614         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
13615         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
13616
13617 2012-05-22  Andreas Jaeger  <aj@suse.de>
13618
13619         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
13620         that pseudo_end is just ret and the stack pointer is correct also
13621         for static library in error case.
13622
13623 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
13624
13625         [BZ #14122]
13626         * nss/nsswitch.c (defconfig_entries): New variable.
13627         (__nss_database_lookup): Don't leak defconfig entries.
13628         (nss_parse_service_list): Don't leak on error paths.
13629         (free_database_entries): New function.
13630         (free_defconfig): New function.
13631         (free_mem): Move common code to free_database_entries.
13632
13633 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
13634
13635         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
13636         Add arch_prctl.
13637         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
13638
13639         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
13640         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
13641         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
13642         New macro.
13643         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
13644         (INTERNAL_SYSCALL_TYPES): Likewise.
13645         (LOAD_ARGS_TYPES_[1-6]): Likewise.
13646         (LOAD_REGS_TYPES_[1-6]): Likewise.
13647         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
13648         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
13649
13650 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13651
13652         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
13653         copysignl for GLIBC_2_0.
13654         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
13655         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
13656         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
13657         logbl for GLIBC_2_0.
13658         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
13659         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
13660
13661 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
13662
13663         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
13664         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
13665
13666         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
13667         Use "neg %eax".
13668
13669         * time/mktime.c: Update copyright years.
13670
13671 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
13672
13673         mktime: merge comment-quoting-style change from gnulib
13674         * time/mktime.c: Quote 'like this' in comments.
13675         The GNU coding standards suggest that we no longer quote `like this',
13676         as "`" and "'" are typically rendered asymmetrically nowadays.
13677         The typical gnulib style is to quote 'like this' when quoting
13678         code, and "like this" when quoting English.
13679
13680         * time/mktime.c (compile-command): Add "-I.".
13681
13682         mktime: merge mktime-internal.h change from gnulib
13683         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
13684
13685         mktime: merge time_r change from gnulib
13686         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
13687
13688         mktime: merge DEBUG change from gnulib
13689         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
13690         case system <time.h> has a #define.
13691
13692         mktime: merge <sys/types.h> change from gnulib
13693         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
13694         since <time.t> is now guaranteed to define time_t.
13695
13696         mktime: merge HAVE_CONFIG_H change from gnulib
13697         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
13698
13699 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
13700
13701         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
13702         Use "neg %eax".
13703
13704         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
13705         __rlim_t cast.
13706         (struct rusage): Use anonymous union to pad each field to
13707         __syscall_slong_t.
13708
13709 2012-05-21  David S. Miller  <davem@davemloft.net>
13710
13711         * Makefules (o-iterator): Remove .s cases.
13712         (compile-command.s): Delete.
13713         (COMPILE.s): Delete.
13714         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
13715
13716 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
13717
13718         * configure.in (libc_cv_predef_stack_protector): Only consider
13719         "foobar" and "__stack_chk_fail" lines in libc_undefs.
13720         * configure: Regenerated.
13721
13722 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
13723
13724         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
13725         New macro.  Use R*LP on int and pointer.
13726         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
13727         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
13728         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
13729         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
13730
13731         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
13732         [__WORDSIZE_TIME64_COMPAT32] instead of
13733         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
13734         (struct utmp): Likewise.
13735         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
13736         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
13737         Renamed to ...
13738         (__WORDSIZE_TIME64_COMPAT32): This.
13739         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
13740         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
13741         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
13742         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
13743         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
13744         (__WORDSIZE_TIME64_COMPAT32): New macro.
13745
13746 2012-05-21  Andreas Jaeger  <aj@suse.de>
13747
13748         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
13749         only if [SHARED]. Add prototype for __wcschr_ia32.
13750
13751 2012-05-21  Roland McGrath  <roland@hack.frob.com>
13752
13753         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
13754         of %rbp unmolested in the jmp_buf while mangling the low bits.
13755         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
13756         unmolested high bits of %rbp while demangling the low bits.
13757         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
13758
13759 2012-05-21  Andreas Jaeger  <aj@suse.de>
13760
13761         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
13762         * sunrpc/svc_simple.c: Use it for registerrpc.
13763         * sunrpc/xcrypt.c: Use it for passwd2des.
13764
13765         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
13766
13767 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
13768
13769         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
13770         Don't define if [__SYSCALL_WORDSIZE != 32].
13771         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
13772         New macro.
13773
13774 2012-05-21  Bruno Haible  <bruno@clisp.org>
13775             Andreas Jaeger  <aj@suse.de>
13776
13777         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
13778         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
13779         inptr and inend for must_buffer_ch.
13780         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
13781         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
13782         * stdio-common/Makefile (tests): Remove bug15.
13783         (bug15-ENV): Remove macro.
13784         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
13785         anymore.
13786
13787 2012-05-19  Andreas Jaeger  <aj@suse.de>
13788             Roland McGrath  <roland@hack.frob.com>
13789
13790         * manual/contrib.texi: Completely rewritten. It contains now an
13791         alphabetical list of contributors and their contributions.
13792
13793 2012-05-21  Richard Henderson  <rth@twiddle.net>
13794
13795         * misc/getauxval.c (__getauxval): Use unsigned long int.
13796         * misc/sys/auxv.h: Include <sys/cdefs.h>.
13797         (getauxval): Use unsigned long int.
13798
13799 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
13800
13801         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
13802
13803 2012-05-21  Roland McGrath  <roland@hack.frob.com>
13804
13805         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
13806         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
13807         __alignof__ (long double).
13808
13809 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13810
13811         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13812
13813 2012-05-20  Richard Henderson  <rth@twiddle.net>
13814
13815         * misc/getauxval.c: New file.
13816         * misc/sys/auxv.h: New file.
13817         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
13818         (routines): Add getauxval.
13819         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
13820         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
13821         * elf/dl-sysdep.c (_dl_auxv): Remove.
13822         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
13823         * elf/dl-support.c (_dl_auxv): New variable.
13824         (_dl_aux_init): Initialize it.
13825         * manual/startup.texi (Auxiliary Vector): New node.
13826         * sysdeps/generic/bits/hwcap.h: New file.
13827         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
13828         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
13829         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
13830         * sysdeps/sparc/sysdep.h: ... here.  Include it.
13831         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
13832         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
13833         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
13834         Update.
13835         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
13836         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
13837         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
13838         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
13839         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
13840         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
13841         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
13842         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
13843
13844 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13845
13846         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13847
13848 2012-05-19  David S. Miller  <davem@davemloft.net>
13849
13850         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13851
13852 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
13853
13854         [BZ #14123]
13855         * math/s_ccosh.c: Include <float.h>
13856         (__ccosh): Avoid internal overflow calculating sinh and cosh
13857         values before multiplying by sin and cos values.
13858         * math/s_ccoshf.c: Likewise.
13859         * math/s_ccoshl.c: Likewise.
13860         * math/s_csin.c: Likewise.
13861         * math/s_csinf.c: Likewise.
13862         * math/s_csinl.c: Likewise.
13863         * math/s_csinh.c: Likewise.
13864         * math/s_csinhf.c: Likewise.
13865         * math/s_csinhl.c: Likewise.
13866         * math/libm-test.inc (ccos_test): Add more tests.
13867         (ccosh_test): Likewise.
13868         (csin_test): Likewise.
13869         (csinh_test): Likewise.
13870         * sysdeps/i386/fpu/libm-test-ulps: Update.
13871         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13872
13873 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
13874
13875         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
13876         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
13877
13878         * sysdeps/x86_64/x32/_itoa.h: Add comment.
13879
13880 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
13881
13882         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
13883         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
13884         * sysdeps/powerpc/soft-fp/Versions: Likewise.
13885         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
13886         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
13887         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
13888         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
13889         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
13890         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
13891         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
13892         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
13893         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
13894         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
13895         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
13896         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
13897         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
13898         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
13899         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
13900         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
13901         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
13902         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
13903         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
13904         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
13905         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
13906         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
13907         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
13908         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
13909         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
13910         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
13911         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
13912         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
13913
13914 2012-05-18  Andreas Jaeger  <aj@suse.de>
13915
13916         * csu/.gitignore: Delete.
13917
13918 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
13919
13920         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
13921         (timex): Use __syscall_slong_t.
13922
13923 2012-05-18  Andreas Jaeger  <aj@suse.de>
13924             Carlos O'Donell  <carlos_odonell@mentor.com>
13925
13926         * manual/install.texi (Configuring and compiling): Update
13927         description about files modified in the source directory.
13928         * INSTALL: Regenerated.
13929
13930 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
13931
13932         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
13933         value.  Use "or" to set return value to -1.
13934         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
13935         negate return value.
13936
13937 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
13938
13939         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
13940         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
13941         failure if the compiler has Graphite support disabled.
13942         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
13943         Likewise.
13944         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
13945         CFLAGS-memmove.c): Likewise.
13946         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
13947         Likewise.
13948
13949 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
13950
13951         * sysdeps/x86_64/x32/_itoa.h: New file.
13952
13953         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
13954         getdents system call only if kernel and user dirents have the
13955         same d_ino and d_off.
13956
13957         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
13958         LLONG_MAX != LONG_MAX.
13959         (_itoa_word): Use _ITOA_WORD_TYPE on value.
13960         (_fitoa_word): Likewise.
13961
13962         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
13963         years.
13964         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
13965         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
13966         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
13967
13968         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
13969         include <bits/wordsize.h>.  Check __x86_64__ instead of
13970         __WORDSIZE.
13971         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
13972         if __x86_64__ is defined.  Use anonymous union on fpstate.
13973
13974         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
13975         anonymous union.
13976
13977 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
13978
13979         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
13980         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
13981         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
13982         Refer to _rtld_local_ro instead of _rtld_global_ro.
13983         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
13984         Likewise.
13985         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
13986         Likewise.
13987         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
13988         Likewise.
13989         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
13990         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
13991         of _rtld_global, and rtld_progname instead of _dl_argv[0].
13992
13993         * sysdeps/powerpc/powerpc32/dl-machine.c
13994         (__elf_machine_runtime_setup) [PROF]: Don't reference
13995         _dl_prof_resolve.
13996
13997 2012-05-18  Andreas Jaeger  <aj@suse.de>
13998
13999         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
14000         function only available for GCCs before 3.4 since GCC 3.4
14001         introduced a builtin.
14002         (lrint): Likewise.
14003         (llrintf): Likewise.
14004         (llrint): Likewise.
14005         (fmaxf): Likewise.
14006         (fmax): Likewise.
14007         (fminf): Likewise.
14008         (fmin): Likewise.
14009         (rint): Likewise.
14010         (rintf): Likewise.
14011         (nearbyint): Likewise.
14012         (nearbyintf): Likewise.
14013         (ceil): Likewise.
14014         (ceilf): Likewise.
14015         (floor): Likewise.
14016         (floorf): Likewise.
14017
14018 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
14019
14020         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
14021         on both fields and cast pointer to __syscall_ulong_t.
14022
14023         * bits/types.h (__fsword_t): New type.
14024         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
14025         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
14026         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
14027         (__FSWORD_T_TYPE): Likewise.
14028         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
14029         (__FSWORD_T_TYPE): Likewise.
14030         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
14031         (__FSWORD_T_TYPE): Likewise.
14032         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
14033         (__FSWORD_T_TYPE): Likewise.
14034         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
14035         __SWORD_TYPE with __fsword_t.
14036         (statfs64): Likewise.
14037
14038 2012-05-17  David S. Miller  <davem@davemloft.net>
14039
14040         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
14041
14042 2012-05-17  Andreas Jaeger  <aj@suse.de>
14043
14044         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
14045         warning.
14046
14047 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
14048
14049         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
14050
14051 2012-05-17  Andreas Jaeger  <aj@suse.de>
14052
14053         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
14054         when it is used.
14055
14056 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
14057
14058         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
14059
14060 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
14061
14062         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
14063         * sysdeps/x86_64/tst-mallocalign1.c: New file.
14064
14065 2012-05-17  Andreas Jaeger  <aj@suse.de>
14066             Carlos O'Donell  <carlos_odonell@mentor.com>
14067
14068         [BZ #14059]
14069         * sysdeps/x86_64/multiarch/init-arch.h
14070         (bit_YMM_Usable): Rename to...
14071         (bit_AVX_Usable): ... this.
14072         (bit_FMA4_Usable): New macro.
14073         (bit_XMM_state): New macro.
14074         (bit_YMM_state): New macro.
14075         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
14076         [__ASSEMBLER__] (index_AVX_Usable): ... this.
14077         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
14078         (CPUID_OSXSAVE): New macro.
14079         (CPUID_AVX): New macro.
14080         (CPUID_FMA4): New macro.
14081         (index_YMM_Usable): Rename to...
14082         (index_AVX_Usable): ... this.
14083         (HAS_AVX): Use HAS_ARCH_FEATURE.
14084         (HAS_FMA4): Likewise.
14085         (HAS_YMM_USABLE): Remove.
14086         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
14087         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
14088         are present.
14089         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
14090         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
14091         * sysdeps/x86_64/multiarch/Makefile: Likewise.
14092         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
14093         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
14094
14095 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
14096
14097         * math/libm-test.c: Support platforms without multiple rounding modes.
14098         * math/bug-nextafter.c: Support platforms without FP exceptions.
14099         * math/bug-nexttoward.c: Likewise.
14100         * math/test-fenv.c: Likewise.
14101         * math/test-misc.c: Likewise.
14102         * stdlib/bug-getcontext.c: Likewise.
14103
14104 2012-05-17  Andreas Jaeger  <aj@suse.de>
14105
14106         * manual/examples/search.c (critter_cmp): Change signature to
14107         avoid warnings.
14108         * manual/string.texi (Collation Functions): Likewise.
14109
14110 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
14111
14112         * bits/types.h: Fold copyright years.
14113         * bits/typesizes.h: Likewise.
14114         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
14115         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
14116         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
14117         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
14118         * time/time.h: Likewise.
14119
14120 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
14121
14122         [BZ #208]
14123         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
14124         in instead of returning them.  Return void.
14125         (__libc_mallinfo): Accumulate over all arenas.
14126         (__malloc_stats): Adjust for change in int_mallinfo interface.
14127
14128 2012-05-16  Roland McGrath  <roland@hack.frob.com>
14129
14130         [BZ #10375]
14131         * configure.in (NM): Add AC_CHECK_TOOL for it.
14132         (libc_extra_cflags): New substituted variable.
14133         Check for -fstack-protector being used implicitly.
14134         * configure: Regenerated.
14135         * config.make.in (config-extra-cflags): New variable,
14136         gets @libc_extra_cflags@.
14137         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
14138
14139         [BZ #10375]
14140         * configure.in: Check for _FORTIFY_SOURCE being predefined.
14141         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
14142         * configure: Regenerated.
14143         * config.make.in (CPPUNDEFS): New substituted variable.
14144         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
14145         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
14146         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
14147
14148 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
14149
14150         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
14151         (mq_attr): Use __syscall_slong_t.
14152
14153 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
14154
14155         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
14156         Check __x86_64__ instead of __WORDSIZE.
14157         (_STAT_VER_LINUX): Likewise.
14158         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
14159         __syscall_ulong_t and __syscall_slong_t.
14160         (stat64): Likewise.
14161
14162 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
14163
14164         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
14165
14166 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
14167
14168         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
14169
14170 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
14171
14172         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
14173         __syscall_ulong_t.
14174
14175         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
14176         include <bits/wordsize.h>.  Check __x86_64__ instead of
14177         __WORDSIZE.
14178         (greg_t): Use "__extension__ long long int" if __x86_64__ is
14179         defined.
14180         (mcontext_t): Replace "unsigned long" with "unsigned long long".
14181
14182         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
14183         include <bits/wordsize.h>.  Check __x86_64__ instead of
14184         __WORDSIZE.
14185         (user_regs_struct): Use "__extension__ unsigned long long"
14186         instead of "unsigned long" if __x86_64__ is defined.
14187         (user): Likewise.  Pad after pointer field if __ILP32__ is
14188         defined.
14189
14190 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
14191
14192         * configure.in (makeinfo): Require version 4.5 or later.  Allow
14193         versions 5 to 9.
14194         * configure: Regenerated.
14195         * manual/install.texi (texinfo): Increase version requirement to
14196         4.5 or later.
14197         * INSTALL: Regenerated.
14198
14199         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
14200
14201 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
14202
14203         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
14204
14205         * sysdeps/x86_64/x32/ffs.c: New file.
14206
14207         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
14208         __syscall_ulong_t.
14209         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
14210         defined.  Use __syscall_ulong_t.
14211         (shminfo): Use __syscall_ulong_t.
14212         (shm_info): Likewise.
14213
14214         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
14215         __syscall_ulong_t.
14216
14217         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
14218         <bits/wordsize.h>.
14219         (msgqnum_t): Use __syscall_ulong_t.
14220         (msglen_t): Likewise.
14221         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
14222         __syscall_ulong_t.
14223
14224         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
14225         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
14226
14227         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
14228
14229         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
14230         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
14231
14232         * sysvipc/sys/msg.h (msgbuf): Replace long int with
14233         __syscall_slong_t.
14234
14235         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
14236         include <bits/wordsize.h>.  Check __x86_64__ instead of
14237         __WORDSIZE.
14238
14239         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
14240         "unsigned long long int" if __x86_64__ is defined.
14241         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
14242
14243         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
14244         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
14245         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
14246
14247         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
14248         <stdint.h>.
14249         (GET_PC): Cast to uintptr_t first.
14250         (GET_FRAME): Likewise.
14251         (GET_STACK): Likewise.
14252
14253         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
14254         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
14255         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
14256         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
14257         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
14258         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
14259         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
14260         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
14261         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
14262         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
14263         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
14264         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
14265         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
14266         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
14267         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
14268         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
14269         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
14270         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
14271         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
14272         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
14273         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
14274         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
14275         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
14276         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
14277         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
14278         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
14279         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
14280         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
14281         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
14282
14283 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
14284
14285         * Makerules (+depfiles): Also collect depfiles from .oS in
14286         $(extra-objs).
14287         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
14288         .oS, $(libnldbl-routines)).
14289
14290         * Makerules (native-compile-mkdep-flags): Define.
14291         * sunrpc/Makefile (extra-objs): Add $(addprefix
14292         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
14293         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
14294         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
14295         calling $(make-target-directory).
14296
14297 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14298
14299         * bits/types.h (__snseconds_t): Removed.
14300         * time/time.h (struct timespec): Replace __snseconds_t with
14301         __syscall_slong_t.
14302         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
14303         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
14304         Likewise.
14305         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
14306         (__SNSECONDS_T_TYPE): Likewise.
14307         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
14308         (__SNSECONDS_T_TYPE): Likewise.
14309         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
14310         (__SNSECONDS_T_TYPE): Likewise.
14311
14312 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14313
14314         * sysdeps/mach/hurd/bits/typesizes.h
14315         (__SYSCALL_SLONG_TYPE): New macro.
14316         (__SYSCALL_ULONG_TYPE): Likewise.
14317
14318 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14319
14320         * bits/types.h (__syscall_slong_t): New type.
14321         (__syscall_ulong_t): Likewise.
14322
14323         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
14324         (__SYSCALL_ULONG_TYPE): Likewise.
14325         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
14326         (__SYSCALL_SLONG_TYPE): Likewise.
14327         (__SYSCALL_ULONG_TYPE): Likewise.
14328         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
14329         (__SYSCALL_SLONG_TYPE): Likewise.
14330         (__SYSCALL_ULONG_TYPE): Likewise.
14331         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
14332         (__SYSCALL_SLONG_TYPE): Likewise.
14333         (__SYSCALL_ULONG_TYPE): Likewise.
14334
14335 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14336
14337         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
14338         Add sigaltstack-offsets.sym.
14339         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
14340         <sigaltstack-offsets.h>.
14341         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
14342         longjmp_msg pointer.
14343         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
14344         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
14345         signal stack.
14346         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
14347
14348 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
14349
14350         * elf/stackguard-macros.h: Remove file.
14351         * sysdeps/generic/stackguard-macros.h: New file.
14352         * sysdeps/i386/stackguard-macros.h: Likewise.
14353         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
14354         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
14355         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
14356         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
14357         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
14358         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
14359         * sysdeps/x86_64/stackguard-macros.h: Likewise.
14360         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
14361         <elf/stackguard-macros.h>.
14362
14363         [BZ #14109]
14364         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
14365         __aligned__ in attribute.
14366         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
14367         (gregset_t): Likewise.
14368
14369 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14370
14371         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
14372         * sysdeps/x86_64/64/Implies-after: Here.  New file.
14373         * sysdeps/x86_64/x32/Implies-after: New file.
14374
14375 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14376
14377         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
14378         and access return value for _dl_profile_fixup.  Use R10_LP to
14379         load frame size.
14380
14381 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14382
14383         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
14384
14385 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14386
14387         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
14388         * sysdeps/x86_64/x32/sysdep.h: New file.
14389
14390 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14391
14392         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
14393         * sysdeps/x86_64/setjmp.S: Likewise.
14394
14395 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14396
14397         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
14398         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
14399         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
14400         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
14401         remove unused global constant.
14402
14403 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
14404
14405         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
14406         include of <not-cancel.h>.
14407
14408 2012-05-15  Roland McGrath  <roland@hack.frob.com>
14409
14410         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
14411
14412 2012-05-15  Jeff Law  <law@redhat.com>
14413             Andreas Jaeger  <aj@suse.de>
14414
14415         [BZ #13594]
14416         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
14417         out from...
14418         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
14419         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
14420         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
14421         code changing __hst_map_handle.map.
14422
14423 2012-05-15  Roland McGrath  <roland@hack.frob.com>
14424
14425         * configure.in (sysnames): Look for Implies-before and Implies-after
14426         files.
14427         * configure: Regenerated.
14428
14429 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14430
14431         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
14432         8-byte data alignment with LP_SIZE alignment.
14433
14434 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14435
14436         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
14437         into R10_LP.
14438
14439 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14440
14441         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
14442
14443 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14444
14445         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
14446         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
14447         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
14448         Likewise.
14449         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
14450
14451 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14452
14453         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
14454         (stackinfo_sub_sp): Likewise.
14455
14456 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14457
14458         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
14459         RAX_LP.
14460
14461 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14462
14463         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
14464         into R*_LP.
14465
14466 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14467
14468         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
14469         sizes into R*_LP.
14470
14471 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14472
14473         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
14474
14475 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14476
14477         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
14478         into R11_LP and load __x86_64_shared_cache_size_half into
14479         R8_LP.
14480
14481 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14482
14483         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
14484         R8_LP.
14485
14486 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14487
14488         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
14489         logb for POWER7.
14490         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
14491         logbf for POWER7.
14492         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
14493         logbl for POWER7.
14494         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
14495         powerpc32/power7/fpu/s_logb.c via #include.
14496         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
14497         powerpc32/power7/fpu/s_logbf.c via #include.
14498         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
14499         powerpc32/power7/fpu/s_logbl.c via #include.
14500
14501 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
14502
14503         * README.libm: Remove file.
14504
14505 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14506
14507         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
14508         count for x32.  Use R*_LP and omit operand-size suffix.
14509
14510 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14511
14512         * shlib-versions: Move x86_64-.*-linux.* entries to ...
14513         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
14514         * sysdeps/x86_64/x32/shlib-versions: New file.
14515
14516 2012-05-14  Roland McGrath  <roland@hack.frob.com>
14517
14518         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
14519         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
14520         Use _dl_fatal_printf instead.
14521
14522 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
14523
14524         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
14525         set if not set by the user.  Do not allow for being unset.
14526         * sysdeps/unix/sysv/linux/configure: Regenerated.
14527
14528 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14529
14530         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
14531         the `q' suffix from lea and replace .quad with ASM_ADDR.
14532
14533 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14534
14535         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
14536         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
14537         instead of $17.
14538         (PTR_DEMANGLE): Likewise.
14539
14540 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14541
14542         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
14543         (LP_OP): Likewise.
14544         (ASM_ADDR): Likewise.
14545         (RAX_LP): Likewise.
14546         (RBP_LP): Likewise.
14547         (RBX_LP): Likewise.
14548         (RCX_LP): Likewise.
14549         (RDI_LP): Likewise.
14550         (RSI_LP): Likewise.
14551         (RSP_LP): Likewise.
14552         (R8_LP): Likewise.
14553         (R9_LP): Likewise.
14554         (R10_LP): Likewise.
14555         (R10_LP): Likewise.
14556         (R11_LP): Likewise.
14557         (R12_LP): Likewise.
14558         (R13_LP): Likewise.
14559         (R14_LP): Likewise.
14560         (R15_LP): Likewise.
14561
14562 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14563
14564         * sysdeps/x86_64/x32/dl-machine.h: New file.
14565
14566 2012-05-14  Andreas Jaeger  <aj@suse.de>
14567
14568         * manual/Makefile (subdir): Remove export of subdir.
14569         (all): Remove target.
14570         (.PHONY): Remove all from list.
14571         (mkinstalldirs): Remove.
14572         (.PHONY): Remove installdirs from list.
14573         ($(inst_infodir)/libc.info): Use make-target-directory.
14574         (installdirs): Remove.
14575         (subdir_%): Remove.
14576         (glibc-targets): Remove.
14577         (lib): Remove.
14578         (stubs): Remove.
14579         ($(objpfx)stubs ../po/manual.pot): Remove.
14580         ($(objpfx)stamp%): Remove.
14581         (make-target-directory): Remove.
14582         (subdir_install): Remove.
14583         (routines): Remove.
14584         (aux): Remove.
14585         (sources): Remove.
14586         (objects): Remove.
14587         (headers): Remove.
14588
14589         [BZ #13750]
14590         * manual/.gitignore: Remove, it's not needed anymore.
14591         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
14592         all files in it.
14593         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
14594         directory.
14595         (texis): Renamed to $(objpfx)texis.
14596         (texis-path): New, contains path to generated files.
14597         (chapters.%): Use texis-path for complete path, add extra argument
14598         libc-texinfo.sh.
14599         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
14600         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
14601         (summary,texi, stamp-summary): Use complete path of
14602         files. Generate files in build dir.
14603         (dir-add.texi): Build in build dir.
14604         (libm-err.texi,stamp-libm-err): Likewise.
14605         (version.texi, stamp-version): Likewise.
14606         (.%c.texi): Likewise.
14607         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
14608         (mostlyclean): Remove target.
14609         (realclean): Remove target.
14610         (generated): Add new variable with contents from mostlyclean and
14611         realclean, remove entries duplicated in common-mostlyclean, add
14612         stamp-libm-err and stamp-version.
14613         (generated-dirs): Add libc directory.
14614         ($(inst_infodir)/libc.info): Install files from build dir.
14615
14616         * manual/install.texi (Configuring and compiling): Adjust since
14617         the info files are not part of the tar ball anymore.
14618
14619 2012-05-14  Andreas Jaeger  <aj@suse.de>
14620
14621         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
14622         variable.
14623
14624 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
14625
14626         [BZ #13717]
14627         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
14628         to 2.2.0 where earlier.
14629         * sysdeps/unix/sysv/linux/configure: Regenerated.
14630         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
14631         Remove conditional code.
14632         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
14633         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
14634         Remove conditional code.
14635         [!__NR_lchown]: Likewise.
14636         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
14637         [__NR_lchown]: Likewise.
14638         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
14639         comment referencing __ASSUME_LCHOWN_SYSCALL.
14640         * sysdeps/unix/sysv/linux/i386/sigaction.c
14641         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
14642         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
14643         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
14644         Remove conditional code.
14645         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
14646         (__protocol_available): Remove #if 0 code.
14647         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
14648         conditional code.
14649         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
14650         * sysdeps/unix/sysv/linux/kernel-features.h
14651         (__ASSUME_GETCWD_SYSCALL): Don't define.
14652         (__ASSUME_REALTIME_SIGNALS): Likewise.
14653         (__ASSUME_PREAD_SYSCALL): Likewise.
14654         (__ASSUME_PWRITE_SYSCALL): Likewise.
14655         (__ASSUME_POLL_SYSCALL): Likewise.
14656         (__ASSUME_LCHOWN_SYSCALL): Likewise.
14657         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
14658         non-SPARC.
14659         (__ASSUME_SIOCGIFNAME): Don't define.
14660         (__ASSUME_MSG_NOSIGNAL): Likewise.
14661         (__ASSUME_SENDFILE): Define unconditionally.
14662         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
14663         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
14664         conditional code.
14665         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
14666         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
14667         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
14668         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
14669         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
14670         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
14671         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
14672         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
14673         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
14674         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
14675         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
14676         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
14677         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
14678         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
14679         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
14680         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
14681         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
14682         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
14683         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
14684         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
14685         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
14686         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
14687         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
14688         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
14689         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
14690         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
14691         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
14692         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
14693         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
14694         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
14695         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
14696         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
14697         Remove conditional code.
14698         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
14699         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
14700         Remove conditional code.
14701         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
14702         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
14703         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
14704         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
14705         Remove conditional code.
14706         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
14707         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
14708         Remove conditional code.
14709         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
14710         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
14711         Remove conditional code.
14712         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
14713         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
14714         Remove conditional code.
14715         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
14716         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
14717         Remove conditional code.
14718         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
14719         * sysdeps/unix/sysv/linux/sh/pwrite64.c
14720         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
14721         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
14722         * sysdeps/unix/sysv/linux/sigaction.c
14723         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
14724         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
14725         * sysdeps/unix/sysv/linux/sigpending.c
14726         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
14727         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
14728         * sysdeps/unix/sysv/linux/sigprocmask.c
14729         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
14730         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
14731         * sysdeps/unix/sysv/linux/sigsuspend.c
14732         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
14733         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
14734         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
14735         (__libc_missing_rt_sigs): Remove.
14736         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
14737         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
14738         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
14739         Remove conditional code.
14740         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
14741         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
14742         return 1.
14743         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
14744         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
14745         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
14746         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
14747
14748 2012-05-14  Andreas Jaeger  <aj@suse.de>
14749
14750         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
14751         it's not used in glibc.
14752         (__coshm1): Likewise.
14753         (__acosh1p): Likewise.
14754         (__sgn): Likewise.
14755
14756         * manual/string.texi (Copying and Concatenation): Add missing
14757         variable in concat example.
14758         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
14759
14760 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14761
14762         [BZ #14103]
14763         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
14764         __builtin_clzl with __builtin_clzll.
14765
14766 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14767
14768         [BZ #14104]
14769         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
14770         libc_freeres_ptr.
14771
14772 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14773
14774         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
14775         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
14776         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
14777         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
14778
14779 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
14780
14781         * NEWS: Update ia64 info.
14782
14783 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
14784
14785         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
14786         used as bcopy.
14787
14788 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
14789
14790         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
14791         * sysdeps/unix/syscalls.list (dup3): Likewise.
14792         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
14793         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
14794
14795 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
14796
14797         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
14798         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
14799
14800 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
14801
14802         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
14803         thread pointer.
14804         (TLS_IE): Use mov/add instead of movq/addq to load thread
14805         pointer.
14806         (TLS_GD_PREFIX): New.
14807         (TLS_GD): Use it.
14808
14809 2012-05-11  David S. Miller  <davem@davemloft.net>
14810
14811         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
14812         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
14813         (_FPU_SETCW): Likewise.
14814
14815 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
14816
14817         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
14818         is 32-byte aligned.
14819
14820 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
14821
14822         [BZ #11837]
14823         * iconvdata/gb18030.c: Update tables.
14824         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
14825         characters specially.
14826         (BODY for TO_LOOP): Add encoding of missing ranges.
14827
14828 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
14829
14830         [BZ #13673]
14831         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
14832         * sysdeps/mach/hurd/dup3.c: Likewise.
14833         * sysdeps/mach/hurd/readlinkat.c: Likewise.
14834         * sysdeps/powerpc/memmove.c:: Likewise.
14835
14836 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
14837
14838         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
14839         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
14840
14841 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
14842
14843         * elf/elf.h (R_X86_64_RELATIVE64): New.
14844         (R_X86_64_NUM): Updated.
14845         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
14846         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
14847         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
14848         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
14849         tst-quad1pie tst-quad2pie
14850         (modules-names): Add tst-quadmod1 tst-quadmod2.
14851         ($(objpfx)tst-quad1): New dependency.
14852         ($(objpfx)tst-quad2): Likewise.
14853         ($(objpfx)tst-quad1pie): Likewise.
14854         ($(objpfx)tst-quad2pie): Likewise.
14855         * sysdeps/x86_64/tst-quad1.c: New file.
14856         * sysdeps/x86_64/tst-quad1pie.c: New file.
14857         * sysdeps/x86_64/tst-quad2.c: Likewise.
14858         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
14859         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
14860         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
14861         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
14862         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
14863
14864 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14865
14866         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
14867         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
14868         * streams/stropts.h (t_scalar_t): Define type.
14869
14870         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
14871         (_PATH_PRESERVE): Set to "/var/lib".
14872         (_PATH_RWHODIR): Set to "/var/spool/rwho".
14873
14874         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
14875         instead of int.
14876
14877         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
14878         if __dir_mkfile succeeded.
14879
14880         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
14881         checking for _hurd_dtablesize.  Unlock it right after having
14882         finished _hurd_dtable allocation.
14883
14884 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
14885
14886         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
14887         * sysdeps/mach/hurd/configure: Regenerated.
14888         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
14889         special-casing to...
14890         * sysdeps/gnu/configure.in: ... this new file.
14891         * sysdeps/unix/sysv/linux/configure: Regenerated.
14892         * sysdeps/gnu/configure: New generated file.
14893
14894         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
14895         for Linux: use nsec instead of usec, as well as:
14896         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
14897         members of type struct timespec.
14898         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
14899         New macros.
14900         (struct stat64): Likewise.
14901         (_STATBUF_ST_NSEC): New macro.
14902         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
14903
14904         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
14905         __strtoul_internal rather than strtoul.
14906
14907 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
14908
14909         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
14910         and reject them.
14911
14912 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14913
14914         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
14915         which preserves existing values.
14916         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
14917
14918 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
14919
14920         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
14921         TIMEOUT values.  Return EINVAL for NFDS values either negative or
14922         greater than FD_SETSIZE.
14923
14924 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14925
14926         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
14927         allocated, call __vm_protect to finish enabling the existing space, and
14928         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
14929         allocate the remainder.
14930
14931 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
14932
14933         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
14934         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
14935
14936 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14937
14938         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
14939         sysdeps/mach/hurd/readlink.c.
14940
14941         * posix/tst-sysconf.c (posix_options): Only use
14942         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
14943         _POSIX_SYNCHRONIZED_IO when they are defined
14944         * sysdeps/mach/hurd/bits/posix_opt.h:
14945         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
14946         (_XOPEN_REALTIME): Undefine macro.
14947         (_XOPEN_REALTIME_THREADS): Undefine macro.
14948         (_XOPEN_SHM): Undefine macro.
14949         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
14950         macro to -1.
14951         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
14952         macro to -1.
14953         (_POSIX_ASYNC_IO): Undefine macro.
14954         (_POSIX_PRIORITIZED_IO): Undefine macro.
14955         (_POSIX_SPIN_LOCKS): Define macro to -1.
14956
14957         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
14958         SA_NODEFER, SA_RESETHAND.
14959         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
14960         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
14961         F_DUPFD_CLOEXEC.
14962
14963 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
14964
14965         * elf/Makefile (pldd-modules): Define unconditionally.
14966
14967 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
14968
14969         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
14970
14971 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14972
14973         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
14974         Return ENOENT when name is empty.
14975         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
14976
14977 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
14978
14979         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
14980
14981         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
14982
14983 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14984
14985         Fix mlock in all cases except non-readable pages.
14986         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
14987         instead of VM_PROT_ALL as parameter to __vm_wire function.
14988
14989         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
14990         (__mkdir): When path is `/', just fail with EEXIST.
14991         * sysdeps/mach/hurd/mkdirat.c: Likewise.
14992
14993 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
14994
14995         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
14996         <sys/uio.h> (for writev).
14997         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
14998         and <sys/param.h> (for MIN).
14999
15000 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
15001
15002         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
15003         REQUESTED_TIME.  Properly set the remaining time and return EINTR
15004         if interrupted.
15005
15006 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
15007
15008         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
15009         Depend on against $(link-rpcuserlibs).
15010
15011 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15012
15013         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
15014         (__libc_stack_end): Do not use attribute_relro.
15015         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
15016         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
15017         to libthread-provided value.
15018         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
15019         attribute_relro.
15020
15021 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
15022
15023         [BZ #3748]
15024         * bits/libc-lock.h (__libc_once_get): New macro.
15025         * sysdeps/mach/bits/libc-lock.h: Likewise.
15026         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
15027         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
15028         instead of using implementation details.
15029
15030         * libio/fileops.c: Unconditionally include <kernel-features.h>.
15031         * libio/freopen.c: Likewise.
15032         * libio/freopen64.c: Likewise.
15033         * misc/syslog.c: Likewise.
15034         * nscd/connections.c: Likewise.
15035         * nscd/netgroupcache.c: Likewise.
15036         * sysdeps/posix/getcwd.c: Likewise.
15037
15038 2012-05-10  Roland McGrath  <roland@hack.frob.com>
15039
15040         * math/w_ilogbf.c: Add #include <limits.h>.
15041
15042 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15043
15044         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
15045         path instead of returning without unlocking.
15046
15047         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
15048         immediate-write ioctls.
15049         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
15050
15051 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
15052
15053         * sysdeps/mach/hurd/i386/init-first.c (init): Use
15054         __builtin_frame_address instead of making assumptions about the
15055         location of the return address relative to DATA.  Force early load of
15056         the return address.
15057         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
15058         __builtin_frame_address.
15059
15060         dup3 for GNU Hurd.
15061         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
15062         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
15063         implement dup3 and do some further code clean-ups.
15064         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
15065         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
15066
15067 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15068
15069         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
15070
15071         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
15072         HURD_CRITICAL_END around holding _hurd_dtable_lock.
15073         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
15074         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
15075         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
15076         d->port.lock.
15077
15078         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
15079         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
15080         when handler == SIG_ERR, not when handler != SIG_ERR.
15081
15082 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
15083
15084         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
15085         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
15086         definitions.
15087
15088         accept4 for GNU Hurd.
15089         * include/sys/socket.h (__libc_accept4): New prototype.
15090         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
15091         to implement __libc_accept4.
15092         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
15093         __libc_accept4.
15094         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
15095
15096         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
15097         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
15098         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
15099         signal-defines.sym.
15100
15101 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15102
15103         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
15104
15105 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
15106
15107         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
15108         assertion on O_CLOEXEC flag.
15109         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
15110         * hurd/intern-fd.c: Likewise.
15111         * hurd/port2fd.c: Likewise.
15112
15113 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15114
15115         [BZ #3906]
15116         * bits/in.h (IPV6_PKTINFO): Define new macro.
15117         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
15118
15119 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15120
15121         [BZ #13954]
15122         [BZ #13955]
15123         [BZ #13956]
15124         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
15125         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
15126         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
15127         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
15128         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
15129         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
15130         * math/libm-test.inc (logb_test) : Additional logb tests.
15131
15132 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
15133             Andreas Jaeger  <aj@suse.de>
15134
15135         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
15136         * configure: Regenerated.
15137         * config.h.in (LINK_OBSOLETE_RPC): New macro.
15138         * config.make.in (link-obsolete-rpc): New substituted variable.
15139         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
15140         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
15141         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
15142         (shared-only-routines): Don't set it under [link-obsolete-rpc],
15143         so that libc.a contains the symbols.
15144         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
15145         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
15146         * sunrpc/auth_none.c: Likewise.
15147         * sunrpc/auth_unix.c: Likewise.
15148         * sunrpc/authdes_prot.c: Likewise.
15149         * sunrpc/authuxprot.c: Likewise.
15150         * sunrpc/clnt_gen.c: Likewise.
15151         * sunrpc/clnt_perr.c: Likewise.
15152         * sunrpc/clnt_raw.c: Likewise.
15153         * sunrpc/clnt_simp.c: Likewise.
15154         * sunrpc/clnt_tcp.c: Likewise.
15155         * sunrpc/clnt_udp.c: Likewise.
15156         * sunrpc/clnt_unix.c: Likewise.
15157         * sunrpc/des_crypt.c: Likewise.
15158         * sunrpc/des_soft.c: Likewise.
15159         * sunrpc/get_myaddr.c: Likewise.
15160         * sunrpc/key_call.c: Likewise.
15161         * sunrpc/key_prot.c: Likewise.
15162         * sunrpc/netname.c: Likewise.
15163         * sunrpc/pm_getmaps.c: Likewise.
15164         * sunrpc/pm_getport.c: Likewise.
15165         * sunrpc/pmap_clnt.c: Likewise.
15166         * sunrpc/pmap_prot.c: Likewise.
15167         * sunrpc/pmap_prot2.c: Likewise.
15168         * sunrpc/pmap_rmt.c: Likewise.
15169         * sunrpc/publickey.c: Likewise.
15170         * sunrpc/rpc_cmsg.c: Likewise.
15171         * sunrpc/rpc_common.c: Likewise.
15172         * sunrpc/rpc_dtable.c: Likewise.
15173         * sunrpc/rpc_prot.c: Likewise.
15174         * sunrpc/rpc_thread.c: Likewise.
15175         * sunrpc/rtime.c: Likewise.
15176         * sunrpc/svc.c: Likewise.
15177         * sunrpc/svc_auth.c: Likewise.
15178         * sunrpc/svc_raw.c: Likewise.
15179         * sunrpc/svc_run.c: Likewise.
15180         * sunrpc/svc_tcp.c: Likewise.
15181         * sunrpc/svc_udp.c: Likewise.
15182         * sunrpc/svc_unix.c: Likewise.
15183         * sunrpc/svcauth_des.c: Likewise.
15184         * sunrpc/xcrypt.c: Likewise.
15185         * sunrpc/xdr.c: Likewise.
15186         * sunrpc/xdr_array.c: Likewise.
15187         * sunrpc/xdr_float.c: Likewise.
15188         * sunrpc/xdr_intXX_t.c: Likewise.
15189         * sunrpc/xdr_mem.c: Likewise.
15190         * sunrpc/xdr_rec.c: Likewise.
15191         * sunrpc/xdr_ref.c: Likewise.
15192         * sunrpc/xdr_sizeof.c: Likewise.
15193         * sunrpc/xdr_stdio.c: Likewise.
15194
15195 2012-05-10  Roland McGrath  <roland@hack.frob.com>
15196
15197         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
15198         change.  Update copyright years.
15199
15200 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
15201
15202         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
15203
15204 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
15205             Joseph Myers  <joseph@codesourcery.com>
15206             Paul Pluzhnikov  <ppluzhnikov@google.com>
15207
15208         [BZ #14012]
15209         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
15210         requiring rpcgen.
15211         [cross-compiling] (extra-libs): Likewise.
15212         [cross-compiling] (extra-libs-others): Likewise.
15213         [cross-compiling] (librpcsvc-routines): Likewise.
15214         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
15215         [cross-compiling] (omit-deps): Likewise.
15216         (sunrpc-CPPFLAGS): New variable.
15217         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
15218         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
15219         (cross-rpcgen-objs): New variable.
15220         (extra-objs): Append $(cross-rpcgen-objs).
15221         ($(cross-rpcgen-objs)): New rule.
15222         ($(objpfx)cross-rpcgen): Likewise.
15223         (rpcgen-cmd): Define to use $(built-program-file).  Expand
15224         comment.
15225         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
15226         ($(objpfx)x%.stmp): Likewise.
15227         * sunrpc/proto.h [IS_IN_build] (_): Define.
15228         [IS_IN_build] (_libc_intl_domainname): Likewise.
15229
15230 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
15231
15232         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
15233         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
15234         and R_X86_64_TPOFF64.
15235
15236 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
15237
15238         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
15239         sysdeps/unix/sysv/syscalls.list.
15240         (stime): Likewise.
15241         (utime): Likewise.
15242         * sysdeps/unix/sysv/syscalls.list: Remove file.
15243
15244 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
15245
15246         [BZ #3440]
15247         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
15248         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
15249         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
15250         (__LC_IDENTIFICATION): Make these macros useful in #if
15251         expressions, as required by C99.
15252
15253 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
15254
15255         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
15256         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
15257         after this.
15258
15259 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
15260
15261         * stdlib/longlong.h: Updated from GCC.
15262
15263 2012-05-09  Andreas Jaeger  <aj@suse.de>
15264
15265         * nscd/nscd.c (run_modes): Make named enum, reorder so that
15266         default is first entry.
15267         (run_mode): Set type.
15268         (main): Remove informal message about syslog.
15269         (options): Fix typo.
15270
15271         [BZ #14053]
15272         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
15273         to asm.
15274         (lrint): Likewise.
15275         (llrintf): Likewise.
15276         (llrint): Likewise.
15277         (rint): Likewise.
15278         (rintf): Likewise.
15279         (nearbyint): Likewise.
15280         (nearbyintf): Likewise.
15281
15282 2012-05-09  Andreas Jaeger  <aj@suse.de>
15283             Pedro Alves  <palves@redhat.com>
15284
15285         * nscd/nscd.c (run_mode): Use enum.
15286         (main): Cleanup coding style issue.
15287
15288 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
15289             Andreas Jaeger  <aj@suse.de>
15290
15291         * nscd/nscd.c (go_background): Replaced with...
15292         (run_mode): ... this.
15293         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
15294         (options): Add -F --foreground.
15295         (main): Implement it.
15296         (parse_opt): Parse it.
15297
15298 2012-05-09  Andreas Jaeger  <aj@suse.de>
15299
15300         [BZ #14083]
15301         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
15302         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
15303         -Wconversion warning.
15304         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
15305         Likewise.
15306
15307 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
15308
15309         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
15310         == 0.
15311         (LC_ALL): Use macro-int-constant.
15312         (LC_COLLATE): Likewise.
15313         (LC_CTYPE): Likewise.
15314         (LC_MESSAGES): Likewise.
15315         (LC_MONETARY): Likewise.
15316         (LC_NUMERIC): Likewise.
15317         (LC_TIME): Likewise.
15318         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
15319         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
15320         [ISO || ISO99 || ISO11] (*_t): Do not allow.
15321         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
15322         Specify type.
15323         [C99-based standards] (float_t): Expect type.
15324         [C99-based standards] (double_t): Expect type.
15325         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
15326         type.
15327         [C99-based standards] (HUGE_VALL): Likewise.
15328         [C99-based standards] (INFINITY): Likewise.
15329         [C99-based standards] (NAN): Likewise.
15330         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
15331         [C99-based standards] (FP_NAN): Likewise.
15332         [C99-based standards] (FP_NORMAL): Likewise.
15333         [C99-based standards] (FP_SUBNORMAL): Likewise.
15334         [C99-based standards] (FP_ZERO): Likewise.
15335         [C99-based standards] (FP_FAST_FMA): Use
15336         optional-macro-int-constant.  Specify type.  Require == 1.
15337         [C99-based standards] (FP_FAST_FMAF): Likewise.
15338         [C99-based standards] (FP_FAST_FMAL): Likewise.
15339         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
15340         [C99-based standards] (FP_ILOGBNAN): Likewise.
15341         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
15342         Specify type.
15343         [C99-based standards] (MATH_ERREXCEPT): Likewise.
15344         [C99-based standards] (math_errhandling): Specify type.
15345         [ISO99 || ISO11] (signgam): Do not allow.
15346         [non-C99-based standards] (copysignf): Do not allow.
15347         [non-C99-based standards] (exp2f): Likewise.
15348         [non-C99-based standards] (log2f): Likewise.
15349         [non-C99-based standards] (modff): Allow.
15350         [non-C99-based standards] (erff): Do not allow.
15351         [non-C99-based standards] (erfcf): Likewise.
15352         [non-C99-based standards] (gammaf): Likewise.
15353         [non-C99-based standards] (hypotf): Likewise.
15354         [non-C99-based standards] (j0f): Likewise.
15355         [non-C99-based standards] (j1f): Likewise.
15356         [non-C99-based standards] (jnf): Likewise.
15357         [non-C99-based standards] (lgammaf): Likewise.
15358         [non-C99-based standards] (tgammaf): Likewise.
15359         [non-C99-based standards] (y0f): Likewise.
15360         [non-C99-based standards] (y1f): Likewise.
15361         [non-C99-based standards] (ynf): Likewise.
15362         [non-C99-based standards] (isnanf): Likewise.
15363         [non-C99-based standards] (acoshf): Likewise.
15364         [non-C99-based standards] (asinhf): Likewise.
15365         [non-C99-based standards] (atanhf): Likewise.
15366         [non-C99-based standards] (cbrtf): Likewise.
15367         [non-C99-based standards] (expm1f): Likewise.
15368         [non-C99-based standards] (ilogbf): Likewise.
15369         [non-C99-based standards] (log1pf): Likewise.
15370         [non-C99-based standards] (logbf): Likewise.
15371         [non-C99-based standards] (nextafterf): Likewise.
15372         [non-C99-based standards] (remainderf): Likewise.
15373         [non-C99-based standards] (rintf): Likewise.
15374         [non-C99-based standards] (scalbf): Likewise.
15375         [non-C99-based standards] (copysignl): Likewise.
15376         [non-C99-based standards] (exp2l): Likewise.
15377         [non-C99-based standards] (log2l): Likewise.
15378         [non-C99-based standards] (modfl): Allow.
15379         [non-C99-based standards] (erfl): Do not allow.
15380         [non-C99-based standards] (erfcl): Likewise.
15381         [non-C99-based standards] (gammal): Likewise.
15382         [non-C99-based standards] (hypotl): Likewise.
15383         [non-C99-based standards] (j0l): Likewise.
15384         [non-C99-based standards] (j1l): Likewise.
15385         [non-C99-based standards] (jnl): Likewise.
15386         [non-C99-based standards] (lgammal): Likewise.
15387         [non-C99-based standards] (tgammal): Likewise.
15388         [non-C99-based standards] (y0l): Likewise.
15389         [non-C99-based standards] (y1l): Likewise.
15390         [non-C99-based standards] (ynl): Likewise.
15391         [non-C99-based standards] (isnanl): Likewise.
15392         [non-C99-based standards] (acoshl): Likewise.
15393         [non-C99-based standards] (asinhl): Likewise.
15394         [non-C99-based standards] (atanhl): Likewise.
15395         [non-C99-based standards] (cbrtl): Likewise.
15396         [non-C99-based standards] (expm1l): Likewise.
15397         [non-C99-based standards] (ilogbl): Likewise.
15398         [non-C99-based standards] (log1pl): Likewise.
15399         [non-C99-based standards] (logbl): Likewise.
15400         [non-C99-based standards] (nextafterl): Likewise.
15401         [non-C99-based standards] (remainderl): Likewise.
15402         [non-C99-based standards] (rintl): Likewise.
15403         [non-C99-based standards] (scalbl): Likewise.
15404         [ISO || ISO99 || ISO11] (*_t): Do not allow.
15405         [non-C99-based standards] (FP_*): Do not allow.
15406         [C99-based standards] (FP_*): Change to
15407         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
15408         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
15409         allow.
15410         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
15411         (SIG_ERR): Likewise.
15412         [X/Open-based standards] (SIG_HOLD): Likewise.
15413         (SIG_IGN): Likewise.
15414         (SIGABRT): Use macro-int-constant.  Specify type.  Require
15415         positive value.
15416         (SIGFPE): Likewise.
15417         (SIGILL): Likewise.
15418         (SIGINT): Likewise.
15419         (SIGSEGV): Likewise.
15420         (SIGTER): Likewise.
15421         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
15422         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
15423         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
15424         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
15425         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
15426         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
15427         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
15428         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
15429         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
15430         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
15431         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
15432         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
15433         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
15434         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
15435         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
15436         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
15437         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
15438         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
15439         [X/Open-based standards] (SIGTRAP): Likewise.
15440         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
15441         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
15442         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
15443         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
15444         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
15445         allow.
15446
15447 2012-05-08  Ian Wienand  <ianw@vmware.com>
15448
15449         [BZ #14080]
15450         * time/tzset.c (__tzset_parse_tz): Update default rules for
15451         daylight time changes in the Energy Policy Act of 2005.
15452
15453 2012-05-09  Andreas Jaeger  <aj@suse.de>
15454
15455         [BZ #13983]
15456         * elf/ldconfig.c (parse_conf): Change string to make clear that
15457         ldconfig only issued a warning if ld.so.conf does not exist.
15458
15459 2012-05-08  David S. Miller  <davem@davemloft.net>
15460
15461         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
15462         movxtod instead of popping the value on the stack.
15463
15464         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15465
15466 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
15467
15468         * config.h.in: Add HAVE_ARM_PCS_VFP.
15469
15470 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
15471
15472         [BZ #13979]
15473         * include/features.h: Warn if user requests __FORTIFY_SOURCE
15474         checking but the checks are disabled for any reason.
15475
15476 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
15477
15478         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
15479         and ELF64_R_TYPE with ELFW(R_TYPE).
15480
15481 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
15482
15483         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
15484         (ulimit): Likewise.
15485
15486         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
15487         (settimeofday): Likewise.
15488
15489 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
15490
15491         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
15492         a struct th_u2 inside the union, and move tu_block/tu_code into
15493         a new th_u3 union of tu_block/tu_code inside of that.  Move
15494         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
15495         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
15496         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
15497         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
15498         (th_stuff): Change to th_u1.tu_stuff.
15499         (th_data): Define.
15500         (th_msg): Change to th_u1.th_u2.tu_data.
15501
15502 2012-05-07  David S. Miller  <davem@davemloft.net>
15503
15504         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15505
15506         [BZ #14074]
15507         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
15508         (SETUP_PIC_REG): Use it.
15509         (SETUP_PIC_REG_LEAF): Use it.
15510
15511 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
15512
15513         [BZ #13885]
15514         [BZ #13923]
15515         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
15516         USE_AS_EXPM1L.
15517         (EXPL_FINITE): Likewise.
15518         (FLDLOG): Likewise.
15519         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
15520         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
15521         e_expl.S.
15522         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
15523         USE_AS_EXPM1L.
15524         (EXPL_FINITE): Likewise.
15525         (FLDLOG): Likewise.
15526         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
15527         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
15528         e_expl.S.
15529         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
15530         test of -max_value argument for long double.
15531         * sysdeps/i386/fpu/libm-test-ulps: Update.
15532         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15533
15534 2012-05-06  David S. Miller  <davem@davemloft.net>
15535
15536         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
15537         quad soft-float symbols whose references which are compiler
15538         generated.
15539         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
15540
15541 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
15542
15543         [BZ #13884]
15544         [BZ #13914]
15545         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
15546         USE_AS_EXP10L.
15547         (EXPL_FINITE): Likewise.
15548         (FLDLOG): Likewise.
15549         (c0): Likewise.
15550         (c1): Likewise.
15551         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
15552         Adjust comments for base varying.
15553         (__expl_finite): Change alias to EXPL_FINITE.
15554         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
15555         e_expl.S.
15556         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
15557         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
15558         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
15559         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
15560         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
15561         USE_AS_EXP10L.
15562         (EXPL_FINITE): Likewise.
15563         (FLDLOG): Likewise.
15564         (c0): Likewise.
15565         (c1): Likewise.
15566         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
15567         Adjust comments for base varying.
15568         (__expl_finite): Change alias to EXPL_FINITE.
15569         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
15570         tests for bugs.
15571         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15572
15573         [BZ #14064]
15574         * math/libm-test.inc (check_float_internal): Correct ulp
15575         calculation for subnormal expected results.
15576
15577 2012-05-06  Andreas Jaeger  <aj@suse.de>
15578
15579         * Makeconfig (+math-flags): New, set to -frounding-math.
15580         (+cflags): Add +math-flags so that all of glibc gets compiled with
15581         it.
15582
15583         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
15584
15585 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
15586
15587         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
15588         Disable one test.
15589
15590         [BZ #13787]
15591         [BZ #13922]
15592         [BZ #14036]
15593         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
15594         (__ieee754_expl): Allow for and saturate large arguments.
15595         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
15596         (u_threshold): Likewise.
15597         (__exp): Call __ieee754_exp before checking for overflow and
15598         underflow.
15599         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
15600         (u_threshold): Likewise.
15601         (__expf): Call __ieee754_expf before checking for overflow and
15602         underflow.
15603         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
15604         (u_threshold): Likewise.
15605         (__expl): Call __ieee754_expl before checking for overflow and
15606         underflow.
15607         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
15608         (__ieee754_expl): Allow for and saturate large arguments.
15609         * math/libm-test.inc (exp_test): Add another test.  Do not allow
15610         missing overflow exception on overflow.
15611         (expm1_test): Do not allow missing overflow exception on overflow.
15612
15613         * sysdeps/i386/fpu/e_expl.c: Move to ...
15614         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
15615         rather than using inline asm.
15616         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
15617         * sysdeps/x86_64/fpu/e_expl.S: Copy from
15618         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
15619
15620         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
15621         (nice): Likewise.
15622         (poll): Likewise.
15623         (signal): Likewise.
15624         (time): Likewise.
15625         (times): Likewise.
15626
15627 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
15628
15629         * sysdeps/unix/syscalls.list (adjtime): Add entry from
15630         sysdeps/unix/common/syscalls.list.
15631         (fchmod): Likewise.
15632         (fchown): Likewise.
15633         (ftruncate): Likewise.
15634         (getrusage): Likewise.
15635         (gettimeofday): Likewise.
15636         (setpgid): Likewise.
15637         (setregid): Likewise.
15638         (setreuid): Likewise.
15639         (sigaction): Likewise.
15640         (truncate): Likewise.
15641         (vhangup): Likewise.
15642         * sysdeps/unix/common/syscalls.list: Remove file.
15643         * sysdeps/unix/bsd/Implies: Don't include unix/common.
15644         * sysdeps/unix/sysv/linux/Implies: Likewise.
15645
15646 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
15647
15648         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
15649         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
15650         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
15651         Moved to ...
15652         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
15653         Here.
15654         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
15655         to ...
15656         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
15657         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
15658         to ...
15659         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
15660         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
15661         to ...
15662         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
15663         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
15664         to ...
15665         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
15666         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
15667         to ...
15668         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
15669         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
15670         to ...
15671         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
15672         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
15673         to ...
15674         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
15675         Here.
15676         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
15677         to ...
15678         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
15679         Here.
15680         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
15681         to ...
15682         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
15683         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
15684         Moved to ...
15685         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
15686         Here.
15687         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
15688         to ...
15689         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
15690
15691 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
15692
15693         * sysdeps/unix/common/bits/dirent.h: Remove file.
15694         * sysdeps/unix/common/bits/fcntl.h: Likewise.
15695
15696         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
15697         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
15698         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
15699         * sysdeps/unix/bsd/isatty.c: Likewise.
15700         * sysdeps/unix/bsd/tcdrain.c: Likewise.
15701         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
15702         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
15703
15704 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15705
15706         [BZ #13563]
15707         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
15708         long double comparison inaccuracies.
15709         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
15710         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15711
15712 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
15713
15714         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
15715         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
15716
15717 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
15718
15719         [BZ #14049]
15720         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
15721         nonzero digits before rounding a hex value.
15722         * stdlib/tst-strtod.c (tests): Add another test.
15723
15724 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15725
15726         * sysdeps/s390/fpu/libm-test-ulps: Update.
15727
15728 2012-05-03  Andreas Jaeger  <aj@suse.de>
15729
15730         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
15731         does not get optimized out.
15732         (malloc_opt_barrier): New.
15733
15734 2012-05-03  Andreas Jaeger  <aj@suse.de>
15735             Roland McGrath  <roland@hack.frob.com>
15736
15737         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
15738         intermediate file deletion.
15739         (generated): Add .symlist files.
15740
15741 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
15742
15743         [BZ #13775]
15744         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
15745         Redirect under this condition.
15746         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
15747         [__USE_GNU] (__dprintf_chk): Not under this condition.
15748         [__USE_GNU] (__vdprintf_chk): Likewise.
15749         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
15750         under this condition.
15751         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
15752         [__USE_XOPEN2K8] (dprintf): Define under this condition.
15753         [__USE_XOPEN2K8] (vdprintf): Likewise.
15754         [__USE_GNU] (__dprintf_chk): Not under this condition.
15755         [__USE_GNU] (__vdprintf_chk): Likewise.
15756         [__USE_GNU] (dprintf): Likewise.
15757         [__USE_GNU] (vdprintf): Likewise.
15758
15759 2012-05-03  Roland McGrath  <roland@hack.frob.com>
15760
15761         * elf/Makefile (common-generated): Set this instead of generated for
15762         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
15763         $(all-built-dso)-derived lists.
15764
15765 2012-05-03  Andreas Jaeger  <aj@suse.de>
15766
15767         * sysdeps/i386/fpu/libm-test-ulps: Update.
15768
15769         * FAQ: Removed.
15770         * FAQ.in: Likewise.
15771         * scripts/gen-FAQ.pl: Likewise.
15772         * manual/install.texi (Installation): Point to online location of
15773         FAQ.
15774         * Makefile (files-for-dist): Remove FAQ.
15775         (FAQ): Remove.
15776
15777 2012-05-02  Allan McRae  <allan@archlinux.org>
15778
15779         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
15780         (LDFLAGS-reldepmod5.so): Likewise.
15781         (LDFLAGS-reldep6mod1.so): Likewise.
15782         (LDFLAGS-reldep6mod4.so): Likewise.
15783         (LDFLAGS-reldep8mod3.so): Likewise.
15784         (LDFLAGS-unload4mod1.so): Likewise.
15785         (LDFLAGS-unload4mod2.so): Likewise.
15786         (LDFLAGS-tst-initorder): Likewise.
15787         (LDFLAGS-tst-initordera2.so): Likewise.
15788         (LDFLAGS-tst-initordera3.so): Likewise.
15789         (LDFLAGS-tst-initordera4.so): Likewise.
15790         (LDFLAGS-tst-initorderb2.so): Likewise.
15791         (LDFLAGS-noload): Likewise.
15792         (LDFLAGS-next): Likewise.
15793         (LDFLAGS-order2mod1.so): Likewise.
15794         (LDFLAGS-order2mod2.so): Likewise.
15795         (LDFLAGS-tst-initorder2): Likewise.
15796         (LDFLAGS-tst-initorder2a.so): Likewise.
15797         (LDFLAGS-tst-initorder2b.so): Likewise.
15798         (LDFLAGS-tst-initorder2c.so): Likewise.
15799         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
15800
15801 2012-05-02  David S. Miller  <davem@davemloft.net>
15802
15803         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15804
15805 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
15806
15807         [BZ #14055]
15808         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
15809
15810 2012-05-02  Andreas Jaeger  <aj@suse.de>
15811
15812         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
15813         since we manipulate rounding mode.
15814         (CPPFLAGS-test-idouble.c): Likewise.
15815         (CPPFLAGS-test-ifloat.c): Likewise.
15816         (CFLAGS-test-ldouble.c): Likewise.
15817         (CFLAGS-test-double.c): Likewise.
15818         (CFLAGS-test-float.c): Likewise.
15819         (CFLAGS-test-misc.c): Likewise.
15820         (CFLAGS-test-test-fenv.c): Likewise.
15821
15822 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15823
15824         [BZ #2550]
15825         [BZ #2570]
15826         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
15827         comparisons to determine direction to adjust input.
15828
15829 2012-05-01  Roland McGrath  <roland@hack.frob.com>
15830
15831         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
15832         output to the target.
15833
15834         * scripts/localplt.awk: New file.
15835         * elf/Makefile ($(objpfx)check-localplt): Target removed.
15836         (check-localplt-CFLAGS): Variable removed.
15837         ($(all-built-dso:=.jmprel)): New static pattern rule.
15838         (generated): Add those targets.
15839         (localplt-built-dso): New variable.
15840         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
15841
15842         * elf/check-localplt.c: File removed.
15843
15844         * scripts/check-execstack.awk: New file.
15845         * elf/Makefile ($(objpfx)check-execstack): Target removed.
15846         (check-execstack-CFLAGS): Variable removed.
15847         ($(objpfx)check-execstack.h): Target removed.
15848         ($(objpfx)execstack-default): New target.
15849         (generated): Add that instead of check-execstack.h.
15850         ($(all-built-dso:=.phdr)): New static pattern rule.
15851         (generated): Add those targets.
15852         * elf/check-execstack.c: File removed.
15853
15854         * scripts/check-textrel.awk: New file.
15855         * elf/Makefile ($(objpfx)check-textrel): Target removed.
15856         (check-textrel-CFLAGS): Variable removed.
15857         (all-built-dso): Use := to define.o
15858         ($(all-built-dso:=.dyn)): New static pattern rule.
15859         (generated): Add those targets.
15860         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
15861         * config.make.in (READELF): New substituted variable.
15862         * elf/check-textrel.c: File removed.
15863
15864 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
15865
15866         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
15867         allow.
15868         * conform/data/ctype.h-data [C99-based standards] (isblank):
15869         Expect function.
15870         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
15871         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
15872         [ISO || ISO99 || ISO11] (*_t): Do not allow.
15873         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
15874         Specify type.  Require positive value.
15875         (EILSEQ): Likewise.
15876         (ERANGE): Likewise.
15877         [ISO || POSIX] (EILSEQ): Do not expect.
15878         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
15879         Specify type.  Require positive value.
15880         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
15881         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
15882         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
15883         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
15884         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
15885         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
15886         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
15887         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
15888         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
15889         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
15890         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
15891         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
15892         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
15893         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
15894         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
15895         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
15896         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
15897         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
15898         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
15899         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
15900         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
15901         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
15902         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
15903         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
15904         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
15905         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
15906         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
15907         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
15908         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
15909         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
15910         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
15911         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
15912         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
15913         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
15914         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
15915         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
15916         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
15917         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
15918         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
15919         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
15920         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
15921         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
15922         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
15923         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
15924         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
15925         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
15926         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
15927         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
15928         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
15929         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
15930         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
15931         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
15932         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
15933         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
15934         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
15935         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
15936         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
15937         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
15938         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
15939         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
15940         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
15941         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
15942         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
15943         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
15944         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
15945         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
15946         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
15947         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
15948         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
15949         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
15950         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
15951         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
15952         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
15953         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
15954         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
15955         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
15956         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
15957         Require >= 2.
15958         (FLT_ROUNDS): Expect as macro, not constant.
15959         (FLT_MANT_DIG): Use macro-int-constant.
15960         (DBL_MANT_DIG): Likewise.
15961         (LDBL_MANT_DIG): Likewise.
15962         (FLT_DIG): Likewise.
15963         (DBL_DIG): Likewise.
15964         (LDBL_DIG): Likewise.
15965         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
15966         (DBL_MIN_EXP): Likewise.
15967         (LDBL_MIN_EXP): Likewise.
15968         (FLT_MAX_EXP): Use macro-int-constant.
15969         (DBL_MAX_EXP): Likewise.
15970         (LDBL_MAX_EXP): Likewise.
15971         (FLT_MAX_10_EXP): Likewise.
15972         (DBL_MAX_10_EXP): Likewise.
15973         (LDBL_MAX_10_EXP): Likewise.
15974         (FLT_MAX): Use macro-constant.
15975         (DBL_MAX): Likewise.
15976         (LDBL_MAX): Likewise.
15977         (FLT_EPSILON): Use macro-constant.  Give upper bound.
15978         (DBL_EPSILON): Likewise.
15979         (LDBL_EPSILON): Likewise.
15980         (FLT_MIN): Likewise.
15981         (DBL_MIN): Likewise.
15982         (LDBL_MIN): Likewise.
15983         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
15984         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
15985         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
15986         [ISO11] (FLT_HAS_SUBNORM): Likewise.
15987         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
15988         [ISO11] (DBL_DECIMAL_DIG): Likewise.
15989         [ISO11] (FLT_DECIMAL_DIG): Likewise.
15990         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
15991         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
15992         [ISO11] (FLT_TRUE_MIN): Likewise.
15993         [ISO11] (LDBL_TRUE_MIN): Likewise.
15994         [ISO || ISO99 || ISO11] (*_t): Do not allow.
15995         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
15996         (SCHAR_MIN): Use macro-int-constant.  Specify type.
15997         (SCHAR_MAX): Likewise.
15998         (UCHAR_MAX): Likewise.
15999         (CHAR_MIN): Likewise.
16000         (CHAR_MAX): Likewise.
16001         (MB_LEN_MAX): Use macro-int-constant.
16002         (SHRT_MIN): Use macro-int-constant.  Specify type.
16003         (SHRT_MAX): Likewise.
16004         (USHRT_MAX): Likewise.
16005         (INT_MAX): Likewise.
16006         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
16007         bound negative.
16008         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
16009         bound with "U".
16010         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
16011         bound with "L".
16012         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
16013         bound negative.  Suffix upper bound with "L".
16014         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
16015         bound with "UL".
16016         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
16017         Specify type.
16018         [C99-based standards] (LLONG_MAX): Likewise.
16019         [C99-based standards] (ULLONG_MAX): Likewise.
16020         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
16021         == 0.
16022         [ISO11] (max_align_t): Require type.
16023         [ISO || ISO99 || ISO11] (*_t): Do not allow.
16024
16025         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
16026         from $CFLAGS, without defining away __attribute__ calls.
16027         (checknamespace): Use $CFLAGS_namespace.
16028
16029         * conform/conformtest.pl (@keywords): Only include C99 keywords
16030         for standards based on C99 or C11.
16031
16032         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
16033         Disable tests.
16034         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
16035         UNIX98]: Likewise.
16036
16037         * conform/conformtest.pl: Handle "macro-int-constant" and test for
16038         usability of symbols in #if.
16039
16040         * conform/conformtest.pl: If macro or constant types start
16041         "promoted:", expect the symbol to be of the following type
16042         promoted by the integer promotions.
16043
16044         * conform/conformtest.pl: Parse all "constant" and "macro" lines
16045         in one place.  Also handle "macro-constant".
16046
16047         * conform/conformtest.pl: Only accept expected macro values with
16048         "==".  Parse all "macro" lines in one place.
16049         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
16050
16051         * conform/conformtest.pl: Handle braced types on "constant" lines
16052         instead of handling "typed-constant".
16053         * conform/data/signal.h-data: Use "constant" instead of
16054         "typed-constant".
16055
16056         * conform/conformtest.pl: Handle "optional-" at start of lines in
16057         one place rather than duplicating several cases.  Handle each
16058         format of "macro" line with initial "optional-".
16059
16060         * conform/conformtest.pl: Only accept expected constant or
16061         optional-constant values with "==".  Parse all "constant" lines in
16062         one place.  Parse all "optional-constant" lines in one place.
16063         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
16064         * conform/data/fmtmsg.h-data: Likewise.
16065         * conform/data/netinet/in.h-data: Likewise.
16066         * conform/data/tar.h-data: Likewise.
16067         * conform/data/limits.h-data: Use "==" form on "constant" and
16068         "optional-constant" lines.
16069
16070         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
16071         Use -std=c99 for XOPEN2K.
16072         (@knownproblems): Remove.
16073         (newtoken): Don't check %isknown.
16074
16075         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
16076         Do not expect macro.
16077         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
16078         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
16079         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
16080         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
16081         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
16082         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
16083         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
16084         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
16085         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
16086         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
16087         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
16088         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
16089         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
16090         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
16091         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
16092         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
16093         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
16094         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
16095         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
16096         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
16097         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
16098         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
16099         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
16100         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
16101         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
16102         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
16103         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
16104         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
16105         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
16106         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
16107         [XPG3] (acosh): Likewise.
16108         [XPG3] (asinh): Likewise.
16109         [XPG3] (atanh): Likewise.
16110         [XPG3] (cbrt): Likewise.
16111         [XPG3] (expm1): Likewise.
16112         [XPG3] (ilogb): Likewise.
16113         [XPG3] (log1p): Likewise.
16114         [XPG3] (logb): Likewise.
16115         [XPG3] (nextafter): Likewise.
16116         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
16117         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
16118         [XPG3] (remainder): Likewise.
16119         [XPG3] (rint): Likewise.
16120         [XPG3 || XPG4 || UNIX98] (round): Likewise.
16121         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
16122         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
16123         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
16124         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
16125         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
16126         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
16127         [UNIX98 || XOPEN2K] (scalb): Expect.
16128         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
16129         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
16130         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
16131         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
16132         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
16133         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
16134         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
16135         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
16136         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
16137         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
16138         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
16139         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
16140         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
16141         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
16142         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
16143         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
16144         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
16145         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
16146         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
16147         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
16148         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
16149         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
16150         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
16151         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
16152         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
16153         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
16154         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
16155         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
16156         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
16157         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
16158         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
16159         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
16160         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
16161         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
16162         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
16163         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
16164         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
16165         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
16166         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
16167         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
16168         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
16169         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
16170         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
16171         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
16172         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
16173         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
16174         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
16175         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
16176         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
16177         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
16178         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
16179         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
16180         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
16181         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
16182         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
16183         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
16184         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
16185         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
16186         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
16187         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
16188         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
16189         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
16190         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
16191         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
16192         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
16193         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
16194         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
16195         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
16196         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
16197         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
16198         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
16199         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
16200         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
16201         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
16202         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
16203         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
16204         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
16205         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
16206         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
16207         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
16208         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
16209         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
16210         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
16211         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
16212         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
16213         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
16214         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
16215         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
16216         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
16217         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
16218         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
16219         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
16220         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
16221         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
16222         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
16223         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
16224         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
16225         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
16226         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
16227         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
16228         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
16229         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
16230         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
16231         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
16232         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
16233         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
16234         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
16235         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
16236         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
16237         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
16238         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
16239         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
16240         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
16241         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
16242         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
16243         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
16244         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
16245         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
16246         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
16247         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
16248         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
16249         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
16250         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
16251         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
16252         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
16253         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
16254         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
16255         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
16256         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
16257         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
16258         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
16259         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
16260         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
16261         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
16262         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
16263         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
16264         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
16265
16266         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
16267         _XOPEN_SOURCE_EXTENDED for XPG4.
16268
16269         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
16270
16271         * Makeconfig (localtime): Remove variable.
16272         (inst_localtime-file): Likewise.
16273
16274 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
16275
16276         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
16277         Update.
16278         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
16279         Update.
16280         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
16281         Update.
16282         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
16283         Update.
16284         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
16285         Update.
16286         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
16287         Update.
16288         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
16289         Update.
16290         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
16291         Update.
16292         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
16293         Update.
16294
16295 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
16296
16297         [BZ #2550]
16298         [BZ #2570]
16299         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
16300         comparisons to determine direction to adjust input.
16301         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
16302         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
16303         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
16304         Likewise.
16305         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
16306         Likewise.
16307         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
16308         Likewise.
16309         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
16310         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
16311         Likewise.
16312         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
16313         Likewise.
16314         * math/libm-test.inc (nexttoward_test): Add more tests.
16315
16316 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
16317
16318         [BZ #14040]
16319         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
16320         in version GLIBC_2.1, not GLIBC_2.0.
16321         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
16322         Likewise.
16323
16324 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
16325
16326         [BZ #13942]
16327         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
16328         (1 - x) * (1 + x).
16329         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
16330         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
16331         * math/libm-test.inc (acos_test): Add more tests.
16332         (asin_test): Likewise.
16333         * sysdeps/i386/fpu/libm-test-ulps: Update.
16334         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16335
16336         [BZ #14034]
16337         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
16338         of square root.
16339         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
16340         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
16341         * math/libm-test.inc (acos_test_tonearest): New function.
16342         (acos_test_towardzero): Likewise.
16343         (acos_test_downward): Likewise.
16344         (acos_test_upward): Likewise.
16345         (asin_test_tonearest): Likewise.
16346         (asin_test_towardzero): Likewise.
16347         (asin_test_downward): Likewise.
16348         (asin_test_upward): Likewise.
16349         (main): Call the new functions.
16350         * sysdeps/i386/fpu/libm-test-ulps: Update.
16351         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16352
16353         [BZ #13884]
16354         [BZ #13924]
16355         * math/e_exp10.c: Include <float.h>.
16356         (__ieee754_exp10): Handle underflow here rather than multiplying
16357         large negative argument by M_LN10.
16358         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
16359         of __ieee754_expf.
16360         * math/e_exp10l.c: Include <float.h>.
16361         (__ieee754_exp10l): Handle underflow here rather than multiplying
16362         large negative argument by M_LN10l.
16363         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
16364         spurious overflow exception on underflow.
16365
16366 2012-04-29  Marek Polacek  <polacek@redhat.com>
16367
16368         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
16369         (__fortify_function): New macro.
16370         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
16371         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
16372         __extern_always_inline.
16373         * libio/bits/stdio2.h: Likewise.
16374         * libio/bits/stdio.h: Likewise.
16375         * string/string.h: Likewise.
16376         * string/bits/string3.h: Likewise.
16377         * include/stdio.h: Likewise.
16378         * stdlib/bits/stdlib.h: Likewise.
16379         * stdlib/stdlib.h: Likewise.
16380         * rt/bits/mqueue2.h: Likewise.
16381         * rt/mqueue.h: Likewise.
16382         * posix/bits/unistd.h: Likewise.
16383         * posix/unistd.h: Likewise.
16384         * io/bits/poll2.h: Likewise.
16385         * io/bits/fcntl2.h: Likewise.
16386         * io/fcntl.h: Likewise.
16387         * io/sys/poll.h: Likewise.
16388         * misc/bits/syslog.h: Likewise.
16389         * misc/bits/syslog-ldbl.h: Likewise.
16390         * misc/sys/syslog.h: Likewise.
16391         * socket/bits/socket2.h: Likewise.
16392         * socket/sys/socket.h: Likewise.
16393         * debug/tst-chk1.c: Likewise.
16394         * wcsmbs/bits/wchar2.h: Likewise.
16395         * wcsmbs/bits/wchar-ldbl.h: Likewise.
16396         * wcsmbs/wchar.h: Likewise.
16397
16398 2012-04-29  Andreas Jaeger  <aj@suse.de>
16399
16400         * Makerules (tests): Remove enable-check-abi protection.
16401         (check-abi-warn): Remove.
16402         (check-abi-%): Remove check-abi-warn usage.
16403
16404         * configure.in: Remove check-abi configure option.
16405         * configure: Regenerated.
16406         * config.make.in (enable-check-abi): Remove.
16407
16408 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
16409
16410         [BZ #14033]
16411         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
16412         double functions to double *_finite functions.
16413
16414         [BZ #13941]
16415         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
16416         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
16417         LDBL_MIN_EXP.
16418         * stdio-common/Makefile (tests): Add tst-sprintf3.
16419         * stdio-common/tst-sprintf3.c: New file.
16420
16421         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
16422         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
16423
16424 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
16425
16426         * conform/conformtest.pl: Remove duplicate typed-constant
16427         handling.
16428
16429 2012-04-28  David S. Miller  <davem@davemloft.net>
16430
16431         * Makerules (%.abilist): Add vpath on sysdep_dirs.
16432         (check-abi-%): Remove AWK script prerequisite and explicit
16433         abilist directory.
16434         (check-abi): Rewrite to just diff the symlist with the abilist.
16435         (config-tls, config-abi-config): Delete, no longer used.
16436         (update-abi-%): Remove AWK script and explicit abilist directory.
16437         (update-abi): Rewrite to simply compare and conditionally copy the
16438         symlist and the sysdep abilist file.  Remove update-abi-config
16439         checks.
16440         * abilist/ld.abilist: Remove.
16441         * abilist/libBrokenLocale.abilist: Remove.
16442         * abilist/libanl.abilist: Remove.
16443         * abilist/libcrypt.abilist: Remove.
16444         * abilist/libdl.abilist: Remove.
16445         * abilist/librt.abilist: Remove.
16446         * abilist/libthread_db.abilist: Remove.
16447         * abilist/libutil.abilist: Remove.
16448         * scripts/extract-abilist.awk: Remove.
16449         * scripts/merge-abilist.awk: Remove.
16450         * sysdeps/generic/libcidn.abilist: New file.
16451         * sysdeps/generic/libnss_compat.abilist: New file.
16452         * sysdeps/generic/libnss_db.abilist: New file.
16453         * sysdeps/generic/libnss_dns.abilist: New file.
16454         * sysdeps/generic/libnss_files.abilist: New file.
16455         * sysdeps/generic/libnss_hesiod.abilist: New file.
16456         * sysdeps/generic/libnss_nis.abilist: New file.
16457         * sysdeps/generic/libnss_nisplus.abilist: New file.
16458         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
16459         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
16460         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
16461         file.
16462         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
16463         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
16464         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
16465         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
16466         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
16467         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
16468         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
16469         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
16470         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
16471         file.
16472         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
16473         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
16474         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
16475         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
16476         file.
16477         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
16478         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
16479         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
16480         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
16481         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
16482         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
16483         file.
16484         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
16485         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
16486         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
16487         file.
16488         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
16489         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
16490         New file.
16491         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
16492         New file.
16493         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
16494         New file.
16495         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
16496         New file.
16497         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
16498         New file.
16499         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
16500         New file.
16501         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
16502         New file.
16503         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
16504         New file.
16505         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
16506         New file.
16507         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
16508         New file.
16509         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
16510         New file.
16511         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
16512         New file.
16513         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
16514         New file.
16515         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
16516         file.
16517         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
16518         New file.
16519         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
16520         New file.
16521         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
16522         file.
16523         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
16524         New file.
16525         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
16526         New file.
16527         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
16528         file.
16529         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
16530         New file.
16531         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
16532         New file.
16533         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
16534         New file.
16535         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
16536         New file.
16537         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
16538         New file.
16539         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
16540         New file.
16541         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
16542         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
16543         file.
16544         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
16545         New file.
16546         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
16547         file.
16548         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
16549         file.
16550         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
16551         file.
16552         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
16553         file.
16554         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
16555         file.
16556         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
16557         New file.
16558         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
16559         file.
16560         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
16561         file.
16562         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
16563         New file.
16564         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
16565         file.
16566         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
16567         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
16568         file.
16569         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
16570         New file.
16571         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
16572         file.
16573         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
16574         file.
16575         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
16576         file.
16577         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
16578         file.
16579         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
16580         file.
16581         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
16582         New file.
16583         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
16584         file.
16585         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
16586         file.
16587         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
16588         New file.
16589         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
16590         file.
16591         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
16592         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
16593         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
16594         file.
16595         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
16596         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
16597         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
16598         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
16599         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
16600         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
16601         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
16602         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
16603         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
16604         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
16605         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
16606         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
16607         file.
16608         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
16609         New file.
16610         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
16611         file.
16612         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
16613         file.
16614         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
16615         file.
16616         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
16617         file.
16618         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
16619         file.
16620         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
16621         New file.
16622         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
16623         New file.
16624         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
16625         file.
16626         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
16627         New file.
16628         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
16629         file.
16630         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
16631         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
16632         file.
16633         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
16634         New file.
16635         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
16636         file.
16637         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
16638         file.
16639         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
16640         file.
16641         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
16642         file.
16643         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
16644         file.
16645         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
16646         New file.
16647         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
16648         New file.
16649         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
16650         file.
16651         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
16652         New file.
16653         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
16654         file.
16655
16656 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
16657
16658         * conform/conformtest.pl: Fix typo in handling typed-constant from
16659         allow-header.
16660
16661 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
16662
16663         * README: Cut down references to pre-2.6 Linux kernels and
16664         Linuxthreads.  Update lists of configurations in libc and ports
16665         and sort alphabetically.  Say "or newer" with Linux kernel version
16666         requirements.
16667
16668         * config.h.in [IS_IN_build]: Allow compiling without optimization.
16669
16670 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
16671
16672         [BZ #887]
16673         * math/libm-test.inc (logb_test_downward): New test to expose
16674         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
16675         rounding mode.
16676
16677 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
16678
16679         [BZ #14027]
16680         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
16681         to be done.
16682         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
16683         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
16684
16685 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
16686
16687         * sysdeps/unix/i386/brk.S: Remove file.
16688         * sysdeps/unix/i386/dl-brk.S: Likewise.
16689         * sysdeps/unix/i386/pipe.S: Likewise.
16690         * sysdeps/unix/i386/sigreturn.S: Likewise.
16691         * sysdeps/unix/i386/syscall.S: Likewise.
16692         * sysdeps/unix/i386/vfork.S: Likewise.
16693         * sysdeps/unix/i386/wait.S: Likewise.
16694
16695         * sysdeps/unix/common/tcsendbrk.c: Move to ...
16696         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
16697
16698         * configure.in (arm*-none*): Do not allow without
16699         --enable-hacker-mode.
16700         (netbsd*): Remove case setting base_os.
16701         (386bsd*): Likewise.
16702         (freebsd*): Likewise.
16703         (bsdi*): Likewise.
16704         (osf*): Likewise.
16705         (sunos*): Likewise.
16706         (ultrix*): Likewise.
16707         (newsos*): Likewise.
16708         (dynix*): Likewise.
16709         (*bsd*): Likewise.
16710         (sysv*): Likewise.
16711         (isc*): Likewise.
16712         (esix*): Likewise.
16713         (sco*): Likewise.
16714         (minix*): Likewise.
16715         (irix4*): Likewise.
16716         (irix6*): Likewise.
16717         (solaris[2-9]*): Likewise.
16718         (none): Likewise.
16719         * configure: Regenerated.
16720
16721 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16722
16723         [BZ #11521]
16724         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
16725         overflow or cancellation in calculating denominator.
16726         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
16727         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
16728         down expression to avoid unexpected rounding in newer GCCs.
16729         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
16730
16731 2012-04-26  David S. Miller  <davem@davemloft.net>
16732
16733         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
16734         long-double compat symbols.
16735         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
16736         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
16737         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
16738         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
16739         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
16740         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
16741         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
16742         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
16743         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
16744         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
16745         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
16746         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
16747         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
16748
16749 2012-04-25  David S. Miller  <davem@davemloft.net>
16750
16751         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
16752         HWCAP_* values only after the memory barriers have been defined.
16753         (atomic_full_barrier): Define.
16754         (atomic_read_barrier): Define.
16755         (atomic_write_barrier): Define.
16756
16757 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
16758
16759         * shlib-versions: Add libgcc_s version information.
16760         * sysdeps/generic/libgcc_s.h: Remove.
16761         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
16762         libgcc_s.h.
16763         * sysdeps/gnu/unwind-resume.c: Likewise.
16764         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
16765
16766 2012-04-25  David S. Miller  <davem@davemloft.net>
16767
16768         * sysdeps/unix/sparc/brk.S: Delete.
16769         * sysdeps/unix/sparc/dl-brk.S: Delete.
16770         * sysdeps/unix/sparc/pipe.S: Delete.
16771         * sysdeps/unix/sparc/sysdep.S: Delete.
16772         * sysdeps/unix/sparc/sysdep.h: Delete.
16773         * sysdeps/unix/sparc/vfork.S: Delete.
16774         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
16775         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
16776         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
16777         ret_ERRVAL, r0, r1, MOVE): Define.
16778         (JUMPTARGET): Remove.
16779         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
16780         sysdeps/unix/sparc/sysdep.h
16781         (ENTRY, END): Remove.
16782         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
16783
16784 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
16785
16786         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
16787         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
16788         -DIS_IN_build.
16789
16790         * timezone/README: Update upstream location and email address for
16791         tzcode and tzdata.
16792         * timezone/zdump.c: Update from tzcode 2012b.
16793         * timezone/zic.c: Likewise.
16794
16795         * configure.in (libc_cv_as_needed): Remove test.
16796         * configure: Regenerated.
16797         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
16798         conditional definition.
16799         [$(have-as-needed) != yes] (no-as-needed): Likewise.
16800         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
16801         * config.make.in (have-as-needed): Remove variable.
16802
16803 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
16804             Paul Pluzhnikov  <ppluzhnikov@google.com>
16805
16806         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
16807         strings correctly.
16808
16809 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
16810
16811         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
16812         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
16813         * sysdeps/sh/strlen.S: Likewise.
16814
16815 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
16816
16817         * sysdeps/unix/fork.S: Remove file.
16818         * sysdeps/unix/i386/fork.S: Likewise.
16819         * sysdeps/unix/sparc/fork.S: Likewise.
16820
16821         * sysdeps/unix/system.c: Remove file.
16822         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
16823
16824         * sysdeps/unix/getegid.S: Remove file.
16825         * sysdeps/unix/geteuid.S: Likewise.
16826
16827 2012-04-24  Roland McGrath  <roland@hack.frob.com>
16828
16829         * scripts/check-localplt.awk: New file.
16830         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
16831         of diff.
16832         * scripts/data/localplt-generic.data: Add a comment.
16833
16834         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
16835         NODE when __dir_mkfile failed.
16836         * sysdeps/mach/hurd/symlinkat.c: Likewise.
16837         Reported by Ludovic Courtès <ludo@gnu.org>.
16838
16839 2012-04-24  Andreas Jaeger  <aj@suse.de>
16840
16841         * Makerules (common-clean): Also remove gen-as-const-headers
16842         files.
16843
16844 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
16845
16846         * Makerules (native-compile): Do not change working directory for
16847         build.  Use $(OUTPUT_OPTION) in command.
16848         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
16849
16850 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16851
16852         [BZ #13886]
16853         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
16854         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
16855         * math/libm-test.inc (floor_test): Add more tests.
16856         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
16857
16858 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
16859
16860         * sysdeps/unix/getdents.c: Remove file.
16861         * sysdeps/unix/sysv/getdents.c: Likewise.
16862         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
16863
16864         * sysdeps/unix/syscalls.list (madvise): Add syscall from
16865         sysdeps/unix/mman/syscalls.list.
16866         (mmap): Likewise.
16867         (mprotect): Likewise.
16868         (msync): Likewise.
16869         (munmap): Likewise.
16870         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
16871         * sysdeps/unix/mman/syscalls.list: Remove.
16872         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
16873
16874         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
16875         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
16876         * configure: Regenerated.
16877         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
16878         $(libgcc_s_suffix).
16879         * config.make.in (libgcc_s_suffix): Remove variable.
16880
16881 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
16882
16883         * sysdeps/unix/sysv/gethostname.c: Move to ...
16884         * sysdeps/posix/gethostname.c: ... here.
16885
16886         * sysdeps/unix/execve.S: Remove file.
16887
16888         * sysdeps/unix/_exit.S: Remove file.
16889
16890 2012-04-23  Andreas Jaeger  <aj@suse.de>
16891
16892         [BZ #13739]
16893         * manual/Makefile: Remove make dist support, there's no
16894         need for a stand-alone documentation tar ball.
16895         (TEXI2DVI): Define always, it's not in Makeconfig.
16896         (dist): Removed.
16897         (tar-it): Removed.
16898         (edition): Removed.
16899         (glibc-doc-$(edition).tar): Removed
16900         (%.Z): Removed.
16901         (%.gz): Removed.
16902         (%.uu): Removed.
16903         (ETAGS): Remove, it's in Makeconfig.
16904         (move-if-change): Remove, it's in Makeconfig.
16905
16906 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
16907
16908         [BZ #13970]
16909         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
16910         (strtod, strtof, strtold, strtol, strtoul, strtoq)
16911         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
16912         (strtod_l, strtof_l, strtold_l): Remove __wur.
16913         It is not necessarily an error to ignore strtol's return value.
16914         One can reliably look at the stored endptr to decide whether
16915         the number had valid syntax.
16916
16917 2012-04-21  Andreas Jaeger  <aj@suse.de>
16918
16919         [BZ #13739]
16920         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
16921
16922 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
16923
16924         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
16925         * sysdeps/unix/sysv/Versions: Remove file.
16926
16927 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
16928
16929         [BZ #13927]
16930         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16931
16932 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
16933
16934         [BZ #7064]
16935         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
16936         version from __vm86.
16937
16938 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
16939
16940         * sysdeps/unix/common/lxstat.c: Remove file.
16941         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
16942
16943         * sysdeps/unix/sysv/Makefile: Remove file.
16944
16945         * sysdeps/unix/sysv/direct.h: Remove file.
16946
16947         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
16948         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
16949         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
16950         * sysdeps/unix/sysv/bits/signum.h: Likewise.
16951         * sysdeps/unix/sysv/bits/stat.h: Likewise.
16952         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
16953         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
16954
16955         * sysdeps/unix/sysv/setrlimit.c: Remove file.
16956
16957         * sysdeps/unix/xmknod.c: Remove file.
16958         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
16959
16960         * sysdeps/unix/sysv/settimeofday.c: Remove file.
16961
16962         * sysdeps/unix/sysv/i386/time.S: Remove file.
16963
16964         * sysdeps/unix/fxstat.c: Remove file.
16965         * sysdeps/unix/xstat.c: Likewise.
16966         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
16967
16968         * sysdeps/unix/sysv/sigaction.c: Remove file.
16969
16970         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
16971         (sysdep_headers): Remove variable.
16972         [termio.h not in sysdep_headers] (generated): Likewise.
16973         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
16974         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
16975         * sysdeps/unix/sysv/tcdrain.c: Likewise.
16976         * sysdeps/unix/sysv/tcflow.c: Likewise.
16977         * sysdeps/unix/sysv/tcflush.c: Likewise.
16978         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
16979         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
16980         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
16981         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
16982         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
16983
16984         * sysdeps/unix/siglist.c: Remove file.
16985
16986         * sysdeps/unix/getppid.S: Remove file.
16987
16988         * sysdeps/unix/mkdir.c: Remove file.
16989         * sysdeps/unix/rmdir.c: Likewise.
16990
16991 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
16992
16993         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
16994         ERR_MAX value.
16995         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
16996         errlist-compat value.
16997
16998 2012-04-18  David S. Miller  <davem@davemloft.net>
16999
17000         * sysdeps/generic/memcopy.h (reg_char): Delete.
17001         * debug/strcat_chk.c: Use char, not reg_char.
17002         * debug/strcpy_chk.c: Likewise.
17003         * debug/strncat_chk.c: Likewise.
17004         * debug/strncpy_chk.c: Likewise.
17005         * string/memchr.c: Likewise.
17006         * string/memrchr.c: Likewise.
17007         * string/rawmemchr.c: Likewise.
17008         * string/strcat.c: Likewise.
17009         * string/strchr.c: Likewise.
17010         * string/strchrnul.c: Likewise.
17011         * string/strcmp.c: Likewise.
17012         * string/strcpy.c: Likewise.
17013         * string/strncat.c: Likewise.
17014         * string/strncmp.c: Likewise.
17015         * string/strncpy.c: Likewise.
17016
17017 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
17018
17019         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
17020         __builtin_memcopy is called when src and dest ranges are known to not
17021         overlap.
17022
17023 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
17024
17025         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
17026         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
17027         fwd_align_merge macro call.
17028         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
17029         bwd_align_merge macro call.
17030         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
17031
17032 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
17033
17034         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
17035         bwd_align_merge macros.
17036         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
17037         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
17038         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
17039
17040 2012-04-18  David S. Miller  <davem@davemloft.net>
17041
17042         * sysdeps/sparc/sparc64/memcopy.h: Delete.
17043
17044 2012-04-18  Andreas Jaeger  <aj@suse.de>
17045
17046         [BZ# 6794]
17047         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
17048         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
17049         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
17050
17051         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
17052         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
17053         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
17054
17055         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
17056         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
17057         Adjust for changed ldbl-128 files.
17058
17059         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
17060         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
17061         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
17062
17063 2012-04-17  David S. Miller  <davem@davemloft.net>
17064
17065         * sysdeps/sparc/sparc32/memcopy.h: Delete.
17066
17067 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
17068
17069         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
17070         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
17071         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
17072         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
17073         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
17074         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
17075
17076 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17077
17078         [BZ #6794]
17079         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
17080         * math/libm-test.inc: Add ilogb errno and exception tests.
17081         * math/w_ilogb.c: New file: ilogb wrapper.
17082         * math/w_ilogbf.c: New file: ilogbf wrapper.
17083         * math/w_ilogbl.c: New file: ilogbl wrapper.
17084         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
17085         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
17086         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
17087         exception being thrown with 0.0 as argument.
17088         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
17089         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
17090         exception being thrown with 0.0 as argument.
17091         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
17092         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
17093         exception being thrown with 0.0 as argument.
17094         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
17095         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
17096         exception being thrown with 0.0 as argument.
17097         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
17098         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
17099         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
17100         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
17101         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
17102         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
17103         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
17104         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
17105         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
17106
17107 2012-04-17  Petr Baudis  <pasky@ucw.cz>
17108
17109         * include/sys/uio.h: Change __vector to __iovec to avoid clash
17110         with altivec.
17111
17112 2012-04-16  Marek Polacek  <polacek@redhat.com>
17113
17114         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
17115
17116 2012-04-16  Marek Polacek  <polacek@redhat.com>
17117
17118         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
17119         operands of fdivp instruction.
17120
17121 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
17122
17123         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
17124         * elf/tst-auditmod3b.c: Likewise.
17125         * elf/tst-auditmod4b.c: Likewise.
17126         * elf/tst-auditmod5b.c: Likewise.
17127         * elf/tst-auditmod6b.c: Likewise.
17128         * elf/tst-auditmod6c.c: Likewise.
17129         * elf/tst-auditmod7b.c: Likewise.
17130         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
17131         * sysdeps/x86_64/preconfigure.in: Likewise.
17132         * sysdeps/x86_64/preconfigure: Regenerated.
17133
17134 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
17135
17136         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
17137         __ILP32__.
17138
17139 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
17140
17141         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
17142         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
17143
17144 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
17145
17146         [BZ #13973]
17147         * locale/iso-639.def: Fix gl language name. Spotted by
17148         Yaron Shahrabani.
17149
17150 2012-04-12  Roland McGrath  <roland@hack.frob.com>
17151
17152         [BZ #2074]
17153         * libio/libio.h (__io_write_fn): Update comment.
17154
17155 2012-04-12  Petr Baudis  <pasky@ucw.cz>
17156
17157         [BZ #2074]
17158         * stdio.texi (Hook Functions): The user provided writer function
17159         is not allowed to return -1.
17160
17161 2012-04-11  David S. Miller  <davem@davemloft.net>
17162
17163         * sysdeps/sparc/fpu/libm-test-ulps: Update.
17164
17165 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
17166
17167         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
17168         Add a leading slash to rtkaio.
17169
17170 2012-04-11  Jim Meyering  <meyering@redhat.com>
17171
17172         [BZ #11959]
17173         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
17174         It is not necessarily an error to ignore fwrite's return
17175         value.  One can reliably use ferror to test for errors after
17176         the fact.
17177
17178 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
17179
17180         * bits/types.h (__snseconds_t): New type.
17181         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
17182
17183         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
17184         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
17185         (__SNSECONDS_T_TYPE): Likewise.
17186         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
17187         (__SNSECONDS_T_TYPE): Likewise.
17188         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
17189         (__SNSECONDS_T_TYPE): Likewise.
17190
17191 2012-04-10  Andreas Jaeger  <aj@suse.de>
17192
17193         [BZ #2636]
17194         * manual/time.texi (Processor Time): Return type of times is
17195         elapsed real time since an arbitrary point in the past.
17196         (CPU Time): Move CLK_TCK from here...
17197         (Processor Time): ...to here.  Correct description.
17198         * manual/conf.texi (Constants for Sysconf): Correct description of
17199         _SC_CLK_TCK.
17200
17201 2012-04-10  David S. Miller  <davem@davemloft.net>
17202
17203         [BZ #13967]
17204         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
17205         where the is a gap between DT_REL(A) and DT_JMPREL.
17206
17207 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
17208
17209         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
17210         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
17211         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
17212
17213 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
17214
17215         * elf/dl-support.c (_dl_inhibit_cache): New variable.
17216         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
17217         (dl_main): Handle --inhibit-cache.
17218         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
17219         _dl_inhibit_cache.
17220         * elf/dl-load.c (_dl_map_object): Use it.
17221         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
17222
17223 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
17224
17225         [BZ #13872]
17226         * sysdeps/i386/fpu/e_powl.S (p78): New object.
17227         (__ieee754_powl): Saturate large exponents rather than testing for
17228         overflow of y*log2(x).
17229         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
17230         * math/libm-test.inc (pow_test): Do not permit spurious overflow
17231         exceptions.
17232
17233         [BZ #11521]
17234         * math/s_ctan.c: Include <float.h>.
17235         (__ctan): Avoid internal overflow or cancellation in calculating
17236         denominator.
17237         * math/s_ctanf.c: Likewise.
17238         * math/s_ctanl.c: Likewise.
17239         * math/s_ctanh.c: Likewise.
17240         * math/s_ctanhf.c: Likewise.
17241         * math/s_ctanhl.c: Likewise.
17242         * math/libm-test.inc (ctan_test): Add more tests.
17243         (ctanh_test): Likewise.
17244         * sysdeps/i386/fpu/libm-test-ulps: Update.
17245         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17246
17247 2012-04-09  Andreas Jaeger  <aj@suse.de>
17248
17249         [BZ #6894]
17250         * manual/filesys.texi (Directory Entries): Mention that d_namlen
17251         is an optional BSD extension.
17252
17253         [BZ #10254]
17254         * manual/stdio.texi (Opening Streams): Document additional fopen
17255         parameters.
17256
17257 2012-04-09  Roland McGrath  <roland@hack.frob.com>
17258
17259         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
17260         %eax without telling the compiler.
17261
17262 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
17263
17264         [BZ # 13963]
17265         * manual/install.texi: Use sourceware.org.
17266
17267 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
17268
17269         [BZ #13873]
17270         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
17271         (__ieee754_pow): Generate overflow and underflow using huge*huge
17272         and tiny*tiny rather than just returning constant infinity or zero
17273         for large exponents.
17274         * math/libm-test.inc (pow_test): Require overflow exceptions for
17275         applicable cases of large exponents.
17276
17277         [BZ #706]
17278         * sysdeps/i386/fpu/e_pow.S (p10): New object.
17279         (__ieee754_pow): Use iterative multiplication algorithm only for
17280         integer exponents with absolute value below 1024.  Check for odd
17281         integer exponents when using algorithm for real exponents.
17282         * math/libm-test.inc (pow_test): Add more tests.
17283         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17284
17285 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
17286
17287         [BZ #13705]
17288         * math/libm-test.inc (exp_test): Do not allow overflow exception
17289         on underflow test.
17290
17291 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
17292
17293         [BZ #13705]
17294         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
17295         instead of __kernel_standard_f.
17296
17297 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
17298
17299         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
17300         * sysdeps/x86_64/memset_chk.S: Likewise.
17301
17302 2012-04-08  Andreas Jaeger  <aj@suse.de>
17303
17304         [BZ #10153]
17305         * manual/startup.texi (Environment Access): Describe return value
17306         for putenv and setenv.
17307
17308         [BZ #6895]
17309         * manual/filesys.texi (Directory Entries): Add description for
17310         DT_LNK.
17311
17312         [BZ #6890]
17313         * manual/filesys.texi (Directory Entries): Clarify that it's file
17314         system not operating system in the description of DT_UNKNOWN.
17315
17316         [BZ #6578]
17317         * manual/syslog.texi (closelog): Fix reference, it's openlog.
17318
17319 2012-04-08  Stephen Compall  <s11@member.fsf.org>
17320
17321         [BZ #6649]
17322         * manual/llio.texi (Opening and Closing Files): Add cross
17323         reference to explain mode argument.
17324
17325 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
17326
17327         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
17328         * sysdeps/x86_64/memset_chk.S: Likewise.
17329
17330 2012-04-07  David S. Miller  <davem@davemloft.net>
17331
17332         * elf/elf.h (R_SPARC_WDISP10): Define.
17333         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
17334         R_SPARC_SIZE32.
17335         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
17336         R_SPARC_SIZE64 and R_SPARC_H34.
17337
17338 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
17339
17340         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
17341         conditions and remove no longer applicable assertion.
17342
17343 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
17344
17345         * bits/byteswap.h: Include <features.h>.
17346         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
17347         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
17348
17349 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
17350
17351         * bits/byteswap.h (__bswap_16): Removed.
17352         Include <bits/byteswap-16.h> to get __bswap_16.
17353         * sysdeps/i386/bits/byteswap.h: Likewise.
17354         * sysdeps/s390/bits/byteswap.h: Likewise.
17355         * sysdeps/x86_64/bits/byteswap.h: Likewise.
17356         * bits/byteswap-16.h: New file.
17357         * sysdeps/i386/bits/byteswap-16.h: Likewise.
17358         * sysdeps/s390/bits/byteswap-16.h: Likewise.
17359         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
17360         * string/Makefile (headers): Add bits/byteswap-16.h.
17361
17362 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
17363
17364         [BZ #13895]
17365         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
17366         extra indirection.
17367         * nss/Makefile (tests-static, tests): Add tst-nss-static.
17368         * nss/tst-nss-static.c: New.
17369
17370 2012-04-06  Robert Millan  <rmh@gnu.org>
17371
17372         [BZ #6486]
17373         * manual/llio.texi (File Position Primitive): lseek
17374         refers to WHENCE when it really means OFFSET.
17375
17376 2012-04-06  Andreas Jaeger  <aj@suse.de>
17377
17378         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
17379         strncmp declarations.
17380
17381         * abilist/libc.abilist: Add __poll and __ppoll.
17382
17383 2012-04-05  David S. Miller  <davem@davemloft.net>
17384
17385         * scripts/check-local-headers.sh: Accept a host triplet in the
17386         path matched by the exclude regexp.
17387
17388         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
17389         definition.
17390         * sysdeps/powerpc/powerpc32/dl-machine.h
17391         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
17392         * sysdeps/s390/s390-32/dl-machine.h
17393         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
17394         * sysdeps/sparc/sparc32/dl-machine.h
17395         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
17396         * sysdeps/sparc/sparc64/dl-machine.h
17397         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
17398
17399         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
17400         lazy binding.
17401         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
17402         undefined symbol errors.
17403
17404         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
17405         DT_NEEDED entries.
17406
17407 2012-04-05  Michael Matz  <matz@suse.de>
17408
17409         [BZ #13592]
17410         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
17411
17412 2012-04-05  Andreas Jaeger  <aj@suse.de>
17413
17414         [BZ #13908]
17415         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
17416         comment.
17417
17418 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
17419
17420         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
17421         which ROUND is no valid rounding mode.
17422
17423 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
17424
17425         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
17426         read again.
17427         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
17428
17429 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
17430
17431         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
17432         an exception using FPU order intentionally.
17433
17434 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
17435
17436         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
17437         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
17438         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
17439         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
17440
17441 2012-04-05  Simon Josefsson  <simon@josefsson.org>
17442
17443         [BZ #12340]
17444         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
17445         EINVAL when BUFLEN is too smal.
17446
17447 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
17448
17449         [BZ #13553]
17450         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
17451         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
17452
17453 2012-04-03  Andreas Jaeger  <aj@suse.de>
17454
17455         [BZ #13938]
17456         * manual/setjmp.texi (System V contexts): Fix sentence.
17457
17458         [BZ #13926]
17459         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
17460         New macro for this case.
17461         [!__GNUC__] (__bswap_64): New inline function for this case.
17462         * sysdeps/x86_64/bits/byteswap.h: Likewise.
17463         * bits/byteswap.h: Likewise.
17464         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
17465         ull, guard with __GLIBC_HAVE_LONG_LONG.
17466
17467         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
17468         __GLIBC_HAVE_LONG_LONG.
17469
17470         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
17471         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
17472
17473 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17474
17475         [BZ #13691]
17476         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
17477         inptr and inend, rather than using last_ch.
17478
17479 2012-04-02  David S. Miller  <davem@davemloft.net>
17480
17481         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
17482         * stdio-common/printf-parse.h (read_int): Change return type to
17483         'int', return -1 on INT_MAX overflow.
17484         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
17485         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
17486         overflows INT_MAX.  Check for overflow of in-format-string precision
17487         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
17488         SIZE_MAX not INT_MAX for integer overflow test.
17489         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
17490         skip the construct in the format string but do not record anything.
17491         * stdio-common/bug22.c: Adjust to test both width/prevision
17492         INT_MAX overflow as well as total length INT_MAX overflow.  Check
17493         explicitly for proper errno values.
17494
17495 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
17496
17497         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
17498         CHAR_MAX.
17499         * string/test-strcmp.c [! WIDE]: Likewise.
17500         * time/tst-mktime2.c: Likewise for INT_MAX.
17501         * string/test-string.h: #include <sys/param.h> for MIN.
17502
17503         * csu/init-first.c (__libc_init_first): Call __ctype_init.
17504         * sysdeps/i386/init-first.c (init): Likewise.
17505         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
17506         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
17507         * sysdeps/sh/init-first.c (init): Likewise.
17508
17509 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
17510
17511         * po/ru.po: Update from translation team.
17512         * po/vi.po: Likewise.
17513
17514 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
17515
17516         * resolv/nss_dns/dns-host.c: Merge copyright years.
17517
17518 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17519
17520         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
17521         Optimize memcpy with prefetch if
17522         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
17523         src, dst pointers have unequal 16 byte alignments.
17524
17525 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
17526
17527         [BZ #13928]
17528         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
17529         from a CNAME entry and return the minimum ttl for the query.
17530         (gaih_getanswer_slice): Likewise.
17531
17532 2012-03-30  Jeff Law  <law@redhat.com>
17533
17534         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
17535         due to long keys.
17536         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
17537         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
17538
17539         * resolv/nss_dns/dns-host.c: Update copyright year.
17540
17541 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
17542
17543         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
17544         requests to save a system call.  Fix check that all bytes are sent.
17545
17546         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
17547         comments for sendmmsg.
17548
17549 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
17550
17551         [BZ #13691]
17552         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
17553         with only 1 character between 0x0041 and 0x01b0.
17554         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
17555         * wcsmbs/tst-mbsnrtowcs.c: New file.
17556
17557 2012-03-29  David S. Miller  <davem@davemloft.net>
17558
17559         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
17560         small copies by hand.
17561
17562 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
17563
17564         [BZ #13761]
17565         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
17566         _nss_compat_initgroups_dyn): Fall back to malloc/free
17567         for large group memberships.
17568
17569 2012-03-28  David S. Miller  <davem@davemloft.net>
17570
17571         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
17572         that branches into memcpy.
17573         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
17574         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
17575         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
17576         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
17577         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
17578         bits.
17579         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
17580         implementation too.
17581         * sysdeps/sparc/mempcpy.S: New file.
17582
17583         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
17584         the IFUNC routine in the libc case.
17585         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
17586
17587         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
17588         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
17589         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
17590         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
17591         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
17592         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
17593         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
17594         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
17595
17596         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
17597         loop to 256 bytes instead of 64 bytes and fix test signedness.
17598
17599         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
17600         * sysdeps/sparc/sparc32/Makefile: rather than here...
17601         * sysdeps/sparc/sparc64/Makefile: and here.
17602
17603 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
17604
17605         * malloc/mallocbug.c: Avoid warnings about unused variables.
17606
17607 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
17608
17609         [BZ #13760]
17610         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
17611         in the right place. Discard and retry query if response is
17612         larger than input buffer size.
17613
17614 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
17615
17616         [BZ #369]
17617         [BZ #2678]
17618         [BZ #3866]
17619         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
17620         x for large integer exponent.
17621         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
17622         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
17623         sign of result as needed afterwards.
17624         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
17625         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
17626         result for underflowing pow the same as for overflow.
17627         (__kernel_standard_l): Handle powl overflow and underflow here
17628         rather than calling __kernel_standard.
17629         * math/libm-test.inc (pow_test): Add more tests.
17630
17631         [BZ #3868]
17632         [BZ #13879]
17633         [BZ #13910]
17634         [BZ #13911]
17635         [BZ #13912]
17636         [BZ #13913]
17637         [BZ #13915]
17638         [BZ #13916]
17639         [BZ #13917]
17640         [BZ #13918]
17641         [BZ #13919]
17642         [BZ #13920]
17643         [BZ #13921]
17644         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
17645         * sysdeps/ieee754/k_standard.c: Include <float.h>.
17646         (__kernel_standard_l): New function.
17647         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
17648         __kernel_standard.
17649         * math/w_acosl.c (__acosl): Likewise.
17650         * math/w_asinl.c (__asinl): Likewise.
17651         * math/w_atan2l.c (__atan2l): Likewise.
17652         * math/w_atanhl.c (__atanhl): Likewise.
17653         * math/w_coshl.c (__coshl): Likewise.
17654         * math/w_exp10l.c (__exp10l): Likewise.
17655         * math/w_exp2l.c (__exp2l): Likewise.
17656         * math/w_fmodl.c (__fmodl): Likewise.
17657         * math/w_hypotl.c (__hypotl): Likewise.
17658         * math/w_j0l.c (__j0l, __y0l): Likewise.
17659         * math/w_j1l.c (__j1l, __y1l): Likewise.
17660         * math/w_jnl.c (__jnl, __ynl): Likewise.
17661         * math/w_lgammal.c (__lgammal): Likewise.
17662         * math/w_log10l.c (__log10l): Likewise.
17663         * math/w_log2l.c (__log2l): Likewise.
17664         * math/w_logl.c (__logl): Likewise.
17665         * math/w_powl.c (__powl): Likewise.
17666         * math/w_remainderl.c (__remainderl): Likewise.
17667         * math/w_scalbl.c (sysv_scalbl): Likewise.
17668         * math/w_sinhl.c (__sinhl): Likewise.
17669         * math/w_sqrtl.c (__sqrtl): Likewise.
17670         * math/w_tgammal.c (__tgammal): Likewise.
17671         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
17672         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
17673         * math/libm-test.inc (acos_test): Add more tests.
17674         (acosh_test): Likewise.
17675         (asin_test): Likewise.
17676         (atanh_test): Likewise.
17677         (exp_test): Likewise.
17678         (exp10_test): Likewise.
17679         (exp2_test): Likewise.
17680         (expm1_test): Likewise.
17681         (lgamma_test): Likewise.
17682         (log_test): Likewise.
17683         (log10_test): Likewise.
17684         (log1p_test): Likewise.
17685         (log2_test): Likewise.
17686         (pow_test): Do not allow some spurious overflow exceptions.
17687         (sqrt_test): Add more tests.
17688         (tgamma_test): Likewise.
17689         (y0_test): Likewise.
17690         (y1_test): Likewise.
17691         (yn_test): Likewise.
17692
17693 2012-03-27  Anton Blanchard  <anton@samba.org>
17694
17695         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
17696         MAP_HUGETLB.
17697         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
17698         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
17699         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
17700
17701 2012-03-27  David S. Miller  <davem@davemloft.net>
17702
17703         * conform/Makefile: Run run-conformtest.sh using $(BASH).
17704
17705         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
17706         have-as-vis3 check.
17707
17708 2012-03-27  Andreas Jaeger  <aj@suse.de>
17709
17710         * sysdeps/x86_64/elf/configure.in: Moved to ...
17711         * sysdeps/x86_64/configure.in: ... here.
17712         * sysdeps/x86_64/elf/start.S: Moved to ...
17713         * sysdeps/x86_64/start.S: ... here.
17714         * sysdeps/x86_64/elf/configure: Delete.
17715
17716         * sysdeps/x86_64/configure.in: Merge contents from
17717         sysdeps/i386/configure.in (without i686 check).
17718
17719         * sysdeps/i386/elf/Versions: Merge into ...
17720         * sysdeps/i386/Versions: ... this.
17721         * sysdeps/i386/elf/Versions: Delete file.
17722         * sysdeps/i386/elf/start.S: Moved to ...
17723         * sysdeps/i386/start.S: ...here.
17724         * sysdeps/i386/elf/configure.in: Merge into...
17725         * sysdeps/i386/configure.in: ...here.
17726         * sysdeps/i386/elf/configure.in: Delete file.
17727         * sysdeps/i386/elf/configure: Delete file.
17728
17729         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
17730         * debug/backtracesyms.c: ... here.
17731         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
17732         * debug/backtracesymsfd.c: ... here.
17733         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
17734         * sysdeps/generic/ifunc-sel.h: ... here.
17735
17736         * sysdeps/unix/i386/start.c: Delete file.
17737         * sysdeps/unix/sparc/start.c: Delete file.
17738         * sysdeps/unix/start.c: Delete file.
17739
17740         * sysdeps/sh/elf/configure.in: Moved to ...
17741         * sysdeps/sh/configure.in: ... here.
17742         * sysdeps/sh/elf/start.S: Moved to ...
17743         * sysdeps/sh/start.S: ... here.
17744         * sysdeps/sh/elf/configure: Delete file.
17745
17746         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
17747         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
17748         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
17749         * sysdeps/powerpc/powerpc64/entry.h: ... here.
17750         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
17751         * sysdeps/powerpc/powerpc64/start.S: here.
17752         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
17753         * sysdeps/powerpc/powerpc64/Makefile: ... this.
17754         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
17755         * sysdeps/powerpc/powerpc64/configure.in: ... this.
17756         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
17757
17758         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
17759         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
17760         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
17761         * sysdeps/powerpc/powerpc32/start.S: ... here.
17762         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
17763         * sysdeps/powerpc/powerpc32/configure.in: ... this.
17764         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
17765
17766         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
17767         * sysdeps/powerpc/ifunc-sel.h: ... here.
17768         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
17769         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
17770
17771         * sysdeps/sparc/elf/configure.in: Moved to ...
17772         * sysdeps/sparc/configure.in: ... here.
17773         * sysdeps/sparc/elf/configure: Delete file.
17774         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
17775         * sysdeps/sparc/sparc32/start.S: ... here.
17776         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
17777         * sysdeps/sparc/sparc64/start.S: ... here.
17778         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
17779         * sysdeps/sparc/sparc32/Makefile: ... this.
17780         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
17781         * sysdeps/sparc/sparc64/Makefile: ... this.
17782
17783         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
17784         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
17785         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
17786         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
17787         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
17788         * sysdeps/s390/s390-32/setjmp.S: ... here.
17789         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
17790         * sysdeps/s390/s390-32/configure.in: ... here.
17791         * sysdeps/s390/s390-32/elf/configure: Delete file.
17792         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
17793         * sysdeps/s390/s390-32/start.S: ... here.
17794
17795         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
17796         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
17797         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
17798         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
17799         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
17800         * sysdeps/s390/s390-64/setjmp.S: ... here.
17801         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
17802         * sysdeps/s390/s390-64/configure.in: ... here
17803         * sysdeps/s390/s390-64/elf/configure: Delete file.
17804         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
17805         * sysdeps/s390/s390-64/start.S: ... here.
17806         * sysdeps/s390/s390-64/elf/configure: Delete.
17807
17808         * configure.in: Remove support for elf directories in sysdeps.
17809
17810         * configure: Regenerated.
17811         * sysdeps/i386/configure: Regenerated.
17812         * sysdeps/powerpc/powerpc32/configure: Regenerated.
17813         * sysdeps/powerpc/powerpc64/configure: Regenerated.
17814         * sysdeps/s390/s390-32/configure: Regenerated.
17815         * sysdeps/s390/s390-64/configure: Regenerated.
17816         * sysdeps/sh/configure: Regenerated.
17817         * sysdeps/sparc/configure: Regenerated.
17818         * sysdeps/x86_64/configure: Regenerated.
17819
17820 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
17821
17822         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17823
17824         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
17825         denormal result into account.
17826
17827 2012-03-25  Roland McGrath  <roland@hack.frob.com>
17828
17829         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
17830         Reported by Allan McRae <allan@archlinux.org>.
17831
17832 2012-03-23  Jeff Law  <law@redhat.com>
17833
17834         * nss/getnssent.c (__nss_getent): Fix typo.
17835
17836 2012-03-23  David S. Miller  <davem@davemloft.net>
17837
17838         * sysdeps/sparc/fpu/libm-test-ulps: Update.
17839
17840 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
17841
17842         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
17843         to pad to uint64_t for each field.
17844         (dl_tls_index): Replace unsigned long with uint64_t.
17845
17846 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
17847         Paul Pluzhnikov  <ppluzhnikov@google.com>
17848
17849         [BZ #6528]
17850         * grp/Makefile (otherlibs): Don't set it.
17851         * inet/Makefile (otherlibs): Likewise.
17852         * login/Makefile (otherlibs): Likewise.
17853         * nscd/Makefile (otherlibs): Likewise.
17854         * posix/Makefile (otherlibs): Likewise.
17855         * pwd/Makefile (otherlibs): Likewise.
17856         * rt/Makefile (otherlibs): Likewise.
17857         * sunrpc/Makefile (otherlibs): Likewise.
17858         * nss/Makefile (otherlibs): Likewise.
17859         Add libnss_files to routines and static-only-routines.
17860         ($(objpfx)getent): Remove rule.
17861         * resolv/Makefile: Add libnss_dns and libresolv to routines and
17862         static-only-routines.
17863
17864 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
17865
17866         [BZ #13892]
17867         * math/s_cexp.c: Include <float.h>.
17868         (__cexp): Handle exp result overflowing not necessarily
17869         overflowing both real and imaginary parts of result.
17870         * math/s_cexpf.c: Likewise.
17871         * math/s_cexpl.c: Likewise.
17872         * math/libm-test.inc (cexp_test): Add more tests.
17873         * sysdeps/i386/fpu/libm-test-ulps: Update.
17874         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17875
17876 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
17877
17878         * include/link.h (ELFW): New macro.
17879         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
17880         Replace ELF64_R_TYPE with ELFW(R_TYPE).
17881
17882 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
17883
17884         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
17885         with uint64_t.
17886
17887 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
17888
17889         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
17890         declaration.
17891         (struct La_x32_retval): Likewise.
17892
17893 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
17894
17895         * sysdeps/x86_64/preconfigure.in: New file.
17896         * sysdeps/x86_64/preconfigure: New generated file.
17897
17898 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
17899
17900         [BZ #13824]
17901         * math/e_exp2l.c: Include <float.h>.
17902         (__ieee754_exp2l): Handle overflow and underflow cases
17903         separately.  Only pass fractional part of argument to
17904         __ieee754_expl.
17905         * math/libm-test.inc (exp2_test): Add more tests.
17906
17907         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
17908         negating x to take absolute value.
17909         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
17910         Likewise.
17911         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
17912         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
17913         Likewise.
17914         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
17915         computing low part if x was negated.
17916         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
17917
17918 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
17919
17920         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
17921         la_x32_gnu_pltexit.
17922         (pltexit): Cast int_retval to ptrdiff_t.
17923         * elf/tst-auditmod3b.c: Likewise.
17924         * elf/tst-auditmod4b.c: Likewise.
17925         * elf/tst-auditmod5b.c: Likewise.
17926         * elf/tst-auditmod6b.c: Likewise.
17927         * elf/tst-auditmod6c.c: Likewise.
17928         * elf/tst-auditmod7b.c: Likewise.
17929
17930         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
17931         and x32_gnu_pltexit.
17932
17933         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
17934         __ELF_NATIVE_CLASS.
17935         (La_x32_regs): New macro.
17936         (La_x32_retval): Likewise.
17937         (la_x32_gnu_pltenter): New function prototype.
17938         (la_x32_gnu_pltexit): Likewise.
17939
17940 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
17941
17942         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
17943         exponent.
17944
17945         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17946
17947         * configure.in (libc_cv_cc_nofma): Check for option to disable
17948         generation of FMA instructions.
17949         * configure: Regenerate.
17950         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
17951         * sysdeps/ieee754/dbl-64/Makefile: New file.
17952         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17953         Remove brandred-fma4.
17954         (CFLAGS-brandred-fma4.c): Remove.
17955         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
17956         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
17957         define.
17958         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
17959         define.
17960
17961 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
17962
17963         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
17964         LLONG_MAX != LONG_MAX.
17965         (_itoa_word): Use _ITOA_WORD_TYPE on value.
17966         (_fitoa_word): Likewise.
17967         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
17968         LLONG_MAX != LONG_MAX.
17969         * stdio-common/_itowa.h: Include <_itoa.h>.
17970         (_itowa_word): Use _ITOA_WORD_TYPE on value.
17971         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
17972         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
17973         only if not defined.
17974         (_ITOA_WORD_TYPE): Likewise.
17975         (_itoa_word): Use _ITOA_WORD_TYPE on value.
17976         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
17977
17978 2012-03-21  David S. Miller  <davem@davemloft.net>
17979
17980         * sysdeps/sparc/fpu/libm-test-ulps: Update.
17981
17982 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
17983
17984         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
17985         of x86_64 when setting libc_cv_slibdir, libdir and
17986         libc_cv_localedir.
17987         * sysdeps/unix/sysv/linux/configure: Regenerated.
17988
17989 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
17990
17991         * manual/lang.texi (Old Varargs): Remove section.
17992         (How Variadic): Update menu.
17993         (va_start): Do not mention varargs.h.
17994
17995 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
17996             Joseph Myers  <joseph@codesourcery.com>
17997
17998         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
17999         link test.
18000         * configure: Regenerated.
18001
18002 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
18003
18004         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
18005         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
18006         conformtest.pl
18007
18008 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
18009
18010         * NOTES: Remove.
18011         * Makefile (files-for-dist): Remove NOTES.
18012         (NOTES): Remove rule.
18013         * README: Don't refer to NOTES.
18014         * manual/creature.texi: Don't include macros.texi.
18015         * manual/intro.texi (creature.texi): Remove comment referring to
18016         NOTES.
18017
18018         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
18019         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
18020         * configure: Regenerated.
18021         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
18022         LIBC_TRY_CC_OPTION.
18023         (libc_cv_as_i686): Likewise.
18024         (libc_cv_cc_avx): Likewise.
18025         (libc_cv_cc_sse2avx): Likewise.
18026         (libc_cv_cc_fma4): Likewise.
18027         (libc_cv_cc_novzeroupper): Likewise.
18028         * sysdeps/i386/configure: Regenerated.
18029
18030         [BZ #13883]
18031         * sysdeps/i386/fpu/s_cexp.S: Remove.
18032         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
18033         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
18034         * math/libm-test.inc (cexp_test): Add more tests.
18035         * sysdeps/i386/fpu/libm-test-ulps: Update.
18036         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18037
18038 2012-03-21  Allan McRae  <allan@archlinux.org>
18039
18040         * timezone/Makefile: Do not install iso3166.tab and zone.tab
18041
18042 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
18043
18044         [BZ #13871]
18045         * math/w_exp2.c: Do not include <float.h>.
18046         (o_threshold, u_threshold): Remove.
18047         (__exp2): Calculate result before checking finiteness and calling
18048         __kernel_standard.
18049         * math/w_exp2f.c: Likewise.
18050         * math/w_exp2l.c: Likewise.
18051         * math/libm-test.inc (exp2_test): Require overflow exception for
18052         1e6 input.
18053
18054         [BZ #3866]
18055         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
18056         range of signed 64-bit integers before using fistpll.  Remove
18057         checks for whether integers fit in mantissa bits.
18058         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
18059         the range of signed 32-bit integers before using fistpl.  Remove
18060         checks for whether integers fit in mantissa bits.
18061         * sysdeps/i386/fpu/e_powl.S (p64): New object.
18062         (__ieee754_powl): Test for y outside the range of signed 64-bit
18063         integers before using fistpll.  Reduce 64-bit values to 63-bit
18064         ones as needed.
18065         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
18066         divide-by-zero is raised for zero to large negative powers.
18067         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
18068         (__ieee754_powl): Test for y outside the range of signed 64-bit
18069         integers before using fistpll.  Reduce 64-bit values to 63-bit
18070         ones as needed.
18071         * math/libm-test.inc (pow_test): Add more tests.
18072
18073 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
18074
18075         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
18076         <stdio-common/_itoa.h>.
18077         * debug/segfault.c: Likewise.
18078         * elf/dl-cache.c: Likewise.
18079         * elf/dl-minimal.c: Likewise.
18080         * elf/dl-misc.c: Likewise.
18081         * elf/dl-sysdep.c: Likewise.
18082         * elf/dl-version.c: Likewise.
18083         * elf/rtld.c: Likewise.
18084         * hurd/hurdsock.c: Likewise.
18085         * hurd/lookup-retry.c: Likewise.
18086         * malloc/malloc.c: Likewise.
18087         * malloc/mtrace.c: Likewise.
18088         * nscd/nscd_getgr_r.c: Likewise.
18089         * nscd/nscd_getpw_r.c: Likewise.
18090         * nscd/nscd_getserv_r.c: Likewise.
18091         * posix/getopt_init.c: Likewise.
18092         * posix/wordexp.c: Likewise.
18093         * stdio-common/_itoa.c: Likewise.
18094         * stdio-common/printf_fphex.c: Likewise.
18095         * stdio-common/vfprintf.c: Likewise.
18096         * string/_strerror.c: Likewise.
18097         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
18098         * sysdeps/i386/i686/hp-timing.h: Likewise.
18099         * sysdeps/mach/_strerror.c: Likewise.
18100         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
18101         * sysdeps/mach/hurd/sethostid.c: Likewise.
18102         * sysdeps/mach/hurd/xmknodat.c: Likewise.
18103         * sysdeps/mach/xpg-strerror.c: Likewise.
18104         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
18105         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
18106         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
18107         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
18108         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
18109         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
18110         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
18111         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
18112         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
18113         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
18114         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
18115         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
18116         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
18117         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
18118         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
18119         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
18120         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
18121         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
18122         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
18123         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
18124         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
18125
18126         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
18127
18128         * stdio-common/_itoa.h: Moved to ...
18129         * sysdeps/generic/_itoa.h: Here.
18130
18131         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
18132
18133         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
18134         instead of "_itoa.h" and "_itowa.h".
18135         * stdio-common/vfprintf.: Likewise.
18136
18137 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
18138
18139         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
18140         <bits/wordsize.h>.
18141         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
18142         (__signbit): Likwise.
18143         (llrintf): Likwise.
18144         (llrint): Likwise.
18145
18146 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
18147
18148         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
18149         __WORDSIZE != 64.
18150
18151 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
18152
18153         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
18154         OVERFLOW_EXCEPTION_OK.
18155         * math/libm-test.inc ("Philosophy"): Update comment about
18156         exception testing.
18157         (OVERFLOW_EXCEPTION): Define.
18158         (OVERFLOW_EXCEPTION_OK): Likewise.
18159         (INVALID_EXCEPTION_OK): Renumber.
18160         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
18161         (IGNORE_ZERO_INF_SIGN): Likewise.
18162         (test_exceptions): Handle FE_OVERFLOW.
18163         (exp10_test): Expect overflow exceptions.
18164         (exp2_test): Likewise.
18165         (expm1_test): Likewise.
18166         (nextafter_test): Likewise.
18167         (pow_test): Likewise.
18168         (scalbn_test): Likewise.
18169         (scalbln_test): Likewise.
18170
18171 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
18172
18173         * sysdeps/x86_64/bits/atomic.h
18174         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
18175         64bit integer.
18176         (atomic_exchange_acq): Likewise.
18177         (__arch_exchange_and_add_body): Likewise.
18178         (__arch_add_body): Likewise.
18179         (atomic_add_negative): Likewise.
18180         (atomic_add_zero): Likewise.
18181
18182 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
18183
18184         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
18185         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
18186
18187 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
18188
18189         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
18190         Check __x86_64__ instead of __WORDSIZE.
18191
18192 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
18193
18194         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
18195
18196 2012-03-19  David S. Miller  <davem@davemloft.net>
18197
18198         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18199
18200         * sysdeps/sparc/fpu/fenv_private.h: New file.
18201         * sysdeps/sparc/fpu/math_private.h: Use it.
18202         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
18203         Remove.
18204         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
18205         (libc_feholdexcept_setroundl): Remove.
18206         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
18207         Remove.
18208         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
18209         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
18210
18211 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
18212
18213         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
18214         int64_t instead of long int.
18215         (INSERT_WORDS64): Likwise.
18216
18217 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
18218
18219         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
18220         _Unwind_GetCFA return to _Unwind_Ptr first.
18221
18222 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
18223
18224         [BZ #13629]
18225         * math/s_clog.c: Include <float.h>.
18226         (__clog): Scale large or subnormal inputs.
18227         * math/s_clogf.c: Likewise.
18228         * math/s_clogl.c: Likewise.
18229         * math/s_clog10.c: Include <float.h>.
18230         (M_LOG10_2): Define.
18231         (__clog10): Scale large or subnormal inputs.
18232         * math/s_clog10f.c: Likewise.
18233         * math/s_clog10l.c: Likewise.
18234         * math/libm-test.inc (clog_test): Add more tests.
18235         (clog10_test): Likewise.
18236         * sysdeps/i386/fpu/libm-test-ulps: Update.
18237         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18238
18239         [BZ #11451]
18240         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
18241         x and y.
18242         * math/libm-test.inc (atan2_test): Add another test.
18243
18244         * Makerules (common-objdir-compile): Remove.
18245         * sysdeps/unix/Makefile (config-generated): Do not add
18246         $(unix-generated) to variable.
18247         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
18248         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
18249         Remove rule.
18250         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
18251         Likewise.
18252         [generic bits/local_lim.h] (before-compile): Do not append to
18253         variable.
18254         [generic bits/local_lim.h] (common-generated): Likewise.
18255         [generic sys/param.h] (before-compile): Do not append to variable.
18256         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
18257         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
18258         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
18259         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
18260         include.
18261         [generic sys/param.h] (sys/param.h-includes): Remove variable.
18262         [generic sys/param.h] (sys/param.h-includes): Remove rule.
18263         [generic sys/param.h] ($(addprefix
18264         $(common-objpfx),$(sys/param.h-includes))): Likewise.
18265         [generic sys/param.h] (common-generated): Do not append to
18266         variable.
18267         [generic sys/param.h] (sysdep_headers): Likewise.
18268         [generic bits/errno.h] (before-compile): Do not append to
18269         variable.
18270         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
18271         rule.
18272         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
18273         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
18274         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
18275         [generic bits/errno.h] (common-generated): Do not append to
18276         variable.
18277         [generic bits/ioctls.h] (before-compile): Do not append to
18278         variable.
18279         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
18280         rule.
18281         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
18282         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
18283         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
18284         rule.
18285         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
18286         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
18287         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
18288         [generic bits/ioctls.h] (common-generated): Do not append to
18289         variable.
18290         [generic sys/syscall.h] (syscall.h): Remove variable.
18291         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
18292         rule.
18293         [generic sys/syscall.h] (before-compile): Do not append to
18294         variable.
18295         [generic sys/syscall.h] (common-generated): Likewise.
18296         * sysdeps/unix/errnos-tmpl.c: Remove file.
18297         * sysdeps/unix/errnos.awk: Likewise.
18298         * sysdeps/unix/ioctls-tmpl.c: Likewise.
18299         * sysdeps/unix/ioctls.awk: Likewise.
18300         * sysdeps/unix/mk-local_lim.c: Likewise.
18301         * sysdeps/unix/snarf-ioctls: Likewise.
18302
18303 2012-03-19  Richard Henderson  <rth@twiddle.net>
18304
18305         * sysdeps/i386/fpu/fenv_private.h: New file.
18306         * sysdeps/i386/fpu/math_private.h: Use it.
18307         (math_opt_barrier, math_force_eval): Remove.
18308         (libc_feholdexcept_setround_53bit): Remove.
18309         (libc_feupdateenv_53bit): Remove.
18310         * sysdeps/x86_64/fpu/math_private.h: Likewise.
18311         (math_opt_barrier, math_force_eval): Remove.
18312         (libc_feholdexcept): Remove.
18313         (libc_feholdexcept_setround): Remove.
18314         (libc_fetestexcept, libc_fesetenv): Remove.
18315         (libc_feupdateenv_test): Remove.
18316         (libc_feupdateenv, libc_feholdsetround): Remove.
18317         (libc_feresetround): Remove.
18318
18319         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
18320         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
18321
18322         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
18323         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
18324         (libc_feupdateenv_testl): New.
18325         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
18326         (libc_feupdateenv_testf): New.
18327         (libc_feupdateenv): Use libc_feupdateenv_test.
18328         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
18329         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
18330
18331         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
18332         (libc_feholdsetroundf, libc_feholdsetroundl): New.
18333         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
18334         (libc_feresetround_noex): New.
18335         (libc_feresetround_noexf): New.
18336         (libc_feresetround_noexl): New.
18337         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
18338         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
18339         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
18340         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
18341         SET_RESTORE_ROUND.
18342         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
18343         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
18344         (__cos): Likewise.
18345         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
18346         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
18347         SET_RESTORE_ROUND_NOEX.
18348         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
18349         SET_RESTORE_ROUND_NOEXF.
18350         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
18351         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
18352         (libc_feholdsetroundf): New.
18353         (libc_feresetround, libc_feresetroundf): New.
18354
18355         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
18356         (libc_feholdexcept_setround_53bit): Convert from macro to function.
18357         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
18358
18359         * sysdeps/generic/math_private.h: Include <fenv.h>.
18360         (default_libc_feholdexcept): New.
18361         (default_libc_feholdexcept_setround): New.
18362         (default_libc_fesetenv, default_libc_feupdateenv): New.
18363         (libc_feholdexcept): Only define if undefined.
18364         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
18365         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
18366         (libc_feholdexcept_setroundl): Likewise.
18367         (libc_feholdexcept_setround_53bit): Likewise.
18368         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
18369         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
18370         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
18371         (libc_feupdateenv_53bit): Likewise.
18372         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
18373         (libc_feholdexcept): Convert from macro to inline function.
18374         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
18375         (libc_fesetenv, libc_feupdateenv): Likewise.
18376
18377         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
18378         not previously defined.
18379         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
18380         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
18381         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
18382         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
18383         * sysdeps/ieee754/flt-32/math_private.h: New file.
18384         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
18385         math_private.h below SET_FLOAT_WORD.
18386         (__isnan, __isinf_ns, __finite): Remove.
18387         (__isnanf, __isinf_nsf, __finitef): Remove.
18388
18389 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
18390
18391         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18392
18393 2012-03-17  David S. Miller  <davem@davemloft.net>
18394
18395         [BZ #6471]
18396         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
18397         for 2.16.
18398
18399 2012-03-16  David S. Miller  <davem@davemloft.net>
18400
18401         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
18402         warnings.
18403
18404         [BZ #6471]
18405         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
18406         properly.
18407         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
18408         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
18409         sysdep_routines when subdir is sysvipc.
18410         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
18411         __getshmlba helper.
18412
18413         * sysdeps/sparc/fpu/libm-test/ulps: Update.
18414
18415 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
18416
18417         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
18418         [__LP64__].
18419
18420 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
18421
18422         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
18423         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
18424         (__lround): Renamed to ...
18425         (__llround): This.  Replace long int with long long int.
18426         Define lround functions as aliases of llround functions.
18427         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
18428
18429 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
18430
18431         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
18432         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
18433         adresses to uintptr_t.  Replace "long int" and "unsigned long
18434         int" with "greg_t" on va_arg.
18435
18436 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
18437
18438         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
18439         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
18440
18441         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
18442         Move e_machine check before EI_CLASS check.  Handle x32
18443         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
18444         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
18445         SKIP_EM_IA_64 and include
18446         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
18447
18448         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
18449         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
18450         (add_system_dir): New macro.
18451
18452         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
18453         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
18454
18455 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
18456
18457         [BZ #2551]
18458         [BZ #2552]
18459         [BZ #2553]
18460         [BZ #2554]
18461         [BZ #2562]
18462         [BZ #2563]
18463         [BZ #2565]
18464         [BZ #2566]
18465         [BZ #2576]
18466         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
18467         (y0): Likewise.
18468         * math/w_j0f.c (j0f): Likewise.
18469         (y0f): Likewise.
18470         * math/w_j0l.c (__j0l): Likewise.
18471         (__y0l): Likewise.
18472         * math/w_j1.c (j1): Likewise.
18473         (y1): Likewise.
18474         * math/w_j1f.c (j1f): Likewise.
18475         (y1f): Likewise.
18476         * math/w_j1l.c (__j1l): Likewise.
18477         (__y1l): Likewise.
18478         * math/w_jn.c (jn): Likewise.
18479         (yn): Likewise.
18480         * math/w_jnf.c (jnf): Likewise.
18481         (ynf): Likewise.
18482         * math/w_jnl.c (__jnl): Likewise.
18483         (__ynl): Likewise.
18484         * math/libm-test.inc (j0_test): Add more tests.
18485         (j1_test): Likewise.
18486         (jn_test): Likewise.  Add trailing semicolon to existing test.
18487         (y0_test): Likewise.
18488         (y1_test): Likewise.
18489         * sysdeps/i386/fpu/libm-test-ulps: Update.
18490         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18491
18492         [BZ #13851]
18493         [BZ #13854]
18494         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
18495         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
18496         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
18497         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
18498         (__tanl): Set errno for infinite argument.
18499         * sysdeps/i386/fpu/mptan.c: Remove.
18500         * sysdeps/i386/fpu/s_tan.S: Likewise.
18501         * sysdeps/i386/fpu/s_tanl.S: Likewise.
18502         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
18503         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
18504         * math/libm-test.inc (tan_test): Add more tests and enable more
18505         tests for double and long double.
18506         * sysdeps/i386/fpu/libm-test-ulps: Update.
18507         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18508
18509 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
18510
18511         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
18512         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
18513
18514 2012-03-16  Roland McGrath  <roland@hack.frob.com>
18515
18516         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
18517         * configure.in: Use it for both main tree and add-ons.
18518         * configure: Regenerated.
18519
18520 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
18521
18522         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
18523
18524 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
18525
18526         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
18527         in comment.
18528
18529         [BZ #13851]
18530         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
18531         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
18532         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
18533         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
18534         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
18535         infinite argument.
18536         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
18537         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
18538         != 0 for prec == 2.
18539         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
18540         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
18541         * sysdeps/i386/fpu/s_cosl.S: Likewise.
18542         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
18543         * sysdeps/i386/fpu/s_sinl.S: Likewise.
18544         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
18545         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
18546         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
18547         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
18548         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
18549         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
18550         * math/libm-test.inc (cos_test): Add more tests and enable more
18551         tests for long double.
18552         (sin_test): Likewise.
18553         (sincos_test): Likewise.
18554         * sysdeps/i386/fpu/libm-test-ulps: Update.
18555         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18556
18557 2012-03-16  David S. Miller  <davem@davemloft.net>
18558
18559         * sysdeps/sparc/fpu/math_private.h: New file.
18560
18561 2012-03-15  David S. Miller  <davem@davemloft.net>
18562
18563         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
18564         file.
18565         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
18566         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
18567         file.
18568         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
18569         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
18570         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
18571         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
18572         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
18573         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
18574         sysdep routines.
18575         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
18576
18577         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
18578         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
18579
18580         * sysdeps/sparc/sparc-ifunc.h: New file.
18581         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
18582         sparc-ifunc.h
18583         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
18584         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
18585         Likewise.
18586         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
18587         Likewise.
18588         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
18589         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
18590         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
18591         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
18592         Likewise.
18593         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
18594         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
18595         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
18596         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
18597         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
18598         Likewise.
18599         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
18600         Likewise.
18601         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
18602         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
18603         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
18604         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
18605         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
18606         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
18607         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
18608         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
18609         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
18610         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
18611         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
18612         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
18613         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
18614         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
18615         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
18616         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
18617         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
18618         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
18619         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
18620         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
18621         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
18622         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
18623         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
18624         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
18625
18626 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
18627
18628         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
18629         scaling.
18630         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18631
18632 2012-03-15  Andreas Jaeger  <aj@suse.de>
18633
18634         [BZ #13852]
18635         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
18636         ieee754/flt-32 implementation for sin, cos and sincos.
18637         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
18638         * sysdeps/i386/fpu/s_cosf.S: Likewise.
18639         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
18640         * sysdeps/i386/fpu/s_sinf.S: Likewise.
18641         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
18642         ieee754/flt-32 implementation for tan.
18643
18644         * math/libm-test.inc (cos_test): Enable some large input tests for
18645         float as well
18646         (sin_test): Likewise.
18647         (sincos_test): Likewise.
18648         (tan_test): Add tests for large input.
18649
18650         * sysdeps/i386/fpu/libm-test-ulps: Update.
18651
18652 2012-03-15  Andreas Jaeger  <aj@suse.de>
18653
18654         [BZ #13658]
18655         * math/libm-test.inc (cos_test): Add more test cases.
18656         (sin_test): Likewise.
18657         (sincos_test): Likewise.
18658
18659 2012-03-15  Andreas Jaeger  <aj@suse.de>
18660
18661         [BZ #13837]
18662         * math/libm-test.inc (cos_test): Add a test case for large input
18663         value.
18664         (sin_test): Likewise.
18665         (sincos_test): Likewise.
18666
18667 2012-03-15  Andreas Jaeger  <aj@suse.de>,
18668         Joseph Myers  <joseph@codesourcery.com>
18669
18670         [BZ #13658]
18671         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
18672         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
18673         * sysdeps/i386/fpu/branred.c: Likewise.
18674         * sysdeps/i386/fpu/dosincos.c: Likewise.
18675         * sysdeps/i386/fpu/mpa.c: Likewise.
18676         * sysdeps/i386/fpu/s_cos.S: Likewise.
18677         * sysdeps/i386/fpu/s_sin.S: Likewise.
18678         * sysdeps/i386/fpu/s_sincos.S: Likewise.
18679         * sysdeps/i386/fpu/sincos32.c: Likewise.
18680
18681         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
18682         Define.
18683         (libc_feupdateenv_53bit): Define.
18684         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
18685         Define.
18686         (libc_feupdateenv_53bit): Define.
18687
18688         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
18689         53 bit (without extend i386 double precision).
18690
18691         * math/libm-test.inc (sincos_test): Add tests for large input.
18692         (sin): Likewise.
18693         (cos): Likewise.
18694
18695         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
18696
18697 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
18698
18699         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18700
18701 2012-03-15  David S. Miller  <davem@davemloft.net>
18702
18703         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
18704         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
18705         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
18706         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
18707         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
18708         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
18709         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
18710         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
18711         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
18712         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
18713         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
18714         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
18715         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
18716         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
18717         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
18718         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
18719         file.
18720         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
18721         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
18722         file.
18723         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
18724         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
18725         file.
18726         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
18727         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
18728         file.
18729         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
18730         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
18731         fmin/fmax sysdep routines.
18732         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
18733
18734 2012-03-14  David S. Miller  <davem@davemloft.net>
18735
18736         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
18737         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
18738         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
18739         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
18740         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
18741         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
18742         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
18743         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
18744         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
18745         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
18746         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
18747         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
18748         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
18749         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
18750         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
18751         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
18752         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
18753         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
18754         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
18755         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
18756         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
18757         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
18758         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
18759         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
18760         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
18761         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
18762         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
18763         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
18764         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
18765         routines.
18766         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
18767         file.
18768         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
18769         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
18770         file.
18771         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
18772         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
18773         file.
18774         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
18775         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
18776         file.
18777         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
18778         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
18779         file.
18780         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
18781         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
18782         file.
18783         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
18784         file.
18785         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
18786         file.
18787         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
18788         file.
18789         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
18790         New file.
18791         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
18792         file.
18793         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
18794         file.
18795         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
18796         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
18797         file.
18798         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
18799         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
18800         file.
18801         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
18802         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
18803         file.
18804         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
18805         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
18806         VIS3 routines.
18807
18808         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
18809         New file.
18810
18811         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18812
18813         * sysdeps/sparc/configure.in: New file.
18814         * sysdeps/sparc/configure: Generate.
18815         * configure.in (libc_cv_sparc_as_vis3): Substitute.
18816         * configure: Regenerate.
18817         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
18818         * config.make.in (have-as-vis3): New.
18819         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
18820         available use -Av9d instead of -Av9a.
18821         * sysdeps/sparc/sparc64/Makefile: Likewise.
18822         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
18823         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
18824         New file.
18825         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
18826         file.
18827         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
18828         New file.
18829         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
18830         file.
18831         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
18832         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
18833         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
18834         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
18835         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
18836
18837         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
18838         fzeros/fnegs to load 0x80000000 into a float register instead of
18839         using the stack.
18840         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
18841
18842 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
18843
18844         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18845         bits/syscall.h.
18846         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
18847         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
18848         ($(inst_includedir)/bits/syscall.h): Remove rule.
18849         ($(objpfx)bits/syscall.d): Include instead of
18850         $(objpfx)syscall-list.d.
18851         (generated): Change syscall-list.h and syscall-list.d to
18852         bits/syscall.h and bits/syscall.d.
18853
18854 2012-03-14  Roland McGrath  <roland@hack.frob.com>
18855
18856         [BZ #13846]
18857         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
18858
18859 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
18860
18861         [BZ #13841]
18862         * math/s_csqrt.c: Include <float.h>.
18863         (__csqrt): Scale large or subnormal inputs.
18864         * math/s_csqrtf.c: Likewise.
18865         * math/s_csqrtl.c: Likewise.
18866         * math/libm-test.inc (csqrt_test): Add more tests.
18867         * sysdeps/i386/fpu/libm-test-ulps: Update.
18868         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18869
18870         [BZ #13840]
18871         * math/libm-test.inc (hypot_test): Add more tests.
18872
18873 2012-03-13  David S. Miller  <davem@davemloft.net>
18874
18875         [BZ #13840]
18876         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
18877         double-precision for the calculation instead of scaling.
18878
18879 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
18880
18881         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
18882         manipulate bits before adding and subtracting TWO52[sx].
18883         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
18884         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
18885         Likewise.
18886         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
18887
18888 2012-03-13  David S. Miller  <davem@davemloft.net>
18889
18890         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
18891         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
18892         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
18893         rtld-global-offsets.h
18894         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
18895
18896         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
18897         large parameters.
18898
18899         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
18900
18901         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
18902         'err' in the ifdef scope in which it is actually used.
18903
18904         * nss/nss_db/db-init.c: Include string.h
18905
18906 2012-03-12  David S. Miller  <davem@davemloft.net>
18907
18908         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
18909         masking out of the most significant byte of random value used.
18910         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
18911         Fix coding style in previous change.
18912
18913         * sysdeps/unix/sysv/linux/kernel-features.h
18914         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
18915         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
18916         expression.
18917         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
18918         later.
18919
18920 2012-03-11  David S. Miller  <davem@davemloft.net>
18921
18922         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
18923         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
18924         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
18925         for 'resultvar' otherwise things get truncated on 64-bit.
18926
18927         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
18928         Fix masking out of the most significant byte of random value used.
18929
18930         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18931
18932 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
18933
18934         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18935
18936 2012-03-09  David S. Miller  <davem@davemloft.net>
18937
18938         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
18939         variables with appropriate CPP guards.
18940         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
18941         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
18942         on resulting framesize and the management of the outregs buffer for pltexit.
18943         Preserve floating point return values across _dl_call_pltexit call.
18944         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
18945         framesize and the management of the outregs buffer for pltexit.
18946         Preserve floating point return values across _dl_call_pltexit
18947         call.
18948         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
18949         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
18950         (print_exit): Fix format string for return register value.
18951
18952 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
18953
18954         * sunrpc/Makefile (others): Add rpcgen.
18955         ($(objpfx)rpcgen): Remove special build rule and dependency on
18956         libc.
18957         * sunrpc/rpcgen.c: New file.
18958
18959 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
18960
18961         [BZ #13673]
18962         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
18963         * stdio-common/bug-vfprintf-nargs.c: Likewise.
18964         * sysdeps/i386/crti.S: Likewise.
18965         * sysdeps/i386/crtn.S: Likewise.
18966         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
18967         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
18968         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
18969         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
18970         * sysdeps/sh/crti.S: Likewise.
18971         * sysdeps/sh/crtn.S: Likewise.
18972         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
18973
18974         [BZ #13673]
18975         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
18976         with URL.
18977         * locale/programs/locfile-kw.gperf: Likewise.
18978         * locale/programs/charmap-kw.h: Regenerated.
18979         * locale/programs/locfile-kw.h: Likewise.
18980
18981         [BZ #13673]
18982         * intl/plural.y: Replace FSF snail mail address with URL.
18983         * intl/plural.c: Regenerated.
18984
18985 2012-03-09  Richard Henderson  <rth@twiddle.net>
18986
18987         * include/math_private.h: Remove file.
18988         * math/math_private.h: Move file ...
18989         * sysdeps/generic/math_private.h: ... here.
18990
18991         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
18992         * sysdeps/powerpc/fpu/math_private.h: Likewise.
18993         * sysdeps/x86_64/fpu/math_private.h: Likewise.
18994
18995         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
18996         and <math_private.h>.
18997         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
18998         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
18999         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
19000         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
19001         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
19002         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
19003         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
19004         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
19005         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
19006         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
19007         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
19008         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
19009         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
19010         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
19011         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
19012         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
19013         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
19014         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
19015         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
19016         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
19017         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
19018         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
19019         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
19020         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
19021         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
19022         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
19023         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
19024         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
19025         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
19026         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
19027         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
19028         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
19029         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
19030         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
19031         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
19032         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
19033         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
19034         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
19035         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
19036         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
19037         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
19038         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
19039         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
19040         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
19041         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
19042         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
19043         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
19044         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
19045         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
19046         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
19047         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
19048         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
19049         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
19050         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
19051         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
19052         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
19053         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
19054         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
19055         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
19056         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
19057         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
19058         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
19059         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
19060         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
19061         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
19062         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
19063         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
19064         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
19065         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
19066         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
19067         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
19068         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
19069         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
19070         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
19071         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
19072         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
19073         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
19074         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
19075         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
19076         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
19077         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
19078         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
19079         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
19080         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
19081         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
19082         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
19083         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
19084         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
19085         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
19086         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
19087         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
19088         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
19089         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
19090         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
19091         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
19092         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
19093         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
19094         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
19095         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
19096         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
19097         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
19098         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
19099         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
19100         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
19101         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
19102         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
19103         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
19104         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
19105         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
19106         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
19107         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
19108         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
19109         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
19110         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
19111         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
19112         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
19113         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
19114         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
19115         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
19116         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
19117         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
19118         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
19119         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
19120         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
19121         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
19122         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
19123         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
19124         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
19125         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
19126         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
19127         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
19128         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
19129         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
19130         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
19131         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
19132         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
19133         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
19134         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
19135         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
19136         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
19137         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
19138         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
19139         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
19140         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
19141         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
19142         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
19143         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
19144         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
19145         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
19146         * sysdeps/ieee754/k_standard.c: Likewise.
19147         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
19148         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
19149         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
19150         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
19151         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
19152         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
19153         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
19154         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
19155         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
19156         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
19157         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
19158         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
19159         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
19160         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
19161         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
19162         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
19163         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
19164         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
19165         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
19166         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
19167         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
19168         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
19169         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
19170         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
19171         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
19172         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
19173         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
19174         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
19175         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
19176         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
19177         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
19178         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
19179         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
19180         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
19181         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
19182         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
19183         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
19184         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
19185         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
19186         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
19187         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
19188         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
19189         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
19190         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
19191         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
19192         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
19193         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
19194         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
19195         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
19196         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
19197         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
19198         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
19199         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
19200         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
19201         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
19202         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
19203         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
19204         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
19205         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
19206         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
19207         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
19208         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
19209         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
19210         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
19211         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
19212         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
19213         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
19214         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
19215         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
19216         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
19217         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
19218         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
19219         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
19220         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
19221         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
19222         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
19223         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
19224         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
19225         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
19226         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
19227         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
19228         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
19229         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
19230         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
19231         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
19232         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
19233         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
19234         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
19235         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
19236         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
19237         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
19238         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
19239         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
19240         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
19241         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
19242         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
19243         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
19244         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
19245         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
19246         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
19247         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
19248         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
19249         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
19250         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
19251         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
19252         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
19253         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
19254         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
19255         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
19256         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
19257         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
19258         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
19259         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
19260         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
19261         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
19262         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
19263         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
19264         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
19265         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
19266         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
19267         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
19268         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
19269         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
19270         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
19271         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
19272         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
19273         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
19274         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
19275         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
19276         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
19277         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
19278         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
19279         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
19280         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
19281         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
19282         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
19283         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
19284         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
19285         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
19286         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
19287         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
19288         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
19289         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
19290         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
19291         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
19292         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
19293         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
19294         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
19295         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
19296         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
19297         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
19298         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
19299         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
19300         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
19301         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
19302         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
19303         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
19304         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
19305         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
19306         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
19307         * sysdeps/ieee754/s_lib_version.c: Likewise.
19308         * sysdeps/ieee754/s_matherr.c: Likewise.
19309         * sysdeps/ieee754/s_signgam.c: Likewise.
19310         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
19311         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
19312         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
19313         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
19314         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
19315         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
19316         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
19317         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
19318         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
19319         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
19320         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
19321         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
19322         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
19323         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
19324         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
19325         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
19326         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
19327         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
19328         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
19329         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
19330         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
19331
19332 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
19333
19334         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
19335         * sunrpc/rpc_main.c: Likewise.
19336         * sunrpc/rpc_svcout.c: Likewise.
19337
19338 2012-03-09  David S. Miller  <davem@davemloft.net>
19339
19340         * include/math_private.h: New file.
19341
19342 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
19343
19344         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
19345         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
19346         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
19347         from <bits/socket_type.h>.
19348         (enum __socket_type): Don't define here.
19349         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
19350         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
19351         bits/socket_type.h.
19352
19353         [BZ #13566]
19354         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
19355         checking __USE_GNU.
19356
19357         * Makerules ($(inst_includedir)/%.h): New rule.
19358         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
19359         (install-others): Remove variable setting.
19360         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
19361
19362 2012-03-08  Richard Henderson  <rth@twiddle.net>
19363
19364         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
19365         from macro to inline function; merge with the
19366         !__LIBC_INTERNAL_MATH_INLINES version.
19367         (__ieee754_sqrtf): Likewise.
19368
19369         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
19370         to inline function.
19371         (__rintf, __floor, __floorf): Likewise.
19372
19373         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
19374         macro to inline function.
19375         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
19376
19377         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
19378         not <math/math_private.h>.
19379
19380 2012-03-08  David S. Miller  <davem@davemloft.net>
19381
19382         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
19383         copyright year.
19384         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
19385
19386 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
19387
19388         * resolv/gai_misc.c (handle_requests): Fix struct timespec
19389         normalization.
19390         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
19391         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
19392
19393 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
19394
19395         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
19396         be defined individually, they must be defined as a block.  Define
19397         S for printing a string instead of hidint the different by using a
19398         macro for adding the 'l'.
19399         * stdio-common/tst-fphex-wide.c: Adjust.
19400
19401 2012-03-07  Marek Polacek  <polacek@redhat.com>
19402
19403         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
19404
19405 2012-03-08  Marek Polacek  <polacek@redhat.com>
19406
19407         [BZ #13806]
19408         * stdio-common/Makefile (tests): Add tst-fphex-wide.
19409         * stdio-common/tst-fphex.c: Define a few macros to make the
19410         test reusable.  Use them.
19411         * stdio-common/tst-fphex-wide.c: New file.
19412
19413 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
19414
19415         [BZ #6911]
19416         * manual/macros.texi (gnusystems): New macro.
19417         (nongnusystems): Likewise.
19418         (gnulinuxhurdsystems): Likewise.
19419         (gnuhurdsystems): Likewise..
19420         (gnulinuxsystems): Likewise.
19421         * manual/charset.texi: Use new macros or @theglibc{} to refer to
19422         variants of the GNU system, not "GNU system".
19423         * manual/conf.texi: Likewise.
19424         * manual/errno.texi: Likewise.  Update example of errno macro
19425         expansion.
19426         * manual/filesys.texi: Likewise.
19427         (getumask): Document as specific to GNU/Hurd.
19428         * manual/install.texi: Likewise.  Reword some references to
19429         GNU/Linux.
19430         * manual/intro.texi: Likewise.
19431         * manual/io.texi: Likewise.
19432         (File Name Portability): Detail which constraints are inapplicable
19433         to all GNU systems and which are only inapplicable to GNU/Hurd.
19434         * manual/job.texi: Likewise.
19435         * manual/llio.texi: Likewise.
19436         (O_NOCTTY): Document as present on GNU/Linux.
19437         * manual/maint.texi: Likewise.
19438         * manual/memory.texi: Likewise.
19439         * manual/pattern.texi: Likewise.
19440         * manual/pipe.texi: Likewise.
19441         * manual/process.texi: Likewise.
19442         * manual/resource.texi: Likewise.
19443         (RUSAGE_CHILDREN): Remove statement about specifying a particular
19444         child on GNU/Hurd.
19445         * manual/setjmp.texi: Likewise.
19446         * manual/signal.texi: Likewise.
19447         * manual/startup.texi: Likewise.
19448         * manual/stdio.texi: Likewise.
19449         * manual/terminal.texi: Likewise.
19450         (ONLCR): Document as POSIX.
19451         (OXTABS): Document availability on GNU/Linux as XTABS.
19452         (ONOEOT): Document availability separately from other bits.
19453         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
19454         * manual/time.texi: Likewise.
19455         * manual/users.texi: Likewise.
19456         * INSTALL: Regenerated.
19457         * sysdeps/gnu/errlist.c: Regenerated.
19458
19459         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
19460         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
19461         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
19462         puts.
19463         * configure: Regenerated.
19464
19465 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
19466
19467         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
19468         default includes instead of AC_HEADER_CHECK.
19469         * sysdeps/i386/configure: Regenerated.
19470
19471         [BZ #10716]
19472         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
19473         * math/s_cacoshf.c (__cacoshf): Likewise.
19474         * math/s_cacoshl.c (__cacoshl): Likewise.
19475         * math/s_casinh.c (__casinh): Set signs of result from argument.
19476         * math/s_casinhf.c (__casinhf): Likewise.
19477         * math/s_casinhl.c (__casinhl): Likewise.
19478         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
19479         (casinh_test): Add more tests.
19480         * sysdeps/i386/fpu/libm-test-ulps: Update.
19481         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19482
19483 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
19484
19485         * po/zh_TW.po: Update from translation team.
19486
19487         * login/Makefile (distribute): Remove variable.
19488         * catgets/Makefile: Likewise.
19489         * mach/Makefile: Likewise.
19490         * malloc/Makefile: Likewise.
19491         * misc/Makefile: Likewise.
19492         * iconv/Makefile: Likewise.
19493         * nscd/Makefile: Likewise.
19494         * hurd/Makefile: Likewise.
19495         * manual/Makefile: Likewise.
19496         * locale/Makefile: Likewise.
19497         * intl/Makefile: Likewise.
19498         * conform/Makefile: Likewise.
19499         * nss/Makefile: Likewise.
19500         * time/Makefile: Likewise.
19501         * soft-fp/Makefile: Likewise.
19502         * dirent/Makefile: Likewise.
19503         * gmon/Makefile: Likewise.
19504         * po/Makefile: Likewise.
19505         * rt/Makefile: Likewise.
19506         * socket/Makefile: Likewise.
19507         * math/Makefile: Likewise.
19508         * signal/Makefile: Likewise.
19509         * debug/Makefile: Likewise.
19510         * elf/Makefile: Likewise.
19511         * timezone/Makefile: Likewise.
19512         * stdlib/Makefile: Likewise.
19513         * iconvdata/Makefile: Likewise.
19514         * sunrpc/Makefile: Likewise.
19515         * io/Makefile: Likewise.
19516         * argp/Makefile: Likewise.
19517         * inet/Makefile: Likewise.
19518         * hesiod/Makefile: Likewise.
19519         * grp/Makefile: Likewise.
19520         * csu/Makefile: Likewise.
19521         * wctype/Makefile: Likewise.
19522         * crypt/Makefile: Likewise.
19523         * libio/Makefile: Likewise.
19524         * string/Makefile: Likewise.
19525         * nis/Makefile: Likewise.
19526         * resolv/Makefile: Likewise.
19527         * stdio-common/Makefile: Likewise.
19528         * wcsmbs/Makefile: Likewise.
19529         * dlfcn/Makefile: Likewise.
19530         * posix/Makefile: Likewise.
19531
19532         [BZ #6959]
19533         * timezone/Makefile: Don't install timezone files, just the programs
19534         and scripts.
19535
19536 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
19537
19538         * nss/databases.def: Add missing gshadow entry.
19539
19540         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
19541
19542 2012-03-06  Marek Polacek  <polacek@redhat.com>
19543
19544         [BZ #13726]
19545         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
19546         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
19547         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
19548         * stdio-common/tst-long-dbl-fphex.c: New file.
19549
19550 2012-03-06  David S. Miller  <davem@davemloft.net>
19551
19552         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
19553         (set_obp_int): New function.
19554         (get_obp_int): New function.
19555         (__get_clockfreq_via_dev_openprom): Likewise.
19556         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
19557         Avoid unused variable warnings on 'val' and use builtin_expect.
19558         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
19559         __builtin_expect.
19560         (INLINE_CLONE_SYSCALL): Likewise.
19561
19562 2012-03-05  David S. Miller  <davem@davemloft.net>
19563
19564         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19565
19566 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
19567
19568         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19569
19570         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
19571         only for |x| >= 40.
19572         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
19573
19574 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
19575
19576         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
19577         Replace gettimeofday with __vdso_gettimeofday.
19578
19579         * sysdeps/unix/sysv/linux/x86_64/init-first.c
19580         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
19581         __vdso_clock_gettime and __vdso_getcpu.
19582
19583         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
19584         time with __vdso_time.
19585
19586 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
19587
19588         * manual/lang.texi (size_t): Note types to which size_t may be
19589         equivalent with the GNU C Library, but do not describe when
19590         differences between them are significant.
19591
19592 2012-03-05  Andreas Jaeger  <aj@suse.de>
19593
19594         * sysdeps/i386/fpu/libm-test-ulps: Update.
19595
19596 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
19597
19598         [BZ #3976]
19599         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
19600         (__ieee754_pow): Save and restore rounding mode and use
19601         round-to-nearest for main computations.
19602         * math/libm-test.inc (pow_test_tonearest): New function.
19603         (pow_test_towardzero): Likewise.
19604         (pow_test_downward): Likewise.
19605         (pow_test_upward): Likewise.
19606         (main): Call the new functions.
19607         * sysdeps/i386/fpu/libm-test-ulps: Update.
19608         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19609
19610         [BZ #3976]
19611         * math/libm-test.inc (cosh_test_tonearest): New function.
19612         (cosh_test_towardzero): Likewise.
19613         (cosh_test_downward): Likewise.
19614         (cosh_test_upward): Likewise.
19615         (sinh_test_tonearest): Likewise.
19616         (sinh_test_towardzero): Likewise.
19617         (sinh_test_downward): Likewise.
19618         (sinh_test_upward): Likewise.
19619         (main): Call the new functions.
19620         * sysdeps/i386/fpu/libm-test-ulps: Update.
19621         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19622
19623 2012-03-05  Tom de Vries  <tom@codesourcery.com>
19624
19625         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
19626         default stack guard is set in last bytes.
19627         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
19628
19629 2012-03-05  Kees Cook  <keescook@chromium.org>
19630
19631         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
19632
19633         [BZ #13656]
19634         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
19635         possibly allocate from heap instead of stack.
19636         * stdio-common/bug-vfprintf-nargs.c: New file.
19637         * stdio-common/Makefile (tests): Add nargs overflow test.
19638
19639 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
19640
19641         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19642
19643 2012-03-03  Marek Polacek  <polacek@redhat.com>
19644
19645         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
19646         * math/math_private.h: Likewise.
19647         * stdlib/tst-strtod.c: Likewise.
19648         * sysdeps/i386/i486/bits/atomic.h: Likewise.
19649         * sysdeps/x86_64/bits/atomic.h: Likewise.
19650
19651 2012-03-02  David S. Miller  <davem@davemloft.net>
19652
19653         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
19654         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
19655         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
19656         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
19657         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
19658         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
19659         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
19660         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
19661
19662 2012-03-02  Roland McGrath  <roland@hack.frob.com>
19663
19664         [BZ #13792]
19665         * manual/examples/README: New file, says the example source files
19666         can be used under GPL>=2.
19667         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
19668         line containing just "*/".
19669         * manual/examples/add.c: Add copyright header (GPL>=2).
19670         * manual/examples/argp-ex1.c: Likewise.
19671         * manual/examples/argp-ex2.c: Likewise.
19672         * manual/examples/argp-ex3.c: Likewise.
19673         * manual/examples/argp-ex4.c: Likewise.
19674         * manual/examples/atexit.c: Likewise.
19675         * manual/examples/db.c: Likewise.
19676         * manual/examples/dir.c: Likewise.
19677         * manual/examples/dir2.c: Likewise.
19678         * manual/examples/execinfo.c: Likewise.
19679         * manual/examples/filecli.c: Likewise.
19680         * manual/examples/filesrv.c: Likewise.
19681         * manual/examples/fmtmsgexpl.c: Likewise.
19682         * manual/examples/genpass.c: Likewise.
19683         * manual/examples/inetcli.c: Likewise.
19684         * manual/examples/inetsrv.c: Likewise.
19685         * manual/examples/isockad.c: Likewise.
19686         * manual/examples/longopt.c: Likewise.
19687         * manual/examples/memopen.c: Likewise.
19688         * manual/examples/memstrm.c: Likewise.
19689         * manual/examples/mkfsock.c: Likewise.
19690         * manual/examples/mkisock.c: Likewise.
19691         * manual/examples/mygetpass.c: Likewise.
19692         * manual/examples/pipe.c: Likewise.
19693         * manual/examples/popen.c: Likewise.
19694         * manual/examples/rprintf.c: Likewise.
19695         * manual/examples/search.c: Likewise.
19696         * manual/examples/select.c: Likewise.
19697         * manual/examples/setjmp.c: Likewise.
19698         * manual/examples/sigh1.c: Likewise.
19699         * manual/examples/sigusr.c: Likewise.
19700         * manual/examples/stpcpy.c: Likewise.
19701         * manual/examples/strdupa.c: Likewise.
19702         * manual/examples/strftim.c: Likewise.
19703         * manual/examples/strncat.c: Likewise.
19704         * manual/examples/subopt.c: Likewise.
19705         * manual/examples/swapcontext.c: Likewise.
19706         * manual/examples/termios.c: Likewise.
19707         * manual/examples/testopt.c: Likewise.
19708         * manual/examples/testpass.c: Likewise.
19709         * manual/examples/timeval_subtract.c: Likewise.
19710
19711         [BZ #13792]
19712         * manual/time.texi (Elapsed Time): Move timeval_subtract example
19713         function to ...
19714         * manual/timeval_subtract.c.texi: ... here, new file.
19715
19716 2012-03-02  David S. Miller  <davem@davemloft.net>
19717
19718         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
19719
19720 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
19721
19722         [BZ #3976]
19723         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
19724         (__sin): Save and restore rounding mode and use round-to-nearest
19725         for all computations.
19726         (__cos): Save and restore rounding mode and use round-to-nearest
19727         for all computations.
19728         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
19729         <fenv.h>.
19730         (tan): Save and restore rounding mode and use round-to-nearest for
19731         all computations.
19732         * math/libm-test.inc (cos_test_tonearest): New function.
19733         (cos_test_towardzero): Likewise.
19734         (cos_test_downward): Likewise.
19735         (cos_test_upward): Likewise.
19736         (sin_test_tonearest): Likewise.
19737         (sin_test_towardzero): Likewise.
19738         (sin_test_downward): Likewise.
19739         (sin_test_upward): Likewise.
19740         (tan_test_tonearest): Likewise.
19741         (tan_test_towardzero): Likewise.
19742         (tan_test_downward): Likewise.
19743         (tan_test_upward): Likewise.
19744         (main): Call the new functions.
19745         * sysdeps/i386/fpu/libm-test-ulps: Update.
19746         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19747
19748         [BZ #10135]
19749         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
19750         small n, then large n, before computing and testing k+n.
19751         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
19752         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
19753         Likewise.
19754         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
19755         Likewise.
19756         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
19757         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
19758         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
19759         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
19760         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
19761         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
19762         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
19763         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
19764         * math/libm-test.inc (scalbn_test): Add more tests.
19765         (scalbln_test): Likewise.
19766
19767         * manual/filesys.texi (mode_t): Describe constraints on size and
19768         signedness, not exact equivalence to a particular type.
19769         (ino_t): Likewise.
19770         (ino64_t): Likewise.
19771         (dev_t): Likewise.
19772         (nlink_t): Likewise.
19773         (blkcnt_t): Likewise.
19774         (blkcnt64_t): Likewise.
19775         * manual/llio.texi (off_t): Likewise.
19776
19777         [BZ #3976]
19778         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
19779         (__ieee754_exp): Save and restore rounding mode and use
19780         round-to-nearest for all computations.
19781         * math/libm-test.inc (exp_test_tonearest): New function.
19782         (exp_test_towardzero): Likewise.
19783         (exp_test_downward): Likewise.
19784         (exp_test_upward): Likewise.
19785         (main): Call the new functions.
19786         * sysdeps/i386/fpu/libm-test-ulps: Update.
19787         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19788
19789 2012-03-01  Chris Demetriou  <cgd@google.com>
19790
19791         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
19792         have predictable order.
19793
19794 2012-03-01  David S. Miller  <davem@davemloft.net>
19795
19796         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
19797
19798         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
19799         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
19800         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
19801         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
19802
19803         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
19804         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
19805         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
19806         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
19807         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
19808         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
19809         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
19810         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
19811         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
19812
19813         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19814
19815         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
19816         * sysdeps/sparc/fpu/libm-test-ulps: to here.
19817         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
19818
19819         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
19820         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
19821         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
19822         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
19823         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
19824         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
19825         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
19826         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
19827         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
19828         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
19829         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
19830         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
19831         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
19832         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
19833         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
19834         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
19835         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
19836         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
19837         * sysdeps/sparc/elf/configure: Regenerated.
19838
19839 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
19840
19841         * configure.in (AS, LD): Require binutils 2.20 or later.
19842         * configure: Regenerated.
19843         * manual/install.texi (Tools for Compilation): Give binutils 2.20
19844         as required minimum version.
19845         * INSTALL: Regenerated.
19846
19847         [BZ #2541]
19848         [BZ #4108]
19849         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
19850         before squaring exponent.
19851         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
19852         bottom long double and 27 bits of top long double before squaring
19853         exponent.
19854         * math/libm-test.inc (erfc_test): Add more tests.
19855         * sysdeps/i386/fpu/libm-test-ulps: Update.
19856         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
19857         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19858
19859 2012-03-01  Kai Tietz  <ktietz@redhat.com>
19860
19861         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
19862         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
19863         containing bit-fields.
19864         * soft-fp/extended.h (_FP_UNION_E): Likewise.
19865         * soft-fp/single.h (_FP_UNION_S): Likewise.
19866         * soft-fp/double.h (_FP_UNION_D): Likewise.
19867
19868 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
19869
19870         [BZ #13786]
19871         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
19872         not include ../strcmp.S.
19873         [USE_AS_STRNCASECMP_L]: Likewise.
19874         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
19875         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
19876         * sysdeps/i386/i686/multiarch/strncase_l-c.c
19877         (__strncasecmp_l_ia32): Define as alias to
19878         __strncasecmp_l_nonascii.
19879
19880         [BZ #5794]
19881         * math/libm-test.inc (expm1_test): Add test for bug 5794.
19882         * sysdeps/i386/fpu/libm-test-ulps: Update.
19883         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19884
19885         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
19886         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19887
19888 2012-02-29  Jeff Law  <law@redhat.com>
19889
19890         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
19891         out of bounds read.
19892
19893 2012-02-29  Marek Polacek  <polacek@redhat.com>
19894
19895         [BZ #13706]
19896         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
19897         * elf/Makefile: Add rules to run tst-unused-dep.out.
19898
19899 2012-02-28  David S. Miller  <davem@davemloft.net>
19900
19901         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
19902         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
19903         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
19904         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
19905         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
19906         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
19907
19908 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
19909
19910         * math/libm-test.inc (llround_test): Move one test from
19911         lround_test.  Use TEST_f_L in moved test.
19912         (lround_test): Move misplaced test to llround_test.  Add testcase
19913         from bug 2561.
19914
19915 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
19916
19917         * sysdeps/x86_64/fpu/e_expf.S: New file.
19918         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
19919
19920 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
19921
19922         [BZ #13637]
19923         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
19924         of remain_len that may cause incomplete multi-byte character and
19925         false match.
19926         * posix/bug-regex33.c: New file.
19927         * posix/Makefile (tests): Add bug-regex33.
19928
19929 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
19930
19931         * manual/macros.texi: New file.
19932         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
19933         * manual/libc.texinfo: Include macros.texi.
19934         * manual/creatute.texi: Likewise.
19935         * manual/install.texi: Likewise.
19936         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
19937         @glibcadj{} in references to the GNU C Library.
19938         * manual/charset.texi: Likewise.
19939         * manual/conf.texi: Likewise.
19940         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
19941         when not using those macros.
19942         * manual/creature.texi: Likewise.
19943         * manual/crypt.texi: Likewise.
19944         * manual/errno.texi: Likewise.
19945         * manual/filesys.texi: Likewise.
19946         * manual/header.texi: Likewise.
19947         * manual/install.texi: Likewise.
19948         * manual/intro.texi: Likewise.
19949         * manual/io.texi: Likewise.
19950         * manual/job.texi: Likewise.
19951         * manual/lang.texi: Likewise.
19952         * manual/libc.texiinfo: Likewise.
19953         * manual/llio.texi: Likewise.
19954         * manual/locale.texi: Likewise.
19955         * manual/maint.texi: Likewise.
19956         * manual/math.texi: Likewise.
19957         * manual/memory.texi: Likewise.
19958         * manual/message.texi: Likewise.
19959         * manual/nss.texi: Likewise.
19960         * manual/pattern.texi: Likewise.
19961         * manual/process.texi: Likewise.
19962         * manual/resource.texi: Likewise.
19963         * manual/search.texi: Likewise.
19964         * manual/setjmp.texi: Likewise.
19965         * manual/signal.texi: Likewise.
19966         * manual/socket.texi: Likewise.
19967         * manual/startup.texi: Likewise.
19968         * manual/stdio.texi: Likewise.
19969         * manual/string.texi: Likewise.
19970         * manual/sysinfo.texi: Likewise.
19971         * manual/syslog.texi: Likewise.
19972         * manual/terminal.texi: Likewise.
19973         * manual/time.texi: Likewise.
19974         * manual/users.texi: Likewise.
19975         * INSTALL: Regenerated.
19976         * NOTES: Regenerated.
19977         * sysdeps/gnu/errlist.c: Regenerated.
19978
19979 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
19980
19981         * include/dirent.h: Include <dirstream.h> before
19982         <dirent/dirent.h>.
19983
19984 2012-02-28  David S. Miller  <davem@davemloft.net>
19985
19986         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
19987         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
19988         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
19989         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
19990
19991 2012-02-27  David S. Miller  <davem@davemloft.net>
19992
19993         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
19994         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
19995         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
19996         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
19997
19998         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
19999         frame pointer instead of stack pointer relative arg slot.
20000         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
20001         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
20002         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
20003
20004 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
20005
20006         [BZ #3992]
20007         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
20008
20009 2012-02-27  David S. Miller  <davem@davemloft.net>
20010
20011         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
20012         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
20013         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
20014         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
20015         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
20016         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
20017         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
20018         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
20019
20020 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
20021
20022         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
20023         later.  Allow versions 5-9.
20024         * configure: Regenerated.
20025         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
20026         required minimum version and 4.6 as recommended version.  Do not
20027         mention bugs in GCC 2.7 and 2.8.
20028         * INSTALL: Regenerated.
20029
20030 2012-02-27  David S. Miller  <davem@davemloft.net>
20031
20032         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
20033         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
20034         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
20035         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
20036         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
20037         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
20038         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
20039         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
20040
20041         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
20042         manipulate bits before adding and subtracting TWO112[sx].
20043         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
20044
20045 2012-02-27  Roland McGrath  <roland@hack.frob.com>
20046
20047         [BZ #13775]
20048         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
20049         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
20050         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
20051         being in POSIX, because they are in 1003.1-2008.
20052
20053         * rt/tst-aio.c: Include <fcntl.h>.
20054         * rt/tst-aio7.c: Likewise.
20055         * rt/tst-aio64.c: Likewise.
20056
20057         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
20058
20059 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
20060
20061         * manual/install.texi (--with-headers): Describe headers as
20062         interface headers, not private headers.
20063         (Specific advice for GNU/Linux systems): Describe use of headers
20064         from "make headers_install", not private headers from older
20065         kernels.
20066         * INSTALL: Regenerated.
20067         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
20068         Change to 2.6.19.
20069         * sysdeps/unix/sysv/linux/configure: Regenerated.
20070
20071         * manual/llio.texi (fclean): Remove documentation.
20072
20073         * manual/Makefile (libc-texi-generated): New variable.  Include
20074         version.texi.
20075         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
20076         $(libc-texi-generated), not duplicated list of files.
20077         (version.texi, stamp-version): New rules.
20078         (realclean): Remove $(libc-texi-generated), not individual files
20079         from that list.  Do not remove dir-add.texinfo.
20080         * manual/libc.texinfo: Comment out uses of edition numbers and
20081         references to printed manual.  Remove last-updated dates.
20082         (EDITION): Comment out.
20083         (ISBN): Likewise.
20084         (VERSION, UPDATED): Remove.
20085         (version.texi): Include.
20086
20087 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
20088
20089         * sysdeps/posix/spawni.c: Include <signal.h>.
20090         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
20091         * sysdeps/pthread/aio_fsync.c: Likewise.
20092
20093 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
20094
20095         * conform/Makefile (tests): Run only when not cross-compiling and
20096         when fast-check is not defined.
20097
20098         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
20099         * conform/data/limits.h-data: Fixes for POSIX2008.
20100         * conform/run-conformtest.sh: Run all tests.
20101         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
20102         headers.
20103         * include/bits/dlfcn.h: Likewise.
20104         * include/langinfo.h: Likewise.
20105         * include/monetary.h: Likewise.
20106         * include/sys/poll.h: Likewise.
20107
20108         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
20109         for __USE_GNU.
20110         * posix/spawn.h: Define __need_sigset_t.
20111         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
20112         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
20113         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
20114         to get sigevent_t only.
20115         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
20116         only for __USE_GNU.
20117         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
20118         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
20119         process_vm_writev only for __USE_GNU.
20120         * termios/termios.h: Declare tcgetsid also for POSIX2008.
20121
20122         * conform/Makefile: For now ignore errors from run-conformtest.
20123         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
20124         POSIX to avoid namespace pollution.  Don't prepend headers.
20125         * conform/data/aio.h-data: Fixes for POSIX testing.
20126         * conform/data/fcntl.h-data: Likewise.
20127         * conform/data/glob.h-data: Likewise.
20128         * conform/data/grp.h-data: Likewise.
20129         * conform/data/pthread.h-data: Likewise.
20130         * conform/data/pwd.h-data: Likewise.
20131         * conform/data/signal.h-data: Likewise.
20132         * conform/data/spawn.h-data: Likewise.
20133         * conform/data/stdio.h-data: Likewise.
20134         * conform/data/stdlib.h-data: Likewise.
20135         * conform/data/stropts.h-data: Likewise.
20136         * conform/data/sys/mman.h-data: Likewise.
20137         * conform/data/sys/stat.h-data: Likewise.
20138         * conform/data/sys/types.h-data: Likewise.
20139         * conform/data/sys/wait.h-data: Likewise.
20140         * conform/data/time.h-data: Likewise.
20141         * conform/data/unistd.h-data: Likewise.
20142         * conform/data/utime.h-data: Likewise.
20143
20144         * io/sys/stat.h: fchmod was always in POSIX.
20145         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
20146         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
20147         * rt/aio.h: Define __need_timespec before including <time.h>.
20148         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
20149         struct.  Add forward declaration of pthread_attr_t and use it in
20150         sigevent.
20151         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
20152         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
20153         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
20154         always remove CLK_TCK definition.
20155
20156 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
20157
20158         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
20159
20160 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
20161
20162         * conform/run-conformtest.sh: New file.
20163         * conform/Makefile: Run run-conformtest for tests.
20164         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
20165         support.
20166
20167         * conform/data/uchar.h-data: New file.
20168         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
20169         * conform/data/arpa/inet.h-data: Likewise.
20170         * conform/data/assert.h-data: Likewise.
20171         * conform/data/complex.h-data: Likewise.
20172         * conform/data/cpio.h-data: Likewise.
20173         * conform/data/ctype.h-data: Likewise.
20174         * conform/data/dirent.h-data: Likewise.
20175         * conform/data/dlfcn.h-data: Likewise.
20176         * conform/data/errno.h-data: Likewise.
20177         * conform/data/fcntl.h-data: Likewise.
20178         * conform/data/float.h-data: Likewise.
20179         * conform/data/fmtmsg.h-data: Likewise.
20180         * conform/data/fnmatch.h-data: Likewise.
20181         * conform/data/ftw.h-data: Likewise.
20182         * conform/data/glob.h-data: Likewise.
20183         * conform/data/grp.h-data: Likewise.
20184         * conform/data/iconv.h-data: Likewise.
20185         * conform/data/inttypes.h-data: Likewise.
20186         * conform/data/langinfo.h-data: Likewise.
20187         * conform/data/libgen.h-data: Likewise.
20188         * conform/data/limits.h-data: Likewise.
20189         * conform/data/locale.h-data: Likewise.
20190         * conform/data/math.h-data: Likewise.
20191         * conform/data/monetary.h-data: Likewise.
20192         * conform/data/mqueue.h-data: Likewise.
20193         * conform/data/ndbm.h-data: Likewise.
20194         * conform/data/net/if.h-data: Likewise.
20195         * conform/data/netdb.h-data: Likewise.
20196         * conform/data/netinet/in.h-data: Likewise.
20197         * conform/data/nl_types.h-data: Likewise.
20198         * conform/data/poll.h-data: Likewise.
20199         * conform/data/pthread.h-data: Likewise.
20200         * conform/data/pwd.h-data: Likewise.
20201         * conform/data/regex.h-data: Likewise.
20202         * conform/data/sched.h-data: Likewise.
20203         * conform/data/search.h-data: Likewise.
20204         * conform/data/semaphore.h-data: Likewise.
20205         * conform/data/setjmp.h-data: Likewise.
20206         * conform/data/signal.h-data: Likewise.
20207         * conform/data/spawn.h-data: Likewise.
20208         * conform/data/stdarg.h-data: Likewise.
20209         * conform/data/stdio.h-data: Likewise.
20210         * conform/data/stdlib.h-data: Likewise.
20211         * conform/data/string.h-data: Likewise.
20212         * conform/data/strings.h-data: Likewise.
20213         * conform/data/stropts.h-data: Likewise.
20214         * conform/data/sys/ipc.h-data: Likewise.
20215         * conform/data/sys/mman.h-data: Likewise.
20216         * conform/data/sys/msg.h-data: Likewise.
20217         * conform/data/sys/resource.h-data: Likewise.
20218         * conform/data/sys/select.h-data: Likewise.
20219         * conform/data/sys/sem.h-data: Likewise.
20220         * conform/data/sys/shm.h-data: Likewise.
20221         * conform/data/sys/socket.h-data: Likewise.
20222         * conform/data/sys/stat.h-data: Likewise.
20223         * conform/data/sys/statvfs.h-data: Likewise.
20224         * conform/data/sys/time.h-data: Likewise.
20225         * conform/data/sys/timeb.h-data: Likewise.
20226         * conform/data/sys/times.h-data: Likewise.
20227         * conform/data/sys/types.h-data: Likewise.
20228         * conform/data/sys/uio.h-data: Likewise.
20229         * conform/data/sys/un.h-data: Likewise.
20230         * conform/data/sys/utsname.h-data: Likewise.
20231         * conform/data/sys/wait.h-data: Likewise.
20232         * conform/data/syslog.h-data: Likewise.
20233         * conform/data/tar.h-data: Likewise.
20234         * conform/data/termios.h-data: Likewise.
20235         * conform/data/utime.h-data: Likewise.
20236         * conform/data/utmpx.h-data: Likewise.
20237         * conform/data/varargs.h-data: Likewise.
20238         * conform/data/wchar.h-data: Likewise.
20239         * conform/data/wctype.h-data: Likewise.
20240         * conform/data/wordexp.h-data: Likewise.
20241
20242         * include/stropts.h: New file.
20243         * include/uchar.h: New file.
20244         * include/aio.h: Changes to allow conformtest.pl to use the headers.
20245         * include/assert.h: Likewise.
20246         * include/ctype.h: Likewise.
20247         * include/dirent.h: Likewise.
20248         * include/dlfcn.h: Likewise.
20249         * include/fcntl.h: Likewise.
20250         * include/fnmatch.h: Likewise.
20251         * include/glob.h: Likewise.
20252         * include/grp.h: Likewise.
20253         * include/libio.h: Likewise.
20254         * include/locale.h: Likewise.
20255         * include/math.h: Likewise.
20256         * include/net/if.h: Likewise.
20257         * include/netdb.h: Likewise.
20258         * include/netinet/in.h: Likewise.
20259         * include/pthread.h: Likewise.
20260         * include/pwd.h: Likewise.
20261         * include/regex.h: Likewise.
20262         * include/sched.h: Likewise.
20263         * include/search.h: Likewise.
20264         * include/setjmp.h: Likewise.
20265         * include/signal.h: Likewise.
20266         * include/stdio.h: Likewise.
20267         * include/stdlib.h: Likewise.
20268         * include/string.h: Likewise.
20269         * include/sys/cdefs.h: Likewise.
20270         * include/sys/mman.h: Likewise.
20271         * include/sys/msg.h: Likewise.
20272         * include/sys/resource.h: Likewise.
20273         * include/sys/select.h: Likewise.
20274         * include/sys/socket.h: Likewise.
20275         * include/sys/stat.h: Likewise.
20276         * include/sys/statvfs.h: Likewise.
20277         * include/sys/time.h: Likewise.
20278         * include/sys/times.h: Likewise.
20279         * include/sys/uio.h: Likewise.
20280         * include/sys/utsname.h: Likewise.
20281         * include/sys/wait.h: Likewise.
20282         * include/termios.h: Likewise.
20283         * include/time.h: Likewise.
20284         * include/ulimit.h: Likewise.
20285         * include/unistd.h: Likewise.
20286         * include/utime.h: Likewise.
20287         * include/wchar.h: Likewise.
20288         * include/wctype.h: Likewise.
20289         * include/wordexp.h: Likewise.
20290
20291         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
20292
20293         * time/time.h: TIME_UTC must be a macro.
20294         Make timespec_get available for ISO C11 only as well.
20295
20296 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
20297
20298         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
20299         Reported by Peng Haitao <penght@cn.fujitsu.com>.
20300
20301 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
20302
20303         * configure.in: Use -o not -a in test for unsupported multi-arch.
20304
20305 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
20306
20307         * manual/texinfo.tex: Update to version 2012-01-19.16.
20308
20309 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
20310
20311         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
20312
20313 2012-02-24  Roland McGrath  <roland@hack.frob.com>
20314
20315         [BZ #13738]
20316         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
20317         * manual/fdl-1.3.texi: New file.
20318         * manual/fdl-1.1.texi: File removed.
20319
20320         [BZ #13738]
20321         * manual/libc.texinfo (FDL_VERSION): New @set.
20322         Use it for mention of FDL in cover text.
20323         (Documentation License): Use it in @include file name.
20324
20325 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
20326             Roland McGrath  <roland@hack.frob.com>
20327
20328         [BZ #5461]
20329         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
20330         not LONG_LONG_MAX and LONG_LONG_MIN.
20331         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
20332         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
20333         name.
20334         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
20335
20336 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
20337
20338         [BZ #2547]
20339         [BZ #11365]
20340         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
20341         manipulate bits before adding and subtracting TWO23[sx].
20342         * math/libm-test.inc (nearbyint_test): Add more tests.
20343
20344 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
20345
20346         [BZ #2548]
20347         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
20348         bits before adding and subtracting TWO23[sx].
20349         * math/libm-test.inc (rint_test): Add more tests.
20350         (rint_test_tonearest): Likewise.
20351         (rint_test_towardzero): Likewise.
20352         (rint_test_downward): Likewise.
20353         (rint_test_upward: Likewise.
20354
20355 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
20356
20357         [BZ #10110]
20358         * include/stdc-predef.h: New file.  Extracted from features.h.
20359         * include/features.h: Include stdc-predef.h.
20360         * Makefile (headers): Add stdc-predef.h.
20361         * CONFORMANCE (Compiler limitations): Update.
20362
20363 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
20364
20365         * manual/libc.texinfo (VERSION, UPDATED): Revert.
20366
20367 2012-02-21  David S. Miller  <davem@davemloft.net>
20368
20369         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
20370         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
20371
20372 2012-02-20  David S. Miller  <davem@davemloft.net>
20373
20374         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
20375         using a normal save/restore sequence, rather than allocating a
20376         dummy stack frame just to store a frame pointer and restore.
20377         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
20378
20379 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
20380
20381         * manual/install.texi: Fix stray word in line-wrapped comment.
20382
20383 2012-02-20  David S. Miller  <davem@davemloft.net>
20384
20385         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
20386         both binutils and gcc support GOTDATA.
20387
20388         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
20389         "rd %pc" in the PIC register setup sequences.
20390
20391         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
20392         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
20393         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
20394         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
20395         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
20396         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
20397         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
20398         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
20399         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
20400         (SYSCALL_ERROR_HANDLER): Likewise.
20401         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
20402         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
20403         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
20404         (SYSCALL_ERROR_HANDLER): Likewise.
20405
20406         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
20407         (HAVE_GCC_GOTDATA): New.
20408         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
20409         relocation support in both binutils and gcc.
20410         * sysdeps/sparc/elf/configure: Regenerate.
20411
20412         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
20413         * sysdeps/sparc/sparc32/elf/configure: Delete.
20414         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
20415         * sysdeps/sparc/sparc64/elf/configure: Delete.
20416         * sysdeps/sparc/elf/configure.in: New file.
20417         * sysdeps/sparc/elf/configure: Generate.
20418
20419         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
20420         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
20421         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
20422         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
20423         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
20424
20425 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
20426
20427         * manual/install.texi: Do not mention specific glibc version
20428         numbers.
20429         * manual/libc.texinfo (VERSION, UPDATED): Update.
20430         (@copying): Use @copyright{} and range of years.
20431
20432 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
20433
20434         [BZ #13695]
20435         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
20436         [crti.S not in sysdirs] (generated): Do not append.
20437         [crti.S not in sysdirs] (omit-deps): Likewise.
20438         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
20439         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
20440         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
20441         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
20442         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
20443         Likewise.
20444         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
20445         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
20446         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
20447         * csu/defs.awk: Remove file.
20448         * sysdeps/generic/initfini.c: Likewise.
20449         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
20450         variable.
20451         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
20452         Likewise.
20453
20454 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
20455
20456         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
20457         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
20458         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
20459         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
20460         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
20461         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
20462         <bits/epoll.h>.
20463         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
20464         (__EPOLL_PACKED): Define to empty if not defined by
20465         <bits/epoll.h>.
20466         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
20467         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20468         bits/epoll.h.
20469
20470 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
20471
20472         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
20473         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
20474         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
20475         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
20476         <bits/timerfd.h>.
20477         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
20478         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20479         bits/timerfd.h.
20480
20481 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
20482
20483         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
20484         in C locale.
20485         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
20486         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
20487         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
20488         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20489
20490 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
20491
20492         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
20493         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
20494
20495 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
20496
20497         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
20498         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
20499         defined.
20500         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
20501         Likewise.
20502         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
20503         entry for 2.16.
20504
20505 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
20506
20507         * math/w_acos.c: Use non-signaling floating-point comparisons.
20508         * math/w_acosf.c: Likewise.
20509         * math/w_acosh.c: Likewise.
20510         * math/w_acoshf.c: Likewise.
20511         * math/w_acoshl.c: Likewise.
20512         * math/w_acosl.c: Likewise.
20513         * math/w_asin.c: Likewise.
20514         * math/w_asinf.c: Likewise.
20515         * math/w_asinl.c: Likewise.
20516         * math/w_atanh.c: Likewise.
20517         * math/w_atanhf.c: Likewise.
20518         * math/w_atanhl.c: Likewise.
20519         * math/w_exp2.c: Likewise.
20520         * math/w_exp2f.c: Likewise.
20521         * math/w_exp2l.c: Likewise.
20522         * math/w_j0.c: Likewise.
20523         * math/w_j0f.c: Likewise.
20524         * math/w_j0l.c: Likewise.
20525         * math/w_j1.c: Likewise.
20526         * math/w_j1f.c: Likewise.
20527         * math/w_j1l.c: Likewise.
20528         * math/w_jn.c: Likewise.
20529         * math/w_jnf.c: Likewise.
20530         * math/w_log.c: Likewise.
20531         * math/w_log10.c: Likewise.
20532         * math/w_log10f.c: Likewise.
20533         * math/w_log10l.c: Likewise.
20534         * math/w_log2.c: Likewise.
20535         * math/w_log2f.c: Likewise.
20536         * math/w_log2l.c: Likewise.
20537         * math/w_logf.c: Likewise.
20538         * math/w_logl.c: Likewise.
20539         * math/w_sqrt.c: Likewise.
20540         * math/w_sqrtf.c: Likewise.
20541         * math/w_sqrtl.c: Likewise.
20542         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
20543         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
20544         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
20545         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
20546         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
20547
20548 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
20549
20550         [BZ #9739]
20551         * manual/string.texi (strnlen): Use correct parameter name in
20552         equivalent expression.
20553
20554 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
20555
20556         [BZ #11174]
20557         * manual/users.texi (seteuid): Consistently use neweuid for
20558         argument name.
20559
20560 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
20561
20562         [BZ #13704]
20563         * manual/nss.texi (Services in the NSS configuration): Correct
20564         list of services in example configuration file.
20565
20566 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
20567
20568         [BZ #11322]
20569         * manual/arith.texi: Remove statements about negative zero
20570         behaving identically to zero.
20571
20572 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
20573
20574         [BZ #5993]
20575         * manual/install.texi: Do not document upgrading from libc5.
20576
20577 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
20578
20579         [BZ #4596]
20580         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
20581
20582 2012-02-18  David S. Miller  <davem@davemloft.net>
20583
20584         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
20585         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
20586         %o7 across the call.
20587         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
20588         instead.
20589         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
20590         SETUP_PIC_REG_LEAF.
20591         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
20592         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
20593         * sysdeps/sparc/crtn.S: Likewise.
20594
20595 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
20596
20597         * aout/Makefile: Remove.
20598
20599 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
20600
20601         [BZ #13058]
20602         * manual/examples/argp-ex1.c (main): Format definition in GNU
20603         style.
20604         * manual/examples/argp-ex2.c (main): Likewise.
20605         * manual/examples/argp-ex3.c (main): Likewise.
20606         * manual/examples/argp-ex4.c (main): Likewise.
20607         * manual/examples/longopt.c (main): Use new-style prototype
20608         definition.
20609         * manual/examples/strncat.c (main): Specify return type and use
20610         (void) for arguments.
20611         * manual/examples/subopt.c (main): Use char **argv argument.
20612
20613 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
20614
20615         [BZ #5077]
20616         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
20617         rounding modes.
20618
20619 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
20620
20621         [BZ #6907]
20622         * manual/string.texi (strchr): Change when strchrnul is
20623         recommended.
20624
20625 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
20626
20627         [BZ #174]
20628         * manual/locale.texi (setlocale): Document LOCPATH.
20629
20630 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
20631
20632         [BZ #10210]
20633         * manual/process.texi (execle): Move @dots{} before last argument.
20634
20635 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
20636
20637         [BZ #12047]
20638         * manual/charset.texi (Generic Charset Conversion): Fix typo
20639         (LC_TYPE -> LC_CTYPE).
20640
20641 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
20642
20643         [BZ #5805]
20644         * manual/arith.texi (scalbn): Use @var{} on parameter names.
20645         (scalbnf): Likewise.
20646         (scalbnl): Likewise.
20647         (scalbln): Likewise.
20648         (scalblnf): Likewise.
20649         (scalblnl): Likewise.
20650         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
20651         (vwarnx): Likewise.
20652         (verr): Likewise.
20653         (verrx): Likewise.
20654         * manual/filesys.texi (telldir): Use braces around return type.
20655         * manual/llio.texi (mmap): Add space after comma.
20656         (mmap64): Likewise.
20657         * manual/math.texi (jn): Use @var{} on parameter names.
20658         (jnf): Likewise.
20659         (jnl): Likewise.
20660         (yn): Likewise.
20661         (ynf): Likewise.
20662         (ynl): Likewise.
20663         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
20664         line.
20665         * manual/resource.texi (ulimit): Use @dots{} instead of literal
20666         "...".
20667         (sched_get_priority_min): Remove semicolon on @deftypefun line.
20668         (sched_get_priority_max): Likewise.
20669         * manual/signal.texi (sigvec): Add space after comma.
20670         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
20671         names.
20672         (if_indextoname): Likewise.
20673         (if_freenameindex): Likewise.
20674         (sendto): Use ',' instead of '.' in prototype.
20675         * manual/startup.texi (syscall): Use @dots{} instead of literal
20676         "...".
20677         * manual/stdio.texi (__fpending): Separate initial words of
20678         paragraph from @deftypefun line.
20679         * manual/syslog.texi (syslog): Use @dots{} instead of literal
20680         "...".
20681         (vsyslog): Use @var{} on parameter names.
20682         * manual/terminal.texi (stty): Use @var{} on parameter names.
20683         * manual/users.texi (getutmp): Use @var{} on parameter names.
20684         (getutmpx): Likewise.
20685
20686 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
20687
20688         [BZ #6884]
20689         * manual/stdio.texi (fopen): Fix typos in description of
20690         ",ccs=STRING".
20691
20692 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
20693
20694         [BZ #4026]
20695         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
20696         get clock_id definition.
20697
20698 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
20699
20700         [BZ #4822]
20701         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
20702         (madvise): Cast every argument to void on its own.
20703
20704 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
20705
20706         [BZ #9902]
20707         * manual/startup.texi (Exit Status): Fix typo.
20708
20709 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
20710
20711         [BZ #10140]
20712         * manual/examples/argp-ex1.c: Include <stdlib.h>.
20713         * manual/examples/argp-ex2.c: Likewise.
20714         * manual/examples/argp-ex3.c: Likewise.
20715
20716 2012-02-16  Richard Henderson  <rth@redhat.com>
20717
20718         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
20719         * sysdeps/s390/s390-32/initfini.c: Remove.
20720         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
20721         * sysdeps/s390/s390-64/initfini.c: Remove.
20722
20723 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
20724
20725         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
20726         compiler output for sysdeps/generic/initfini.c.
20727         * sysdeps/sh/elf/initfini.c: Remove file.
20728
20729 2012-02-16  David S. Miller  <davem@davemloft.net>
20730
20731         [BZ #11494]
20732         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
20733
20734         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
20735         * sysdeps/sparc/crti.S: New file.
20736         * sysdeps/sparc/crtn.S: New file.
20737         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
20738         * sysdeps/sparc/sparc64/Makefile: Likewise.
20739
20740 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
20741
20742         [BZ #3335]
20743         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
20744
20745 2012-02-15  Roland McGrath  <roland@hack.frob.com>
20746
20747         [BZ #4822]
20748         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
20749
20750         * mach/devstream.c (cookie_io_functions_t): Macro removed.
20751         (write, read, close): Likewise.
20752         Patch by Aurelien Jarno <aurelien@aurel32.net>.
20753
20754 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
20755
20756         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
20757         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
20758         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
20759         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
20760         <bits/signalfd.h>.
20761         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
20762         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20763         bits/signalfd.h.
20764
20765 2012-02-14  Marek Polacek  <polacek@redhat.com>
20766
20767         * sysdeps/x86_64/crti.S: New file.
20768         * sysdeps/x86_64/crtn.S: New file.
20769         * sysdeps/x86_64/elf/initfini.c: Remove file.
20770
20771 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
20772
20773         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
20774         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
20775         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
20776         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
20777         <bits/inotify.h>.
20778         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
20779         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20780         bits/inotify.h.
20781
20782 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
20783
20784         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
20785         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
20786         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
20787         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
20788         <bits/eventfd.h>.
20789         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
20790         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20791         bits/eventfd.h.
20792
20793 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
20794
20795         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
20796         __feraiseexcept instead of feraiseexcept.
20797
20798         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
20799         nanosleep invocations.
20800         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
20801         strings, and add error checking for a nanosleep invocations.
20802
20803 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
20804
20805         Replace FSF snail mail address with URLs, as per GNU coding standards.
20806         Most of the snail mail addresses were wrong anyway, and omitting
20807         them makes the source code easier to maintain.  Almost all of the
20808         changes are to license notices and to locale LC_IDENTIFICATION
20809         addresses, except for this one:
20810         * manual/libc.texinfo: In "Published by", give the FSF's URL,
20811         not its snail mail address.
20812
20813 2012-02-09  Richard Henderson  <rth@twiddle.net>
20814
20815         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
20816         of kernel-features.h.
20817
20818         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
20819
20820 2012-02-08  Marek Polacek  <polacek@redhat.com>
20821
20822         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
20823         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
20824         * sysdeps/gnu/_G_config.h: Likewise.
20825         * sysdeps/generic/_G_config.h: Likewise.
20826
20827 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
20828
20829         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
20830         tests.
20831         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20832
20833         * sysdeps/powerpc/powerpc32/crti.S: New file.
20834         * sysdeps/powerpc/powerpc32/crtn.S: New file.
20835         * sysdeps/powerpc/powerpc64/crti.S: New file.
20836         * sysdeps/powerpc/powerpc64/crtn.S: New file.
20837
20838         * Makeconfig (have-initfini): Don't set.
20839         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
20840         * configure.in (nopic_initfini): Don't substitute.
20841         * config.h.in (HAVE_INITFINI): Don't #undef.
20842         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
20843         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
20844
20845 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
20846
20847         Support crti.S and crtn.S provided directly by architectures.
20848         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
20849         [crti.S in sysdirs] (omit-deps): Likewise.
20850         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
20851         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
20852         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
20853         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
20854         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
20855         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
20856         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
20857         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
20858         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
20859         compiler output for sysdeps/generic/initfini.c.
20860         * sysdeps/i386/elf/Makefile: Remove file.
20861         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
20862
20863 2012-02-07  Marek Polacek  <polacek@redhat.com>
20864
20865         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
20866         * sysdeps/gnu/_G_config.h: Likewise.
20867         * sysdeps/mach/hurd/_G_config.h: Likewise.
20868
20869 2012-02-07  Marek Polacek  <polacek@redhat.com>
20870
20871         * math/Makefile (tests): Add tst-CMPLX2.
20872         * math/tst-CMPLX2.c: New file.
20873
20874 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
20875
20876         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
20877
20878         * math/libm-test.inc (jn_test): Add missing L suffix.
20879
20880 2012-02-06  Marek Polacek  <polacek@redhat.com>
20881
20882         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
20883         * sysdeps/i386/fpu/e_powf.S: Likewise.
20884         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
20885         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
20886         * sysdeps/i386/fpu/e_acosh.S: Likewise.
20887         * sysdeps/i386/fpu/e_pow.S: Likewise.
20888         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
20889         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
20890         * sysdeps/i386/fpu/s_expm1.S: Likewise.
20891         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
20892         * sysdeps/i386/fpu/e_log2.S: Likewise.
20893         * sysdeps/i386/fpu/e_log2l.S: Likewise.
20894         * sysdeps/i386/fpu/e_scalb.S: Likewise.
20895         * sysdeps/i386/fpu/e_powl.S: Likewise.
20896         * sysdeps/i386/fpu/s_log1p.S: Likewise.
20897         * sysdeps/i386/fpu/e_log10f.S: Likewise.
20898         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
20899         * sysdeps/i386/fpu/e_logl.S: Likewise.
20900         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
20901         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
20902         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
20903         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
20904         * sysdeps/i386/fpu/e_log2f.S: Likewise.
20905         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
20906         * sysdeps/i386/fpu/e_log.S: Likewise.
20907         * sysdeps/i386/fpu/s_cexp.S: Likewise.
20908         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
20909         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
20910         * sysdeps/i386/fpu/e_logf.S: Likewise.
20911         * sysdeps/i386/fpu/e_log10l.S: Likewise.
20912         * sysdeps/i386/fpu/e_atanh.S: Likewise.
20913         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
20914         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
20915         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
20916         * sysdeps/i386/fpu/e_log10.S: Likewise.
20917         * sysdeps/i386/fpu/s_frexp.S: Likewise.
20918         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
20919         * sysdeps/i386/fpu/s_asinh.S: Likewise.
20920         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
20921         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
20922         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
20923         * sysdeps/i386/asm-syntax.h: Likewise.
20924         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
20925         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
20926         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
20927         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
20928         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
20929         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
20930         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
20931         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
20932         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
20933         * sysdeps/powerpc/sysdep.h: Likewise.
20934         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
20935         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
20936
20937 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
20938
20939         [BZ #411]
20940         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
20941
20942 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
20943
20944         * sysdeps/i386/sysdep.h: Include <features.h>.
20945         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
20946         version.
20947
20948 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
20949
20950         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
20951         Define.
20952         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
20953         LOAD_PIC_REG_STR.
20954
20955 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
20956
20957         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
20958         (SETUP_PIC_REG): Use GET_PC_THUNK.
20959         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
20960         macro.
20961
20962 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
20963
20964         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
20965         for non-PIC compilation.
20966         (SETUP_PIC_REG): Add .p2align directive.
20967         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
20968         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
20969         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
20970         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
20971         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
20972         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
20973         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
20974         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
20975         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
20976         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
20977         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
20978         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
20979         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
20980         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
20981         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
20982         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
20983         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
20984         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
20985         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
20986         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
20987         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
20988         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
20989         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
20990         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
20991         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
20992         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
20993         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
20994         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
20995         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
20996         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
20997         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
20998         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
20999         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
21000         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
21001         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
21002         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
21003         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
21004         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
21005         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
21006         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
21007         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
21008
21009 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
21010
21011         * math/tst-CMPLX.c: Include <stdio.h>.
21012
21013 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
21014
21015         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
21016         float.
21017         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
21018         * sysdeps/sparc/bits/mathdef.h: Likewise.
21019
21020 2012-01-31  Marek Polacek  <polacek@redhat.com>
21021
21022         * libio/libio.h: Don't define _PARAMS.
21023         * locale/programs/config.h: Don't define PARAMS.
21024         * stdlib/strtol_l.c: Likewise.
21025         (__strtol_l): Remove PARAMS from the prototype.
21026
21027 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
21028
21029         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
21030         names.  Just use the correct names.  Remove unnecessary wrapper
21031         functions.
21032         * malloc/arena.c: Likewise.
21033         * malloc/hooks.c: Likewise.
21034
21035         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
21036         ARENA_TEST says not to.  Simplify test for creation of a new arena.
21037         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
21038
21039 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
21040
21041         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
21042         into tail calls.
21043         (update_get_addr): New function.
21044         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
21045         GET_ADDR_MODULE parameter.
21046
21047 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
21048
21049         * crypt/cert.c: Remove __STDC__ conditionals.
21050         * crypt/crypt-entry.c: Likewise.
21051         * crypt/crypt_util.c: Likewise.
21052         * libio/filedoalloc.c: Likewise.
21053         * libio/fileops.c: Likewise.
21054         * libio/genops.c: Likewise.
21055         * libio/iofclose.c: Likewise.
21056         * libio/iofdopen.c: Likewise.
21057         * libio/iofopen.c: Likewise.
21058         * libio/iofopen64.c: Likewise.
21059         * libio/iogetdelim.c: Likewise.
21060         * libio/iopopen.c: Likewise.
21061         * libio/obprintf.c: Likewise.
21062         * libio/oldfileops.c: Likewise.
21063         * libio/oldiofclose.c: Likewise.
21064         * libio/oldiofdopen.c: Likewise.
21065         * libio/oldiofopen.c: Likewise.
21066         * libio/oldiopopen.c: Likewise.
21067         * libio/wfiledoalloc.c: Likewise.
21068         * libio/wgenops.c: Likewise.
21069         * locale/programs/xmalloc.c: Likewise.
21070         * misc/syslog.c: Likewise.
21071         * stdio-common/xbug.c: Likewise.
21072         * string/memchr.c: Likewise.
21073         * string/memcmp.c: Likewise.
21074         * string/memrchr.c: Likewise.
21075         * string/rawmemchr.c: Likewise.
21076         * sysdeps/posix/getcwd.c: Likewise.
21077         * time/strftime_l.c: Likewise.
21078
21079 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
21080
21081         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
21082         * config.make.in (config-cflags-sse2avx): Define.
21083         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
21084         Fix typo.
21085
21086 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
21087
21088         * scripts/config.guess: Update from upstream config git repository.
21089         * scripts/config.sub: Likewise.
21090
21091 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
21092
21093         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
21094         (EM_NUM): Update.
21095         (R_TILEPRO_*, R_TILEGX_*): New macros.
21096
21097         * scripts/firstversions.awk: Fix bug in version range handling.
21098
21099         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
21100
21101         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
21102
21103         * include/sys/epoll.h: New file.
21104         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
21105         libc_hidden_def.
21106
21107 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
21108
21109         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
21110         Avoid unnecessary __WORDSIZE == 64 test.
21111         (fmaxf): Use VEX format if possible.
21112         (fmax): Likewise.
21113         (fminf): Likewise.
21114         (fmin): Likewise.
21115
21116         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
21117         * math/math_private.h: Remove libc_fegetround* and
21118         libc_fesetround*.
21119         * sysdeps/i386/configure.in: Check for -msse2avx.
21120         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
21121         also if SSE2AVX is defined.
21122         Remove libc_fegetround* and libc_fesetround*.
21123         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
21124         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
21125         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
21126         of HAS_YMM_USABLE.
21127         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
21128         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
21129         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
21130         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
21131         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
21132
21133         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
21134
21135 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21136
21137         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
21138         size is not set.
21139         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
21140
21141 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
21142
21143         [BZ #13618]
21144         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
21145         relocation.
21146         * Makeconfig (libm): Define.
21147         * elf/Makefile: Add rules to build and run tst-relsort1.
21148         * elf/tst-relsort1.c: New file.
21149         * elf/tst-relsort1mod1.c: New file.
21150         * elf/tst-relsort1mod2.c: New file.
21151
21152 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
21153
21154         * math/s_ldexp.c: Remove __STDC__ conditionals.
21155         * math/s_ldexpf.c: Likewise.
21156         * math/s_ldexpl.c: Likewise.
21157         * math/s_nextafter.c: Likewise.
21158         * math/s_nexttowardf.c: Likewise.
21159         * math/s_significand.c: Likewise.
21160         * math/s_significandf.c: Likewise.
21161         * math/s_significandl.c: Likewise.
21162         * math/w_jnl.c: Likewise.
21163         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
21164         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
21165         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
21166         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
21167         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
21168         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
21169         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
21170         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
21171         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
21172         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
21173         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
21174         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
21175         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
21176         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
21177         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
21178         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
21179         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
21180         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
21181         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
21182         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
21183         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
21184         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
21185         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
21186         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
21187         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
21188         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
21189         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
21190         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
21191         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
21192         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
21193         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
21194         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
21195         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
21196         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
21197         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
21198         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
21199         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
21200         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
21201         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
21202         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
21203         * sysdeps/ieee754/k_standard.c: Likewise.
21204         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
21205         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
21206         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
21207         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
21208         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
21209         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
21210         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
21211         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
21212         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
21213         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
21214         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
21215         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
21216         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
21217         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
21218         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
21219         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
21220         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
21221         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
21222         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
21223         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
21224         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
21225         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
21226         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
21227         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
21228         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
21229         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
21230         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
21231         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
21232         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
21233         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
21234         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
21235         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
21236         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
21237         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
21238         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
21239         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
21240         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
21241         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
21242         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
21243         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
21244         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
21245         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
21246         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
21247         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
21248         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
21249         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
21250         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
21251         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
21252         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
21253         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
21254         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
21255         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
21256         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
21257         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
21258         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
21259         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
21260         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
21261         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
21262         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
21263         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
21264         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
21265         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
21266         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
21267         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
21268         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
21269         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
21270         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
21271         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
21272         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
21273         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
21274         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
21275         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
21276         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
21277         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
21278         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
21279         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
21280         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
21281         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
21282         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
21283         * sysdeps/ieee754/s_matherr.c: Likewise.
21284         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
21285         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
21286         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
21287         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
21288
21289 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
21290
21291         * crypt/md5.h: Remove __STDC__ conditionals.
21292         * libio/libioP.h: Likewise.
21293         * locale/programs/config.h: Likewise.
21294         * sysdeps/generic/sysdep.h: Likewise.
21295         * sysdeps/i386/asm-syntax.h: Likewise.
21296         * sysdeps/s390/asm-syntax.h: Likewise.
21297         * sysdeps/unix/sysdep.h: Likewise.
21298         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
21299         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
21300
21301 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
21302
21303         * libio/libio.h: Remove __STDC__ conditionals.
21304         * malloc/obstack.h: Likewise.
21305         * math/complex.h: Likewise.
21306         * math/math.h: Likewise.
21307         * sysdeps/generic/_G_config.h: Likewise.
21308         * sysdeps/gnu/_G_config.h: Likewise.
21309         * sysdeps/mach/hurd/_G_config.h: Likewise.
21310         * sysdeps/powerpc/bits/mathdef.h: Likewise.
21311         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
21312         * sysdeps/sparc/bits/mathdef.h: Likewise.
21313
21314 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
21315
21316         [BZ #13583]
21317         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
21318         Clean up HAS_* macros.
21319         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
21320         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
21321         possible.
21322         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
21323         HAS_AVX.
21324         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
21325         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
21326         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
21327         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
21328         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
21329
21330 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
21331
21332         * elf/tst-unique3.cc (gets): Remove declaration.
21333         * elf/tst-unique3lib.cc (gets): Likewise.
21334         * elf/tst-unique3lib2.cc (gets): Likewise.
21335         * elf/tst-unique4.cc (gets): Likewise.
21336
21337 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
21338
21339         * include/stdio.h: Add C++ protection.  Add gets declarations and
21340         definitions.
21341         * debug/tst-chk1.c: Don't declare gets here.
21342         * stdio-common/tst-gets.c: Likewise.
21343
21344 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
21345
21346         * posix/glob: Remove directory.
21347
21348 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
21349
21350         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
21351
21352 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
21353
21354         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
21355         of the non-standard EPFNOSUPPORT.
21356
21357 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21358
21359         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
21360         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
21361         ANYWHERE set to 1 only on KERN_NO_SPACE error.
21362
21363 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
21364
21365         * wcsmbs/uchar.h: Test __STDC_VERSION__.
21366
21367 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
21368
21369         * nscd/aicache.c (addhstaiX): Do not cache negative results of
21370         transient errors.
21371         * nscd/grpcache.c (cache_addgr): Likewise.
21372         * nscd/hstcache.c (cache_addhst): Likewise.
21373         * nscd/initgrcache.c (addinitgroupsX): Likewise.
21374         * nscd/pwdcache.c (cache_addpw): Likewise.
21375         * nscd/servicescache.c (cache_addserv): Likewise.
21376
21377 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
21378
21379         * malloc/malloc.c: Various cleanups.
21380         * malloc/hooks.c: Likewise.
21381
21382         * stdlib/Makefile (tests): Add bug-fmtmsg1.
21383         * stdlib/bug-fmtmsg1.c: New file.
21384
21385         * stdlib/fmtmsg.c (init): Add missing unlock.
21386         Patch by Peng Haitao <penght@cn.fujitsu.com>.
21387
21388 2012-01-12  Marek Polacek  <polacek@redhat.com>
21389
21390         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
21391         and _GNU_SOURCE.
21392
21393 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
21394
21395         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
21396         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
21397         macro to ensure uniqueness of label name.
21398         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
21399         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
21400
21401 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
21402
21403         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
21404
21405         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
21406         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
21407         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
21408         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
21409
21410 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
21411
21412         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
21413
21414         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
21415         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
21416         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
21417
21418         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
21419
21420         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
21421         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
21422         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
21423         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
21424
21425         * math/bits/math-finite.h: Add ldexp support.
21426
21427 2012-01-10  Marek Polacek  <polacek@redhat.com>
21428
21429         * locale/programs/localedef.h (show_archive_content): Add noreturn
21430         attribute.
21431
21432 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
21433
21434         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
21435
21436 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
21437
21438         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
21439
21440         * io/Makefile (headers): Add bits/poll2.h.
21441
21442 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
21443
21444         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
21445         typo #include statement.
21446
21447 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
21448
21449         * include/sys/cdefs.h: Define __attribute_alloc_size.
21450         * catgets/gencat.c: Add alloc_size attribute and apply consistently
21451         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
21452         * elf/pldd.c: Likewise.
21453         * iconv/iconv_charmap.c: Likewise.
21454         * iconv/iconvconfig.c: Likewise.
21455         * iconv/strtab.c: Likewise.
21456         * locale/programs/locale.c: Likewise.
21457         * locale/programs/localedef.h: Likewise.
21458         * locale/programs/simple-hash.c: Likewise.
21459         * nscd/nscd.h: Likewise.
21460         * nss/makedb.c: Likewise.
21461         * sysdeps/generic/ldconfig.h: Likewise.
21462         * locale/programs/localedef.c: Remove xmalloc prototype.
21463         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
21464
21465 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
21466
21467         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
21468         appropriate.
21469
21470 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
21471
21472         * math/Makefile (tests): Add tst-CMPLX.
21473         * math/tst-CMPLX.c: New file.
21474
21475         * math/complex.h (CMPLXL): Fix typo.
21476
21477         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
21478         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
21479         GLIBC_2.16.
21480         * debug/tst-chk1.c: Add poll and ppoll tests.
21481         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
21482         * include/sys/poll.h: Add hidden proto for ppoll.
21483         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
21484         * sysdeps/mach/hurd/ppoll.c: Likewise.
21485         * io/ppoll.c: Likewise.
21486         * debug/poll_chk.c: New file.
21487         * debug/ppoll_chk.c: New file.
21488         * include/bits/poll2.h: New file.
21489         * io/bits/poll2.h: New file.
21490
21491         [BZ #1350]
21492         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
21493
21494         * configure.in: static is always set to yes.  Remove.
21495         * config.make.in: Don't set build-static.
21496         * Makeconfig: Remove use of build-static.
21497         * dlfcn/Makefile: Likewise.
21498         * elf/Makefile: Likewise.
21499         * math/Makefile: Likewise.
21500         * misc/Makefile: Likewise.
21501         * nptl/Makefile: Likewise.
21502         * sysdeps/mach/hurd/Makefile: Likewise.
21503
21504         * configure.in: PWD_P is not used anymore.
21505         * config.make.in: Remove PWD_P entry.
21506
21507         * configure.in: Remove last remnants of RANLIB.
21508         No need to check for signed size_t anymore.
21509         Don't set libc_commonpagesize and libc_relro_required here for Alpha
21510         and IA-64.
21511         Remove __builtin_expect test because we require at least gcc 3.4.
21512         * aclocal.m4: Likewise.
21513
21514         * wcsmbs/mbrtoc16.c: Implement using towc function.
21515         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
21516         * wcsmbs/wcsmbsload.c: Likewise.
21517         * iconv/gconv_simple.c: Likewise.
21518         * iconv/gconv_int.h: Likewise.
21519         * iconv/gconv_builtin.h: Likewise.
21520         * iconv/iconv_prog.c: Remove CHAR16 handling.
21521
21522         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
21523
21524         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
21525
21526         * configure.in: Remove --with-elf and --enable-bounded options.
21527         Dont set base_machine for ia64.  More non-ELF conditions removed.
21528         Remove testing and setting of leading underscore information.
21529         * config.make.in (build-bounded): Set to no.
21530         * config.h.in: Remove NO_UNDERSCORES entry.
21531         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
21532         them.
21533         * csu/start.c: Remove !NO_UNDERSCORE code.
21534         * locale/localeinfo.h: Likewise.
21535         * sysdeps/generic/machine-gmon.h: Likewise.
21536         * sysdeps/generic/sysdep.h: Likewise.
21537         * sysdeps/i386/sysdep.h: Likewise.
21538         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
21539         * sysdeps/mach/sysdep.h: Likewise.
21540         * sysdeps/s390/s390-32/sysdep.h: Likewise.
21541         * sysdeps/s390/s390-64/sysdep.h: Likewise.
21542         * sysdeps/sh/sysdep.h: Likewise.
21543         * sysdeps/sparc/sparc32/alloca.S: Likewise.
21544         * sysdeps/unix/i386/sysdep.S: Likewise.
21545         * sysdeps/unix/sparc/start.c: Likewise.
21546         * sysdeps/unix/sparc/sysdep.S: Likewise.
21547         * sysdeps/unix/sparc/sysdep.h: Likewise.
21548         * sysdeps/unix/start.c: Likewise.
21549         * sysdeps/unix/x86_64/sysdep.S: Likewise.
21550         * sysdeps/x86_64/sysdep.h: Likewise.
21551
21552 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
21553
21554         [BZ #13553]
21555         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
21556         for non-gcc.
21557         * argp/argp-fmtstream.h: Use const instead __const.
21558         * argp/argp.h: Likewise.
21559         * assert/assert.h: Likewise.
21560         * bits/fenv.h: Likewise.
21561         * bits/sched.h: Likewise.
21562         * bits/sigset.h: Likewise.
21563         * bits/sigthread.h: Likewise.
21564         * catgets/nl_types.h: Likewise.
21565         * conform/data/pthread.h-data: Likewise.
21566         * crypt/crypt-private.h: Likewise.
21567         * crypt/crypt.h: Likewise.
21568         * crypt/crypt_util.c: Likewise.
21569         * ctype/ctype.h: Likewise.
21570         * debug/execinfo.h: Likewise.
21571         * debug/mbsnrtowcs_chk.c: Likewise.
21572         * debug/mbsrtowcs_chk.c: Likewise.
21573         * debug/wcsnrtombs_chk.c: Likewise.
21574         * debug/wcsrtombs_chk.c: Likewise.
21575         * debug/wcstombs_chk.c: Likewise.
21576         * dirent/dirent.h: Likewise.
21577         * dlfcn/dlfcn.h: Likewise.
21578         * elf/neededtest4.c: Likewise.
21579         * grp/grp.h: Likewise.
21580         * gshadow/gshadow.h: Likewise.
21581         * iconv/gconv.h: Likewise.
21582         * iconv/gconv_int.h: Likewise.
21583         * iconv/gconv_simple.c: Likewise.
21584         * iconv/iconv.h: Likewise.
21585         * iconv/loop.c: Likewise.
21586         * iconv/skeleton.c: Likewise.
21587         * include/aio.h: Likewise.
21588         * include/aliases.h: Likewise.
21589         * include/argz.h: Likewise.
21590         * include/arpa/inet.h: Likewise.
21591         * include/assert.h: Likewise.
21592         * include/dirent.h: Likewise.
21593         * include/dlfcn.h: Likewise.
21594         * include/execinfo.h: Likewise.
21595         * include/fcntl.h: Likewise.
21596         * include/fenv.h: Likewise.
21597         * include/glob.h: Likewise.
21598         * include/grp.h: Likewise.
21599         * include/libintl.h: Likewise.
21600         * include/mntent.h: Likewise.
21601         * include/netdb.h: Likewise.
21602         * include/pwd.h: Likewise.
21603         * include/rpc/netdb.h: Likewise.
21604         * include/sched.h: Likewise.
21605         * include/search.h: Likewise.
21606         * include/shadow.h: Likewise.
21607         * include/signal.h: Likewise.
21608         * include/stdio.h: Likewise.
21609         * include/stdlib.h: Likewise.
21610         * include/string.h: Likewise.
21611         * include/sys/socket.h: Likewise.
21612         * include/sys/stat.h: Likewise.
21613         * include/sys/statfs.h: Likewise.
21614         * include/sys/statvfs.h: Likewise.
21615         * include/sys/syslog.h: Likewise.
21616         * include/sys/time.h: Likewise.
21617         * include/sys/uio.h: Likewise.
21618         * include/time.h: Likewise.
21619         * include/unistd.h: Likewise.
21620         * include/utmp.h: Likewise.
21621         * include/wchar.h: Likewise.
21622         * include/wctype.h: Likewise.
21623         * inet/aliases.h: Likewise.
21624         * inet/arpa/inet.h: Likewise.
21625         * inet/netinet/ether.h: Likewise.
21626         * inet/netinet/in.h: Likewise.
21627         * intl/libintl.h: Likewise.
21628         * io/bits/fcntl2.h: Likewise.
21629         * io/fcntl.h: Likewise.
21630         * io/ftw.h: Likewise.
21631         * io/sys/poll.h: Likewise.
21632         * io/sys/stat.h: Likewise.
21633         * io/sys/statfs.h: Likewise.
21634         * io/sys/statvfs.h: Likewise.
21635         * io/utime.h: Likewise.
21636         * libio/bits/stdio.h: Likewise.
21637         * libio/bits/stdio2.h: Likewise.
21638         * libio/libio.h: Likewise.
21639         * libio/libioP.h: Likewise.
21640         * libio/stdio.h: Likewise.
21641         * locale/lc-ctype.c: Likewise.
21642         * locale/locale.h: Likewise.
21643         * login/utmp.h: Likewise.
21644         * malloc/arena.c: Likewise.
21645         * malloc/malloc.c: Likewise.
21646         * malloc/malloc.h: Likewise.
21647         * malloc/mcheck.c: Likewise.
21648         * malloc/mtrace.c: Likewise.
21649         * math/bits/mathcalls.h: Likewise.
21650         * math/fenv.h: Likewise.
21651         * math/math_private.h: Likewise.
21652         * misc/bits/error.h: Likewise.
21653         * misc/bits/syslog.h: Likewise.
21654         * misc/err.h: Likewise.
21655         * misc/error.h: Likewise.
21656         * misc/fstab.h: Likewise.
21657         * misc/mntent.h: Likewise.
21658         * misc/regexp.h: Likewise.
21659         * misc/search.h: Likewise.
21660         * misc/sgtty.h: Likewise.
21661         * misc/sys/mman.h: Likewise.
21662         * misc/sys/syslog.h: Likewise.
21663         * misc/sys/uio.h: Likewise.
21664         * misc/sys/xattr.h: Likewise.
21665         * misc/ttyent.h: Likewise.
21666         * nis/rpcsvc/ypclnt.h: Likewise.
21667         * nss/nss.h: Likewise.
21668         * posix/bits/unistd.h: Likewise.
21669         * posix/fnmatch.h: Likewise.
21670         * posix/glob.h: Likewise.
21671         * posix/sched.h: Likewise.
21672         * posix/spawn.h: Likewise.
21673         * posix/sys/wait.h: Likewise.
21674         * posix/unistd.h: Likewise.
21675         * posix/wordexp.h: Likewise.
21676         * pwd/pwd.h: Likewise.
21677         * resolv/netdb.h: Likewise.
21678         * resource/sys/resource.h: Likewise.
21679         * rt/aio.h: Likewise.
21680         * rt/bits/mqueue2.h: Likewise.
21681         * rt/mqueue.h: Likewise.
21682         * shadow/shadow.h: Likewise.
21683         * signal/signal.h: Likewise.
21684         * socket/send.c: Likewise.
21685         * socket/sendto.c: Likewise.
21686         * socket/sys/socket.h: Likewise.
21687         * stdio-common/printf.h: Likewise.
21688         * stdlib/bits/stdlib.h: Likewise.
21689         * stdlib/fmtmsg.h: Likewise.
21690         * stdlib/monetary.h: Likewise.
21691         * stdlib/stdlib.h: Likewise.
21692         * stdlib/ucontext.h: Likewise.
21693         * streams/stropts.h: Likewise.
21694         * string/argz.h: Likewise.
21695         * string/bits/string2.h: Likewise.
21696         * string/string.h: Likewise.
21697         * string/strings.h: Likewise.
21698         * sunrpc/rpc/auth.h: Likewise.
21699         * sunrpc/rpc/auth_des.h: Likewise.
21700         * sunrpc/rpc/clnt.h: Likewise.
21701         * sunrpc/rpc/netdb.h: Likewise.
21702         * sunrpc/rpc/pmap_clnt.h: Likewise.
21703         * sunrpc/rpc/xdr.h: Likewise.
21704         * sysdeps/generic/inttypes.h: Likewise.
21705         * sysdeps/generic/net/if.h: Likewise.
21706         * sysdeps/generic/sys/swap.h: Likewise.
21707         * sysdeps/gnu/net/if.h: Likewise.
21708         * sysdeps/gnu/utmpx.h: Likewise.
21709         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
21710         * sysdeps/i386/i486/bits/string.h: Likewise.
21711         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
21712         * sysdeps/s390/bits/string.h: Likewise.
21713         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
21714         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
21715         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
21716         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
21717         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
21718         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
21719         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
21720         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
21721         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
21722         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
21723         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
21724         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
21725         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
21726         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
21727         * sysdeps/unix/sysv/linux/readv.c: Likewise.
21728         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
21729         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
21730         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
21731         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
21732         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
21733         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
21734         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
21735         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
21736         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
21737         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
21738         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
21739         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
21740         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
21741         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
21742         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
21743         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
21744         * sysvipc/sys/ipc.h: Likewise.
21745         * sysvipc/sys/msg.h: Likewise.
21746         * sysvipc/sys/sem.h: Likewise.
21747         * sysvipc/sys/shm.h: Likewise.
21748         * termios/termios.h: Likewise.
21749         * time/sys/time.h: Likewise.
21750         * time/time.h: Likewise.
21751         * wcsmbs/bits/wchar2.h: Likewise.
21752         * wcsmbs/uchar.h: Likewise.
21753         * wcsmbs/wchar.h: Likewise.
21754         * wctype/wctype.h: Likewise.
21755
21756         [BZ #13551]
21757         * Makeconfig: Remove all but ELF support including AIX support.
21758         * Makerules: Likewise.
21759         * config.h.in: Likewise.
21760         * config.make.in: Likewise.
21761         * configure: Likewise.
21762         * configure.in: Likewise.
21763         * csu/Makefile: Likewise.
21764         * csu/version.c: Likewise.
21765         * debug/Makefile: Likewise.
21766         * dlfcn/Makefile: Likewise.
21767         * elf/Makefile: Likewise.
21768         * extra-lib.mk: Likewise.
21769         * iconv/Makefile: Likewise.
21770         * include/libc-symbols.h: Likewise.
21771         * include/shlib-compat.h: Likewise.
21772         * resolv/Makefile: Likewise.
21773         * resolv/res_libc.c: Likewise.
21774         * rt/Makefile: Likewise.
21775         * sysdeps/i386/asm-syntax.h: Likewise.
21776         * sysdeps/i386/sysdep.h: Likewise.
21777         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
21778         * sysdeps/mach/sysdep.h: Likewise.
21779         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
21780         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
21781         * sysdeps/s390/asm-syntax.h: Likewise.
21782         * sysdeps/s390/s390-32/sysdep.h: Likewise.
21783         * sysdeps/s390/s390-64/sysdep.h: Likewise.
21784         * sysdeps/sh/sysdep.h: Likewise.
21785         * sysdeps/unix/sparc/sysdep.h: Likewise.
21786         * sysdeps/wordsize-32/divdi3.c: Likewise.
21787         * sysdeps/x86_64/sysdep.h: Likewise.
21788
21789         * argp/Versions: Remove _argp_unlock_xxx.
21790
21791         [BZ #13559]
21792         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
21793         * abilist/libBrokenLocale.abilist: Likewise.
21794         * abilist/libanl.abilist: Likewise.
21795         * abilist/libc.abilist: Likewise.
21796         * abilist/libcrypt.abilist: Likewise.
21797         * abilist/libdl.abilist: Likewise.
21798         * abilist/libm.abilist: Likewise.
21799         * abilist/libnsl.abilist: Likewise.
21800         * abilist/libpthread.abilist: Likewise.
21801         * abilist/libresolv.abilist: Likewise.
21802         * abilist/librt.abilist: Likewise.
21803         * abilist/libthread_db.abilist: Likewise.
21804         * abilist/libutil.abilist: Likewise.
21805         * abilist/libnss_db.abilist: New file.
21806
21807         * scripts/abilist.awk: Add support for indirect functions.
21808
21809         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
21810
21811         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
21812
21813         * shlib-versions: Remove entries for ports architectures.
21814
21815         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
21816         files in ports.
21817         * elf/stackguard-macros.h: Remove support for IA-64.
21818         * elf/tst-auditmod1.c: Likewise.
21819         * sysdeps/generic/ldsodefs.h: Likewise.
21820
21821         * sysdeps/unix/sysv/linux/configure.in: Ports should define
21822         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
21823         configure files.
21824
21825         [BZ #13552]
21826         * configure.in: Remove --enable-omitfp support.
21827         * FAQ.in: Adjust.
21828         * config.make.in: Likewise.
21829         * Makeconfig: Likewise.
21830         * manual/install.texi: Likewise.
21831
21832         In case anyone cares, the IA-64 architecture could move to ports.
21833         * sysdeps/ia64/*: Removed.
21834         * sysdeps/unix/sysv/linux/ia64/*: Removed.
21835         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
21836
21837         [BZ #13555]
21838         * configure.in: Remove entries for unsupported architectures.
21839
21840         [BZ #13533]
21841         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
21842         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
21843         routines.
21844         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
21845         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
21846         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
21847         fall back to using wcrtomb.
21848         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
21849         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
21850         renaming.
21851         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
21852         * wcsmbs/tst-c16c32-1.c: New file.
21853
21854         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
21855         local variable.
21856
21857         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
21858
21859         * elf/tst-unique3.cc: Add explicit declaration of gets.
21860         * elf/tst-unique3lib.cc: Likewise.
21861         * elf/tst-unique3lib2.cc: Likewise.
21862         * elf/tst-unique4.cc: Likewise.
21863
21864         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
21865
21866 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
21867
21868         [BZ #13566]
21869         * assert/assert.h (static_assert): Don't define for C++.
21870         * libio/stdio.h (gets): Do declare for C++ <= C++11.
21871         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
21872
21873 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
21874
21875         * iconv/loop.c (single loop): Fix assertion in storing of
21876         remaining bytes.
21877
21878         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
21879
21880 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
21881
21882         * posix/getconf.c: Update copyright year.
21883         * nss/getent.c: Likewise.
21884         * nss/makedb.c: Likewise.
21885         * iconv/iconvconfig.c: Likewise.
21886         * iconv/iconv_prog.c: Likewise.
21887         * elf/ldconfig.c: Likewise.
21888         * elf/pldd.c: Likewise.
21889         * elf/sotruss.ksh: Likewise.
21890         * catgets/gencat.c: Likewise.
21891         * csu/version.c: Likewise.
21892         * elf/ldd.bash.in: Likewise.
21893         * elf/sprof.c (print_version): Likewise.
21894         * locale/programs/locale.c: Likewise.
21895         * locale/programs/localedef.c: Likewise.
21896         * login/programs/pt_chown.c: Likewise.
21897         * nscd/nscd.c (print_version): Likewise.
21898         * debug/xtrace.sh: Likewise.
21899         * malloc/memusage.sh: Likewise.
21900         * malloc/mtrace.pl: Likewise.
21901         * debug/catchsegv.sh: Likewise.
21902
21903 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
21904
21905         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
21906         pure attribute.
21907
21908 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
21909
21910         [BZ #13533]
21911         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
21912         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
21913         transformations.
21914         * iconv/gconv_int.h: Likewise.
21915         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
21916         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
21917         from libc for GLIBC_2.16.
21918         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
21919         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
21920         * wcsmbs/uchar.h: Really define mbstate_t.
21921         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
21922         * wcsmbs/c16rtomb.c: New file.
21923         * wcsmbs/mbrtoc16.c: New file.
21924         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
21925         for C/POSIX locale.
21926         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
21927         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
21928
21929         * wcsmbs/wchar.h: Add missing __restrict.
21930
21931 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
21932
21933         [BZ #13532]
21934         * time/Makefile (routines): Add timespec_get.
21935         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
21936         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
21937         timespec for ISO C11.
21938         * time/timespec_get.c: New file.
21939         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
21940         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
21941
21942         [BZ #13531]
21943         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
21944         * stdlib/stdlib.h: Declare aligned_alloc.
21945         * Versions.def: Add GLIBC_2.16 for libc.
21946         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
21947
21948         [BZ 13527]
21949         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
21950         ISO C11.
21951
21952         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
21953         code.
21954
21955         [BZ #13528]
21956         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
21957
21958         [BZ #13529]
21959         * assert/assert.h (static_assert): Define.
21960
21961         * version.h: Update for 2.16 development version.
21962
21963         [BZ #13526]
21964         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
21965         _ISOC11_SOURCE.
21966
21967         * version.h (RELEASE): Bump for 2.15 release.
21968         * include/features.h (__GLIBC_MINOR__): Bump to 15.
21969
21970         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
21971         Patch by Marek Polacek <mpolacek@redhat.com>.
21972
21973         * bits/byteswap.h: Protect long long constants with __extension__.
21974         * sysdeps/i386/bits/byteswap.h: Likewise.
21975         * sysdeps/ia64/bits/byteswap.h: Likewise.
21976         * sysdeps/s390/bits/byteswap.h: Likewise.
21977         * sysdeps/x86_64/bits/byteswap.h: Likewise.
21978
21979 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
21980
21981         [BZ #13540]
21982         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
21983         destination buffer.
21984         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
21985
21986 2011-12-23  Marek Polacek  <polacek@redhat.com>
21987
21988         * elf/dl-addr.c (determine_info): Add inline keyword.
21989         * elf/tst-auditmod4b.c (check_avx): Likewise.
21990         * elf/tst-auditmod6b.c (check_avx): Likewise.
21991         * elf/tst-auditmod6c.c (check_avx): Likewise.
21992         * elf/tst-auditmod7b.c (check_avx): Likewise.
21993
21994 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
21995
21996         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
21997         !__SSE_MATH__.
21998
21999 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22000
22001         [BZ #13540]
22002         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
22003         processing for last bytes.
22004
22005 2011-08-06  Bruno Haible  <bruno@clisp.org>
22006
22007         [BZ #13061]
22008         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
22009         U+0385, not to U+1FEE.
22010
22011         [BZ #13062]
22012         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
22013         entry for U+00A5 U+0301.
22014
22015 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
22016
22017         [BZ #13166]
22018         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
22019         buffer for the output is too small.
22020
22021         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
22022         optimization.
22023
22024         [BZ #13185]
22025         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
22026         SSE flags if possible.
22027
22028 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22029
22030         [BZ #13540]
22031         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
22032         processing for last bytes.
22033
22034 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
22035
22036         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
22037         (syscall-list-default-options, syscall-list-default-condition)
22038         (syscall-list-includes): Define.
22039         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
22040         list of ABIs and options and #if conditions for each ABI.  Do not
22041         handle common syscalls between ABIs specially.
22042         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
22043         Remove.
22044         (syscall-list-variants, syscall-list-32bit-options)
22045         (syscall-list-32bit-condition, syscall-list-64bit-options)
22046         (syscall-list-64bit-condition): Define.
22047         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
22048         (syscall-list-variants, syscall-list-32bit-options)
22049         (syscall-list-32bit-condition, syscall-list-64bit-options)
22050         (syscall-list-64bit-condition): Define.
22051         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
22052         Remove.
22053         (syscall-list-variants, syscall-list-32bit-options)
22054         (syscall-list-32bit-condition, syscall-list-64bit-options)
22055         (syscall-list-64bit-condition): Define.
22056         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
22057         Remove.
22058         (syscall-list-variants, syscall-list-32bit-options)
22059         (syscall-list-32bit-condition, syscall-list-64bit-options)
22060         (syscall-list-64bit-condition): Define.
22061
22062 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
22063
22064         * locale/iso-639.def: Add brx entry.
22065
22066         [BZ #13328]
22067         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
22068         Proposed by Mariusz_Cukr <marcukr@op.pl>.
22069
22070         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
22071         __feraiseexcept_renamed.
22072
22073 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
22074
22075         [BZ #13538]
22076         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
22077         EPOLLET with unsigned values.
22078         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
22079         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
22080
22081         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
22082         to large cancellation.
22083         * math/s_cacoshf.c: Likewise.
22084         * math/s_cacoshl.c: Likewise.
22085
22086 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
22087
22088         [BZ #13305]
22089         [BZ #12786]
22090         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
22091         * math/s_cacoshf.c: Likewise.
22092         * math/s_cacoshl.c: Likewise.
22093
22094 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
22095
22096         [BZ #13439]
22097         * iconv/gconv.h: Define __GCONV_SWAP.
22098         * iconvdata/unicode.c: The swap bit must be stored in __flags.
22099         * iconvdata/utf-16.c: Likewise.
22100         * iconvdata/utf-32.c: Likewise.
22101
22102 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
22103
22104         [BZ #13524]
22105         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
22106         numerator after shifting it by one limb.
22107
22108 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
22109
22110         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
22111         under [__USE_EXTERN_INLINES].
22112
22113 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
22114
22115         [BZ #13446]
22116         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
22117
22118 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22119
22120         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
22121         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
22122         optimized code.
22123         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
22124         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
22125         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
22126         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
22127         for strncasecmp/strncasecmp_l compilation.
22128         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
22129         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
22130
22131 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
22132
22133         [BZ #13484]
22134         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
22135         of __asm__.
22136
22137 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
22138
22139         [BZ #13506]
22140         * time/tzfile.c (__tzfile_read): Check values from file header.
22141
22142 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
22143
22144         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
22145         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
22146         * powerpc/powerpc32/dl-start.S: Likewise.
22147         * powerpc/powerpc32/elf/start.S: Likewise.
22148         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
22149         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
22150         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
22151         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
22152         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
22153         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
22154         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
22155         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
22156         * powerpc/powerpc32/fpu/s_round.S: Likewise.
22157         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
22158         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
22159         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
22160         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
22161         * powerpc/powerpc32/memset.S: Likewise.
22162         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
22163         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
22164         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
22165         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
22166         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
22167         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
22168         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
22169         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
22170         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
22171         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
22172         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
22173         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
22174         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
22175
22176 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22177
22178         * math/libm-test.inc: Added more nearbyint tests.
22179         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
22180         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
22181         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
22182         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
22183
22184 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
22185
22186         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
22187         FD_CLOEXEC.
22188
22189 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22190
22191         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
22192         Add wcscpy-ssse3 wcscpy-c.
22193         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
22194         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
22195         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
22196         * sysdeps/x86_64/wcschr.S: New file.
22197         * sysdeps/x86_64/wcsrchr.S: New file.
22198         * string/test-strcmp.c: Remove checking of wcscmp function for
22199         wrong alignments.
22200         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
22201         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
22202         wcsrchr-sse2 wcsrchr-c.
22203         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
22204         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
22205         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
22206         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
22207         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
22208         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
22209         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
22210         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
22211         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
22212         * wcsmbc/wcschr.c (WCSCHR): New macro.
22213
22214 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22215
22216         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
22217         * wcsmbs/test-wcsrchr.c: New file.
22218         * string/test-strrchr.c: Add wcsrchr support.
22219         (WIDE): New macro.
22220         * wcsmbs/test-wcscpy.c: New file.
22221         * string/test-strcpy.c: Add wcscpy support.
22222         (WIDE): New macro.
22223
22224 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
22225
22226         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
22227         the inner loop.
22228
22229 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
22230
22231         [BZ #13472]
22232         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
22233
22234 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
22235
22236         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
22237         Minor optimizations.
22238
22239         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
22240         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
22241         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
22242
22243 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
22244
22245         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
22246         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
22247         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
22248         for gcc to avoid warnings.
22249         * inet/Makefile (tests): Add tst-checks.
22250         * inet/tst-checks.c: New file.
22251
22252         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
22253         warning.
22254
22255         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
22256         __wmemcmp_sse2.
22257
22258         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
22259         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
22260
22261         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
22262
22263 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
22264
22265         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
22266         problem.
22267
22268         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
22269
22270 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
22271
22272         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
22273         conditional on GCC version.
22274         (__arch_compare_and_exchange_val_8_acq)
22275         (__arch_compare_and_exchange_val_16_acq)
22276         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
22277         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
22278         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
22279
22280 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
22281
22282         * sysdeps/sh/backtrace.c: New file.
22283
22284 2011-12-02  Andreas Schwab  <schwab@redhat.com>
22285
22286         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
22287         parenthesis.
22288
22289 2011-12-01  Andreas Schwab  <schwab@redhat.com>
22290
22291         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
22292         falling back to utime.
22293
22294 2011-11-30  Andreas Schwab  <schwab@redhat.com>
22295
22296         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
22297         expectations for float.
22298
22299 2011-11-29  Andreas Schwab  <schwab@redhat.com>
22300
22301         * locale/weight.h (findidx): Add parameter len.
22302         * locale/weightwc.h (findidx): Likewise.
22303         * posix/fnmatch_loop.c (FCT): Adjust caller.
22304         * posix/regcomp.c (build_equiv_class): Likewise.
22305         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
22306         * posix/regexec.c (check_node_accept_bytes): Likewise.
22307         * string/strcoll_l.c (STRCOLL): Likewise.
22308         * string/strxfrm_l.c (STRXFRM): Likewise.
22309
22310 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
22311
22312         * Makefile.in: Remove CVSOPT handling.
22313         * configure.in: Remove use of AC_REVISION.
22314         * iconvdata/Makefile (distribute): No need to filter out CVS.
22315         * scripts/list-sources.sh: Remove CVS, subversion and monotone
22316         handling.
22317
22318 2011-11-16  Andreas Schwab  <schwab@redhat.com>
22319
22320         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
22321         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
22322         [USE_AS_STRNCASECMP_L]: Likewise.
22323         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
22324         NO_TLS_DIRECT_SEG_REFS.
22325         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
22326         Fix argument offsets for non-PIC.
22327         [USE_AS_STRNCASECMP_L]: Likewise.
22328         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
22329         NO_TLS_DIRECT_SEG_REFS.
22330
22331 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
22332
22333         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
22334         O_CLOEXEC.
22335         * locale/loadlocale.c (_nl_load_locale): Likewise.
22336
22337 2011-11-15  Andreas Schwab  <schwab@redhat.com>
22338
22339         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
22340         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
22341         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
22342         (SYSCALL_GETTIME): Set errno on error.
22343
22344         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
22345         count references to noai6ai_cached.
22346
22347 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
22348
22349         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
22350
22351         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
22352         FD_CLOEXEC for /proc/self/maps.
22353
22354         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
22355         FD_CLOEXEC for /proc/meminfo.
22356
22357         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
22358         gai.conf.
22359
22360         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
22361         FD_CLOEXEC for given file.
22362
22363         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
22364
22365         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
22366         FD_CLOEXEC for /etc/hosts.
22367         (_gethtent): Likewise.
22368
22369         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
22370
22371         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
22372         cancellation and set FD_CLOEXEC for /etc/netgroup.
22373
22374         * nss/nss_files/files-key.c (search): Don't allow cancellation when
22375         reading /etc/publickey.
22376
22377         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
22378         allow cancellation when reading /etc/group.
22379
22380         * nss/nss_files/files-alias.c (internal_setent): Don't allow
22381         cancellation.
22382         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
22383
22384         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
22385         when using data file.
22386
22387         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
22388
22389         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
22390         (write_nis_obj): Use "c" and "e" in fopen.
22391
22392         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
22393
22394         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
22395
22396         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
22397
22398         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
22399
22400         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
22401         locale.alias.
22402
22403         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
22404
22405         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
22406
22407         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
22408
22409         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
22410         file parsing and set FD_CLOEXEC.
22411
22412 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
22413
22414         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
22415
22416 2011-11-14  Andreas Schwab  <schwab@redhat.com>
22417
22418         * malloc/arena.c (arena_get2): Don't call reused_arena when
22419         _int_new_arena failed.
22420
22421 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
22422
22423         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
22424         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
22425         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
22426         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
22427         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
22428         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
22429         to compile strcasecmp and strncasecmp.
22430         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
22431         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
22432
22433         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
22434
22435 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
22436
22437         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
22438         locale-defines.sym to gen-as-const-headers.
22439         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
22440         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
22441         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
22442         to compile strcasecmp and strncasecmp.
22443         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
22444         strcasecmp_l and strncasecmp_l.
22445         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
22446         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
22447         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
22448         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
22449         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
22450         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
22451         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
22452         * sysdeps/i386/i686/multiarch/strncase.S: New file.
22453         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
22454         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
22455         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
22456
22457 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
22458
22459         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
22460         result of SYSDEP_GETTIME_CPU to retval.
22461         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
22462         parameter list to macro.  Remove trailing semicolon.  Adjust users.
22463
22464         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
22465         variable.
22466
22467         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
22468         mantissa words.
22469         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
22470
22471         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
22472         from unused variable.
22473
22474         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
22475         DWARF definitions.
22476         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
22477         for assembling.
22478
22479         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
22480         over namespaces.
22481
22482         * sunrpc/rpc_prot.c (rejected): Fix case value.
22483
22484         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
22485         unsigned long long int to avoid warnings in shift.
22486
22487         * posix/regex_internal.c (re_string_reconstruct): Actually use result
22488         of use of trans.
22489         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
22490         variable tmp.
22491
22492         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
22493         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
22494         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
22495
22496         * nis/nis_table.c (nis_list): Use variable of correct type for
22497         result of __follow_path call.
22498
22499 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22500
22501         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
22502         of math functions ceil, trunc, floor, round, and sqrt, when
22503         avaliable on the platform.
22504         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
22505         name clash.
22506         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
22507         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
22508         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
22509
22510 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
22511
22512         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
22513         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
22514
22515 2011-11-11  Roland McGrath  <roland@hack.frob.com>
22516
22517         * include/unistd.h: Fix __readlink return type.
22518         Reported by Chris Metcalf <cmetcalf@tilera.com>.
22519
22520 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
22521
22522         * stdlib/ucontext.h: Undo last change for makecontext.
22523
22524 2011-11-11  Andreas Schwab  <schwab@redhat.com>
22525
22526         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
22527
22528         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
22529         * setjmp/setjmp.h: Mark functions as non-leaf.
22530         * setjmp/bits/setjmp2.h: Likewise.
22531         * stdlib/ucontext.h: Likewise.
22532
22533 2011-11-10  Andreas Schwab  <schwab@redhat.com>
22534
22535         * malloc/arena.c (_int_new_arena): Don't increment narenas.
22536         (reused_arena): Don't check arena limit.
22537         (arena_get2): Atomically check arena limit.
22538
22539 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
22540
22541         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
22542         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
22543
22544         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
22545         instructions.
22546
22547 2011-11-07  Andreas Schwab  <schwab@redhat.com>
22548
22549         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
22550         handler when locking.
22551
22552         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
22553         Fix size of allocated buffer.
22554
22555 2011-11-04  Andreas Schwab  <schwab@redhat.com>
22556
22557         [BZ #10103]
22558         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
22559         declarations for long double functions.
22560         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
22561
22562         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
22563
22564 2011-11-03  Andreas Schwab  <schwab@redhat.com>
22565
22566         * nscd/nscd.c (main): Don't start AVC thread until credentials are
22567         installed.
22568
22569         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
22570         is disabled.
22571
22572 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
22573
22574         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
22575
22576 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
22577
22578         * include/alloca.h (stackinfo_alloca_round): Define.
22579         (extend_alloca): Use it.
22580         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
22581         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
22582         here.
22583
22584         * scripts/check-local-headers.sh: Ignore libaudit.h.
22585
22586         * nscd/Makefile (extra-objs): Make recursively expanded.
22587
22588 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
22589
22590         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
22591         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
22592
22593         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
22594         * posix/tst-rfc3484-2.c: Likewise.
22595         * posix/tst-rfc3484-3.c: Likewise.
22596
22597         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
22598         process_vm_writev.
22599         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
22600         process_vm_writev.
22601         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
22602         process_vm_writev from libc using GLIBC_2.15 version.
22603
22604         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
22605
22606 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
22607
22608         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
22609         stack usage.
22610
22611 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
22612
22613         [BZ #13367]
22614         * nss/getent.c (initgroups_keys): Show error message in case no group
22615         names are given.
22616
22617         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
22618         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
22619         __bump_nl_timestamp.
22620         * nscd/connections (nscd_init): When host database is served open
22621         netlink socket and request notification about configuration changes.
22622         (main_loop_poll): Track netlink file descriptor and bump timestamp
22623         in case data becomes available.
22624         (main_loop_epoll): Likewise.
22625         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
22626         (database_pers_head): Add extra_data fileds.
22627         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
22628         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
22629         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
22630         Adjust caller.
22631         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
22632         in6ai data, call __free_in6ai.
22633         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
22634         Add -DHAVE_NETLINK.
22635         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
22636         interface information.  Reuse previous data if netlink timestamp
22637         is not changed.
22638         (__bump_nl_timestamp): New function.
22639         (__free_in6ai): New function.
22640
22641 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
22642
22643         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
22644         close_not_cancel_no_status here.
22645         (__check_pf): Reorganize code a bit to not call close twice if OOM.
22646
22647 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
22648
22649         [BZ #13276]
22650         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
22651         return value.
22652
22653         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
22654         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
22655         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
22656
22657 2011-07-03  Andreas Jaeger  <aj@suse.de>
22658
22659         [BZ #10709]
22660         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
22661         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
22662         * math/libm-test.inc (sin_test): Add test case.
22663
22664 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
22665
22666         [BZ #13337]
22667         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
22668         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
22669
22670         * elf/chroot_canon.c (chroot_canon): Cleanups.
22671
22672         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
22673
22674         [BZ #13335]
22675         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
22676         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
22677
22678         * string/test-strchr.c: Make usable for strchrnul testing.
22679         * string/test-strchrnul.c: New file.
22680         * string/Makefile (strop-tests): Add strchrnul.
22681
22682         * po/it.po: Update from translation team.
22683         * po/es.po: Likewise.
22684
22685 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
22686
22687         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
22688         the three constants needed as parameters.  Drop the others.
22689         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
22690         __m128i_strloadu_tolower.
22691         Create and initialize variable zero and use it in all the places
22692         where _mm_setzero_si128 was used.
22693
22694         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
22695         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
22696         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
22697         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
22698         anymore.
22699         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
22700         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
22701         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
22702         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
22703         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
22704         __mpranred, __mptan.
22705         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
22706         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
22707         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
22708         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
22709         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
22710         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
22711         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
22712         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
22713         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
22714
22715 2011-10-28  Andreas Schwab  <schwab@redhat.com>
22716
22717         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
22718         redefine if SHARED.
22719         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
22720
22721         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
22722         wide char related routines to wcsmbs subdir.
22723
22724 2011-10-27  Andreas Schwab  <schwab@redhat.com>
22725
22726         [BZ #13344]
22727         * misc/sys/cdefs.h (__THROWNL): Define.
22728         * posix/unistd.h: Use __THREADNL instead of __THREAD
22729         for memory synchronization functions.
22730
22731 2011-10-26  Roland McGrath  <roland@hack.frob.com>
22732
22733         [BZ #13349]
22734         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
22735         doesn't exist.
22736         * manual/stdio.texi (Obstack Streams): Node removed.
22737
22738 2011-10-26  Andreas Schwab  <schwab@redhat.com>
22739
22740         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
22741         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
22742         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
22743
22744         * math/math_private.h (math_force_eval): Allow non-addressable
22745         arguments.
22746         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
22747
22748 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
22749
22750         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
22751         file is not needed.
22752
22753         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
22754         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
22755         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
22756         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
22757         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
22758         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
22759         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
22760         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
22761         Add AVX variants.
22762         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
22763         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
22764         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
22765         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
22766         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
22767         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
22768         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
22769         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
22770         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
22771         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
22772         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
22773         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
22774         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
22775         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
22776         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
22777         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
22778         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
22779         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
22780         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
22781
22782         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
22783         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
22784
22785         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
22786         place.  Use VEX encoding when compiling for AVX.
22787
22788 2011-10-25  Andreas Schwab  <schwab@redhat.com>
22789
22790         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
22791         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
22792
22793         * string/test-strchr.c (do_test): Don't generate NUL bytes.
22794
22795 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
22796
22797         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
22798         useless if() expression.
22799         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
22800         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
22801         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
22802         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
22803         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
22804         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
22805         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
22806         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
22807         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
22808         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
22809         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
22810         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
22811         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
22812         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
22813         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
22814         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
22815         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
22816         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
22817         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
22818
22819         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
22820
22821 2011-10-25  Andreas Schwab  <schwab@redhat.com>
22822
22823         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
22824         condition.
22825         * elf/dl-fini.c (_dl_sort_fini): Likewise.
22826
22827 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
22828
22829         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
22830         .text section.  Avoid duplicate constants.
22831         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
22832         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
22833         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
22834         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
22835         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
22836         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
22837         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
22838         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
22839         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
22840         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
22841         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
22842         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
22843         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
22844         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
22845         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
22846         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
22847         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
22848         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
22849         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
22850         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
22851         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
22852         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
22853         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
22854         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
22855         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
22856         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
22857         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
22858         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
22859         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
22860         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
22861         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
22862         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
22863         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
22864         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
22865         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
22866         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
22867         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
22868         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
22869         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
22870         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
22871         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
22872         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
22873         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
22874         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
22875         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
22876
22877 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
22878
22879         * sysdeps/x86_64/dla.h: Move to ...
22880         * sysdeps/x86_64/fpu/dla.h: ...here.
22881         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
22882         situations.  Use __builtin_fma only for gcc 4.6 and up.
22883
22884         * config.make.in: Add have-mfma4 entry.
22885         * configure.in: Substitute libc_cv_cc_fma4.
22886         * math/Makefile (dbl-only-routines): Add sincostab.
22887         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
22888         Use __sincostab not sincos.
22889         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
22890         name is a macro.
22891         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
22892         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
22893         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
22894         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
22895         using __copysign.
22896         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
22897         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
22898         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
22899         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
22900         and __inv.
22901         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
22902         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
22903         __copysign.
22904         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
22905         define aliases when function name is a macro.
22906         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
22907         sysdeps/ieee754/dbl-64/sincos.tbl.
22908         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
22909         fma4-enabled routines.
22910         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
22911         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
22912         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
22913         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
22914         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
22915         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
22916         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
22917         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
22918         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
22919         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
22920         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
22921         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
22922         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
22923         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
22924         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
22925         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
22926         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
22927         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
22928         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
22929         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
22930         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
22931         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
22932         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
22933         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
22934         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
22935         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
22936         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
22937         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
22938         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
22939         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
22940
22941         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
22942         rename.
22943         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
22944         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
22945         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
22946         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
22947         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
22948         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
22949         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
22950         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
22951
22952 2011-10-24  Andreas Schwab  <schwab@redhat.com>
22953
22954         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
22955
22956 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
22957
22958         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
22959
22960         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
22961         prediction.
22962         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
22963
22964         * string/strnlen.c: Don't define STRNLEN, reverse logic.
22965         Remove unused variable magic_bits.
22966         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
22967
22968         * string/strnlen.c: Define and use STRNLEN macro.
22969         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
22970         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
22971         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
22972         * wcsmbs/wcslen.c: Define and use WCSLEN.
22973         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
22974         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
22975         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
22976         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
22977         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
22978         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
22979         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
22980
22981 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22982
22983         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
22984         strnlen-sse2-no-bsf.
22985         Rename strlen-no-bsf to strlen-sse2-no-bsf.
22986         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
22987         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
22988         Add strnlen support.
22989         (USE_AS_STRNLEN): New macro.
22990         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
22991         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
22992         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
22993         * sysdeps/x86_64/wcslen.S: New file.
22994
22995 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
22996
22997         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
22998         XMM-moves are used for copying on small sizes.
22999
23000 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23001
23002         * wcsmbs/Makefile (strop-tests): Add wcschr.
23003         * wcsmbs/test-wcschr.c: New file.
23004         * string/test-strchr.c: Update.
23005         Add wcschr support.
23006         (WIDE): New macro.
23007
23008 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23009
23010         * wcsmbs/Makefile (strop-tests): Add wcslen.
23011         * wcsmbs/test-wcslen.c: New file.
23012         * string/test-strlen.c: Update.
23013         Add wcslen support.
23014         (WIDE): New macro.
23015
23016 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
23017
23018         * po/it.po: Update from translation team.
23019
23020 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23021
23022         * sysdeps/x86_64/wcscmp.S: Update.
23023         Fix wrong comparison semantics.
23024         wcscmp shall use signed comparison not unsigned.
23025         Don't use substraction to avoid overflow bug.
23026         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
23027         * wcsmbc/wcscmp.c: Likewise.
23028         * string/test-strcmp.c: Likewise.
23029         Add new tests to check cases with negative values.
23030
23031 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
23032
23033         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
23034         * sysdeps/x86_64/dla.h: ...here.  New file.
23035         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
23036         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
23037         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
23038         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
23039         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
23040         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
23041         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
23042         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
23043         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
23044
23045 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
23046
23047         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
23048         __ynl_finite aliases.
23049
23050 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
23051
23052         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
23053
23054         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
23055         define DLA_FMA.
23056         [DLA_FMA] (EMULV): Use DLA_FMA.
23057         [DLA_FMA] (MUL12): Use EMULV.
23058         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
23059         that are not needed.
23060         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
23061         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
23062         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
23063         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
23064         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
23065         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
23066         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
23067
23068 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
23069
23070         * math/s_nan.c: Undef __nan.
23071         * math/s_nanf.c: Undef __nanf.
23072         * math/s_nanl.c: Undef __nanl.
23073         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
23074         "math_private.h".
23075
23076 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
23077
23078         * math/s_catan.c: Add branch predictions.
23079         * math/s_catanf.c: Likewise.
23080         * math/s_catanh.c: Likewise.
23081         * math/s_catanhf.c: Likewise.
23082         * math/s_catanhl.c: Likewise.
23083         * math/s_catanl.c: Likewise.
23084         * math/s_cexp.c: Likewise.
23085         * math/s_cexpf.c: Likewise.
23086         * math/s_cexpl.c: Likewise.
23087         * math/s_clog.c: Likewise.
23088         * math/s_clog10.c: Likewise.
23089         * math/s_clog10f.c: Likewise.
23090         * math/s_clog10l.c: Likewise.
23091         * math/s_clogf.c: Likewise.
23092         * math/s_clogl.c: Likewise.
23093         * math/s_csqrt.c: Likewise.
23094         * math/s_csqrtf.c: Likewise.
23095         * math/s_csqrtl.c: Likewise.
23096         * math/s_ctanf.c: Likewise.
23097         * math/s_ctanh.c: Likewise.
23098         * math/s_ctanhf.c: Likewise.
23099         * math/s_ctanhl.c: Likewise.
23100         * math/s_ctanl.c: Likewise.
23101
23102         * math/math_private.h: Define __nan, __nanf, __nanl.
23103         * math/s_cacosh.c: Include <math_private.h>.
23104         * math/s_cacoshl.c: Likewise.
23105         * math/s_casinh.c: Likewise.
23106         * math/s_casinhf.c: Likewise.
23107         * math/s_casinhl.c: Likewise.
23108         * math/s_ccos.c: Rely entire on ccosh.
23109         * math/s_ccosf.c: Rely entire on ccoshf.
23110         * math/s_ccosl.c: Rely entirely on ccoshl.
23111         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
23112         Remove tests for FE_INVALID.
23113         * math/s_ccoshf.c: Likewise.
23114         * math/s_ccoshl.c: Likewise.
23115         * math/s_csin.c: Likewise.
23116         * math/s_csinf.c: Likewise.
23117         * math/s_csinh.c Likewise.
23118         * math/s_csinhf.c: Likewise.
23119         * math/s_csinhl.c: Likewise.
23120         * math/s_csinl.c: Likewise.
23121         * math/s_ctan.c: Likewise.
23122         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
23123         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
23124         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
23125
23126 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
23127
23128         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
23129         compilation problems.
23130
23131         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
23132         __builtin_expect.
23133
23134 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
23135
23136         * sysdeps/i386/configure.in: Test for -mfma4 option.
23137         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
23138         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
23139         COMMON_CPUID_INDEX_80000001.
23140         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
23141         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
23142         use it if FMA3 is not supported.
23143         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
23144
23145         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
23146         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
23147
23148 2011-10-20  Andreas Schwab  <schwab@redhat.com>
23149
23150         [BZ #12892]
23151         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
23152         it would create a cycle with a link time dependency.
23153
23154 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
23155
23156         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
23157         instruction.
23158         * string/Makefile (strop-tests): Add rawmemchr.
23159         * string/test-rawmemchr.c: New file.
23160
23161         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
23162         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
23163         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
23164         when compiling str{,n}casecmp and when AVX is available.  Hook up
23165         new optimized code in initializers.
23166
23167 2011-10-19  Andreas Schwab  <schwab@redhat.com>
23168
23169         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
23170         __feraiseexcept instead of feraiseexcept.
23171
23172 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
23173
23174         * math/math_private.h: Define defaults for libc_fetestexcept and
23175         libc_feupdateenv.
23176         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
23177         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
23178         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
23179         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
23180         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
23181         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
23182         libc_fetestexcept and libc_feupdateenv.
23183
23184         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
23185         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
23186         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
23187         * sysdeps/x86_64/fpu/math_private.h: Define special version of
23188         libc_feholdexcept_setround.
23189
23190         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
23191         Add s_nearbyint-c and s_nearbyintf-c.
23192         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
23193         nearbyintf inlines.
23194         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
23195         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
23196         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
23197         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
23198
23199         * math/math_private.h: Define defaults for libc_fegetround,
23200         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
23201         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
23202         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
23203         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
23204         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
23205         standard functions.
23206         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
23207         Remove comments and hacks for old compiler versions.
23208         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
23209         libc_fegetround, libc_fesetround, libc_feholdexcept, and
23210         libc_feholdexceptl.
23211
23212 2011-10-18  Andreas Schwab  <schwab@redhat.com>
23213
23214         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
23215         (__feraiseexcept_renamed): Add __NTH.
23216         (feraiseexcept): Add __NTH.  Rename local variables to fix
23217         namespace violations.
23218
23219 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
23220
23221         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
23222
23223         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
23224
23225         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
23226         recently added interfaces.
23227         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
23228
23229         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
23230         about macro parameter expansion.
23231
23232         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
23233         __NO_MATH_INLINES is defined.  Cleanups.
23234
23235         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
23236         and __floorf is target has SSE4.1.
23237         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
23238         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
23239         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
23240         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
23241
23242         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
23243         name.
23244         (floorf): Likewise.
23245
23246         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
23247
23248 2011-10-17  Andreas Schwab  <schwab@redhat.com>
23249
23250         * misc/sys/cdefs.h: Fix last change.
23251
23252         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
23253         database lookup.
23254
23255 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
23256
23257         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
23258
23259         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
23260         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
23261         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
23262         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
23263         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
23264         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
23265         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
23266         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
23267         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
23268         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
23269         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
23270         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
23271         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
23272         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
23273         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
23274         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
23275         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
23276         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
23277         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
23278         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
23279         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
23280         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
23281
23282         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
23283         ceil, ceilf, floor, floorf.
23284
23285         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
23286         Perform IRELATIVE relocations last.
23287
23288         * elf/do-rel.h: Add another parameter nrelative, replacing the
23289         local variable with the same name.  Change name of the function
23290         to end in Rel or Rela (uppercase).
23291         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
23292         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
23293         elf_dynamic_do_##reloc function.
23294
23295 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
23296
23297         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
23298         is sufficient, at least on modern CPUs.
23299
23300         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
23301
23302         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
23303         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
23304
23305         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
23306         __expl_finite.
23307         * math/bits/math-finite.h: Add entries for exp.
23308         * math/e_expl.c: Add __*_finite alias.
23309         * sysdeps/i386/fpu/e_exp.S: Likewise.
23310         * sysdeps/i386/fpu/e_expf.S: Likewise.
23311         * sysdeps/i386/fpu/e_expl.c: Likewise.
23312         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
23313         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
23314         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
23315         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
23316         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
23317         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
23318         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
23319
23320         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
23321         is sufficient, at least on modern CPUs.
23322
23323         * ctype/ctype-info.c (__ctype_init): Define.
23324         * include/ctype.h (__ctype_init): Declare.
23325         (__ctype_b_loc): The variable is always initialized.
23326         (__ctype_toupper_loc): Likewise.
23327         (__ctype_tolower_loc): Likewise.
23328         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
23329         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
23330
23331 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
23332
23333         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
23334
23335         * configure.in: Also look in $cxxmachine/include for C++ system
23336         headers.
23337
23338 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23339
23340         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
23341         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
23342         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
23343         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
23344         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
23345         (USE_AS_WMEMCMP): New macro.
23346         Fixing indents.
23347         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
23348         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
23349         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
23350         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
23351         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
23352         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
23353         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
23354         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
23355         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
23356         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
23357         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
23358         (USE_AS_WMEMCMP): New macro.
23359         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
23360         * sysdeps/string/test-memcmp.c: Update.
23361         Fix simple_wmemcmp.
23362         Add new tests.
23363         * wcsmbs/wmemcmp.c: Update.
23364         (WMEMCMP): New macro.
23365         Fix overflow bug.
23366
23367 2011-10-12  Andreas Jaeger  <aj@suse.de>
23368
23369         [BZ #13268]
23370         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
23371
23372 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
23373
23374         * libio/iofwide.c (do_length): Avoid warning.
23375
23376         * ctype/ctype.h (__isctype_f): Add missing __THROW.
23377
23378 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
23379
23380         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
23381
23382         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
23383         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
23384         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
23385         * sysdeps/i386/i686/fpu/e_log.S: New file.
23386         * sysdeps/i386/i686/fpu/e_logf.S: New file.
23387         * sysdeps/i386/i686/fpu/e_logl.S: New file.
23388
23389         * ctype/ctype.h: Add support for inlined isXXX functions when
23390         compiling C++ code.
23391
23392 2011-10-14  Andreas Schwab  <schwab@redhat.com>
23393
23394         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
23395
23396         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
23397
23398 2011-10-13  Roland McGrath  <roland@hack.frob.com>
23399
23400         [BZ #13291]
23401         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
23402
23403 2011-10-13  Andreas Schwab  <schwab@redhat.com>
23404
23405         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
23406         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
23407         feraiseexcept.
23408
23409         * sysdeps/x86_64/memrchr.S: Check for zero size.
23410
23411         * string/stratcliff.c: Add memrchr tests.
23412
23413 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23414
23415         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
23416         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
23417         rawmemchr-sse2 rawmemchr-sse2-bsf.
23418         * sysdeps/i386/i686/multiarch/memchr.S: New file.
23419         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
23420         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
23421         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
23422         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
23423         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
23424         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
23425         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
23426         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
23427         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
23428         * string/memrchr.c (MEMRCHR): New macro.
23429
23430 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
23431
23432         Add integration with gcc's -ffinite-math-only and optimize wrapper
23433         functions in libm.
23434         * Versions.def: Define GLIBC_2.15 version for libm.
23435         * math/Makefile (headers): Add bits/math-finite.h.
23436         * math/bits/math-finite.h: New file.
23437         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
23438         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
23439         * math/e_acoshl.c: Add __*_finite alias.
23440         * math/e_acosl.c: Likewise.
23441         * math/e_asinl.c: Likewise.
23442         * math/e_atan2l.c: Likewise.
23443         * math/e_atanhl.c: Likewise.
23444         * math/e_coshl.c: Likewise.
23445         * math/e_exp10.c: Likewise.
23446         * math/e_exp10f.c: Likewise.
23447         * math/e_exp10l.c: Likewise.
23448         * math/e_exp2l.c: Likewise.
23449         * math/e_fmodl.c: Likewise.
23450         * math/e_gammal_r.c: Likewise.
23451         * math/e_hypotl.c: Likewise.
23452         * math/e_j0l.c: Likewise.
23453         * math/e_j1l.c: Likewise.
23454         * math/e_jnl.c: Likewise.
23455         * math/e_lgammal_r.c: Likewise.
23456         * math/e_log10l.c: Likewise.
23457         * math/e_log2l.c: Likewise.
23458         * math/e_logl.c: Likewise.
23459         * math/e_powl.c: Likewise.
23460         * math/e_sinhl.c: Likewise.
23461         * math/e_sqrtl.c: Likewise.
23462         * math/e_scalb.c: Completely rewritten and optimized.
23463         * math/e_scalbf.c: Likewise.
23464         * math/e_scalbl.c: Likewise.
23465         * math/w_acos.c: Likewise.
23466         * math/w_acosf.c: Likewise.
23467         * math/w_acosl.c: Likewise.
23468         * math/w_acosh.c: Likewise.
23469         * math/w_acoshf.c: Likewise.
23470         * math/w_acoshl.c: Likewise.
23471         * math/w_asin.c: Likewise.
23472         * math/w_asinf.c: Likewise.
23473         * math/w_asinl.c: Likewise.
23474         * math/w_atan2.c: Likewise.
23475         * math/w_atan2f.c: Likewise.
23476         * math/w_atan2l.c: Likewise.
23477         * math/w_atanh.c: Likewise.
23478         * math/w_atanhf.c: Likewise.
23479         * math/w_atanhl.c: Likewise.
23480         * math/w_exp10.c: Likewise.
23481         * math/w_exp10f.c: Likewise.
23482         * math/w_exp10l.c: Likewise.
23483         * math/w_fmod.c: Likewise.
23484         * math/w_fmodf.c: Likewise.
23485         * math/w_fmodl.c: Likewise.
23486         * math/w_j0.c: Likewise.
23487         * math/w_j0f.c: Likewise.
23488         * math/w_j0l.c: Likewise.
23489         * math/w_j1.c: Likewise.
23490         * math/w_j1f.c: Likewise.
23491         * math/w_j1l.c: Likewise.
23492         * math/w_jn.c: Likewise.
23493         * math/w_jnf.c: Likewise.
23494         * math/w_log.c: Likewise.
23495         * math/w_logf.c: Likewise.
23496         * math/w_logl.c: Likewise.
23497         * math/w_log10.c: Likewise.
23498         * math/w_log10f.c: Likewise.
23499         * math/w_log10l.c: Likewise.
23500         * math/w_log2.c: Likewise.
23501         * math/w_log2f.c: Likewise.
23502         * math/w_log2l.c: Likewise.
23503         * math/w_pow.c: Likewise.
23504         * math/w_powf.c: Likewise.
23505         * math/w_powl.c: Likewise.
23506         * math/w_remainder.c: Likewise.
23507         * math/w_remainderf.c: Likewise.
23508         * math/w_remainderl.c: Likewise.
23509         * math/w_scalb.c: Likewise.
23510         * math/w_scalbf.c: Likewise.
23511         * math/w_scalbl.c: Likewise.
23512         * math/w_sqrt.c: Likewise.
23513         * math/w_sqrtf.c: Likewise.
23514         * math/w_sqrtl.c: Likewise.
23515         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
23516         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
23517         used.
23518         * math/math_private.h: Declare __kernel_standard_f.
23519         * math/w_cosh.c: Remove cruft and optimize a bit.
23520         * math/w_coshf.c: Likewise.
23521         * math/w_coshl.c: Likewise.
23522         * math/w_exp2.c: Likewise.
23523         * math/w_exp2f.c: Likewise.
23524         * math/w_exp2l.c: Likewise.
23525         * math/w_hypot.c: Likewise.
23526         * math/w_hypotf.c: Likewise.
23527         * math/w_hypotl.c: Likewise.
23528         * math/w_lgamma.c: Likewise.
23529         * math/w_lgamma_r.c: Likewise.
23530         * math/w_lgammaf.c: Likewise.
23531         * math/w_lgammaf_r.c: Likewise.
23532         * math/w_lgammal.c: Likewise.
23533         * math/w_lgammal_r.c: Likewise.
23534         * math/w_sinh.c: Likewise.
23535         * math/w_sinhf.c: Likewise.
23536         * math/w_sinhl.c: Likewise.
23537         * math/w_tgamma.c: Likewise.
23538         * math/w_tgammaf.c: Likewise.
23539         * math/w_tgammal.c: Likewise.
23540         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
23541         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
23542         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
23543         Minor optimizations.  Pretty printing.  Remove cruft.
23544         * sysdeps/i386/fpu/e_acosf.S: Likewise.
23545         * sysdeps/i386/fpu/e_acosh.S: Likewise.
23546         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
23547         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
23548         * sysdeps/i386/fpu/e_acosl.c: Likewise.
23549         * sysdeps/i386/fpu/e_asin.S: Likewise.
23550         * sysdeps/i386/fpu/e_asinf.S: Likewise.
23551         * sysdeps/i386/fpu/e_atan2.S: Likewise.
23552         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
23553         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
23554         * sysdeps/i386/fpu/e_atanh.S: Likewise.
23555         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
23556         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
23557         * sysdeps/i386/fpu/e_exp10.S: Likewise.
23558         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
23559         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
23560         * sysdeps/i386/fpu/e_exp2.S: Likewise.
23561         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
23562         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
23563         * sysdeps/i386/fpu/e_fmod.S: Likewise.
23564         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
23565         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
23566         * sysdeps/i386/fpu/e_hypot.S: Likewise.
23567         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
23568         * sysdeps/i386/fpu/e_log.S: Likewise.
23569         * sysdeps/i386/fpu/e_log10.S: Likewise.
23570         * sysdeps/i386/fpu/e_log10f.S: Likewise.
23571         * sysdeps/i386/fpu/e_log10l.S: Likewise.
23572         * sysdeps/i386/fpu/e_log2.S: Likewise.
23573         * sysdeps/i386/fpu/e_log2f.S: Likewise.
23574         * sysdeps/i386/fpu/e_log2l.S: Likewise.
23575         * sysdeps/i386/fpu/e_logf.S: Likewise.
23576         * sysdeps/i386/fpu/e_logl.S: Likewise.
23577         * sysdeps/i386/fpu/e_pow.S: Likewise.
23578         * sysdeps/i386/fpu/e_powf.S: Likewise.
23579         * sysdeps/i386/fpu/e_powl.S: Likewise.
23580         * sysdeps/i386/fpu/e_remainder.S: Likewise.
23581         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
23582         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
23583         * sysdeps/i386/fpu/e_scalb.S: Likewise.
23584         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
23585         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
23586         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
23587         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
23588         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
23589         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
23590         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
23591         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
23592         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
23593         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
23594         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
23595         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
23596         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
23597         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
23598         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
23599         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
23600         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
23601         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
23602         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
23603         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
23604         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
23605         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
23606         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
23607         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
23608         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
23609         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
23610         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
23611         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
23612         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
23613         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
23614         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
23615         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
23616         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
23617         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
23618         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
23619         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
23620         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
23621         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
23622         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
23623         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
23624         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
23625         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
23626         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
23627         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
23628         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
23629         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
23630         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
23631         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
23632         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
23633         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
23634         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
23635         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
23636         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
23637         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
23638         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
23639         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
23640         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
23641         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
23642         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
23643         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
23644         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
23645         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
23646         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
23647         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
23648         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
23649         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
23650         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
23651         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
23652         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
23653         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
23654         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
23655         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
23656         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
23657         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
23658         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
23659         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
23660         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
23661         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
23662         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
23663         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
23664         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
23665         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
23666         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
23667         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
23668         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
23669         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
23670         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
23671         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
23672         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
23673         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
23674         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
23675         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
23676         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
23677         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
23678         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
23679         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
23680         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
23681         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
23682         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
23683         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
23684         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
23685         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
23686         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
23687         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
23688         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
23689         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
23690         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
23691         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
23692         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
23693         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
23694         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
23695         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
23696         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
23697         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
23698         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
23699         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
23700         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
23701         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
23702         (__isnanf): Likewise.
23703         (__isinf_ns): Likewise.
23704         (__isinf_nsf): Likewise.
23705         (__finite): Likewise.
23706         (__finitef): Likewise.
23707         (__ieee754_sqrt): Define as macro.
23708         (__ieee754_sqrtf): Define as macro.
23709         (__ieee754_sqrtl): Define as macro.
23710         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
23711         inlined copy.
23712         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
23713         __FINITE_MATH_ONLY__ consistent.
23714         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
23715
23716 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
23717
23718         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
23719         of rawmemchr.
23720
23721         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
23722
23723 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
23724
23725         * po/ja.po: Update from translation team.
23726
23727 2011-10-08  Roland McGrath  <roland@hack.frob.com>
23728
23729         * locale/programs/locarchive.c (prepare_address_space): New function.
23730         (create_archive, enlarge_archive, open_archive): Use it.
23731
23732         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
23733         inside [SHARED], where it is used.
23734
23735         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
23736
23737         * nss/getent.c (netgroup_keys): Remove unused variable.
23738         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
23739
23740 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
23741
23742         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
23743         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
23744         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
23745         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
23746         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
23747         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
23748         * math/Makefile (libm-calls): Add s_isinf_ns.
23749         * math/divtc3.c: Use __isinf_nsl instead of isinf.
23750         * math/multc3.c: Likewise.
23751         * math/s_casin.c: Likewise.
23752         * math/s_casinf.c: Likewise.
23753         * math/s_casinl.c: Likewise.
23754         * math/s_ccos.c: Likewise.
23755         * math/s_ccosf.c: Likewise.
23756         * math/s_ccosl.c: Likewise.
23757         * math/s_ctan.c: Likewise.
23758         * math/s_ctanf.c: Likewise.
23759         * math/s_ctanh.c: Likewise.
23760         * math/s_ctanhf.c: Likewise.
23761         * math/s_ctanhl.c: Likewise.
23762         * math/s_ctanl.c: Likewise.
23763         * math/w_fmod.c: Likewise.
23764         * math/w_fmodf.c: Likewise.
23765         * math/w_fmodl.c: Likewise.
23766         * math/w_remainder.c: Likewise.
23767         * math/w_remainderf.c: Likewise.
23768         * math/w_remainderl.c: Likewise.
23769         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
23770         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
23771         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
23772         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
23773         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
23774         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
23775         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
23776         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
23777
23778         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
23779         of the number.
23780         * stdio-common/printf_fphex.c: Likewise.
23781         * stdio-common/printf_size.c: Likewise.
23782
23783         * math/e_exp10.c: Include math_private.h using <...> not "...".
23784         * math/e_exp10f.c: Likewise.
23785         * math/e_exp10l.c: Likewise.
23786         * math/e_exp2l.c: Likewise.
23787         * math/e_j0l.c: Likewise.
23788         * math/e_j1l.c: Likewise.
23789         * math/e_jnl.c: Likewise.
23790         * math/e_lgammal_r.c: Likewise.
23791         * math/e_rem_pio2l.c: Likewise.
23792         * math/e_scalb.c: Likewise.
23793         * math/e_scalbf.c: Likewise.
23794         * math/e_scalbl.c: Likewise.
23795         * math/k_cosl.c: Likewise.
23796         * math/k_sinl.c: Likewise.
23797         * math/k_tanl.c: Likewise.
23798         * math/s_cacoshf.c: Likewise.
23799         * math/s_catan.c: Likewise.
23800         * math/s_catanf.c: Likewise.
23801         * math/s_catanh.c: Likewise.
23802         * math/s_catanhf.c: Likewise.
23803         * math/s_catanhl.c: Likewise.
23804         * math/s_catanl.c: Likewise.
23805         * math/s_ccosh.c: Likewise.
23806         * math/s_ccoshf.c: Likewise.
23807         * math/s_ccoshl.c: Likewise.
23808         * math/s_cexp.c: Likewise.
23809         * math/s_cexpf.c: Likewise.
23810         * math/s_cexpl.c: Likewise.
23811         * math/s_clog.c: Likewise.
23812         * math/s_clog10.c: Likewise.
23813         * math/s_clog10f.c: Likewise.
23814         * math/s_clog10l.c: Likewise.
23815         * math/s_clogf.c: Likewise.
23816         * math/s_clogl.c: Likewise.
23817         * math/s_csin.c: Likewise.
23818         * math/s_csinf.c: Likewise.
23819         * math/s_csinh.c: Likewise.
23820         * math/s_csinhf.c: Likewise.
23821         * math/s_csinhl.c: Likewise.
23822         * math/s_csinl.c: Likewise.
23823         * math/s_csqrt.c: Likewise.
23824         * math/s_csqrtf.c: Likewise.
23825         * math/s_csqrtl.c: Likewise.
23826         * math/s_ctan.c: Likewise.
23827         * math/s_ctanf.c: Likewise.
23828         * math/s_ctanh.c: Likewise.
23829         * math/s_ctanhf.c: Likewise.
23830         * math/s_ctanhl.c: Likewise.
23831         * math/s_ctanl.c: Likewise.
23832         * math/s_ldexp.c: Likewise.
23833         * math/s_ldexpf.c: Likewise.
23834         * math/s_ldexpl.c: Likewise.
23835         * math/s_significand.c: Likewise.
23836         * math/s_significandf.c: Likewise.
23837         * math/s_significandl.c: Likewise.
23838         * math/w_acos.c: Likewise.
23839         * math/w_acosf.c: Likewise.
23840         * math/w_acosh.c: Likewise.
23841         * math/w_acoshf.c: Likewise.
23842         * math/w_acoshl.c: Likewise.
23843         * math/w_acosl.c: Likewise.
23844         * math/w_asin.c: Likewise.
23845         * math/w_asinf.c: Likewise.
23846         * math/w_asinl.c: Likewise.
23847         * math/w_atan2.c: Likewise.
23848         * math/w_atan2f.c: Likewise.
23849         * math/w_atan2l.c: Likewise.
23850         * math/w_atanh.c: Likewise.
23851         * math/w_atanhf.c: Likewise.
23852         * math/w_atanhl.c: Likewise.
23853         * math/w_cosh.c: Likewise.
23854         * math/w_coshf.c: Likewise.
23855         * math/w_coshl.c: Likewise.
23856         * math/w_dremf.c: Likewise.
23857         * math/w_exp10.c: Likewise.
23858         * math/w_exp10f.c: Likewise.
23859         * math/w_exp10l.c: Likewise.
23860         * math/w_exp2.c: Likewise.
23861         * math/w_exp2f.c: Likewise.
23862         * math/w_fmod.c: Likewise.
23863         * math/w_fmodf.c: Likewise.
23864         * math/w_fmodl.c: Likewise.
23865         * math/w_hypot.c: Likewise.
23866         * math/w_hypotf.c: Likewise.
23867         * math/w_hypotl.c: Likewise.
23868         * math/w_j0.c: Likewise.
23869         * math/w_j0f.c: Likewise.
23870         * math/w_j0l.c: Likewise.
23871         * math/w_j1.c: Likewise.
23872         * math/w_j1f.c: Likewise.
23873         * math/w_j1l.c: Likewise.
23874         * math/w_jn.c: Likewise.
23875         * math/w_jnf.c: Likewise.
23876         * math/w_jnl.c: Likewise.
23877         * math/w_lgamma.c: Likewise.
23878         * math/w_lgamma_r.c: Likewise.
23879         * math/w_lgammaf.c: Likewise.
23880         * math/w_lgammaf_r.c: Likewise.
23881         * math/w_lgammal.c: Likewise.
23882         * math/w_lgammal_r.c: Likewise.
23883         * math/w_log.c: Likewise.
23884         * math/w_log10.c: Likewise.
23885         * math/w_log10f.c: Likewise.
23886         * math/w_log10l.c: Likewise.
23887         * math/w_log2.c: Likewise.
23888         * math/w_log2f.c: Likewise.
23889         * math/w_log2l.c: Likewise.
23890         * math/w_logf.c: Likewise.
23891         * math/w_logl.c: Likewise.
23892         * math/w_pow.c: Likewise.
23893         * math/w_powf.c: Likewise.
23894         * math/w_powl.c: Likewise.
23895         * math/w_remainder.c: Likewise.
23896         * math/w_remainderf.c: Likewise.
23897         * math/w_remainderl.c: Likewise.
23898         * math/w_scalb.c: Likewise.
23899         * math/w_scalbf.c: Likewise.
23900         * math/w_scalbl.c: Likewise.
23901         * math/w_sinh.c: Likewise.
23902         * math/w_sinhf.c: Likewise.
23903         * math/w_sinhl.c: Likewise.
23904         * math/w_sqrt.c: Likewise.
23905         * math/w_sqrtf.c: Likewise.
23906         * math/w_sqrtl.c: Likewise.
23907         * math/w_tgamma.c: Likewise.
23908         * math/w_tgammaf.c: Likewise.
23909         * math/w_tgammal.c: Likewise.
23910
23911         * po/ja.po: Update from translation team.
23912
23913 2011-09-29  Andreas Jaeger  <aj@suse.de>
23914
23915         [BZ #13179]
23916         * sunrpc/netname.c (netname2host): Fix logic.
23917
23918         [BZ #6779]
23919         [BZ #6783]
23920         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
23921         correctly.
23922         * math/w_remainder.c (__remainder): Likewise.
23923         * math/w_remainderf.c (__remainderf): Likewise.
23924         * math/libm-test.inc (remainder_test): Add test cases.
23925
23926 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23927
23928         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
23929         sdiv_qrnnd.
23930
23931 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
23932
23933         * string/test-memcmp.c: Avoid unncessary #defines.
23934         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
23935
23936 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23937
23938         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
23939         Use new sse2 version for core i3 - i7 as it's faster
23940         than sse42 version.
23941         (bit_Prefer_PMINUB_for_stringop): New.
23942         * sysdeps/x86_64/rawmemchr.S: Update.
23943         Replace with faster SSE2 version.
23944         * sysdeps/x86_64/memrchr.S: New file.
23945         * sysdeps/x86_64/memchr.S: Update.
23946         Replace with faster SSE2 version.
23947
23948 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
23949
23950         * elf/dl-load.c (lose): Add cast to avoid warning.
23951
23952 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
23953
23954         * po/ca.po: Update from translation team.
23955
23956         * inet/getnetgrent_r.c: Hook up nscd.
23957         * nscd/Makefile (routines): Add nscd_netgroup.
23958         (nscd-modules): Add netgroupcache.
23959         (CFLAGS-netgroupcache.c): Define.
23960         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
23961         (cache_search): Add const to second parameter.
23962         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
23963         INNETGR.
23964         (dbs): Add netgrdb entry.
23965         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
23966         (verify_persistent_db): Handle netgrdb.
23967         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
23968         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
23969         GETFDNETGR.
23970         (netgroup_response_header): Define.
23971         (innetgroup_response_header): Define.
23972         (datahead): Add netgroup_response_header and innetgroup_response_header
23973         elements.
23974         * nscd/nscd.conf: Add entries for netgroup cache.
23975         * nscd/nscd.h (dbtype): Add netgrdb.
23976         (_PATH_NSCD_NETGROUP_DB): Define.
23977         (netgroup_iov_disabled): Declare.
23978         (xmalloc, xcalloc, xrealloc): Move declarations here.
23979         (cache_search): Adjust prototype.
23980         Add netgroup-related prototypes.
23981         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
23982         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
23983         (__nscd_innetgr): Declare.
23984         * nscd/selinux.c (perms): Use access_vector_t as element type and
23985         add netgroup-related initializers.
23986         * nscd/netgroupcache.c: New file.
23987         * nscd/nscd_netgroup.c: New file.
23988         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
23989         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
23990         For four parameters use innetgr.
23991         * nss/nss_files/files-init.c: Add definition and callback for netgr.
23992         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
23993         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
23994         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
23995
23996         * nscd/connections.c (register_traced_file): Don't register file
23997         for disabled databases.
23998
23999 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
24000
24001         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
24002
24003         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
24004         from tree and freeing node.
24005
24006 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
24007
24008         * nss/nsswitch.c (__nss_database_lookup): Handle
24009         nss_parse_service_list out of memory case.
24010
24011 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
24012
24013         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
24014         out of memory case.
24015
24016 2011-10-04  Andreas Schwab  <schwab@redhat.com>
24017
24018         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
24019         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
24020         pass it down.
24021         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
24022         elf_machine_rela, elf_machine_lazy_rel.
24023         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
24024         (ELF_DYNAMIC_DO_REL): Likewise.
24025         (ELF_DYNAMIC_DO_RELA): Likewise.
24026         (ELF_DYNAMIC_RELOCATE): Likewise.
24027         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
24028         to ELF_DYNAMIC_DO_REL.
24029         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
24030         (dl_main): In trace mode always set __RTLD_NOIFUNC.
24031         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
24032         elf_machine_rela.
24033         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
24034         skip_ifunc, don't call ifunc function if non-zero.
24035         (elf_machine_rela): Likewise.
24036         (elf_machine_lazy_rel): Likewise.
24037         (elf_machine_lazy_rela): Likewise.
24038         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
24039         (elf_machine_lazy_rel): Likewise.
24040         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
24041         Likewise.
24042         (elf_machine_lazy_rel): Likewise.
24043         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
24044         Likewise.
24045         (elf_machine_lazy_rel): Likewise.
24046         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
24047         (elf_machine_lazy_rel): Likewise.
24048         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
24049         (elf_machine_lazy_rel): Likewise.
24050         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
24051         (elf_machine_lazy_rel): Likewise.
24052         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
24053         (elf_machine_lazy_rel): Likewise.
24054         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
24055         (elf_machine_lazy_rel): Likewise.
24056         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
24057         (elf_machine_lazy_rel): Likewise.
24058
24059 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
24060
24061         * nss/nss_files/files-init.c (_nss_files_init): Use static
24062         initialization for all the *_traced_file variables.
24063
24064 2011-09-28  Andreas Schwab  <schwab@redhat.com>
24065
24066         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
24067
24068 2011-09-27  Roland McGrath  <roland@hack.frob.com>
24069
24070         [BZ #13226]
24071         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
24072
24073 2011-09-27  Andreas Schwab  <schwab@redhat.com>
24074
24075         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
24076         Reread the line before reparsing it.
24077
24078 2011-09-26  Andreas Schwab  <schwab@redhat.com>
24079
24080         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
24081
24082 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
24083             Maxim Kuvyrkov  <maxim@codesourcery.com>
24084             Joseph Myers  <joseph@codesourcery.com>
24085
24086         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
24087         if needed for __stack_chk_guard.
24088
24089 2011-09-19  Roland McGrath  <roland@hack.frob.com>
24090
24091         * sysdeps/posix/spawni.c (script_execute): Always define it.
24092         It will be optimized away if unused.
24093         (maybe_script_execute): New function.
24094         (__spawni): Call it.
24095
24096         * Makerules: Don't include tls.make.
24097         (config-tls): Always set to thread.
24098         * tls.make.c: File removed.
24099
24100 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
24101
24102         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
24103         * config.make.in (CPPFLAGS-config): New substituted variable.
24104
24105 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
24106
24107         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
24108
24109         [BZ #13192]
24110         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
24111         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
24112
24113 2011-09-15  Roland McGrath  <roland@hack.frob.com>
24114
24115         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
24116         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
24117         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
24118         (CALL_FAIL): Likewise.
24119         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
24120         (CALL_FAIL): Macro removed.
24121         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
24122
24123 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
24124
24125         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
24126         for __FINITE_MATH_ONLY__ == 1.
24127
24128 2011-09-15  Andreas Schwab  <schwab@redhat.com>
24129
24130         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
24131         __ieee754_sqrt instead of sqrt.
24132         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
24133         __ieee754_sqrtf instead of sqrtf.
24134         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
24135         __floorf instead of floorf.
24136         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
24137         __floorf, __truncf instead of floorf, truncf.
24138
24139 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
24140
24141         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
24142
24143         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
24144         __extern_always_inline.
24145         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
24146         32-bit.
24147
24148 2011-09-14  Andreas Schwab  <schwab@redhat.com>
24149
24150         * elf/rtld.c (dl_main): Also relocate in dependency order when
24151         doing symbol dependency testing.
24152
24153 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
24154
24155         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
24156         Always define `refsym'.
24157
24158 2011-09-13  Andreas Schwab  <schwab@redhat.com>
24159
24160         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
24161         (__FD_ELT): Renamed from __FDELT.
24162         * misc/bits/select2.h (__FD_ELT): Likewise.
24163         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
24164         __FD_MASK instead of __FDELT, __FDMASK.
24165         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
24166         Likewise.
24167         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
24168         Likewise.
24169
24170         * elf/Makefile (gen-ldd): Fix pattern.
24171
24172         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
24173         (init_tls): Likewise.
24174
24175 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
24176
24177         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
24178
24179 2011-09-12  Andreas Schwab  <schwab@redhat.com>
24180
24181         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
24182         `struct cmsghdr *' instead of `void *'.
24183         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
24184         Likewise.
24185
24186 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
24187
24188         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
24189         if non-absolute.
24190         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
24191         ldd_rewrite_script.
24192
24193 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
24194
24195         * configure.in: Remove --with-tls option.
24196         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
24197         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
24198         out in case it is missing.
24199         * sysdeps/ia64/elf/configure.in: Likewise.
24200         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
24201         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
24202         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
24203         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
24204         * sysdeps/sh/elf/configure.in: Likewise.
24205         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
24206         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
24207         * sysdeps/x86_64/elf/configure.in: Likewise.
24208         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
24209         * sysdeps/mach/hurd/tls.h: Likewise.
24210
24211         [BZ #13067]
24212         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
24213
24214         [BZ #13090]
24215         * configure.in: Fix use of AC_INIT.
24216
24217         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
24218
24219 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
24220
24221         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
24222         __set_errno.
24223         * malloc/hooks.c: Likewise.
24224
24225         [BZ #11929]
24226         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
24227         variables statically.
24228         (narenas): Initialize.
24229         (list_lock): Initialize.
24230         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
24231         initializtion of main_arena and list_lock.  Small cleanups.
24232         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
24233         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
24234         Add initializers to main_arena and mp_.
24235         (malloc_state): Remove pagesize member.  Change all users to use
24236         GLRO(dl_pagesize).
24237
24238         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
24239         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
24240         is always initialized.
24241
24242         * malloc/malloc.c: Removed unused configurations and dead code.
24243         * malloc/arena.c: Likewise.
24244         * malloc/hooks.c: Likewise.
24245         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
24246
24247         * include/tls.h: Removed.  USE___THREAD must always be defined.
24248         * bits/libc-tsd.h: Don't handle !USE___THREAD.
24249         * elf/dl-libc.c: Likewise.
24250         * elf/dl-tsd.c: Likewise.
24251         * include/errno.h: Likewise.
24252         * include/netdb.h: Likewise.
24253         * include/resolv.h: Likewise.
24254         * inet/herrno-loc.c: Likewise.
24255         * inet/herrno.c: Likewise.
24256         * malloc/arena.c: Likewise.
24257         * malloc/hooks.c: Likewise.
24258         * malloc/malloc.c: Likewise.
24259         * resolv/res-state.c: Likewise.
24260         * resolv/res_libc.c: Likewise.
24261         * sysdeps/i386/dl-machine.h: Likewise.
24262         * sysdeps/ia64/dl-machine.h: Likewise.
24263         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
24264         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
24265         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
24266         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
24267         * sysdeps/sh/dl-machine.h: Likewise.
24268         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
24269         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
24270         * sysdeps/unix/i386/sysdep.S: Likewise.
24271         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
24272         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
24273         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
24274         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
24275         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
24276         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
24277         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
24278         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
24279         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
24280         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
24281         * sysdeps/unix/x86_64/sysdep.S: Likewise.
24282         * sysdeps/x86_64/dl-machine.h: Likewise.
24283         * tls.make.c: Likewise.
24284
24285         * configure.in: Remove --with-__thread option.  Make tests for
24286         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
24287         tls_model attribute fail if no support is available.  Remove
24288         USE_IN_LIBIO.
24289         * Makeconfig: Adjust for dropped configure option.  All features are
24290         now mandatory.
24291         * Makerules: Likewise.
24292         * Versions.def: Likewise.
24293         * argp/argp-fmtstream.c: Likewise.
24294         * argp/argp-fmtstream.h: Likewise.
24295         * argp/argp-help.c: Likewise.
24296         * assert/assert.c: Likewise.
24297         * config.h.in: Likewise.
24298         * config.make.in: Likewise.
24299         * configure: Likewise.
24300         * configure.in: Likewise.
24301         * csu/Versions: Likewise.
24302         * csu/init.c: Likewise.
24303         * elf/tst-audit2.c: Likewise.
24304         * elf/tst-tls10.c: Likewise.
24305         * elf/tst-tls10.h: Likewise.
24306         * elf/tst-tls11.c: Likewise.
24307         * elf/tst-tls12.c: Likewise.
24308         * elf/tst-tls14.c: Likewise.
24309         * elf/tst-tlsmod11.c: Likewise.
24310         * elf/tst-tlsmod12.c: Likewise.
24311         * elf/tst-tlsmod13.c: Likewise.
24312         * elf/tst-tlsmod13a.c: Likewise.
24313         * elf/tst-tlsmod14a.c: Likewise.
24314         * elf/tst-tlsmod15b.c: Likewise.
24315         * elf/tst-tlsmod16a.c: Likewise.
24316         * elf/tst-tlsmod16b.c: Likewise.
24317         * elf/tst-tlsmod7.c: Likewise.
24318         * elf/tst-tlsmod8.c: Likewise.
24319         * elf/tst-tlsmod9.c: Likewise.
24320         * gmon/gmon.c: Likewise.
24321         * grp/fgetgrent_r.c: Likewise.
24322         * grp/putgrent.c: Likewise.
24323         * hurd/fopenport.c: Likewise.
24324         * include/libc-symbols.h: Likewise.
24325         * include/tls.h: Likewise.
24326         * intl/gettextP.h: Likewise.
24327         * intl/loadinfo.h: Likewise.
24328         * locale/global-locale.c: Likewise.
24329         * locale/localeinfo.h: Likewise.
24330         * mach/devstream.c: Likewise.
24331         * malloc/arena.c: Likewise.
24332         * malloc/set-freeres.c: Likewise.
24333         * misc/err.c: Likewise.
24334         * misc/getttyent.c: Likewise.
24335         * misc/mntent_r.c: Likewise.
24336         * posix/getopt.c: Likewise.
24337         * posix/wordexp.c: Likewise.
24338         * pwd/fgetpwent_r.c: Likewise.
24339         * resolv/Versions: Likewise.
24340         * resolv/res_hconf.c: Likewise.
24341         * shadow/fgetspent_r.c: Likewise.
24342         * shadow/putspent.c: Likewise.
24343         * stdio-common/printf_fphex.c: Likewise.
24344         * stdio-common/tmpfile.c: Likewise.
24345         * stdlib/abort.c: Likewise.
24346         * stdlib/fmtmsg.c: Likewise.
24347         * sunrpc/auth_unix.c: Likewise.
24348         * sunrpc/clnt_perr.c: Likewise.
24349         * sunrpc/clnt_tcp.c: Likewise.
24350         * sunrpc/clnt_udp.c: Likewise.
24351         * sunrpc/clnt_unix.c: Likewise.
24352         * sunrpc/openchild.c: Likewise.
24353         * sunrpc/svc_simple.c: Likewise.
24354         * sunrpc/svc_tcp.c: Likewise.
24355         * sunrpc/svc_udp.c: Likewise.
24356         * sunrpc/svc_unix.c: Likewise.
24357         * sunrpc/xdr.c: Likewise.
24358         * sunrpc/xdr_array.c: Likewise.
24359         * sunrpc/xdr_rec.c: Likewise.
24360         * sunrpc/xdr_ref.c: Likewise.
24361         * sunrpc/xdr_stdio.c: Likewise.
24362
24363 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
24364
24365         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
24366
24367 2011-07-03  Andreas Jaeger  <aj@suse.de>
24368
24369         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
24370         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
24371         regenerate with gen-libm-tests.pl.
24372
24373 2010-05-12  Petr Baudis  <pasky@suse.cz>
24374
24375         [BZ #11589]
24376         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
24377         around j0() zero points by switching to j1().
24378         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
24379         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
24380         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
24381         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
24382
24383 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
24384
24385         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
24386         instead of 0.
24387         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
24388         instead of 0.
24389         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
24390         Patch in part by Pavel Roskin <proski@gnu.org>.
24391
24392         [BZ #13138]
24393         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
24394         realloc.
24395         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
24396         Free memory block if necessary.
24397
24398         [BZ #12847]
24399         * libio/genops.c (INTDEF): For string streams the _lock pointer can
24400         be NULL.  Don't lock in this case.
24401
24402 2011-09-09  Roland McGrath  <roland@hack.frob.com>
24403
24404         * elf/elf.h (ELFOSABI_GNU): New macro.
24405         (ELFOSABI_LINUX): Define to that.
24406
24407 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
24408
24409         * string/strncat.c (strncat): Undef the symbol in case it has been
24410         defined in bits/string.h.
24411
24412 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
24413
24414         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
24415
24416         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
24417         link map.
24418
24419 2011-08-17  Andreas Jaeger  <aj@suse.de>
24420
24421         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
24422
24423 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
24424             Ian Lance Taylor  <iant@google.com>
24425
24426         * math/libm-test.inc (lround_test): New testcase.
24427         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
24428
24429 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
24430
24431         * Makefile: Remove support for automatic cvs check-ins.
24432         * Makerules: Likewise.
24433         * config.make.in: Likewise.
24434         * configure.in: Likewise.
24435         * intl/Makefile: Likewise.
24436         * locale/Makefile: Likewise.
24437         * po/Makefile: Likewise.
24438         * posix/Makefile: Likewise.
24439         * sysdeps/gnu/Makefile: Likewise.
24440         * sysdeps/mach/hurd/Makefile: Likewise.
24441         * sysdeps/sparc/sparc32/Makefile: Likewise.
24442
24443         [BZ #13118]
24444         * posix/Makefile (bug-regex32-ENV): Define.
24445         Patch by John Stanley <jpsinthemix@verizon.net>.
24446
24447         * misc/Makefile (headers): Add bits/select2.h.
24448         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
24449         * misc/bits/select2.h: New file.
24450         * include/bits/select2.h: New file.
24451         * debug/Makefile (routines): Add fdelt_chk.
24452         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
24453         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
24454         FD_ISSET.
24455         * debug/fdelt_chk.c: New file.
24456
24457         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
24458         * wcsmbs/test-wmemcmp.c: Likewise.
24459         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
24460         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
24461
24462 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
24463
24464         * string/Makefile (strop-tests): Add memcmp.
24465         * string/test-wmemcmp.c: New file.
24466         * string/test-memcmp.c: Add wmemcmp support.
24467
24468 2011-09-08  Roland McGrath  <roland@hack.frob.com>
24469
24470         [BZ #13153]
24471         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
24472         2011-07-19 change.
24473
24474         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
24475         garbage value in a __mach_port_mod_refs call in the cases of the
24476         task-self and thread-self ports.
24477
24478 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24479
24480         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
24481
24482 2011-09-08  Andreas Schwab  <schwab@redhat.com>
24483
24484         * elf/dl-load.c (lose): Check for non-null L.
24485
24486 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
24487
24488         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
24489
24490         * elf/dl-libc.c (dlerror_run): Pass back error code from
24491         dl_catch_error.
24492
24493         [BZ #13123]
24494         * elf/dl-load.c (lose): Free l_origin if it is valid.
24495
24496         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
24497         names.
24498         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
24499         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
24500         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
24501         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
24502         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
24503         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
24504
24505 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24506
24507         * sysdeps/powerpc/fpu/e_hypot.c: New file.
24508         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
24509         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
24510         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
24511         * sysdeps/powerpc/fpu/k_cosf.c: New file.
24512         * sysdeps/powerpc/fpu/k_sinf.c: New file.
24513         * sysdeps/powerpc/fpu/s_cosf.c: New file.
24514         * sysdeps/powerpc/fpu/s_sinf.c: New file.
24515         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
24516         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
24517
24518 2011-08-15  Alan Modra  <amodra@gmail.com>
24519
24520         [BZ #13092]
24521         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
24522         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
24523         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
24524         ppc_mcount to static-only-routines.
24525         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
24526         __mcount_internal.
24527         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
24528         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
24529
24530 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
24531
24532         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
24533         for finite and infinity parameters.
24534
24535 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
24536
24537         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
24538         and add nop instructions for throughput optimization.
24539         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
24540
24541 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
24542
24543         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
24544         aligned copy for power7 with vector-scalar instructions.
24545         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
24546
24547 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
24548
24549         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
24550         AVX check.
24551
24552 2011-09-07  Andreas Schwab  <schwab@redhat.com>
24553
24554         [BZ #13144]
24555         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
24556         last change.
24557
24558 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
24559
24560         * sysdeps/unix/sysv/linux/x86_64/init-first.c
24561         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
24562         syscall wrapper around clock_gettime in __vdso_clock_gettime.
24563         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
24564         clock_gettime.
24565
24566 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
24567
24568         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
24569         Forgot to demangle the pointer.
24570
24571         * sysdeps/i386/sysdep.h: Define atom_text_section.
24572         * sysdeps/x86_64/sysdep.h: Likewise.
24573         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
24574         section with atom_text_section.
24575         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
24576         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
24577         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
24578         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
24579         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
24580
24581         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
24582         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
24583         already be defined.  Change to take two parameters and don't assign
24584         result to variable.  Adjust all users.
24585         Define INTERNAL_GETTIME if not already defined.
24586         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
24587         call.
24588         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
24589         HAVE_CLOCK_GETTIME_VSYSCALL.
24590         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
24591
24592         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
24593         gettimeofday vsyscall, just use time.
24594
24595 2011-09-06  Andreas Schwab  <schwab@redhat.com>
24596
24597         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
24598         <errno.h>.
24599
24600 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
24601
24602         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
24603         syscall on x86-64.
24604         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
24605         syscall.
24606         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
24607         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
24608         syscall if possible.
24609
24610 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
24611
24612         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
24613         e_ident.  Don't pass to find_mapsXX.
24614         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
24615
24616 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
24617
24618         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
24619         strchr-sse2-no-bsf strrchr-sse2-no-bsf
24620         * sysdeps/x86_64/multiarch/strchr.S: Update.
24621         Check bit_slow_BSF bit.
24622         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
24623         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
24624         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
24625
24626 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
24627
24628         [BZ #13134]
24629         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
24630         before glibc 2.15.
24631         (tryshell): Define.
24632         (__spawni): Change last parameter to be flag.  Test
24633         SPAWN_XFLAGS_USE_PATH flag to use path or not.
24634         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
24635         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
24636         * posix/spawni.c: Likewise.
24637         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
24638         * posix/spawnp.c: Likewise.  Change normal version to use
24639         SPAWN_XFLAGS_USE_PATH.
24640         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
24641         SPAWN_XFLAGS_TRY_SHELL.
24642
24643         [BZ #13150]
24644         * posix/glob.h: Remove gcc 1.x support.
24645
24646         [BZ #13068]
24647         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
24648
24649 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
24650
24651         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
24652         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
24653         strrchr-sse2-bsf
24654         * sysdeps/i386/i686/multiarch/strchr.S: New file.
24655         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
24656         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
24657         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
24658         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
24659         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
24660
24661 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
24662
24663         * sysdeps/x86_64/wcscmp.S: New file.
24664
24665         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
24666         wcscmp-c wcscmp-sse2
24667         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
24668         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
24669         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
24670         * wcsmbs/wcscmp.c: Allow renaming.
24671
24672 2011-09-05  David S. Miller  <davem@davemloft.net>
24673
24674         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
24675         stack slot, rather than the struct return pointer slot.
24676         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
24677         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
24678         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
24679         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
24680
24681 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
24682
24683         * po/ja.po: Update from translation team.
24684
24685         [BZ #13144]
24686         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
24687         kernel in 64-bit binaries.
24688
24689 2011-09-01  David S. Miller  <davem@davemloft.net>
24690
24691         * elf/elf.h (HWCAP_SPARC_*): Move to..
24692         * sysdeps/sparc/sysdep.h: this new file and add new values.
24693         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
24694         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
24695         _DL_HWCAP_COUNT to 24.
24696         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
24697         entries.
24698         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
24699         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
24700         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
24701         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
24702         instead of magic constants.
24703         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
24704
24705 2011-08-31  David S. Miller  <davem@davemloft.net>
24706
24707         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
24708         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
24709         Reimplement to do errno handling inline.
24710         (SYSCALL_ERROR_HANDLER): New macro.
24711         (__SYSCALL_STRING): Do not do errno handling in asm.
24712         (__CLONE_SYSCALL_STRING): Delete.
24713         (__INTERNAL_SYSCALL_STRING): Delete.
24714         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
24715         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
24716         (PSEUDO): Reimplement to do errno handling inline.
24717         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
24718         (SYSCALL_ERROR_HANDLER): New macro.
24719         (__SYSCALL_STRING): Do not do errno handling in asm.
24720         (__CLONE_SYSCALL_STRING): Delete.
24721         (__INTERNAL_SYSCALL_STRING): Delete.
24722         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
24723         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
24724         i386.
24725         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
24726         (inline_syscall*): Add 'err' argument.
24727         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
24728         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
24729         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
24730         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
24731
24732         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
24733         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
24734
24735 2011-08-30  Andreas Schwab  <schwab@redhat.com>
24736
24737         * elf/rtld.c (dl_main): Relocate objects in dependency order.
24738
24739 2011-08-29  Jiri Olsa <jolsa@redhat.com>
24740
24741         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
24742         directive.
24743
24744 2011-08-24  David S. Miller  <davem@davemloft.net>
24745
24746         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
24747
24748 2011-08-24  Andreas Schwab  <schwab@redhat.com>
24749
24750         * elf/Makefile: Add rules to build and run unload8 test.
24751         * elf/unload8.c: New file.
24752         * elf/unload8mod1.c: New file.
24753         * elf/unload8mod1x.c: New file.
24754         * elf/unload8mod2.c: New file.
24755         * elf/unload8mod3.c: New file.
24756
24757         * elf/dl-close.c (_dl_close_worker): Reset private search list if
24758         it wasn't used.
24759
24760 2011-08-23  David S. Miller  <davem@davemloft.net>
24761
24762         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
24763         subtract stack bias.
24764         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
24765         %sp not %fp in calculations.
24766         (_JMPBUF_UNWINDS_ADJ): Likewise.
24767
24768         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
24769         (aio_suspend): Call it to force an exception region around the
24770         AIO_MISC_WAIT() invocation.
24771
24772 2011-08-23  Andreas Schwab  <schwab@redhat.com>
24773
24774         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
24775         backslash.
24776
24777 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
24778
24779         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
24780         protection macro.
24781         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
24782         and <dl-machine.h>.
24783         (Elf64_FuncDesc): Remove.
24784
24785 2011-08-22  David S. Miller  <davem@davemloft.net>
24786
24787         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
24788         sigaltstack check, add missing cfi directives.
24789         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
24790         missing cfi directives, and sigaltstack handling.
24791
24792 2011-08-16  Andreas Schwab  <schwab@redhat.com>
24793
24794         [BZ #11724]
24795         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
24796         object is seen twice.
24797         * elf/dl-fini.c (_dl_sort_fini): Likewise.
24798
24799         * elf/Makefile (distribute): Add tst-initorder2.c.
24800         (tests): Add tst-initorder2.
24801         (modules-names): Add tst-initorder2a tst-initorder2b
24802         tst-initorder2c tst-initorder2d.  Add rules to build them.
24803         ($(objpfx)tst-initorder2.out): New rule.
24804         * elf/tst-initorder2.c: New file.
24805         * elf/tst-initorder2.exp: New file.
24806
24807 2011-08-22  Andreas Schwab  <schwab@redhat.com>
24808
24809         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
24810
24811         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
24812         dependencies back to end of function.
24813
24814         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
24815         $(elfobjdir)/ld.so.
24816
24817 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
24818
24819         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
24820         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
24821         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
24822         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
24823         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
24824         of __vdso_gettimeofday.
24825         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
24826         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
24827         attribute_hidden.
24828         (_libc_vdso_platform_setup): Remove initialization of
24829         __vdso_gettimeofday and __vdso_time.
24830
24831 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
24832
24833         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
24834         and fgetc_unlocked.
24835         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
24836         getc_unlocked.
24837
24838         * elf/dl-open.c (add_to_global): Report additions to the global scope
24839         for LD_DEBUG=scopes.
24840         (dl_open_worker): Also print scope of newly loaded dependencies.
24841         (_dl_show_scope): Indicate if there is no scope.
24842
24843         [BZ #13114]
24844         * stdio-common/Makefile (tests): Add bug24.
24845         * stdio-common/bug24.c: New file.
24846
24847 2011-08-19  Andreas Jaeger  <aj@suse.de>
24848
24849         [BZ #13114]
24850         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
24851         non-existant file when using close-on-exec mode.
24852
24853 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
24854
24855         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
24856         the very first instruction.
24857
24858         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
24859         the CFI state in the end.
24860         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
24861         inclusion of dl-trampoline.h.
24862         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
24863
24864 2011-08-19  Andreas Schwab  <schwab@redhat.com>
24865
24866         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
24867         expectations for long double.
24868
24869         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
24870         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
24871
24872 2011-08-14  David S. Miller  <davem@davemloft.net>
24873
24874         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
24875         artificual limit depends upon the system page size.
24876
24877 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
24878
24879         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
24880         * resolv/Makefile: Define CFLAGS-libresolv.
24881
24882 2011-08-17  Andreas Schwab  <schwab@redhat.com>
24883
24884         * nss/makedb.c (compute_tables): Make variables used in nested
24885         function static.
24886
24887 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
24888
24889         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
24890         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
24891         if buffer was too small.
24892
24893         * elf/pldd.c (main): Attach to all threads in the process.
24894         Rewrite /proc handling to use *at functions.
24895
24896 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
24897
24898         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
24899         specifies first scope to show.
24900         (dl_open_worker): Update callers.  Move printing scope of new
24901         object to before the relocation.
24902         * elf/rtld.c (dl_main): Update _dl_show_scope call.
24903         * sysdeps/generic/ldsodefs.h: Update declaration.
24904
24905         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
24906         string for the scope number.
24907
24908 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
24909
24910         * nscd/servicescache.c (cache_addserv): Make sure written is always
24911         initialized.
24912
24913 2011-08-14  Roland McGrath  <roland@hack.frob.com>
24914
24915         * sysdeps/i386/i486/bits/atomic.h
24916         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
24917         statement expression, so as to suppress "set but not used" warning.
24918         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
24919
24920         * string/strncat.c (STRNCAT): Use prototype definition.
24921
24922         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
24923         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
24924         -Iprograms here.
24925         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
24926         (localedef-modules): Add localedef.
24927         (locale-modules): Add locale.
24928
24929         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
24930         * elf/rtld.c (dl_main): Invert order of assignment in last change,
24931         to avoid a warning.
24932
24933 2011-08-14  David S. Miller  <davem@davemloft.net>
24934
24935         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
24936         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
24937
24938 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
24939
24940         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
24941         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
24942         * elf/rtld.c (dl_main): Set l_name of vDSO.
24943         Call _dl_show_scope when DL_DEBUG_SCOPES.
24944         (process_dl_debug): Recognize scopes flag and also set it for all.
24945         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
24946         Declare _dl_show_scope.
24947
24948         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
24949         (do_dlopen): Pass caller_dlopen to dl_open.
24950         (__libc_dlopen_mode): Initialize caller_dlopen.
24951
24952         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
24953         of libc.  Make tolower call locale-independent.  Optimize a bit by
24954         using isdigit instead of isalnum.
24955         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
24956
24957 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
24958
24959         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
24960         was a dependency or dynamically loaded.
24961
24962 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
24963
24964         * intl/l10nflist.c: Allow architecture-specific pop function.
24965         * sysdeps/x86_64/l10nflist.c: New file.
24966
24967         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
24968         classification.
24969
24970 2011-08-10  Andreas Schwab  <schwab@redhat.com>
24971
24972         * include/dirent.h: Add libc_hidden_proto for scandirat and
24973         scandirat64.  Don't declare __scandirat64.
24974         * dirent/scandirat.c: Add libc_hidden_def.
24975         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
24976         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
24977
24978 2011-08-10  David S. Miller  <davem@davemloft.net>
24979
24980         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
24981         enum.
24982         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
24983         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
24984         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
24985
24986 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
24987
24988         * Versions.def [libc]: Add GLIBC_2.15.
24989         * dirent/Makefile (routines): Add scandirat and scandirat64.
24990         * dirent/Versions [libc]: Export scandirat and scandirat64 for
24991         GLIBC_2.15.
24992         * dirent/dirent.h: Declare scandirat and scandirat64.
24993         * dirent/scandirat.c: New file.
24994         * dirent/scandirat64.c: New file.
24995         * sysdeps/wordsize-64/scandirat.c: New file.
24996         * sysdeps/wordsize-64/scandirat64.c: New file.
24997         * dirent/opendir.c: Define opendirat.
24998         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
24999         using scandirat.
25000         * dirent/scandir64.c: Adjust for scandir.c change.
25001         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
25002         __scandirat64, and __scandir_cancel_handler.
25003         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
25004         additional parameter and use openat instead of open (outside of ld.so).
25005         Add new __opendir as wrapper around __opendirat.
25006         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
25007         here without requiring old scandirat implementation.
25008
25009 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
25010
25011         * dirent/scandir.c (cancel_handler): Renamed to
25012         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
25013         defined.  Adjust users.
25014         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
25015         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
25016
25017 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
25018
25019         * string/test-string.h (IMPL): Use __STRING to expand name and then
25020         stringify it.
25021
25022         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
25023         of cleanups.
25024
25025 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
25026
25027         * string/Makefile: Update.
25028         (strop-tests): Append strncat.
25029         * string/test-wcscmp.c: New file.
25030         New comprehensive test for wcscmp.
25031         * string/test-strcmp.c: Update.
25032         (WIDE): New define.
25033
25034 2011-07-22  Andreas Schwab  <schwab@redhat.com>
25035
25036         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
25037         line.
25038
25039 2011-07-26  Andreas Schwab  <schwab@redhat.com>
25040
25041         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
25042         encoding to ACE if AI_IDN.
25043
25044 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
25045
25046         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
25047         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
25048
25049 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
25050
25051         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
25052         Fix overflow bug in strncat.
25053         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
25054
25055         * string/test-strncat.c: Update.
25056         Add new tests for checking overflow bugs.
25057
25058 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
25059
25060         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
25061         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
25062         * sysdeps/i386/i686/multiarch/strcat.S: New file.
25063         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
25064         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
25065         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
25066         * sysdeps/i386/i686/multiarch/strncat.S: New file.
25067         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
25068         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
25069
25070         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
25071         (USE_AS_STRCAT): Define.
25072         Add strcat and strncat support.
25073         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
25074
25075 2011-07-25  Andreas Schwab  <schwab@redhat.com>
25076
25077         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
25078         __n bigger than INT_MAX+1.
25079         (__strncmp_g): Likewise.
25080
25081 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
25082
25083         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
25084         * libio/stido.h: Likewise.
25085
25086         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
25087         (AF_NFC): Define.
25088         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
25089         (AF_NFC): Define.
25090
25091         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
25092         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
25093         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
25094         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
25095         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
25096
25097         [BZ #13021]
25098         * scripts/test-installation.pl: Don't expect libnss_test1 to be
25099         installed.
25100
25101         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
25102         typo.
25103         (_dl_x86_64_save_sse): Likewise.
25104
25105 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
25106
25107         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
25108         OSXSAVE.
25109         (_dl_x86_64_save_sse): Likewise.
25110
25111         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
25112
25113         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
25114
25115 2011-07-21  Andreas Schwab  <schwab@redhat.com>
25116
25117         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
25118         change.
25119         (_dl_x86_64_save_sse): Use correct AVX check.
25120
25121 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
25122
25123         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
25124         bug in strncpy/strncat.
25125         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
25126
25127 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
25128
25129         * string/tester.c (test_strcat): Add tests for different alignments
25130         of source and destination.
25131         (test_strncat): Likewise.
25132
25133 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
25134
25135         [BZ #12852]
25136         * posix/glob.c (glob): Check passed in values before using them in
25137         expressions to avoid some overflows.
25138         (glob_in_dir): Likewise.
25139
25140         [BZ #13007]
25141         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
25142         check for AVX enablement so that we don't crash with old kernels and
25143         new hardware.
25144         * elf/tst-audit4.c: Add same checks here.
25145         * elf/tst-audit6.c: Likewise.
25146
25147         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
25148
25149 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
25150
25151         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
25152
25153 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
25154
25155         * po/cs.po: Update from translation team.
25156         * po/bg.po: Likewise.
25157
25158 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
25159
25160         * misc/sys/cdefs.h: Add support for const attribute.
25161         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
25162         to gnu_dev_{major,minor,makedev} functions.
25163
25164 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
25165
25166         * intl/dcigettext.c (get_output_charset): Add missing bracket.
25167
25168 2011-07-20  Andreas Schwab  <schwab@redhat.com>
25169
25170         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
25171         strlen results.
25172
25173 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25174
25175         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
25176         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
25177         register in order to avoid conflicts with the soft frame pointer
25178         being held in r11 when necessary.
25179         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
25180         (INTERNAL_VSYSCALL_NCS): Likewise.
25181
25182 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
25183
25184         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
25185         * elf/dl-fini.c (_dl_fini): Adjust caller.
25186         * elf/dl-close.c (_dl_close_worker): Likewise.
25187         * sysdeps/generic/ldsodefs.h: Adjust declaration.
25188
25189 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
25190
25191         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
25192         "aux_cache->nlibs < 0".
25193
25194         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
25195         in the reload-count case.
25196
25197 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
25198
25199         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
25200         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
25201         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
25202         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
25203         * sysdeps/x86_64/multiarch/strcat.S: New file.
25204         * sysdeps/x86_64/multiarch/strncat.S: New file.
25205         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
25206         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
25207         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
25208         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
25209         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
25210         (USE_AS_STRCAT): Define.
25211         Add strcat and strncat support.
25212         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
25213         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
25214         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
25215         * string/strncat.c: Update.
25216         (USE_AS_STRNCAT): Define.
25217         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
25218         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
25219         and i7.
25220         * sysdeps/x86_64/multiarch/init-arch.h
25221         (bit_Prefer_PMINUB_for_stringop): New.
25222         (index_Prefer_PMINUB_for_stringop): Likewise.
25223         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
25224         bit_Prefer_PMINUB_for_stringop.
25225
25226 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
25227
25228         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
25229         buffer64.
25230         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
25231         of casting of buffer.
25232         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
25233         buffer32 and buffer64.
25234         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
25235         writes instead of casting of buffer.
25236         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
25237         buffer32.
25238         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
25239         casting of buffer.
25240
25241 2011-07-19  Andreas Schwab  <schwab@redhat.com>
25242
25243         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
25244
25245 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
25246
25247         * nscd/nscd.c (termination_handler): Don't do anything for a database
25248         if it has not yet been initialized.
25249
25250 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
25251
25252         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
25253
25254 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
25255
25256         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
25257
25258 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
25259
25260         * po/nl.po: Update from translation team.
25261         * po/sv.po: Likewise.
25262
25263 2011-07-16  Roland McGrath  <roland@hack.frob.com>
25264
25265         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
25266         now disallowed by GCC.
25267
25268         * configure.in (use-default-link): Default to yes if a test -shared
25269         link meets our qualifications.
25270         * configure: Regenerated.
25271
25272         * config.make.in (output-format): New variable.
25273         * configure.in: Check for ld --print-output-format support.
25274         * configure: Regenerated.
25275         * Makerules ($(common-objpfx)format.lds)
25276         [$(output-format) != unknown]: Just use $(output-format),
25277         instead of the linker-script munging.
25278
25279 2011-07-14  Roland McGrath  <roland@hack.frob.com>
25280
25281         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
25282         of $(common-objpfx)shlib.lds.
25283         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
25284
25285         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
25286         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
25287
25288         * configure.in (-z relro check): Adjust test code to add a large
25289         writable data section after it.
25290         * configure: Regenerated.
25291
25292 2011-07-11  Roland McGrath  <roland@hack.frob.com>
25293
25294         * configure.in (-z relro check): Fix test code to make the variable
25295         truly const.
25296         * configure: Regenerated.
25297
25298 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
25299
25300         * nscd/nscd.h (struct traced_file): Define.
25301         (struct database_dyn): Remove inotify_descr, reset_res, and filename
25302         elements.  Add traced_files.
25303         (inotify_fd): Declare.
25304         (register_traced_file): Declare.
25305         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
25306         (inotify_fd): Export.
25307         (resolv_conf_descr): Remove.
25308         (nscd_init): Move inotify descriptor creation to main.
25309         Don't register files for notification here.
25310         (register_traced_file): New function.
25311         (invalidate_cache): Don't use reset_res to determine whether to call
25312         res_init, go through the list of registered files.
25313         (main_loop_poll): The inotify descriptors are now stored in the
25314         structures for the traced files.
25315         (main_loop_epoll): Likewise
25316         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
25317         to __nss_disable_nscd.
25318         * nscd/cache.c (prune_cache): There is no single inotify descriptor
25319         for a database anymore.  Check the records for all the registered
25320         files instead.
25321         * nss/Makefile (libnss_files-routines): Add files-init.
25322         (libnss_db-routines): Add db-init.
25323         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
25324         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
25325         * nss/nss_db/db-init.c: New file.
25326         * nss/nss_files/files-init.c: New file.
25327         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
25328         __nss_lookup_function.
25329         (__nss_lookup_function): Call nss_load_library.
25330         (nss_load_all_libraries): New function.
25331         (__nss_disable_nscd): Take parameter with callback function for files
25332         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
25333         used for the cached services.
25334         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
25335         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
25336         options for features to all the files in nscd.
25337
25338         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
25339
25340 2011-07-10  Roland McGrath  <roland@hack.frob.com>
25341
25342         * csu/elf-init.c (__libc_csu_init): Comment typo.
25343
25344 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
25345
25346         * po/pl.po: Update from translation team.
25347         * po/ja.po: Likewise.
25348         * po/ru.po: Likewise.
25349         * po/ko.po: Likewise.
25350         * po/fr.po: Likewise.
25351
25352 2011-07-09  Roland McGrath  <roland@hack.frob.com>
25353
25354         * configure.in (.ctors/.dtors header and trailer check):
25355         Use an empirical test on a built program.
25356         * configure: Regenerated.
25357
25358         * configure.in (-z relro check): Use an empirical test on a built DSO.
25359         Detect, but do not require, on ia64.
25360         * configure: Regenerated.
25361
25362         * configure.in (READELF): Find it with AC_CHECK_TOOL.
25363         Update tests that use readelf to use $READELF instead.
25364         * configure: Regenerated.
25365
25366 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
25367
25368         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
25369         if the result is not used.
25370
25371 2011-07-05  Andreas Jaeger  <aj@suse.de>
25372
25373         [BZ#9696]
25374         * stdlib/tst-strtod.c: Add testcase.
25375
25376 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
25377
25378         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
25379         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
25380         The latter has a higher limit.  Take additional parameter to pass to
25381         the new function.
25382         (__pathconf): Pass file to __statfs_link_max.
25383         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
25384         __statfs_link_max.
25385         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
25386         __statfs_link_max.
25387
25388         [BZ #12868]
25389         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
25390         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
25391         Handle Lustre.
25392         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
25393         (__statfs_filesize_max): Likewise.
25394         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
25395
25396 2011-07-05  Andreas Jaeger  <aj@suse.de>
25397
25398         * resolv/res_comp.c (dn_skipname): Remove unused variable.
25399
25400 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
25401
25402         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
25403         `status' variable.
25404         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
25405         Likewise.
25406
25407 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
25408
25409         * Makefile (strop-tests): Add strncat.
25410         * string/test-strncat.c: New file.
25411
25412 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
25413
25414         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
25415
25416 2011-06-21  Andreas Jaeger  <aj@suse.de>
25417
25418         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
25419         Copy rule from iconvdata/Makefile.
25420
25421 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
25422
25423         [BZ #12922]
25424         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
25425         but no long options are defined, just return 'W'.
25426
25427 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
25428
25429         [BZ #9696]
25430         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
25431
25432 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
25433
25434         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
25435         netgroups to read.
25436         (innetgr): Likewise.
25437
25438 2011-07-05  Roland McGrath  <roland@hack.frob.com>
25439
25440         * config.make.in (install_root): Default to $(DESTDIR).
25441
25442 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
25443
25444         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
25445
25446 2011-07-02  Roland McGrath  <roland@hack.frob.com>
25447
25448         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
25449
25450         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
25451         containing directory rather than embedding absolute directory names.
25452
25453         * scripts/check-local-headers.sh: Rewritten using awk.
25454         Match by word, not by line.  Print error messages for matches.
25455         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
25456
25457         * Makerules [shlib-lds-flags empty]:
25458         ($(common-objpfx)libc_pic.opts): New target.
25459         ($(common-objpfx)libc_pic.os.clean): New target.
25460         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
25461
25462         * config.make.in (OBJCOPY): New variable.
25463         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
25464         * configure: Regenerated.
25465
25466         * config.make.in (use-default-link): New variable.
25467         * configure.in (use_default_link): Grok --with-default-link to set it.
25468         * configure: Regenerated.
25469         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
25470         (shlib-lds, shlib-lds-flags): Define to empty.
25471
25472         * Makerules (shlib-lds): New variable.
25473         (shlib-lds-flags): New variable.
25474         (build-shlib, build-moduile, build-module-asneeded): Use it.
25475         ($(common-objpfx)libc.so): Use $(shlib-lds).
25476         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
25477         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
25478
25479         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
25480         DT_FLAGS/DT_FLAGS_1 with zero flags.
25481
25482         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
25483         linker script munging.
25484
25485 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
25486
25487         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
25488         as 128-bit value.
25489         * crypt/sha512.c (sha512_process_block): Perform total addition using
25490         128-bit if possible.
25491         (__sha512_finish_ctx): Likewise.
25492         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
25493         as 64-bit value.
25494         * crypt/sha256.c (SWAP64): Define.
25495         (sha256_process_block): Perform total addition using 64-bit if
25496         possible.
25497         (__sha256_finish_ctx): Likewise.
25498
25499 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
25500
25501         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
25502         * nscd/initgrcache.c (addinitgroupsX): Likewise.
25503         * nscd/hstcache.c (cache_addhst): Likewise.
25504         * nscd/grpcache.c (cache_addgr): Likewise.
25505         * nscd/aicache.c (addhstaiX): Likewise
25506         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
25507
25508 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
25509
25510         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
25511         * nscd/initgrcache.c (addinitgroupsX): Likewise.
25512         * nscd/hstcache.c (cache_addhst): Likewise.
25513         * nscd/grpcache.c (cache_addgr): Likewise.
25514         * nscd/aicache.c (addhstaiX): Likewise
25515
25516 2011-07-01  Andreas Schwab  <schwab@redhat.com>
25517
25518         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
25519         domain only when needed.
25520
25521 2011-06-30  Andreas Schwab  <schwab@redhat.com>
25522
25523         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
25524         is always restored.
25525
25526 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
25527
25528         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
25529         are re-adding the entry.
25530         * nscd/servicescache.c (cache_addserv): Likewise.
25531
25532 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
25533
25534         * sysdeps/generic/dl-irel.h: fix protection against multiple
25535         inclusions.
25536         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
25537
25538 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
25539
25540         [BZ #12935]
25541         * malloc/memusage.sh: Fix quoting in message.
25542         * debug/xtrace.sh: Likewise.
25543
25544         * configure.in: Remove support for --experimental-malloc option, make
25545         it the default.
25546         * config.make.in: Likewise.
25547         * malloc/Makefile: Likewise.
25548
25549 2011-06-27  Andreas Schwab  <schwab@redhat.com>
25550
25551         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
25552         two-byte characters.
25553
25554 2011-06-27  Roland McGrath  <roland@hack.frob.com>
25555
25556         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
25557         AC_CACHE_CHECK invocation.
25558         * configure: Regenerated.
25559
25560         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
25561
25562 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
25563
25564         [BZ #12350]
25565         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
25566         bit from old_res_options.
25567
25568         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
25569
25570         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
25571         value type for setfct.
25572
25573 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
25574
25575         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
25576         __gettimeofday instead of gettimeofday.
25577
25578 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
25579
25580         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
25581
25582 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
25583
25584         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
25585
25586         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
25587         info.
25588
25589 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
25590
25591         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
25592         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
25593         strcpy-sse2-unaligned strncpy-sse2-unaligned
25594         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
25595         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
25596         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
25597         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
25598         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
25599         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
25600         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
25601         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
25602         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
25603         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
25604         (STRCPY): Support SSE2 and SSSE3 versions.
25605
25606 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
25607
25608         [BZ #12874]
25609         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
25610         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
25611         kernels which artificially limit size of requests.
25612
25613 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
25614
25615         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
25616         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
25617         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
25618         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
25619         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
25620         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
25621         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
25622         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
25623         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
25624         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
25625         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
25626         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
25627         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
25628         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
25629         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
25630         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
25631         Enable unaligned load optimization for Intel Core i3, i5 and i7
25632         processors.
25633         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
25634         Define.
25635         (index_Fast_Unaligned_Load): Define.
25636         (HAS_FAST_UNALIGNED_LOAD): Define.
25637
25638 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
25639
25640         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
25641
25642 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
25643
25644         [BZ #12907]
25645         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
25646         until it is clear that the information is realy needed.
25647         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
25648
25649 2011-06-22  Andreas Schwab  <schwab@redhat.com>
25650
25651         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
25652
25653 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
25654
25655         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
25656         /sys/devices/system/cpu/online if it is usable.
25657
25658         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
25659         reading the information from the /proc filesystem to once a second.
25660
25661 2011-06-21  Andreas Jaeger  <aj@suse.de>
25662
25663         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
25664         NULL after inclusion of kernel headers.
25665
25666 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
25667
25668         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
25669         calls to internal_setent.
25670
25671         [BZ #12885]
25672         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
25673         addresses using gethostbyname4_r ignore IPv4 addresses.
25674
25675         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
25676         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
25677
25678         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
25679
25680 2011-06-20  David S. Miller  <davem@davemloft.net>
25681
25682         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
25683         inclusions.
25684         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
25685
25686         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
25687         (elf_irel): Use it.
25688         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
25689         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
25690         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
25691         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
25692         * sysdeps/x86_64/dl-irel.h: Likewise.
25693
25694         * elf/dl-runtime.c: Use elf_ifunc_invoke.
25695         * elf/dl-sym.c: Likewise.
25696
25697 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
25698
25699         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
25700         need to dereference resplen2.
25701
25702 2011-06-14  Andreas Schwab  <schwab@redhat.com>
25703
25704         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
25705
25706 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
25707
25708         * Makeconfig: Define vardbdir and inst_vardbdir.
25709         * nss/Makefile: Add rules to install db-Makefile.
25710
25711         * nss/nss_db/db-XXX.c: Cleanup.
25712
25713         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
25714         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
25715         GLIBC_PRIVATE.
25716         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
25717         * nss/makedb.c: Implement -g option to specify that value strings
25718         are generated and should not be added to table iterated over for
25719         get*ent calls.
25720         * nss/nss_db/db-initgroups.c: New file.
25721
25722         * nss/getent.c: Add support for initgroups lookups through getgrouplist
25723         interface.
25724
25725         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
25726         (internal_getgrouplist): Adjust to name change.
25727         Update use_initgroups_entry if this is not the first call.
25728         * nss/databases.def: Add initgroups entry.
25729
25730         * nss/makedb.c (compute_tables): Check result of multiple hash table
25731         sizes to minimize maximum chain length.
25732
25733 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
25734
25735         * Versions.def: Add entry for libnss_db.
25736         * shlib-versions: Likewise.
25737         * nss/Makefile: Add rules to build libnss_db.
25738         * nss/Versions: Add libnss_db information.  Organize libnss_files
25739         entries better.
25740         * nss/db-Makefile: Add gshadow support.  Change rules for the new
25741         makedb progra.  Some minor improvements to generate smaller files.
25742         * nss/nss_db/nss_db.h: Move NSS database header data structures to
25743         here from...
25744         * nss/makedb.c: ...here.
25745         Improve database format to be smaller and require less memory at
25746         runtime.
25747         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
25748         db anymore.
25749         * nss/nss_db/db-netgrp.c: Likewise.
25750         * nss/nss_db/db-open.c: Likewise.
25751         * nss/nss_files/flies-XXX.x: Adjust comments.
25752         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
25753         * nss/nss_files/files-grp.c: Likewise.
25754         * nss/nss_files/files-hosts.c: Likewise.
25755         * nss/nss_files/files-network.c: Likewise.
25756         * nss/nss_files/files-proto.c: Likewise.
25757         * nss/nss_files/files-pwd.c: Likewise.
25758         * nss/nss_files/files-rpc.c: Likewise.
25759         * nss/nss_files/files-service.c: Likewise.
25760         * nss/nss_files/files-sgrp.c: Likewise.
25761         * nss/nss_files/files-spwd.c: Likewise.
25762         * nss/nss_db/db-alias.c: Removed.
25763         * nss/nss_db/dummy-db.h: Removed.
25764
25765 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
25766
25767         * nss/makedb.c: Rewritten to not use database library.
25768         * nss/Makefile: Update to build new makedb program.
25769
25770 2011-06-14  Andreas Jaeger  <aj@suse.de>
25771
25772         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
25773         memset declaration.
25774
25775 2011-06-10  Andreas Schwab  <schwab@redhat.com>
25776
25777         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
25778         tmpbuf.
25779
25780 2011-06-10  Roland McGrath  <roland@hack.frob.com>
25781
25782         * Makerules (shlib.lds): Fail if the linker script comes out empty.
25783         * elf/Makefile ($(objpfx)ld.so): Likewise.
25784
25785         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
25786         Don't list ld.so twice in dependencies.
25787
25788         * posix/bug-regex31.c: Include <stdlib.h>.
25789
25790         * nscd/hstcache.c (cache_addhst): Remove unused variable.
25791
25792         * nis/nss_compat/compat-spwd.c
25793         (getspent_next_nss_netgr): Remove unused variable.
25794         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
25795
25796         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
25797         nonmembers" output to use the right array.
25798
25799         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
25800
25801         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
25802
25803         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
25804         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
25805         * catgets/gencat.c (read_input_file): Likewise.
25806         * locale/programs/locarchive.c (enlarge_archive): Likewise.
25807
25808         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
25809         variable definition inside #if's controlling its use.
25810
25811         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
25812
25813         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
25814
25815         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
25816
25817         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
25818         unreachable code.
25819
25820         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
25821
25822         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
25823         * configure: Regenerated.
25824
25825         * Makerules: Revert last change.
25826         * elf/Makefile: Likewise.
25827
25828 2011-06-09  Roland McGrath  <roland@hack.frob.com>
25829
25830         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
25831         * elf/Makefile ($(objpfx)librtld.os): Likewise.
25832         (reloc-link): Likewise.
25833
25834 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
25835
25836         * elf/Makefile: Add rules to build pldd.
25837         * elf/pldd.c: New file.
25838         * elf/pldd-xx.c: New file.
25839
25840 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
25841
25842         * version.h: Update for 2.15 development version.
25843
25844 2011-06-07  David S. Miller  <davem@davemloft.net>
25845
25846         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
25847         ifuncs.
25848         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
25849         elf_machine_lazy_rel): Likewise.
25850         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
25851         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
25852         elf_machine_lazy_rel): Likewise.
25853         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
25854         dl_hwcap via passed in argument.
25855         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
25856         Likewise.
25857
25858 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25859
25860         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
25861
25862 2011-06-06  Roland McGrath  <roland@hack.frob.com>
25863
25864         [BZ #12849]
25865         * manual/fdl-1.1.texi: New file, verbatim from:
25866         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
25867         * manual/lgpl-2.1.texi: New file, verbatim from:
25868         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
25869         * manual/Makefile (licenses): New variable, list those new file names.
25870         (texis): Use it.
25871         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
25872
25873         * manual/fdl.texi: File removed.
25874         * manual/lesser.texi: File removed.
25875         * manual/libc.texinfo (Copying, Documentation License):
25876         Use new @include file names, put @appendix directive before @include.
25877
25878 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
25879
25880         [BZ #12841]
25881         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
25882         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
25883         (mq_open): Add __NTH.
25884
25885 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
25886
25887         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
25888         Assume Intel Core i3/i5/i7 processor if AVX is available.
25889
25890 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
25891
25892         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
25893         typo.
25894
25895 2011-05-31  Andreas Schwab  <schwab@redhat.com>
25896
25897         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
25898         memory.  Use alloca_account.  Fix memory leak when retrying.
25899
25900 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
25901
25902         * version.h (RELEASE): Bump for 2.14 release.
25903         * include/features.h (__GLIBC_MINOR__): Bump to 14.
25904
25905         * config.make.in (RANLIB): Remove entry.
25906
25907 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
25908
25909         * po/Makefile (po-sed-cmd): Add ksh to extensions.
25910         (libc.pot): Work around missing support for .ksh extension in xgettext.
25911
25912         [BZ #12684]
25913         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
25914         if both request failed.
25915         (send_dg): In case of server errors clear resplen or *resplen2.
25916
25917         [BZ #12454]
25918         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
25919         when there are multiple maps.
25920         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
25921         (_dl_fini): Remove test here.
25922
25923         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
25924
25925 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
25926
25927         [BZ #12350]
25928         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
25929         bit from old_res_options.
25930         (gaih_inet): Likewise.
25931
25932         [BZ #11099]
25933         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
25934         as signed.
25935
25936         * resolv/res_init.c (res_setoptions): Make the code more compact.
25937
25938         [BZ #11558]
25939         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
25940         set RES_USEVC.
25941
25942         [BZ #11634]
25943         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
25944
25945         * malloc/malloc.h: Mark malloc hook variables as deprecated.
25946
25947         [BZ #11781]
25948         * malloc/malloc.h: Declare malloc hook variables as volatile.
25949
25950         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
25951         in last patch.
25952
25953         [BZ #11799]
25954         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
25955         raise in the comment.
25956         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
25957         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
25958         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
25959
25960 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
25961
25962         [BZ #12811]
25963         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
25964         grow the buffers more if it already has to be sufficient.
25965         (build_wcs_upper_buffer): Likewise.
25966         * posix/regexec.c (check_matching): Likewise.
25967         (clean_state_log_if_needed): Likewise.
25968         (extend_buffers): Don't enlarge buffers beyond size of the input
25969         buffer.
25970         Patches mostly by Emil Wojak <emil@wojak.eu>.
25971         * posix/bug-regex32.c: New file.
25972         * posix/Makefile (tests): Add bug-regex32.
25973
25974         * locale/findlocale.c (_nl_find_locale): Return right away if
25975         _nl_explode_name failed.
25976         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
25977
25978         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
25979
25980         * debug/xtrace.sh: Unify messages.
25981         * malloc/memusage.sh: Likewise.
25982
25983         [BZ #12813]
25984         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
25985         time symbol from vDSO.  Substitute with vsyscall if not available.
25986         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
25987         __vdso_time.
25988
25989         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
25990         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
25991         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
25992         Add sendmmsg and internal_sendmmsg.
25993         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
25994         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
25995         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
25996
25997         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
25998         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
25999         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
26000
26001 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
26002
26003         [BZ #12813]
26004         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
26005         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
26006         available.
26007         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
26008         __vdso_getcpu.
26009
26010         [BZ #12814]
26011         * iconvdata/Makefile (tests): Add bug-iconv9.
26012         * iconvdata/bug-iconv9.c: New file.
26013
26014 2011-05-27  Andreas Schwab  <schwab@redhat.com>
26015
26016         [BZ #12814]
26017         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
26018
26019 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
26020
26021         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
26022         (struct user_regs_struct): Change intcs field back to cs.
26023
26024 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
26025
26026         * po/ja.po: Update from translation team.
26027
26028 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
26029
26030         [BZ #12795]
26031         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
26032         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
26033
26034 2011-05-20  Andreas Schwab  <schwab@redhat.com>
26035
26036         * stdlib/longlong.h: Update from GCC.
26037
26038 2011-05-23  Andreas Schwab  <schwab@redhat.com>
26039
26040         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
26041         parameter name.
26042         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
26043         Add parameter name.
26044         (__sysconf): Pass it down.
26045
26046 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
26047
26048         [BZ #12671]
26049         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
26050         some situations.
26051         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
26052         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
26053         add in in __libc_use_alloca calls.  Adjust callers.
26054         (glob): Use malloc in some situations.
26055
26056         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
26057         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
26058         pltexit.
26059
26060 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
26061
26062         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
26063         and CLOCK_BOOTTIME_ALARM.
26064
26065         [BZ #12782]
26066         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
26067         is returned.
26068
26069         * string/_strerror.c (__strerror_r): Print negative errors as signed
26070         numbers.
26071
26072         [BZ #12777]
26073         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
26074         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
26075         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
26076
26077         * configure.in: Fix typo in redirection and correct removal of test
26078         files in two cases.
26079
26080         [BZ #12788]
26081         * locale/setlocale.c (new_composite_name): Fix test to check for
26082         identical name of all categories.
26083
26084         [BZ #12792]
26085         * libio/filedoalloc.c (local_isatty): New function.
26086         (_IO_file_doallocate): Use local_isatty.
26087         * stdio-common/perror.c (perror): In case a new stream is used
26088         forward the stream error.
26089         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
26090         error flag.
26091
26092 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
26093
26094         [BZ #11869]
26095         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
26096         alloca.
26097         * include/alloca.h (extend_alloca_account): Define.
26098
26099         [BZ #11857]
26100         * posix/regex.h: Fix comments with documentation of user-accessible
26101         fields after compilation and describe correct free'ing of pattern
26102         after re_compile_pattern.
26103         Patch by Reuben Thomas <rrt@sc3d.org>.
26104
26105 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
26106
26107         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
26108         and -mno-altivec to prevent the compiler from using Altivec and/or
26109         VSX instructions when the corresponding registers are not available.
26110
26111 2011-05-19  Andreas Schwab  <schwab@redhat.com>
26112
26113         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
26114
26115 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
26116
26117         * libio/freopen.c (freopen): Use __dup2, not dup2.
26118         * libio/freopen64.c (freopen64): Likewise.
26119
26120 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
26121
26122         [BZ #12775]
26123         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
26124         * math/Makefile (tests): Add test-powl.
26125         (CFLAGS-test-powl.c): Define.
26126         * math/test-powl.c: New file.
26127
26128 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
26129
26130         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
26131
26132 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
26133
26134         [BZ #11837]
26135         * iconvdata/gb18030.c: Update to GB18020-2005.
26136
26137 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
26138
26139         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
26140         RE_SYNTAX_POSIX_AWK): Update to match recent development.
26141         Patch by Aharon Robbins <arnold@skeeve.com>.
26142
26143         [BZ #11892]
26144         * stdlib/putenv.c (putenv): Don't always create copy of the variable
26145         on the stack.
26146
26147         [BZ #11895]
26148         * misc/pselect.c (__pselect): Handle timeout value errors hidden
26149         through underflows.
26150
26151         [BZ #12766]
26152         * misc/error.c (error_at_line): Ensure file_name and old_file_name
26153         point to strings before performing equality test for error_one_per_line
26154         mode.
26155
26156         [BZ #11697]
26157         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
26158
26159         [BZ #11820]
26160         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
26161         (struct user_fpregs_struct): Avoid __uint*_t types.
26162
26163         [BZ #6420]
26164         * malloc/mtrace.c (tr_where): Add additional parameter to point to
26165         symbol info.  Use it instead of calling _dl_addr locally.
26166         (lock_and_info): New function.
26167         (tr_freehook): Call lock_and_info and pass symbol info as additional
26168         parameter to tr_where.
26169         (tr_mallochook): Likewise.
26170         (tr_reallochook): Likewise.
26171         (tr_memalignhook): Likewise.
26172
26173         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
26174         used and couldn't be at all thread-safe.
26175
26176 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
26177
26178         * libio/freopen.c (freopen): Don't close old file descriptor
26179         before the new one is opened.  Instead dup the new file descriptor
26180         to the old one after the new stream is created.
26181         * libio/freopen64.c (freopen64): Likewise.
26182         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
26183         * libio/fileops.c (_IO_new_file_close_it): Handle new
26184         _IO_FLAGS2_NOCLOSE flag.
26185         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
26186         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
26187         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
26188         _IO_FLAGS2_NOCLOSE flag.
26189         * include/unistd.h: Add hidden_proto for dup3.
26190         Define __have_dup3.
26191         * io/dup3.c: Define hidden symbol.
26192         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
26193
26194         [BZ #7101]
26195         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
26196         when an incomplete long option is used.
26197         * posix/tst-getopt_long1.c: New file.
26198         * posix/Makefile (tests): Add tst-getopt_long1.
26199
26200         [BZ #10138]
26201         * scripts/config.guess: Update from autoconf-2.68.
26202         * scripts/config.sub: Likewise.
26203
26204         [BZ #10157]
26205         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
26206         tests into ...
26207         (has_cpuclock): ...this.  New function.
26208         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
26209         macro here based on has_cpuclock code.
26210
26211         [BZ #10149]
26212         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
26213         First byte (not low byte) is now always NUL.
26214         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
26215
26216         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
26217         Use non-cancelable interfaces.
26218
26219         [BZ #9809]
26220         * locale/iso-639.def: Add entry for Sorani.
26221
26222         [BZ #11901]
26223         * include/stdlib.h: Move include protection to the right place.
26224         Define abort_msg_s.  Declare __abort_msg with it.
26225         * stdlib/abort.c (__abort_msg): Adjust type.
26226         * assert/assert.c (__assert_fail_base): New function.  Majority
26227         of code from __assert_fail.  Allocate memory for __abort_msg with
26228         mmap.
26229         (__assert_fail): Now call __assert_fail_base.
26230         * assert/assert-perr.c: Remove bulk of implementation.  Use
26231         __assert_fail_base.
26232         * include/assert.hL Declare __assert_fail_base.
26233         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
26234         mmap.
26235         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
26236
26237 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
26238
26239         [BZ #11952]
26240         [BZ #12453]
26241         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
26242         until all modules are registered in the DTV.
26243         * elf/Makefile: Add rules to build and run tst-tls19.
26244         * elf/tst-tls19.c: New file.
26245         * elf/tst-tls19mod1.c: New file.
26246         * elf/tst-tls19mod2.c: New file.
26247         * elf/tst-tls19mod3.c: New file.
26248         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
26249
26250         [BZ #12083]
26251         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
26252         correctly.
26253
26254         [BZ #12601]
26255         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
26256         two-byte sequence errors.
26257         * iconvdata/Makefile (tests): Add bug-iconv8.
26258         * iconvdata/bug-iconv8.c: New file.
26259
26260         [BZ #12626]
26261         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
26262         buf2 definition.
26263
26264         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
26265
26266         [BZ #12432]
26267         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
26268         (dummy_getcfa): New function.
26269         (init): Get _Unwind_GetCFA address, use dummy if not found.
26270         (backtrace_helper): In recursion check, also check whether CFA changes.
26271         (__backtrace): Completely initialize arg.
26272
26273         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
26274         storing incomplete byte sequence in state object.  Avoid testing for
26275         guaranteed too small input if we know there is enough data available.
26276
26277 2011-05-11  Andreas Schwab  <schwab@redhat.com>
26278
26279         * Makeconfig (+link-pie): Indent.
26280         * Rules (binaries-pie): Define if $(have-fpie) and
26281         $(build-shared).
26282         (binaries-shared): Also filter out $(binaries-pie).
26283         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
26284         * nscd/Makefile (others-pie): Add nscd.
26285         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
26286         ($(objpfx)nscd): Remove command override.
26287         * login/Makefile (others-pie): Add pt_chown.
26288         ($(objpfx)pt_chown): Remove command override.
26289         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
26290         remove command overrides.
26291
26292 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
26293
26294         * libio/tst_putwc.c: Fix error messages.
26295
26296         [BZ #12724]
26297         * libio/fileops.c (_IO_new_file_close_it): Always flush when
26298         currently writing and seek to current position when not.
26299         * libio/Makefile (tests): Add bug-fclose1.
26300         * libio/bug-fclose1.c: New file.
26301
26302 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
26303
26304         [BZ #12511]
26305         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
26306         don't set DF_1_NODELETE here.
26307         (do_lookup_x): When entering new entry test for copy relocation
26308         and if necessary set DF_1_NODELETE flag.
26309         * elf/tst-unique4.cc: New file.
26310         * elf/tst-unique4.h: New file.
26311         * elf/tst-unique4lib.cc: New file.
26312         * elf/Makefile: Add rules to build and run tst-unique4.
26313         Patch by Piotr Bury <pbury@goahead.com>.
26314
26315 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
26316
26317         [BZ #12052]
26318         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
26319
26320         [BZ #12625]
26321         * misc/mntent_r.c (addmntent): Flush the stream after the output
26322
26323         [BZ #12393]
26324         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
26325         (is_trusted_path_normalize): Skip initial colon.  Append slash
26326         to empty buffer.  Duplicate is_trusted_path code but allow
26327         constructed patch to be prefix.
26328         (is_dst): Allow $ORIGIN followed by /.
26329         (_dl_dst_substitute): Correct clearing of check_for_trusted.
26330         Correct testing of result of is_trusted_path_normalize
26331         (decompose_rpath): Fix warning.
26332
26333 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
26334
26335         [BZ #11257]
26336         * grp/initgroups.c (internal_getgrouplist): When we found the service
26337         list through the initgroups entry in nsswitch.conf do not always
26338         continue on a successful lookup.  Don't always use the
26339         __nss_group_database value if it is set.
26340         * nss/nsswitch.conf (initgroups): Change action for successful db
26341         lookup to continue for compatibility.
26342
26343 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
26344
26345         [BZ #11532]
26346         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
26347         and CP774 modules.
26348         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
26349         and CP774 modules.
26350         * iconvdata/tst-tables.sh: Likewise.
26351         * iconvdata/cp770.c: New file.
26352         * iconvdata/cp771.c: New file.
26353         * iconvdata/cp772.c: New file.
26354         * iconvdata/cp773.c: New file.
26355         * iconvdata/cp774.c: New file.
26356         * iconvdata/testdata/CP770: New file.
26357         * iconvdata/testdata/CP770..UTF8: New file.
26358         * iconvdata/testdata/CP771: New file.
26359         * iconvdata/testdata/CP771..UTF8: New file.
26360         * iconvdata/testdata/CP772: New file.
26361         * iconvdata/testdata/CP772..UTF8: New file.
26362         * iconvdata/testdata/CP773: New file.
26363         * iconvdata/testdata/CP773..UTF8: New file.
26364         * iconvdata/testdata/CP774: New file.
26365         * iconvdata/testdata/CP774..UTF8: New file.
26366
26367         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
26368         END CHARMAP line.
26369         * iconvdata/gen-8bit-gap.sh: Likewise.
26370         * iconvdata/gen-8bit.sh: Likewise.
26371
26372         * locale/iso-639.def: Add ary entry.
26373
26374         [BZ #11258]
26375         * locale/C-translit.h.in: Add U20A1 transliteration.
26376
26377         [BZ #12178]
26378         * locale/iso-639.def: Add wae entry.
26379         Patch by Kevin Bortis <bortis@translate-wae.ch>.
26380
26381         [BZ #12545]
26382         * locale/programs/localedef.c (construct_output_path): Use ssize_t
26383         for n.
26384
26385         [BZ #12711]
26386         * locale/C-translit.h.in: Add entry for U20B9.
26387         Patch by pravin.d.s@gmail.com.
26388
26389 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
26390
26391         [BZ #12713]
26392         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
26393         ENAMETOOLONG use generic getcwd.
26394         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
26395         in rtld.  Use *stat64.
26396         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
26397         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
26398         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
26399         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
26400         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
26401         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
26402         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
26403         __fstatat64 macros.
26404         * include/dirent.h: Add libc_hidden_proto for rewinddir.
26405         * dirent/rewinddir.c: Add libc_hidden_def.
26406         * sysdeps/mach/hurd/rewinddir.c: Likewise.
26407         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
26408
26409         * include/dirent.h (__alloc_dir): Add flags parameter.
26410         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
26411         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
26412         __alloc_dir.
26413         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
26414         from fdopendir if O_CLOEXEC is already set.
26415
26416 2011-03-15  Alan Modra  <amodra@gmail.com>
26417
26418         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
26419         l_tls_firstbyte_offset non-zero.  Save padding offset in
26420         l_tls_firstbyte_offset for later use.
26421         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
26422         freeing static tls block.
26423
26424 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
26425
26426         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
26427         where #ifdef was intended.  The intent is to prevent ARG_MAX from
26428         being defined by the kernel headers.
26429
26430 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
26431
26432         [BZ #12734]
26433         * resolv/resolv.h: Define RES_NOTLDQUERY.
26434         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
26435         no-tld-query and set RES_NOTLDQUERY.
26436         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
26437         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
26438         modern BIND to search name as TLD unless forbidden.
26439
26440 2011-05-07  Petr Baudis  <pasky@suse.cz>
26441             Ulrich Drepper  <drepper@gmail.com>
26442
26443         [BZ #12393]
26444         * elf/dl-load.c (fillin_rpath): Move trusted path check...
26445         (is_trusted_path): ...to here.
26446         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
26447         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
26448         using is_trusted_path_normalize() in setuid scripts.
26449
26450 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
26451
26452         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
26453         __BEGIN/__END_DECLS.
26454
26455 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
26456
26457         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
26458         NSS_STATUS_NOTFOUND if no record was found.
26459
26460 2011-05-05  Andreas Schwab  <schwab@redhat.com>
26461
26462         * sunrpc/Makefile (headers): Add rpc/netdb.h.
26463         (headers-not-in-tirpc): Remove rpc/netdb.h
26464         * resolv/netdb.h: Revert last change.
26465
26466 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
26467
26468         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
26469         circular dependency between libgcc.a and libc.a.
26470
26471 2011-05-05  Andreas Schwab  <schwab@redhat.com>
26472
26473         * resolv/netdb.h: Don't include <rpc/netdb.h>.
26474         * nis/Makefile: Don't install rpcsvc/*.
26475         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
26476         instead of <rpc/types.h>.
26477         (MAXHOSTNAMELEN): Define.
26478
26479 2011-05-03  Andreas Schwab  <schwab@redhat.com>
26480
26481         * elf/ldconfig.c (add_dir): Don't crash on empty path.
26482
26483 2011-04-28  Maciej Babinski  <mbabinski@google.com>
26484
26485         [BZ #12714]
26486         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
26487         gethostbyname4_r when IPv6 results are possible.
26488
26489 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
26490
26491         [BZ #12723]
26492         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
26493         _PC_PIPE_BUF handling.
26494
26495 2011-04-30  Bruno Haible  <bruno@clisp.org>
26496
26497         [BZ #12717]
26498         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
26499         * resolv/netdb.h (getnameinfo): Change type of flags parameter
26500         to 'int'.
26501         * inet/getnameinfo.c (getnameinfo): Likewise.
26502
26503 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
26504
26505         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
26506         to groups setting in database lookup.
26507         * nss/nsswitch.conf: Add initgroups entry.
26508
26509 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
26510
26511         [BZ #12685]
26512         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
26513         mode string.
26514         Patch by Eric Blake <eblake@redhat.com>.
26515
26516 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
26517
26518         * sunrpc/Makefile (need-export-routines): Add svc_run.
26519         (routines): Remove svc_run.
26520         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
26521         * sunrpc/clnt_perr.c (clnt_perrno): Export.
26522         * sunrpc/svc_run.c (svc_run): Likewise.
26523         * sunrpc/svc_udp.c (svcudp_create): Likewise.
26524
26525 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
26526
26527         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
26528         problem in reallocation in last patch.
26529
26530 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
26531
26532         * sunrpc/Makefile: Move inclusion of Rules.
26533
26534 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
26535
26536         * nss/nss_files/files-initgroups.c: New file.
26537         * nss/Makefile (libnss_files-routines): Add files-initgroups.
26538         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
26539         _nss_files_initgroups_dyn.
26540
26541 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
26542
26543         * elf/elf.h (R_ARM_IRELATIVE): Define.
26544
26545 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
26546
26547         * po/ru.po: Update from translation team.
26548
26549 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
26550
26551         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
26552         dependencies.
26553
26554 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
26555
26556         [BZ #12653]
26557         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
26558         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
26559         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
26560         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
26561         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
26562
26563 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
26564
26565         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
26566         differing bytes.
26567         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
26568         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
26569         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
26570
26571 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
26572
26573         [BZ #12420]
26574         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
26575         storing it.
26576         * stdlib/bug-getcontext.c: New file.
26577         * stdlib/Makefile: Add rules to build and run bug-getcontext.
26578
26579 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26580
26581         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
26582         instructions into .machine "z9-109".
26583         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
26584         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
26585
26586 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26587
26588         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
26589         between environment variables and auxiliary vector.
26590
26591 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
26592
26593         * Makefile: Add rules to build linkobj/libc.so.
26594         * include/libc-symbols.h: Define libc_hidden_nolink.
26595         * include/rpc/auth.h: Mark functions which are to be hidden.
26596         * include/rpc/auth_des.h: Likewise.
26597         * include/rpc/auth_unix.h: Likewise.
26598         * include/rpc/clnt.h: Likewise.
26599         * include/rpc/des_crypt.h: Likewise.
26600         * include/rpc/key_prot.h: Likewise.
26601         * include/rpc/pmap_clnt.h: Likewise.
26602         * include/rpc/pmap_prot.h: Likewise.
26603         * include/rpc/pmap_rmt.h: Likewise.
26604         * include/rpc/rpc_msg.h: Likewise.
26605         * include/rpc/svc.h: Likewise.
26606         * include/rpc/svc_auth.h: Likewise.
26607         * include/rpc/xdr.h: Likewise.
26608         * nis/Makefile: Link all DSOs against linkobj/libc.so.
26609         * nss/Makefile: Likewise.
26610         * sunrpc/Makefile: Don't install headers.  Build library with normal
26611         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
26612         * sunrpc/auth_des.c: Hide exported symbols by default, export some
26613         for the compat linking library.  Remove use of INTDEF/INTUSE.
26614         * sunrpc/auth_none.c: Likewise.
26615         * sunrpc/auth_unix.c: Likewise.
26616         * sunrpc/authdes_prot.c: Likewise.
26617         * sunrpc/authuxprot.c: Likewise.
26618         * sunrpc/clnt_gen.c: Likewise.
26619         * sunrpc/clnt_perr.c: Likewise.
26620         * sunrpc/clnt_raw.c: Likewise.
26621         * sunrpc/clnt_simp.c: Likewise.
26622         * sunrpc/clnt_tcp.c: Likewise.
26623         * sunrpc/clnt_udp.c: Likewise.
26624         * sunrpc/clnt_unix.c: Likewise.
26625         * sunrpc/des_crypt.c: Likewise.
26626         * sunrpc/des_soft.c: Likewise.
26627         * sunrpc/get_myaddr.c: Likewise.
26628         * sunrpc/key_call.c: Likewise.
26629         * sunrpc/key_prot.c: Likewise.
26630         * sunrpc/netname.c: Likewise.
26631         * sunrpc/pm_getmaps.c: Likewise.
26632         * sunrpc/pm_getport.c: Likewise.
26633         * sunrpc/pmap_clnt.c: Likewise.
26634         * sunrpc/pmap_prot.c: Likewise.
26635         * sunrpc/pmap_prot2.c: Likewise.
26636         * sunrpc/pmap_rmt.c: Likewise.
26637         * sunrpc/publickey.c: Likewise.
26638         * sunrpc/rpc_cmsg.c: Likewise.
26639         * sunrpc/rpc_common.c: Likewise.
26640         * sunrpc/rpc_dtable.c: Likewise.
26641         * sunrpc/rpc_prot.c: Likewise.
26642         * sunrpc/rpc_thread.c: Likewise.
26643         * sunrpc/rtime.c: Likewise.
26644         * sunrpc/svc.c: Likewise.
26645         * sunrpc/svc_auth.c: Likewise.
26646         * sunrpc/svc_authux.c: Likewise.
26647         * sunrpc/svc_raw.c: Likewise.
26648         * sunrpc/svc_run.c: Likewise.
26649         * sunrpc/svc_simple.c: Likewise.
26650         * sunrpc/svc_tcp.c: Likewise.
26651         * sunrpc/svc_udp.c: Likewise.
26652         * sunrpc/svc_unix.c: Likewise.
26653         * sunrpc/svcauth_des.c: Likewise.
26654         * sunrpc/xcrypt.c: Likewise.
26655         * sunrpc/xdr.c: Likewise.
26656         * sunrpc/xdr_array.c: Likewise.
26657         * sunrpc/xdr_float.c: Likewise.
26658         * sunrpc/xdr_intXX_t.c: Likewise.
26659         * sunrpc/xdr_mem.c: Likewise.
26660         * sunrpc/xdr_rec.c: Likewise.
26661         * sunrpc/xdr_ref.c: Likewise.
26662         * sunrpc/xdr_sizeof.c: Likewise.
26663         * sunrpc/xdr_stdio.c: Likewise.
26664
26665 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
26666
26667         [BZ #12650]
26668         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
26669         * sysdeps/ia64/dl-tls.h: Likewise.
26670         * sysdeps/powerpc/dl-tls.h: Likewise.
26671         * sysdeps/s390/dl-tls.h: Likewise.
26672         * sysdeps/sh/dl-tls.h: Likewise.
26673         * sysdeps/sparc/dl-tls.h: Likewise.
26674         * sysdeps/x86_64/dl-tls.h: Likewise.
26675         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
26676
26677 2011-03-14  Andreas Schwab  <schwab@redhat.com>
26678
26679         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
26680         rpath element also skip the following colon.
26681         (expand_dynamic_string_token): Add is_path parameter and pass
26682         down to DL_DST_REQUIRED and _dl_dst_substitute.
26683         (decompose_rpath): Call expand_dynamic_string_token with
26684         non-zero is_path.  Ignore empty rpaths.
26685         (_dl_map_object_from_fd): Call expand_dynamic_string_token
26686         with zero is_path.
26687
26688 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
26689
26690         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
26691         Make cancelable.
26692
26693 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
26694
26695         [BZ #12655]
26696         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
26697         Patch by Filipe David Manana <fdmanana@apache.org>.
26698
26699 2011-04-07  Andreas Schwab  <schwab@redhat.com>
26700
26701         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
26702         Maintain aligned stack.
26703         (CHECK_RSP): Remove unused macro.
26704
26705 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
26706
26707         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
26708         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
26709
26710 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
26711
26712         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
26713
26714         * include/features.h: Mention __USE_XOPEN2K8 in comment.
26715
26716 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
26717
26718         [BZ #12518]
26719         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
26720         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
26721         * sysdeps/x86_64/memmove.c: New file.
26722         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
26723         (memcpy): Renamed to ...
26724         (__new_memcpy): This.
26725         (memcpy): Provide GLIBC_2_14 memcpy.
26726         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
26727         (memcpy): Provide GLIBC_2_2_5 memcpy.
26728
26729 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
26730
26731         [BZ #12631]
26732         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
26733
26734 2011-03-30  Andreas Schwab  <schwab@redhat.com>
26735
26736         * misc/syncfs.c: New file.
26737         * misc/Makefile (routines): Add syncfs.
26738         * posix/unistd.h: Declare syncfs.
26739         * sysdeps/unix/syscalls.list: Add syncfs.
26740
26741 2011-04-01  Andreas Schwab  <schwab@redhat.com>
26742
26743         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
26744         open_by_handle_at.
26745         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
26746         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
26747         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
26748         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
26749         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
26750         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
26751         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
26752
26753 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
26754
26755         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
26756         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
26757         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
26758         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
26759         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
26760         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
26761         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
26762
26763         * io/Makefile: Compile fallocate.c, fallocate64.c, and
26764         sync_file_range.c with -fexceptions.
26765         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
26766         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
26767         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
26768         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
26769         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
26770         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
26771         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
26772         sync_file_range as cancellation point
26773         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
26774         now a wrapper around __call_sync_file_range with cancellation handling.
26775         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
26776         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
26777         function name to __call_sync_file_range.
26778         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
26779         Add call_sync_file_range.
26780
26781 2011-04-01  Andreas Schwab  <schwab@redhat.com>
26782
26783         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
26784         bits/timex.h.
26785
26786 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
26787
26788         * iconv/iconv.h: Fix typo in comment.
26789         * io/fcntl.h: Likewise.
26790         * libio/stdio.h: Likewise.
26791         * posix/spawn.h: Likewise.
26792         * posix/unistd.h: Likewise.
26793         * stdlib/stdlib.h: Likewise.
26794         * time/time.h: Likewise.
26795         * wcsmbs/wchar.h: Likewise.
26796
26797         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
26798         open_by_handle): Add.
26799         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
26800         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
26801         Augment a few comments.
26802         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
26803         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
26804         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
26805         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
26806         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
26807         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
26808         open_by_handle.
26809
26810         * io/fcntl.h (AT_EMPTY_PATH): Define.
26811
26812 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
26813
26814         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
26815         * sysdeps/unix/sysv/linux/bits/time.h: New file.
26816         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
26817         to...
26818         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
26819         * Versions.def: Add GLIBC_2.14.
26820         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
26821         Export.
26822
26823 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
26824
26825         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
26826         round counter.
26827         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
26828
26829 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
26830
26831         [BZ #12597]
26832         * string/test-strncmp.c (do_page_test): New function.
26833         (check2): Likewise.
26834         (test_main): Call check2.
26835         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
26836
26837 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
26838
26839         [BZ #12587]
26840         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
26841         Handle cache information in CPU leaf 4.
26842         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
26843
26844 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
26845
26846         [BZ #12583]
26847         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
26848         character representation.
26849         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
26850
26851 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
26852
26853         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
26854         END(__isnan) to END(__isnanf) to match function entry point/label
26855         EALIGN(__isnanf,...).
26856
26857 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
26858
26859         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
26860
26861 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
26862
26863         [BZ #12510]
26864         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
26865         copy from the symbol referenced in the relocation to initialize the
26866         used variable.
26867         Patch by Piotr Bury <pbury@goahead.com>.
26868         * elf/Makefile: Add rules to build and tst-unique3.
26869         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
26870         * elf/tst-unique3.cc: New file.
26871         * elf/tst-unique3.h: New file.
26872         * elf/tst-unique3lib.cc: New file.
26873         * elf/tst-unique3lib2.cc: New file.
26874
26875         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
26876
26877 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
26878
26879         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
26880         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
26881         to _start.
26882
26883 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
26884
26885         * elf/dl-load.c (_dl_map_object): If we are looking for the first
26886         to-be-loaded object along a path to loader is ld.so.
26887
26888 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
26889             Ulrich Drepper  <drepper@gmail.com>
26890
26891         * sysdeps/x86_64/memset.S: After aligning destination, code
26892         branches to different locations depending on the value of
26893         misalignment, when multiarch is enabled. Fix this.
26894
26895 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
26896
26897         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
26898         Set _x86_64_preferred_memory_instruction for AMD processsors.
26899         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
26900         Set bit_Prefer_SSE_for_memop for AMD processors.
26901
26902 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
26903
26904         * libio/fmemopen.c (fmemopen): Optimize a bit.
26905
26906 2011-03-03  Andreas Schwab  <schwab@redhat.com>
26907
26908         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
26909
26910 2011-03-03  Roland McGrath  <roland@redhat.com>
26911
26912         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
26913
26914 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
26915
26916         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
26917         __bzero_ultra1 instead of __memset_ultra1.
26918
26919 2011-02-23  Andreas Schwab  <schwab@redhat.com>
26920             Ulrich Drepper  <drepper@gmail.com>
26921
26922         [BZ #12509]
26923         * include/link.h (struct link_map): Add l_orig_initfini.
26924         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
26925         returning unsuccessfully.
26926         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
26927         close of a file loaded at startup, restore the original l_initfini
26928         list.
26929         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
26930         list, store the pointer.
26931         * elf/Makefile ($(objpfx)noload-mem): New rule.
26932         (noload-ENV): Define.
26933         (tests): Add $(objpfx)noload-mem.
26934         * elf/noload.c: Include <memcheck.h>.
26935         (main): Call mtrace.  Close all opened handles.
26936
26937 2011-02-17  Andreas Schwab  <schwab@redhat.com>
26938
26939         [BZ #12454]
26940         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
26941         dependencies are missing.
26942
26943 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26944
26945         Fix __if_freereq crash: Unlike the generic version which uses free,
26946         Hurd needs munmap.
26947         * sysdeps/mach/hurd/ifreq.h: New file.
26948
26949 2011-01-27  Petr Baudis  <pasky@suse.cz>
26950             Ulrich Drepper  <drepper@gmail.com>
26951
26952         [BZ 12445]#
26953         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
26954         to extend_alloca().
26955         * stdio-common/bug23.c: New file.
26956         * stdio-common/Makefile (tests): Add bug23.
26957
26958 2010-09-28  Andreas Schwab  <schwab@redhat.com>
26959             Ulrich Drepper  <drepper@gmail.com>
26960
26961         [BZ #12489]
26962         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
26963         before performing relro protection.  At old place add assertion
26964         to make sure nothing changed.
26965
26966 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
26967             Glauber de Oliveira Costa  <glommer@gmail.com>
26968
26969         * elf/elf.h: Add new ARM TLS relocs.
26970
26971 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
26972
26973         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
26974         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
26975         cast from r3.
26976         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
26977         'tests' variable.
26978         * sysdeps/wordsize-64/tst-writev.c: New file.
26979
26980 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
26981
26982         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
26983         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
26984         insns in _dl_start to prevent a TOC reference before relocs are
26985         resolved.
26986
26987 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
26988
26989         [BZ #12469]
26990         * Makeconfig: Remove RANLIB definition.
26991         * Makerules: Don't use RANLIB.
26992         * aclocal.m4: Remove ranlib test.
26993         * configure.in: No need to check for ranlib.
26994         * elf/rtld-Rules: Don't use RANLIB.
26995
26996 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26997
26998         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
26999         protection macro.
27000         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
27001         inclusion protection macro.
27002
27003         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
27004         SIGRTMIN and SIGRTMAX and print information in that case only when
27005         SIGRTMIN is defined.
27006
27007 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
27008
27009         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
27010         arginfo fn returning -1.
27011
27012         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
27013         and thousands string is zero terminated.
27014
27015 2011-02-03  Andreas Schwab  <schwab@redhat.com>
27016
27017         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
27018         sysdeps/unix/sysv/linux/bits/socket.h.
27019
27020 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27021
27022         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
27023         (__CPU_COUNT): Remove old macros.
27024         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
27025         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
27026         (__CPU_ALLOC, __CPU_FREE): Add macros.
27027         (__sched_cpualloc, __sched_cpufree): Add declarations.
27028
27029 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
27030
27031         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
27032         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
27033         * nscd/aicache.c (addhstaiX): Return timeout of added value.
27034         (readdhstai): Return value of addhstaiX call.
27035         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
27036         (addgrbyX): Return value returned by cache_addgr.
27037         (readdgrbyname): Return value returned by addgrbyX.
27038         (readdgrbygid): Likewise.
27039         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
27040         (addpwbyX): Return value returned by cache_addpw.
27041         (readdpwbyname): Return value returned by addhstbyX.
27042         (readdpwbyuid): Likewise.
27043         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
27044         (addservbyX): Return value returned by cache_addserv.
27045         (readdservbyname): Return value returned by addservbyX:
27046         (readdservbyport): Likewise.
27047         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
27048         (addhstbyX): Return value returned by cache_addhst.
27049         (readdhstbyname): Return value returned by addhstbyX.
27050         (readdhstbyaddr): Likewise.
27051         (readdhstbynamev6): Likewise.
27052         (readdhstbyaddrv6): Likewise.
27053         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
27054         (readdinitgroups): Return value returned by addinitgroupsX.
27055         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
27056         (prune_cache): Keep track of timeout value of re-added entries.
27057         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
27058         * nscd/nscd.h: Adjust prototypes of readd* functions.
27059
27060 2011-02-04  Roland McGrath  <roland@redhat.com>
27061
27062         * nis/nis_server.c (nis_servstate): Use the right name for 0.
27063         (nis_stats): Likewise.
27064         * nis/nis_modify.c (nis_modify): Likewise.
27065         * nis/nis_remove.c (nis_remove): Likewise.
27066         * nis/nis_add.c (nis_add): Likewise.
27067
27068         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
27069
27070         * posix/fnmatch_loop.c: Add some consts.
27071
27072         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
27073
27074 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
27075
27076         [BZ #12460]
27077         * config.make.in (config-cflags-novzeroupper): Define.
27078         * configure.in: Substitute libc_cv_cc_novzeroupper.
27079         * elf/Makefile (AVX-CFLAGS): Define.
27080         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
27081         (CFLAGS-tst-auditmod4a.c): Likewise.
27082         (CFLAGS-tst-auditmod4b.c): Likewise.
27083         (CFLAGS-tst-auditmod6b.c): Likewise.
27084         (CFLAGS-tst-auditmod6c.c): Likewise.
27085         (CFLAGS-tst-auditmod7b.c): Likewise.
27086         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
27087
27088 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
27089
27090         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
27091         function to the callback.
27092         Patch partly by Jiri Olsa <jolsa@redhat.com>.
27093
27094 2011-02-02  Andreas Schwab  <schwab@redhat.com>
27095
27096         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
27097         of errno.
27098
27099 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
27100
27101         [BZ #11724]
27102         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
27103         of constructors.
27104         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
27105         of destructors.
27106         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
27107
27108         [BZ #11724]
27109         * elf/Makefile: Add rules to build and run new test.
27110         * elf/tst-initorder.c: New file.
27111         * elf/tst-initorder.exp: New file.
27112         * elf/tst-initordera1.c: New file.
27113         * elf/tst-initordera2.c: New file.
27114         * elf/tst-initordera3.c: New file.
27115         * elf/tst-initordera4.c: New file.
27116         * elf/tst-initorderb1.c: New file.
27117         * elf/tst-initorderb2.c: New file.
27118         * elf/tst-order-a1.c: New file.
27119         * elf/tst-order-a2.c: New file.
27120         * elf/tst-order-a3.c: New file.
27121         * elf/tst-order-a4.c: New file.
27122         * elf/tst-order-b1.c: New file.
27123         * elf/tst-order-b2.c: New file.
27124         * elf/tst-order-main.c: New file.
27125         New test case by George Gensure <werkt0@gmail.com>.
27126
27127 2010-10-01  Andreas Schwab  <schwab@redhat.com>
27128
27129         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
27130         decoding ACE if AI_CANONIDN.
27131
27132 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
27133
27134         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
27135
27136 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
27137
27138         * version.h (RELEASE): Bump for 2.13 release.
27139         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
27140
27141         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
27142
27143         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
27144         MADV_NOHUGEPAGE.
27145         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
27146         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
27147         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
27148         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
27149         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
27150         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
27151
27152         * posix/getconf.c: Update copyright year.
27153         * catgets/gencat.c: Likewise.
27154         * csu/version.c: Likewise.
27155         * debug/catchsegv.sh: Likewise.
27156         * debug/xtrace.sh: Likewise.
27157         * elf/ldconfig.c: Likewise.
27158         * elf/ldd.bash.in: Likewise.
27159         * elf/sprof.c (print_version): Likewise.
27160         * iconv/iconv_prog.c: Likewise.
27161         * iconv/iconvconfig.c: Likewise.
27162         * locale/programs/locale.c: Likewise.
27163         * locale/programs/localedef.c: Likewise.
27164         * malloc/memusage.sh: Likewise.
27165         * malloc/mtrace.pl: Likewise.
27166         * nscd/nscd.c (print_version): Likewise.
27167         * nss/getent.c: Likewise.
27168
27169         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
27170         PF_CAIF, and PF_ALG.
27171         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
27172
27173 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
27174
27175         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
27176         (modules-names): Use them.
27177         (ifunc-test-modules, ifunc-pie-tests): Define.
27178         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
27179         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
27180         (test-extras): Likewise.
27181         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
27182         $(compile-command.c).
27183         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
27184         (all-built-dso): Define.
27185         (check-textrel.out, check-execstack.out): Depend on it.
27186
27187         * configure.in: Don't override --enable-multi-arch.
27188
27189 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
27190
27191         [BZ #6812]
27192         * nscd/hstcache.c (tryagain): Define.
27193         (cache_addhst): Return tryagain not notfound for temporary errors.
27194         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
27195         failed.
27196
27197 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
27198
27199         [BZ #10563]
27200         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
27201         to make the syscall.
27202         * sysdeps/unix/sysv/linux/setgroups.c: New file.
27203
27204         [BZ #12378]
27205         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
27206         and fall back to matching as normal character if the string ends before
27207         the matching ']' is found.  This is what POSIX requires.
27208         * posix/testfnm.c: Adjust test result.
27209         * posix/globtest.sh: Adjust test result.  Add new test.
27210         * posix/tst-fnmatch.input: Likewise.
27211         * posix/tst-fnmatch2.c: Add new test.
27212
27213 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
27214
27215         * elf/Makefile (check-execstack): Revert last change.  Depend on
27216         check-execstack.h.
27217         (check-execstack.h): New target.
27218         (generated): Add check-execstack.h.
27219         * elf/check-execstack.c: Include "check-execstack.h".
27220         (main): Revert last change.
27221         (handle_file): Return zero if GNU_STACK is absent and
27222         DEFAULT_STACK_PERMS doesn't include PF_X.
27223
27224 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
27225
27226         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
27227         in child fails because the descriptor is already closed.
27228         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
27229         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
27230         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
27231
27232         [BZ #12397]
27233         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
27234         syscall.
27235
27236         [BZ #10484]
27237         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
27238         temporary buffer used to handle multi lookups locally.
27239         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
27240
27241 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
27242
27243         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
27244         loader is ld.so.
27245
27246 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
27247
27248         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
27249         alignment for SSE2.
27250
27251 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
27252
27253         [BZ #12394]
27254         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
27255         characters.  When rounding increased number of integer digits recompute
27256         number of groups.
27257         * stdio-common/tst-grouping.c: New file.
27258         * stdio-common/Makefile: Add rules to build and run tst-grouping.
27259
27260 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
27261
27262         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
27263         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
27264
27265         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
27266         void.
27267         * bits/select.h: Likewise.
27268
27269 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
27270
27271         * po/ja.po: Update from translation team.
27272
27273 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
27274
27275         [BZ #11155]
27276         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
27277         implementation just like for lxstat, fxstatat, et al.
27278
27279 2010-12-27  Jim Meyering  <meyering@redhat.com>
27280
27281         [BZ #12348]
27282         * posix/regexec.c (build_trtable): Return failure indication upon
27283         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
27284
27285 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
27286
27287         [BZ #12201]
27288         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
27289         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
27290         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
27291         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
27292
27293         [BZ #12207]
27294         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
27295
27296         [BZ #12204]
27297         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
27298         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
27299
27300 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
27301
27302         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
27303         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
27304         script has SORT_BY_INIT_PRIORITY.
27305         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
27306         NO_CTORS_DTORS_SECTIONS is defined.
27307         * elf/soinit.c: Likewise.
27308         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
27309         NO_CTORS_DTORS_SECTIONS is defined.
27310         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
27311         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
27312         * sysdeps/sh/init-first.c: Likewise.
27313         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
27314
27315 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
27316
27317         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
27318         always use the slow path.
27319
27320 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
27321
27322         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
27323         similar rule which adds the sysdep directories to the header search in
27324         order to pick up the correct platform stackinfo.h.
27325         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
27326         perform test if it is, otherwise return successfully without testing.
27327         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
27328         DEFAULT_STACK_PERMS define in stackinfo.h.
27329         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
27330         defined in stackinfo.h.
27331         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
27332         DEFAULT_STACK_PERMS defined in stackinfo.h.
27333         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
27334         * sysdeps/ia64/stackinfo.h: Likewise.
27335         * sysdeps/s390/stackinfo.h: Likewise.
27336         * sysdeps/sh/stackinfo.h: Likewise.
27337         * sysdeps/sparc/stackinfo.h: Likewise.
27338         * sysdeps/x86_64/stackinfo.h: Likewise.
27339         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
27340         PF_X for powerpc64.  Retain PF_X for powerpc32.
27341
27342 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
27343
27344         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
27345         accurately.
27346         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
27347         GETDENTS_64BIT_ALIGNED.
27348
27349 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
27350
27351         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
27352
27353 2010-12-10  Andreas Schwab  <schwab@redhat.com>
27354
27355         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
27356         _GNU_SOURCE.
27357
27358         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
27359         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
27360         Remove __restrict.
27361         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
27362         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
27363
27364 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
27365
27366         [BZ #11655]
27367         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
27368         are initialized.
27369
27370 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
27371
27372         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
27373
27374 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
27375
27376         * po/it.po: Update from translation team.
27377
27378 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
27379
27380         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
27381         unused codes.
27382
27383 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
27384
27385         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
27386
27387 2010-11-24  Andreas Schwab  <schwab@redhat.com>
27388
27389         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
27390         specially.
27391         (gaih_getanswer_slice): Likewise.
27392
27393 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
27394
27395         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
27396
27397 2010-05-31  Petr Baudis  <pasky@suse.cz>
27398
27399         [BZ #11149]
27400         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
27401         silently even in the chroot mode.
27402
27403 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
27404
27405         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
27406         last patch a bit.  Pretty printing
27407
27408 2010-05-31  Petr Baudis <pasky@suse.cz>
27409
27410         [BZ #10085]
27411         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
27412         initialization of skip_initgroups_dyn.
27413
27414 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
27415
27416         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
27417         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
27418
27419 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
27420
27421         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
27422
27423 2010-11-11  Andreas Schwab  <schwab@redhat.com>
27424
27425         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
27426         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
27427         (tst-fnmatch-ENV): Set MALLOC_TRACE.
27428         ($(objpfx)tst-fnmatch-mem): New rule.
27429         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
27430         * posix/tst-fnmatch.c (main): Call mtrace.
27431
27432 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
27433
27434         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
27435         Support Intel processor model 6 and model 0x2c.
27436
27437 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
27438
27439         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
27440           signed comparison.
27441
27442 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
27443
27444         [BZ #12205]
27445         * string/test-strncasecmp.c (check_result): New function.
27446         (do_one_test): Use it.
27447         (check1): New function.
27448         (test_main): Use it.
27449         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
27450         Support strcasecmp and strncasecmp.
27451
27452 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
27453
27454         [BZ #12194]
27455         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
27456         * sysdeps/x86_64/bits/byteswap.h: Likewise.
27457
27458 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
27459
27460         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
27461         IFUNC support.
27462         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
27463         memset-x86-64.
27464         * sysdeps/x86_64/multiarch/bzero.S: New file.
27465         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
27466         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
27467         * sysdeps/x86_64/multiarch/memset.S: New file.
27468         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
27469         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
27470         Set bit_Prefer_SSE_for_memop for Intel processors.
27471         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
27472         Define.
27473         (index_Prefer_SSE_for_memop): Define.
27474         (HAS_PREFER_SSE_FOR_MEMOP): Define.
27475
27476 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
27477
27478         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
27479         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
27480
27481 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
27482
27483         [BZ #12191]
27484         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
27485         (__x86_64_raw_data_cache_size_half): Likewise.
27486         (__x86_64_raw_shared_cache_size): Likewise.
27487         (__x86_64_raw_shared_cache_size_half): Likewise.
27488
27489         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
27490         (__x86_64_raw_data_cache_size_half): Likewise.
27491         (__x86_64_raw_shared_cache_size): Likewise.
27492         (__x86_64_raw_shared_cache_size_half): Likewise.
27493         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
27494         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
27495         and __x86_64_raw_shared_cache_size_half.  Round
27496         __x86_64_data_cache_size_half, __x86_64_data_cache_size
27497         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
27498         to multiple of 256 bytes.
27499
27500 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
27501
27502         [BZ #12167]
27503         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
27504         of inacessible symlinks.  Verify result of symlink before returning it.
27505         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
27506         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
27507
27508 2010-10-28  Erich Ritz  <erichritz@gmail.com>
27509
27510         * math/math.h (isinf): Fix typo in comment.
27511
27512 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
27513
27514         * po/da.po: Update from translation team.
27515
27516 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
27517
27518         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
27519         is added to the list.
27520
27521 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27522             Ulrich Drepper  <drepper@gmail.com>
27523
27524         * elf/dl-object.c (_dl_new_object): Don't append the new object to
27525         the global list here.  Move code to...
27526         (_dl_add_to_namespace_list): ...here.  New function.
27527         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
27528         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
27529         * elf/dl-load.c (lose): Don't remove the element from the list.
27530         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
27531         (_dl_map_object): Likewise.
27532
27533 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
27534
27535         [BZ #12159]
27536         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
27537         into all bytes of SSE register.
27538         Patch by Richard Li <richardpku@gmail.com>.
27539
27540 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
27541
27542         [BZ #12140]
27543         * malloc/malloc.c (_int_free): Fill correct number of bytes when
27544         perturbing.
27545
27546 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
27547
27548         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
27549         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
27550         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
27551         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
27552         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
27553         submachine.
27554         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
27555
27556 2010-10-22  Andreas Schwab  <schwab@redhat.com>
27557
27558         * include/dlfcn.h (__RTLD_SECURE): Define.
27559         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
27560         mode & __RTLD_SECURE instead.
27561         (open_path): Rename preloaded parameter to secure.
27562         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
27563         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
27564         * elf/dl-deps.c (openaux): Likewise.
27565         * elf/rtld.c (struct map_args): Remove is_preloaded.
27566         (map_doit): Don't use it.
27567         (dl_main): Likewise.
27568         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
27569         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
27570
27571 2010-09-09  Andreas Schwab  <schwab@redhat.com>
27572
27573         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
27574         (sysd-rules-targets): Remove duplicates.
27575         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
27576         rtld-%.$o dependency.
27577
27578 2010-10-18  Andreas Schwab  <schwab@redhat.com>
27579
27580         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
27581         _dl_map_object do it.
27582
27583 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
27584
27585         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
27586         fast fma builtins, define the macros in the C99 standard.
27587         (FP_FAST_FMAF): Likewise.
27588         (FP_FAST_FMAL): Likewise.
27589         * sysdeps/x86_64/bits/mathdef.h: Likewise.
27590
27591         * bits/mathdef.h: Update copyright year.
27592         * sysdeps/powerpc/bits/mathdef.h: Likewise.
27593
27594 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
27595
27596         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
27597         builtins, define the macros in the C99 standard.
27598         (FP_FAST_FMAF): Likewise.
27599         (FP_FAST_FMAL): Likewise.
27600         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
27601         multiply/add.
27602         (FP_FAST_FMAF): Likewise.
27603
27604 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
27605
27606         [BZ #3268]
27607         * math/libm-test.inc (fma_test): Some new testcases.
27608         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
27609         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
27610         y and infinite z.  Do multiplication by C already in long double.
27611         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
27612         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
27613         y and infinite z.  Do bitwise or of inexact bit into u.d.
27614         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
27615         * sysdeps/i386/fpu/s_fmaf.S: Removed.
27616         * sysdeps/i386/fpu/s_fma.S: Removed.
27617         * sysdeps/i386/fpu/s_fmal.S: Removed.
27618
27619 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
27620
27621         [BZ #3268]
27622         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
27623         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
27624         computation is not scheduled after fetestexcept.  Fix value
27625         of minimum denormal long double.
27626
27627 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
27628
27629         [BZ #3268]
27630         * math/libm-test.inc (fma_test): Add some more tests.
27631         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
27632         correctly.
27633
27634 2010-10-15  Andreas Schwab  <schwab@redhat.com>
27635
27636         * scripts/data/localplt-s390-linux-gnu.data: New file.
27637         * scripts/data/localplt-s390x-linux-gnu.data: New file.
27638
27639 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
27640
27641         [BZ #3268]
27642         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
27643         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
27644         instead of dbl-64.
27645         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
27646         inlines.
27647         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
27648         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
27649         if one of x and y is very large and the other is subnormal.
27650         * sysdeps/s390/fpu/s_fmaf.c: New file.
27651         * sysdeps/s390/fpu/s_fma.c: New file.
27652         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
27653         * sysdeps/powerpc/fpu/s_fma.S: New file.
27654         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
27655         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
27656         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
27657
27658 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
27659
27660         [BZ #3268]
27661         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
27662         fma tests.
27663         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
27664         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
27665         * sysdeps/i386/i686/multiarch/s_fma.c: Include
27666         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
27667         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
27668         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
27669         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
27670
27671 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
27672
27673         [BZ #12078]
27674         * posix/regcomp.c (parse_branch): One more memory leak plugged.
27675         * posix/bug-regex31.input: Add test case.
27676
27677 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
27678
27679         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
27680         * posix/bug-regex31.input: New file.
27681
27682         [BZ #12078]
27683         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
27684         (parse_sub_exp): Fix last change, use postorder.
27685
27686         * posix/bug-regex31.c: New file.
27687         * posix/Makefile: Add rules to build and run bug-regex31.
27688
27689         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
27690
27691         [BZ #12078]
27692         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
27693
27694         [BZ #12108]
27695         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
27696         to have entries in sys_siglist.
27697
27698         [BZ #12093]
27699         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
27700         be NULL.
27701
27702 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
27703
27704         [BZ #3268]
27705         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
27706         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
27707         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
27708         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
27709         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
27710         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
27711         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
27712         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
27713         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
27714         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
27715         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
27716         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
27717         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
27718         * math/ftestexcept.c (fetestexcept): Likewise.
27719         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
27720         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
27721         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
27722         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
27723         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
27724         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
27725         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
27726
27727 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
27728
27729         [BZ #12107]
27730         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
27731         newline.
27732
27733 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
27734
27735         * string/bug-strstr1.c: New file.
27736         * string/Makefile: Add rules to build and run bug-strstr1.
27737
27738 2010-10-05  Eric Blake  <eblake@redhat.com>
27739
27740         [BZ #12092]
27741         * string/str-two-way.h (two_way_long_needle): Always clear memory
27742         when skipping input due to the shift table.
27743
27744 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
27745
27746         [BZ #12005]
27747         * malloc/mcheck.c: Handle large requests.
27748
27749         [BZ #12077]
27750         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
27751         for strncmp and strncasecmp.
27752         * string/stratcliff.c: Add tests for strcmp and strncmp.
27753         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
27754
27755 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
27756
27757         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
27758         __set_fpscr.
27759
27760 2010-09-30  Andreas Jaeger  <aj@suse.de>
27761
27762         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
27763         (CGROUP_SUPER_MAGIC): Define.
27764         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
27765         Handle btrfs and cgroup file systems.
27766         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
27767         Likewise.
27768
27769 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
27770
27771         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
27772         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
27773
27774 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27775
27776         [BZ #12067]
27777         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
27778         trying to locate the ELF header.
27779
27780 2010-09-27  Andreas Schwab  <schwab@redhat.com>
27781
27782         [BZ #11611]
27783         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
27784         Mask out sign-bit copies when constructing f_fsid.
27785
27786 2010-09-24  Petr Baudis <pasky@suse.cz>
27787
27788         * debug/stack_chk_fail_local.c: Add missing licence exception.
27789         * debug/warning-nop.c: Likewise.
27790
27791 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
27792
27793         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
27794         implementing getdents64 using getdents syscall, set d_type if
27795         __ASSUME_GETDENTS32_D_TYPE.
27796
27797 2010-09-16  Andreas Schwab  <schwab@redhat.com>
27798
27799         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
27800         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
27801
27802 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
27803
27804         [BZ #12037]
27805         * posix/unistd.h: Undo change of feature selection for ftruncate from
27806         2010-01-11.
27807
27808 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
27809
27810         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
27811         detection.
27812
27813 2010-09-20  Andreas Schwab  <schwab@redhat.com>
27814
27815         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
27816         fanotify_mark.
27817         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
27818
27819 2010-09-14  Andreas Schwab  <schwab@redhat.com>
27820
27821         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
27822         variables after CHECK_SP call.
27823         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
27824
27825 2010-09-13  Andreas Schwab  <schwab@redhat.com>
27826             Ulrich Drepper  <drepper@redhat.com>
27827
27828         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
27829         re-relocationg ld.so.
27830         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
27831         _dl_init_paths call.
27832         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
27833         here anymore.
27834
27835 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
27836
27837         * resolv/res_init.c (__res_vinit): Count the default server we added.
27838
27839 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
27840             Ulrich Drepper  <drepper@redhat.com>
27841
27842         [BZ #11968]
27843         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
27844         (____longjmp_chk): Use %ebx for saving value across system call.
27845         Add unwind info.
27846
27847 2010-09-06  Andreas Schwab  <schwab@redhat.com>
27848
27849         * manual/Makefile: Don't mix pattern rules with normal rules.
27850
27851 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
27852
27853         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
27854         operation.
27855         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
27856         * libio/iofopncook.c (_IO_cookie_init): Likewise.
27857         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
27858         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
27859         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
27860         Likewise.
27861
27862 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
27863
27864         [BZ #11979]
27865         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
27866         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
27867
27868 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
27869
27870         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
27871         * sysdeps/x86_64/addmul_1.S: Likewise.
27872         * sysdeps/x86_64/lshift.S: Likewise.
27873         * sysdeps/x86_64/mul_1.S: Likewise.
27874         * sysdeps/x86_64/rshift.S: Likewise.
27875         * sysdeps/x86_64/sub_n.S: Likewise.
27876         * sysdeps/x86_64/submul_1.S: Likewise.
27877
27878 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27879
27880         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
27881         Define __sched_param instead of SCHED_* and sched_param when
27882         <bits/sched.h> is included with __need_schedparam defined.
27883         * bits/sched.h [__need_schedparam]
27884         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
27885         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
27886         (__defined_schedparam): Define to 1.
27887         (__sched_param): New structure, identical to sched_param.
27888         (__need_schedparam): Undefine.
27889
27890 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
27891
27892         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
27893         (epoll_create1): Declare.
27894
27895         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
27896
27897 2010-08-31  Andreas Schwab  <schwab@redhat.com>
27898
27899         [BZ #7066]
27900         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
27901         shifting retval into place.
27902
27903 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
27904
27905         * nis/rpcsvc/nis.h: Update copyright notice.
27906         * nis/rpcsvc/nis.x: Likewise.
27907         * nis/rpcsvc/nis_callback.h: Likewise.
27908         * nis/rpcsvc/nis_callback.x: Likewise.
27909         * nis/rpcsvc/nis_object.x: Likewise.
27910         * nis/rpcsvc/nis_tags.h: Likewise.
27911         * nis/rpcsvc/yp.h: Likewise.
27912         * nis/rpcsvc/yp.x: Likewise.
27913         * nis/rpcsvc/ypupd.h: Likewise.
27914         * nis/yp_xdr.c: Likewise.
27915         * nis/ypupdate_xdr.c: Likewise.
27916
27917         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
27918         mainly the body of pmap_getport.  Add parameters to specify timeouts.
27919         (pmap_getport): Use __libc_rpc_getport.
27920         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
27921         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
27922         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
27923
27924 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
27925
27926         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
27927         fanotify_mark.
27928
27929 2010-08-27  Roland McGrath  <roland@redhat.com>
27930
27931         * sysdeps/i386/i686/multiarch/Makefile
27932         (CFLAGS-varshift.c): New variable.
27933
27934 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
27935
27936         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
27937         * sysdeps/i386/i686/multiarch/varshift.c: New file.
27938
27939         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
27940
27941         * sysdeps/x86_64/strlen.S: Minimal code improvement.
27942
27943 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
27944
27945         * sysdeps/x86_64/strlen.S: Unroll the loop.
27946         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
27947         strlen-sse2 strlen-sse2-bsf.
27948         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
27949         __strlen_no_bsf if bit_Slow_BSF is set.
27950         (__strlen_sse42): Removed.
27951         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
27952         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
27953
27954 2010-08-25  Roland McGrath  <roland@redhat.com>
27955
27956         * sysdeps/x86_64/multiarch/varshift.S: File removed.
27957         * sysdeps/x86_64/multiarch/varshift.c: New file.
27958         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
27959         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
27960         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
27961         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
27962
27963 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
27964
27965         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
27966         strlen-sse2 strlen-sse2-bsf.
27967         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
27968         __strlen_sse2_bsf if bit_Slow_BSF is unset.
27969         (__strlen_sse2): Removed.
27970         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
27971         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
27972         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
27973         bit_Slow_BSF for Atom.
27974         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
27975         (index_Slow_BSF): Define.
27976         (HAS_SLOW_BSF): Define.
27977
27978 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
27979
27980         [BZ #10851]
27981         * resolv/res_init.c (__res_vinit): When no server address at all
27982         is given default to loopback.
27983
27984 2010-08-24  Roland McGrath  <roland@redhat.com>
27985
27986         * configure.in: Remove config-name.h generation.
27987         * configure: Regenerated.
27988         * config-name.in: File removed.
27989         * scripts/config-uname.sh: New file.
27990         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
27991         ($(objdir)config-name.h): New target.
27992
27993         * sunrpc/rpc_parse.h: Avoid nested comment.
27994
27995 2010-08-24  Richard Henderson  <rth@redhat.com>
27996             Ulrich Drepper  <drepper@redhat.com>
27997             H.J. Lu  <hongjiu.lu@intel.com>
27998
27999         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
28000         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
28001         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
28002         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
28003         _mm_alignr_epi8 with _mm_loadu_si128.
28004         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
28005         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
28006         (__m128i_shift_right): Removed.
28007         * sysdeps/i386/i686/multiarch/varshift.h: New file.
28008         * sysdeps/i386/i686/multiarch/varshift.S: New file.
28009         * sysdeps/x86_64/multiarch/varshift.h: New file.
28010         * sysdeps/x86_64/multiarch/varshift.S: New file.
28011
28012 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
28013
28014         * configure.in: Move assembler checks to before sysdep dir checking.
28015
28016 2010-08-20  Petr Baudis  <pasky@suse.cz>
28017
28018         * LICENSES: Sync the sunrpc license.
28019
28020 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
28021
28022         * sunrpc/auth_des.c: Update copyright notice once again.
28023         * sunrpc/auth_none.c: Likewise.
28024         * sunrpc/auth_unix.c: Likewise.
28025         * sunrpc/authdes_prot.c: Likewise.
28026         * sunrpc/authuxprot.c: Likewise.
28027         * sunrpc/bindrsvprt.c: Likewise.
28028         * sunrpc/clnt_gen.c: Likewise.
28029         * sunrpc/clnt_perr.c: Likewise.
28030         * sunrpc/clnt_raw.c: Likewise.
28031         * sunrpc/clnt_simp.c: Likewise.
28032         * sunrpc/clnt_tcp.c: Likewise.
28033         * sunrpc/clnt_udp.c: Likewise.
28034         * sunrpc/clnt_unix.c: Likewise.
28035         * sunrpc/des_crypt.c: Likewise.
28036         * sunrpc/des_soft.c: Likewise.
28037         * sunrpc/get_myaddr.c: Likewise.
28038         * sunrpc/getrpcport.c: Likewise.
28039         * sunrpc/key_call.c: Likewise.
28040         * sunrpc/key_prot.c: Likewise.
28041         * sunrpc/openchild.c: Likewise.
28042         * sunrpc/pm_getmaps.c: Likewise.
28043         * sunrpc/pm_getport.c: Likewise.
28044         * sunrpc/pmap_clnt.c: Likewise.
28045         * sunrpc/pmap_prot.c: Likewise.
28046         * sunrpc/pmap_prot2.c: Likewise.
28047         * sunrpc/pmap_rmt.c: Likewise.
28048         * sunrpc/rpc/auth.h: Likewise.
28049         * sunrpc/rpc/auth_unix.h: Likewise.
28050         * sunrpc/rpc/clnt.h: Likewise.
28051         * sunrpc/rpc/des_crypt.h: Likewise.
28052         * sunrpc/rpc/key_prot.h: Likewise.
28053         * sunrpc/rpc/netdb.h: Likewise.
28054         * sunrpc/rpc/pmap_clnt.h: Likewise.
28055         * sunrpc/rpc/pmap_prot.h: Likewise.
28056         * sunrpc/rpc/pmap_rmt.h: Likewise.
28057         * sunrpc/rpc/rpc.h: Likewise.
28058         * sunrpc/rpc/rpc_des.h: Likewise.
28059         * sunrpc/rpc/rpc_msg.h: Likewise.
28060         * sunrpc/rpc/svc.h: Likewise.
28061         * sunrpc/rpc/svc_auth.h: Likewise.
28062         * sunrpc/rpc/types.h: Likewise.
28063         * sunrpc/rpc/xdr.h: Likewise.
28064         * sunrpc/rpc_clntout.c: Likewise.
28065         * sunrpc/rpc_cmsg.c: Likewise.
28066         * sunrpc/rpc_common.c: Likewise.
28067         * sunrpc/rpc_cout.c: Likewise.
28068         * sunrpc/rpc_dtable.c: Likewise.
28069         * sunrpc/rpc_hout.c: Likewise.
28070         * sunrpc/rpc_main.c: Likewise.
28071         * sunrpc/rpc_parse.c: Likewise.
28072         * sunrpc/rpc_parse.h: Likewise.
28073         * sunrpc/rpc_prot.c: Likewise.
28074         * sunrpc/rpc_sample.c: Likewise.
28075         * sunrpc/rpc_scan.c: Likewise.
28076         * sunrpc/rpc_scan.h: Likewise.
28077         * sunrpc/rpc_svcout.c: Likewise.
28078         * sunrpc/rpc_tblout.c: Likewise.
28079         * sunrpc/rpc_util.c: Likewise.
28080         * sunrpc/rpc_util.h: Likewise.
28081         * sunrpc/rpcinfo.c: Likewise.
28082         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
28083         * sunrpc/rpcsvc/key_prot.x: Likewise.
28084         * sunrpc/rpcsvc/klm_prot.x: Likewise.
28085         * sunrpc/rpcsvc/mount.x: Likewise.
28086         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
28087         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
28088         * sunrpc/rpcsvc/rex.x: Likewise.
28089         * sunrpc/rpcsvc/rstat.x: Likewise.
28090         * sunrpc/rpcsvc/rusers.x: Likewise.
28091         * sunrpc/rpcsvc/sm_inter.x: Likewise.
28092         * sunrpc/rpcsvc/spray.x: Likewise.
28093         * sunrpc/rpcsvc/yppasswd.x: Likewise.
28094         * sunrpc/rtime.c: Likewise.
28095         * sunrpc/svc.c: Likewise.
28096         * sunrpc/svc_auth.c: Likewise.
28097         * sunrpc/svc_authux.c: Likewise.
28098         * sunrpc/svc_raw.c: Likewise.
28099         * sunrpc/svc_run.c: Likewise.
28100         * sunrpc/svc_simple.c: Likewise.
28101         * sunrpc/svc_tcp.c: Likewise.
28102         * sunrpc/svc_udp.c: Likewise.
28103         * sunrpc/svc_unix.c: Likewise.
28104         * sunrpc/svcauth_des.c: Likewise.
28105         * sunrpc/xcrypt.c: Likewise.
28106         * sunrpc/xdr.c: Likewise.
28107         * sunrpc/xdr_array.c: Likewise.
28108         * sunrpc/xdr_float.c: Likewise.
28109         * sunrpc/xdr_mem.c: Likewise.
28110         * sunrpc/xdr_rec.c: Likewise.
28111         * sunrpc/xdr_ref.c: Likewise.
28112         * sunrpc/xdr_sizeof.c: Likewise.
28113         * sunrpc/xdr_stdio.c: Likewise.
28114
28115         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
28116         handling.
28117
28118 2010-08-19  Andreas Schwab  <schwab@redhat.com>
28119
28120         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
28121
28122 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
28123
28124         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
28125         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
28126         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
28127         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
28128         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
28129         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
28130         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
28131         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
28132         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
28133         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
28134         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
28135         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
28136         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
28137         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
28138
28139 2010-07-26  Anton Blanchard  <anton@samba.org>
28140
28141         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
28142         * malloc/arena.c (heap_trim): Likewise.
28143
28144 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
28145
28146         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
28147         here.  Not...
28148         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
28149         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
28150
28151 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
28152
28153         * sysdeps/i386/elf/Makefile: New file.
28154
28155 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
28156
28157         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
28158         from fanotify_init.
28159         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
28160         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
28161
28162 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
28163
28164         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
28165         of strncasecmp_l.
28166         * sysdeps/multiarch/strcmp.S: Likewise.
28167
28168 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
28169
28170         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
28171         strncase_l-nonascii.
28172         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
28173         Add strncase_l-ssse3.
28174         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
28175         * sysdeps/x86_64/strcmp.S: Likewise.
28176         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
28177         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
28178         * sysdeps/x86_64/strncase.S: New file.
28179         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
28180         * sysdeps/x86_64/strncase_l.S: New file.
28181         * string/Makefile (strop-tests): Add strncasecmp.
28182         * string/test-strncasecmp.c: New file.
28183
28184         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
28185         warning.
28186
28187         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
28188         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
28189
28190 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
28191
28192         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
28193
28194 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
28195
28196         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
28197         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
28198         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
28199
28200 2010-05-01  Alan Modra  <amodra@gmail.com>
28201
28202         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
28203         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
28204         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
28205         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
28206         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
28207         tidying.  Don't tail-call __sigjmp_save for static lib.
28208         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
28209         save location.
28210         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
28211         (CALL_MCOUNT): Add eh info, and nop after bl.
28212         (TAIL_CALL_SYSCALL_ERROR): New macro.
28213         (PSEUDO_RET): Use it.
28214         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
28215         Correct save location of integer regs and cr.
28216         (_dl_profile_resolve): Correct cr save location.  Delete nops
28217         after bl when SHARED.  Reduce cfi size a little by better
28218         placement of cfi directives.
28219         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
28220         make a stack frame.  Instead use parm save area as a temp.
28221         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
28222         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
28223         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
28224         Don't make a stack frame for parent, use parm save area.
28225         Increase child stack frame to 112 bytes.  Don't save unused reg,
28226         and adjust reg usage.  Set up cfi on error recovery and
28227         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
28228         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
28229         (__makecontext): Add dummy nop after jump to exit.
28230         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
28231         Use correct parm save area and cr save, reduce stack frame.
28232         Correct cfi for possible PSEUDO_RET frame setup.
28233         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
28234         Branch to local label emitted by PSEUDO_RET rather than
28235         __syscall_error.
28236
28237 2010-08-12  Andreas Schwab  <schwab@redhat.com>
28238
28239         [BZ #11904]
28240         * locale/programs/locale.c (print_assignment): New function.
28241         (show_locale_vars): Use it.
28242
28243 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
28244
28245         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
28246         field.
28247         (struct statfs64): Likewise.
28248         (_STATFS_F_FLAGS): Define.
28249         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
28250         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
28251         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
28252         (ST_VALID): Define locally.
28253         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
28254         __statvfs_getflags, use the provided value.
28255         * sysdeps/unix/sysv/linux/kernel-features.h: Define
28256         __ASSUME_STATFS_F_FLAGS.
28257
28258         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
28259
28260         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
28261         Add sys/fanotify.h.
28262         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
28263         fanotify_mask for GLIBC_2.13.
28264         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
28265         fanotify_init and fanotify_mark.
28266         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
28267         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
28268
28269         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
28270         Add prlimit.
28271         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
28272         prlimit64 for GLIBC_2.13.
28273         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
28274         prlimit64.
28275         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
28276         syscall.
28277         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
28278         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
28279         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
28280         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
28281         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
28282         add prlimit alias.
28283         * sysdeps/unix/sysv/linux/prlimit.c: New file.
28284
28285         [BZ #11903]
28286         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
28287         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
28288
28289         * nss/Makefile: Add rules to build and run tst-nss-test1.
28290         * shlib-versions: Add entry for libnss_test1.
28291         * nss/nss_test1.c: New file.
28292         * nss/tst-nss-test1.c: New file.
28293
28294         * nss/nsswitch.c (__nss_database_custom): Define new variable.
28295         (__nss_configure_lookup): Set appropriate entry in
28296         __nss_configure_lookup to true.
28297         * nss/nsswitch.h: Define enum with indeces of databases in
28298         databases and __nss_database_custom arrays.  Declare
28299         __nss_database_custom.
28300         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
28301         to avoid using nscd when custom rules are installed.
28302         * nss/getXXbyYY_r.c: Likewise.
28303         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
28304
28305         * nss/nss_files/files-parse.c: Whitespace fixes.
28306
28307 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
28308
28309         [BZ #11883]
28310         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
28311         * posix/fnmatch_loop.c: Likewise.
28312
28313 2010-07-17  Andi Kleen  <ak@linux.intel.com>
28314
28315         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
28316         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
28317         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
28318         * Versions.def [GLIBC_2.13]: Add.
28319
28320 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
28321
28322         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
28323         Also fail if tpwd after pwuid call is NULL.
28324
28325 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
28326
28327         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
28328         when converting to ms.
28329
28330 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
28331
28332         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
28333         EOPNOTSUPP errors with ENOTTY.
28334         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
28335         EOPNOTSUPP errors with ENOTTY.
28336
28337 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
28338
28339         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
28340         Add strcasecmp_l-ssse3.
28341         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
28342         strcasecmp.
28343         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
28344         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
28345         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
28346
28347 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
28348
28349         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
28350
28351         * string/Makefile (strop-tests): Add strcasecmp.
28352         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
28353         strcasecmp_l-nonascii.
28354         (gen-as-const-headers): Add locale-defines.sym.
28355         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
28356         * sysdeps/x86_64/strcasecmp.S: New file.
28357         * sysdeps/x86_64/strcasecmp_l.S: New file.
28358         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
28359         * sysdeps/x86_64/locale-defines.sym: New file.
28360         * string/test-strcasecmp.c: New file.
28361
28362         * string/test-strcasestr.c: Test both ends of the range of characters.
28363         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
28364
28365 2010-07-29  Roland McGrath  <roland@redhat.com>
28366
28367         [BZ #11856]
28368         * manual/locale.texi (Yes-or-No Questions): Fix example code.
28369
28370 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
28371
28372         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
28373         for ld.so.
28374
28375 2010-07-27  Andreas Schwab  <schwab@redhat.com>
28376
28377         * manual/memory.texi (Malloc Tunable Parameters): Document
28378         M_PERTURB.
28379
28380 2010-07-26  Roland McGrath  <roland@redhat.com>
28381
28382         [BZ #11840]
28383         * configure.in (-fgnu89-inline check): Set and substitute
28384         gnu89_inline, not libc_cv_gnu89_inline.
28385         * configure: Regenerated.
28386         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
28387
28388 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
28389
28390         * string/test-strnlen.c: New file.
28391         * string/Makefile (strop-tests): Add strnlen.
28392         * string/tester.c (test_strnlen): Add a few more test cases.
28393         * string/tst-strlen.c: Better error reporting.
28394
28395         * sysdeps/x86_64/strnlen.S: New file.
28396
28397 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
28398
28399         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
28400         lower-latency instructions.
28401
28402 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
28403
28404         * string/test-strcasestr.c: New file.
28405         * string/test-strstr.c: New file.
28406         * string/Makefile (strop-tests): Add strstr and strcasestr.
28407         * string/str-two-way.h: Don't undefine MAX.
28408         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
28409
28410 2010-07-21  Andreas Schwab  <schwab@redhat.com>
28411
28412         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
28413         strcasestr-nonascii.
28414         (CFLAGS-strcasestr-nonascii.c): Define.
28415         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
28416         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
28417         Remove unused attribute.
28418
28419 2010-07-20  Roland McGrath  <roland@redhat.com>
28420
28421         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
28422         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
28423         ld.so.cache was broken.  With it, there is no way to disable dsocaps
28424         like LD_HWCAP_MASK can disable hwcaps.
28425
28426 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
28427
28428         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
28429
28430 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
28431
28432         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
28433         call in strcasestr.
28434         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
28435         __strcasestr_sse42_nonascii.
28436         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
28437         strcasestr-nonascii.c.
28438         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
28439
28440 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
28441
28442         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
28443         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
28444         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
28445         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
28446
28447 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
28448
28449         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
28450         fcntl.
28451
28452 2010-07-06  Andreas Schwab  <schwab@redhat.com>
28453
28454         [BZ #11577]
28455         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
28456         dl_signal_cerror.
28457
28458 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
28459
28460         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
28461         _PC_PIPE_BUF using F_GETPIPE_SZ.
28462
28463 2010-07-05  Roland McGrath  <roland@redhat.com>
28464
28465         * manual/arith.texi (Rounding Functions): Fix rint description
28466         implicit in round description.
28467
28468 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
28469
28470         * elf/Makefile: Fix linking for a few tests to make recent linker
28471         happy.
28472
28473 2010-06-30  Andreas Schwab  <schwab@redhat.com>
28474
28475         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
28476         $(common-objpfx)libc_nonshared.a.
28477
28478 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
28479
28480         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
28481         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
28482         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
28483         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
28484         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
28485         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
28486         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
28487         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
28488         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
28489         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
28490         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
28491         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
28492         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
28493         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
28494         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
28495         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
28496         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
28497         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
28498         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
28499         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
28500         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
28501         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
28502         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
28503         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
28504         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
28505         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
28506         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
28507         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
28508         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
28509         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
28510         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
28511         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
28512         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
28513         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
28514         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
28515         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
28516         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
28517         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
28518         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
28519         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
28520         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
28521         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
28522         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
28523         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
28524         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
28525         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
28526         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
28527         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
28528
28529 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
28530
28531         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
28532         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
28533         * string/memmove.c (memmove): Renamed to ...
28534         (MEMMOVE): ...this.  Default to memmove.
28535         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
28536         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
28537         (END_CHK): Define.
28538         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
28539         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
28540         mempcpy-ssse3-back memmove-ssse3-back.
28541         * sysdeps/x86_64/multiarch/bcopy.S: New file .
28542         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
28543         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
28544         * sysdeps/x86_64/multiarch/memcpy.S: New file.
28545         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
28546         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
28547         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
28548         * sysdeps/x86_64/multiarch/memmove.c: New file.
28549         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
28550         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
28551         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
28552         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
28553         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
28554         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
28555         Define.
28556         (index_Fast_Copy_Backward): Define.
28557         (HAS_ARCH_FEATURE): Define.
28558         (HAS_FAST_REP_STRING): Define.
28559         (HAS_FAST_COPY_BACKWARD): Define.
28560
28561 2010-06-21  Andreas Schwab  <schwab@redhat.com>
28562
28563         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
28564         Restore proper fallback handling.
28565
28566 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
28567
28568         [BZ #11701]
28569         * posix/group_member.c (__group_member): Correct checking loop.
28570
28571         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
28572         OOM in getpwuid_r correctly.  Return error number when the caller
28573         should return, otherwise -1.
28574         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
28575         call returning > 0 value.
28576         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
28577
28578 2010-06-07  Andreas Schwab  <schwab@redhat.com>
28579
28580         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
28581         libc_nonshared.a from targets in modules-names.
28582
28583 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
28584
28585         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
28586         requires it.
28587
28588 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
28589
28590         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
28591         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
28592         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
28593         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
28594
28595 2010-06-02  Andreas Schwab  <schwab@redhat.com>
28596
28597         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
28598
28599 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
28600
28601         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
28602         and F_GETPIPE_SZ.
28603         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
28604         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
28605         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
28606         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
28607         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
28608         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
28609
28610 2010-06-14  Roland McGrath  <roland@redhat.com>
28611
28612         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
28613
28614 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
28615
28616         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
28617         __REDIRECT followed by __THROW.
28618         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
28619         * posix/getopt.h (getopt): Likewise.
28620
28621 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
28622
28623         * hurd/lookup-at.c (__file_name_lookup_at): Accept
28624         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
28625         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
28626         in AT_FLAGS.
28627         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
28628         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
28629
28630 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
28631
28632         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
28633
28634 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
28635
28636         [BZ #11640]
28637         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
28638         Properly check family and model.
28639
28640 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
28641
28642         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
28643
28644 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
28645
28646         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
28647
28648 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
28649
28650         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
28651         symbol reference.
28652
28653 2010-05-19  Andreas Schwab  <schwab@redhat.com>
28654
28655         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
28656         symbol reference.
28657
28658 2010-05-21  Andreas Schwab  <schwab@redhat.com>
28659
28660         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
28661         and internal_recvmmsg.
28662         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
28663         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
28664         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
28665         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
28666
28667         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
28668         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
28669         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
28670
28671 2010-05-20  Andreas Schwab  <schwab@redhat.com>
28672
28673         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
28674
28675 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
28676
28677         POWER7 optimizations.
28678         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
28679         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
28680
28681 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
28682
28683         * version.h: Update for 2.13 development version.
28684
28685 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
28686
28687         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
28688         exceptions.  Return 0.
28689
28690 2010-05-07  Roland McGrath  <roland@redhat.com>
28691
28692         * elf/ldconfig.c (main): Add a const.
28693
28694 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
28695
28696         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
28697         (args_options): Add no-idn option.
28698         (ahosts_keys_int): Add idn_flags to ai_flags.
28699         (parse_option): Handle 'i' option to clear idn_flags.
28700
28701         * malloc/malloc.c (_int_free): Possible race in the most recently
28702         added check.  Only act on the data if no current modification
28703         happened.
28704
28705 See ChangeLog.17 for earlier changes.