Fix off-by-one bug in tst-fwrite-error
[platform/upstream/glibc.git] / ChangeLog
1 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
2
3         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
4
5         * benchtests/Rules (bench-deps): Collect dependencies into a
6         single variable.  Add Makefile to dependencies.
7         ($(objpfx)bench-%.c): Depend on bench-deps.
8
9 2013-04-12  Roland McGrath  <roland@hack.frob.com>
10             Xavier Roche  <roche+kml2@exalead.com>
11
12         [BZ #15361]
13         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
14         just that it's a file descriptor.
15         * manual/llio.texi (Synchronizing AIO Operations): Update description
16         for EBADF error from aio_fsync.
17
18 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
19
20         * Rules (bench): Move target definition...
21         * benchtests/Makefile: ... here.
22
23 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
24
25         * math/libm-test.inc (cos_test): Fix PI/2 test.
26         (sincos_test): Likewise.
27         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
28         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
29
30 2013-04-11  Andreas Schwab  <schwab@suse.de>
31
32         [BZ #13988]
33         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
34         accept exponent character only when digits were seen.
35         * stdio-common/Makefile (tests): Add bug26.
36         * stdio-common/bug26.c: New file.
37
38         [BZ #14293]
39         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
40         non-freeable.
41
42 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
43
44         * Makeconfig (rtld-prefix): Define built linker prefix.
45         * Rules (run-bench): Use it.
46         * math/Makefile (run-regen-ulps): Likewise.
47
48         * Rules (bench): Remove eval.
49
50 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
51             Roland McGrath  <roland@hack.frob.com>
52             Ondrej Bilka  <neleai@seznam.cz>
53
54         [BZ #15346]
55         * time/getdate.c: Include ctype.h and alloca.h.
56         (__getdate_r): Trim leading and trailing spaces of input.
57         * time/tst-getdate.c (tests): Add tests with leading and
58         trailing spaces.
59
60 2013-04-08  Roland McGrath  <roland@hack.frob.com>
61
62         [BZ #14280]
63         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
64         when computing value.
65
66 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
67
68         * math/README.libm-test (How can I generate "libm-test-ulps"?):
69         Use testrun.sh to run libm tests.
70
71         [BZ #15309]
72         * elf/dl-open.c (dl_open_worker): memset all of seen array.
73
74 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
75
76         [BZ #15264]
77         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
78
79 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
80
81         * Makefile.in (regen-ulps): New target.
82         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
83         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
84         [ifneq (no,$(PERL)] (regen-ulps): New target.
85         [ifeq (no,$(PERL)] (regen-ulps): New target.
86         * math/libm-test.inc (ulps_file_name): Define.
87         (output_dir): New variable.
88         (options): Add "output-dir" option.
89         (parse_opt): Handle 'o' case.
90         (main): If output_dir is non-NULL use it as a prefix
91         otherwise use "".
92         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
93
94 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
95
96         [BZ #10060, #10062]
97         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
98         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
99         fail configure if __sync_val_compare_and_swap is not inlined.
100         * sysdeps/i386/configure: Regenerate.
101         * configure.in: Build for i686 when configured for i386.
102         * configure: Regenerate.
103         * README: Remove i386 reference.
104
105 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
106
107         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
108         * sysdeps/s390/s390-64/sysdep.h: Likewise.
109
110 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
111
112         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
113         (lmsnanval): New variables.
114         (F): Add conversion tests.
115         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
116         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
117
118         * stdio-common/tstdiomisc.c (F): Properly collect individual
119         tests' results.
120
121         [BZ #14686, #15336]
122         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
123         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
124         Instead, use input NaN values or generate a qNaN by arithmetic
125         operation.  Also fix bugs to comply with the standard.
126         * math/libm-test.inc (remainder_test): Add more tests.
127
128         [BZ #15335, #15342]
129         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
130         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
131         input NaN values or generate a qNaN by arithmetic operation.
132
133         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
134         unreachable code.
135
136         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
137         definitions.
138
139 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
140
141         [BZ #14478]
142         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
143         underflowed result.
144         * math/s_cexpf.c (__cexpf): Likewise.
145         * math/s_cexpl.c (__cexpl): Likewise.
146         * math/libm-test.inc (cexp_test): Add more tests.
147
148 2013-04-03  Andreas Schwab  <schwab@suse.de>
149
150         [BZ #15330]
151         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
152         order arrays from heap if bigger than alloca cutoff.
153
154 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
155
156         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
157         (SNAN_TESTS_double): Refer to GCC PR56831.
158         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
159         GCC PR56828.
160
161 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
162
163         * Rules (bench): Move bench.out after the run is complete.
164
165         * Rules (bench): Echo currently running benchmark.
166
167         * benchtests/Makefile (bench): Add atan and slowatan.
168         * benchtests/atan-inputs: New file.
169         * benchtests/slowatan-inputs: New file.
170         * benchtests/slowatan.c: New file.
171
172         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
173         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
174         its value.
175
176         [BZ #15305]
177         * sysdeps/unix/sysv/linux/kernel-features.h
178         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
179         __ASSUME_XFS_RESTRICTED_CHOWN.
180         * sysdeps/unix/sysv/linux/pathconf.c
181         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
182         Save and restore errno.
183
184 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
185
186         [BZ #15327]
187         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
188         arguments using __kernel_casinh.
189         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
190         arguments using __kernel_casinhf.
191         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
192         arguments using __kernel_casinhl.
193         * math/libm-test.inc (cacosh_test): Add more tests.
194         * sysdeps/i386/fpu/libm-test-ulps: Update.
195         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
196
197 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
198
199         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
200         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
201
202         * bench/Makefile (bench): Add sin and slowsin.
203         * benchtests/sin-inputs: New file.
204         * benchtests/slowsin-inputs: New file.
205         * benchtests/slowsin.c: New file.
206
207         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
208         (bench): Add slowexp and slowpow.
209         (exp-ITER): Increase iterations.
210         (pow-ITER): Likewise.
211         * benchtests/exp-inputs: Change input.
212         * benchtests/pow-inputs: Likewise.
213         * benchtests/slowexp-inputs: New file.
214         * benchtests/slowexp.c: New file.
215         * benchtests/slowpow-inputs: New file.
216         * benchtests/slowpow.c: New file.
217
218 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
219
220         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
221         instructions.
222         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
223         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
224         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
225         * benchtests/Makefile: Add rint benchtest.
226         * benchtests/rint-inputs: Input for rint benchtest.
227
228 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
229
230         * Versions.def (libm): Add GLIBC_2.18.
231         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
232         hidden libm prototypes.
233         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
234         * math/Makefile (libm-calls): Add s_issignaling.
235         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
236         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
237         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
238         declaration.
239         * math/math.h [__USE_GNU] (issignaling): New macro.
240         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
241         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
242         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
243         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
244         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
245         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
246         * manual/arith.texi (issignaling): New section.
247         * manual/libm-err-tab.pl (@all_functions): Update comment.
248         * math/gen-libm-test.pl (parse_args): Apply special handling for
249         issignaling.
250         * math/libm-test.inc (print_float, issignaling_test): New
251         functions.
252         (check_float_internal): Add issignaling checks.
253         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
254         default definition.
255         * sysdeps/powerpc/math-tests.h: New file.
256         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
257         tests.
258         * math/test-snan.c (TEST_FUNC): Likewise.
259
260 2013-03-30  David S. Miller  <davem@davemloft.net>
261
262         * po/de.po: Update from translation team.
263
264 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
265
266         [BZ #10357]
267         * math/k_casinh.c (__kernel_casinh): Handle arguments with
268         imaginary part less than 1.0 and real part less than 0.5
269         specially.
270         * math/k_casinhf.c (__kernel_casinhf): Likewise.
271         * math/k_casinhl.c (__kernel_casinhl): Likewise.
272         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
273         (cacos_test): Add more tests.
274         (casin_test): Likewise.
275         (casinh_test): Likewise.
276         * sysdeps/i386/fpu/libm-test-ulps: Update.
277         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
278
279 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
280
281         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
282         ONE with its value.
283
284         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
285         (__pow_mp): Replace ONE and MONE with their values.
286         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
287         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
288         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
289         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
290         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
291         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
292
293         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
294
295         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
296         (__pow_mp): Replace ZERO and MZERO with their values.
297         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
298         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
299         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
300         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
301         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
302         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
303         (__sqr): Likewise.
304
305         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
306
307         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
308
309 2013-03-28  Roland McGrath  <roland@hack.frob.com>
310
311         * include/stdlib.h [!SHARED] (__call_tls_dtors):
312         Declare with __attribute__ ((weak)).
313         * stdlib/exit.c (__libc_atexit) [!SHARED]:
314         Call __call_tls_dtors only if it's not NULL.
315
316 2013-03-28  Roland McGrath  <roland@hack.frob.com>
317
318         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
319         didn't do it already, then set _dl_phdr and _dl_phnum based on the
320         magic __ehdr_start linker symbol if it's defined.
321         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
322         them up here if it was already done.
323
324         * elf/dl-support.c (_dl_phdr): Make pointer to const.
325         (_dl_aux_init): Use const in cast when setting it.
326         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
327         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
328         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
329
330         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
331         Declare them here.
332         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
333         * csu/libc-tls.c: Nor here.
334         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
335
336         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
337         (__libc_message): Never call vsyslog.
338
339 2013-03-28  Alan Modra  <amodra@gmail.com>
340
341         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
342         Define as empty.
343         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
344         Likewise.
345
346 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
347
348         [BZ #15214]
349         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
350         underflow.
351         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
352
353 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
354
355         [BZ #15304]
356         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
357         Don't add gid passed as argument.
358
359         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
360
361 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
362
363         [BZ #15307]
364         * math/k_casinh.c (__kernel_casinh): Handle arguments with
365         imaginary part between 1.0 and 1.5 and real part less than 0.5
366         specially.
367         * math/k_casinhf.c (__kernel_casinhf): Likewise.
368         * math/k_casinhl.c (__kernel_casinhl): Likewise.
369         * math/libm-test.inc (cacos_test): Add more tests.
370         (casin_test): Likewise.
371         (casinh_test): Likewise.
372         * sysdeps/i386/fpu/libm-test-ulps: Update.
373         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
374
375 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
376
377         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
378         constants.
379         (norm): Likewise.
380         (denorm): Likewise.
381         (__dbl_mp): Likewise.
382         (add_magnitudes): Likewise.
383         (sub_magnitudes): Likewise.
384         (__add): Likewise.
385         (__sub): Likewise.
386         (__mul): Likewise.
387         (__sqr): Likewise.
388         (__inv): Likewise.
389         (__dvd): Likewise.
390
391         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
392         commented code.
393         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
394         (__dubcos): Likewise.
395         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
396         (__ieee754_acos): Likewise.
397         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
398         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
399         (__exp1): Likewise.
400         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
401         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
402         (log1): Likewise.
403         (my_log2): Likewise.
404         (checkint): Likewise.
405         * sysdeps/ieee754/dbl-64/e_remainder.c
406         (__ieee754_remainder): Likewise.
407         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
408         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
409         (bsloww): Likewise.
410         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
411
412         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
413         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
414         MANTISSA_STORE_T to store computations on mantissa.  Use
415         macros for rounding and division.
416         (denorm): Likewise.
417         (__dbl_mp): Likewise.
418         (add_magnitudes): Likewise.
419         (sub_magnitudes): Likewise.
420         (__mul): Likewise.
421         (__sqr): Likewise.
422         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
423         powers of two in terms of TWOPOW macro.
424         (mp_no): Make type of mantissa as MANTISSA_T.
425         [!RADIXI]: Define RADIXI.
426         [!TWO52]: Define TWO52.
427         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
428
429 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
430
431         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
432         llroundl symbol when building for PPC32.
433
434 2013-03-24  Mark H Weaver  <mhw@netris.org>
435
436         * manual/arith.texi (Normalization Functions): Fix prototypes for
437         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
438
439 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
440
441         [BZ #13889]
442         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
443         high value to check if expl overflow.
444         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
445         to check for underflow and overflow.
446         * math/libm-test.inc: Add exp test.
447
448 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
449
450         [BZ #11120]
451         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
452         with NOT_IN_libc.
453
454 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
455
456         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
457         symbol.
458
459 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
460
461         * math/gen-libm-test.pl (parse_args, special_functions): Properly
462         wrap blocks consisting of several statements.
463
464         * sysdeps/generic/math-tests.h: New file.
465         * sysdeps/i386/fpu/math-tests.h: Likewise.
466         * math/test-snan.c: Include it.
467         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
468
469 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
470
471         [BZ #15285]
472         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
473         (__ieee754_j0l): Do not improve calculations using cos of twice
474         input for inputs above LDBL_MAX / 2.0L.
475         (__ieee754_y0l): Likewise.
476         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
477         (__ieee754_j1l): Do not improve calculations using cos of twice
478         input for inputs above LDBL_MAX / 2.0L.
479         (__ieee754_y1l): Likewise.
480         * math/libm-test.inc (j0_test): Add another test.
481         (j1_test): Likewise.
482         (y0_test): Likewise.
483         (y1_test): Likewise.
484         * sysdeps/i386/fpu/libm-test-ulps: Update.
485
486 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
487
488         * Rules ($(objpfx)bench-%.c): Include code from a C source
489         file.
490
491 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
492
493         [BZ #15287]
494         * math/k_casinh.c (__kernel_casinh): Handle arguments with
495         imaginary part 1.0 and real part less than 0.5 specially.
496         * math/k_casinhf.c (__kernel_casinhf): Likewise.
497         * math/k_casinhl.c (__kernel_casinhl): Likewise.
498         * math/libm-test.inc (cacos_test): Add more tests.
499         (casin_test): Likewise.
500         (casinh_test): Likewise.
501         * sysdeps/i386/fpu/libm-test-ulps: Update.
502         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
503
504 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
505
506         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
507         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
508
509 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
510
511         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
512         * config.make.in (config-cflags-sse4): Remove variable.
513         (config-cflags-avx): Likewise.
514         (config-cflags-sse2avx): Likewise.
515         (config-cflags-novzeroupper): Likewise.
516         (config-asflags-i686): Likewise.
517         (have-mfma4): Likewise.
518         (have-as-vis3): Likewise.
519         (MIG): Likewise.
520         * configure.in (MIG): Do not AC_SUBST.
521         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
522         (libc_cv_cc_sse4): Do not AC_SUBST.
523         (libc_cv_cc_avx): Likewise.
524         (libc_cv_cc_sse2avx): Likewise.
525         (libc_cv_cc_novzeroupper): Likewise.
526         (libc_cv_cc_fma4): Likewise.
527         (libc_cv_as_i686): Likewise.
528         (libc_cv_sparc_as_vis3): Likewise.
529         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
530         LIBC_CONFIG_VAR.
531         (config-asflags-i686): Likewise.
532         (config-cflags-avx): Likewise.
533         (config-cflags-sse2avx): Likewise.
534         (have-mfma4): Likewise.
535         (config-cflags-novzeroupper): Likewise.
536         * sysdeps/mach/configure.in (MIG): Likewise.
537         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
538         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
539         LIBC_CONFIG_VAR.
540         (config-cflags-avx): Likewise.
541         (config-cflags-sse2avx): Likewise.
542         (have-mfma4): Likewise.
543         (config-cflags-novzeroupper): Likewise.
544         * configure: Regenerated.
545         * sysdeps/i386/configure: Likewise.
546         * sysdeps/mach/configure: Likewise.
547         * sysdeps/sparc/configure: Likewise.
548         * sysdeps/x86_64/configure: Likewise.
549
550 2013-03-20  Roland McGrath  <roland@hack.frob.com>
551
552         [BZ #14812]
553         * locale/programs/localedef.c (options): Put N_ translation marker
554         on argument names, not just descriptions.
555
556 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
557
558         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
559
560 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
561
562         [BZ #14176]
563         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
564
565 2013-03-19  Roland McGrath  <roland@hack.frob.com>
566
567         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
568         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
569         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
570         [!BEFORE_ABORT] (before_abort): New function.
571         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
572         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
573         (writev_for_fatal): New function.
574         (WRITEV_FOR_FATAL): New macro; call that.
575         (backtrace_and_maps): New function.
576         (BEFORE_ABORT): New macro; call that.
577         (struct str_list): Type removed.
578         (__libc_message, __libc_fatal): Functions removed.
579         Include <sysdeps/posix/libc_fatal.c> instead.
580
581 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
582
583         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
584         constants.
585         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
586         double constants.
587
588 2013-03-19  Andreas Schwab  <schwab@suse.de>
589
590         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
591         * sysdeps/gnu/configure: Regenerate.
592
593         * configure.in: Substitute libc_cv_rtlddir.
594         * configure: Regenerate.
595         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
596         * Makeconfig (rtlddir, inst_rtlddir): New variables.
597         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
598         * elf/Makefile (install-others, CFLAGS-interp.c)
599         (ldso_install, common-ldd-rewrite): Likewise.
600         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
601         $(inst_slibdir)/$(rtld-installed-name).
602         * scripts/rellns-sh: Add -p option.
603         * Makerules (make-shlib-link): Use rellns-sh to get relative name
604         for source.
605
606 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
607
608         * manual/nptl.texi: Renamed to ...
609         * manual/threads.texi: ... this.
610         * manual/Makefile (chapters): Update.
611
612 2013-03-18  Roland McGrath  <roland@hack.frob.com>
613
614         [BZ #14812]
615         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
616         on argument names, not just descriptions.
617         * malloc/memusagestat.c (options): Likewise.
618         * nss/getent.c (options): Likewise.
619
620 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
621
622         [BZ #14812]
623         * iconv/iconv_prog.c (options): Put N_ translation marker
624         on argument names, not just descriptions.
625         * iconv/iconvconfig.c (options): Likewise.
626
627 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
628
629         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
630         implementation which is faster on all x86_64 architectures.
631         Tested on AMD, Intel Nehalem, SNB, IVB.
632         * sysdeps/x86_64/strnlen.S: Likewise.
633
634         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
635         Remove all multiarch strlen and strnlen versions.
636         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
637         Remove strlen and strnlen related parts.
638
639         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
640         Inline strlen part.
641         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
642
643         * sysdeps/x86_64/multiarch/strlen.S: Remove.
644         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
645         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
646         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
647         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
648         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
649
650 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
651
652         * manual/memory.texi (Malloc Tunable Parameters):
653         Sort parameters alphabetically. Add comments for missing entries.
654
655 2013-03-17  David S. Miller  <davem@davemloft.net>
656
657         * sysdeps/sparc/fpu/libm-test-ulps: Update.
658
659 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
660
661         [BZ #15283]
662         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
663         for arguments at most half maximum finite value.
664         * math/libm-test.inc (j0_test): Add more tests.
665         (j1_test): Likewise.
666         (y0_test): Likewise.
667         (y1_test): Likewise.
668         * sysdeps/i386/fpu/libm-test-ulps: Update.
669         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
670
671         [BZ #14155]
672         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
673         1 / x and functions P and Q for arguments above 0x1p256L.
674         (__ieee754_y0l): Likewise.
675         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
676         (__ieee754_y1l): Likewise.
677         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
678         (j1_test): Likewise.
679         (y0_test): Likewise.
680         (y1_test): Likewise.
681
682 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
683
684         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
685         variable.
686
687 2013-03-15  Roland McGrath  <roland@hack.frob.com>
688
689         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
690         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
691         zero since it's initialized to EXEC_PAGESIZE.
692
693         * sysdeps/unix/sysv/linux/ldsodefs.h
694         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
695         * sysdeps/generic/ldsodefs.h: ... here.
696
697 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
698
699         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
700
701         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
702         math/test-snan.c.
703         * math/test-snan.c: Renamed from
704         sysdeps/powerpc/fpu/test-powerpc-snan.c.
705         * math/Makefile (tests): Add test-snan.
706         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
707         test-powerpc-snan.
708
709         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
710         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
711         functions.
712         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
713         __builtin_nan family of functions.
714         * math/libm-test.inc (initialize): Initialize qnan_value with
715         __builtin_nan family of functions.
716         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
717         Remove variables.
718         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
719         Remove functions.
720         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
721         storage class.  Initialize qNaN_var and sNaN_var with
722         __builtin_nan and __builtin_nans families of functions,
723         respectively.
724
725         * math/libm-test.inc (acosh_test): Also test with qNaN input.
726         (sqrt_test): Remove duplicate test with qNaN input.
727         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
728         (round_test, signbit_test, significand_test): Note missing +/-Inf
729         as well as qNaN tests.
730
731         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
732         qNaN_var.  Fix a few strings, too.
733         * math/libm-test.inc (nan_value): Rename to qnan_value.
734         * math/gen-libm-test.pl (%beautify): Adjust to that.
735         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
736         * math/test-misc.c (main): Likewise.
737         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
738         to __qnan_bytes, and __qnan_union, respectively.
739         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
740         Likewise.
741         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
742         and lqnanval, respectively.
743         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
744         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
745         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
746         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
747
748         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
749         * math/test-misc.c (main) [__x86_64__]: Enable test for long
750         doubles.
751
752         * math/test-misc.c (main): Fix copy'n'pastos.
753         * misc/tst-efgcvt.c (special): Likewise.
754
755         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
756         Remove declarations.
757
758 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
759
760         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
761         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
762         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
763         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
764
765 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
766
767         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
768         macro to return vdso values correctly in IFUNC implementations.
769         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
770         Optimization by using IFUNC.
771
772 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
773             Richard Henderson  <rth@redhat.com>
774             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
775
776         * Makefile.in (bench): New target.
777         * NEWS: Mention the benchmark framework.
778         * Rules (bench): Likewise.
779         (binaries-bench): Generate binaries for functions to
780         benchmark.
781         * benchtests/Makefile: New makefile for benchmark tests.
782         * benchtests/bench-skeleton.c: New skeleton file for benchmark
783         programs.
784         * benchtests/exp-inputs: New input file for EXP function.
785         * benchtests/pow-inputs: New input file for POW function.
786         * scripts/bench.pl: New script to generate source files for
787         benchmark programs.
788
789 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
790
791         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
792         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
793         computations on mantissa.  Use macros for rounding and
794         division.
795         (denorm): Likewise.
796         (__dbl_mp): Likewise.
797         (add_magnitudes): Likewise.
798         (sub_magnitudes): Likewise.
799         (__mul): Likewise.
800         (__sqr): Likewise.
801         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
802         powers of two in terms of TWOPOW macro.
803         (mp_no): Make type of mantissa as MANTISSA_T.
804         [!RADIXI]: Define RADIXI.
805         [!TWO52]: Define TWO52.
806         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
807
808         * manual/nptl.texi (cindex): Modify threads to pthreads.
809
810 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
811
812         * sysdeps/x86_64/preconfigure: Regenerated.
813
814 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
815
816         [BZ #14155]
817         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
818         0x1p28 and above.
819         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
820         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
821         0x1p28 and above.
822         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
823         * math/libm-test.inc (j0_test): Do not allow one spurious
824         underflow exception.
825         (y1_test): Likewise.
826
827 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
828
829         * manual/Makefile (chapters): Add nptl.
830         * manual/debug.texi (Debugging Support): Add link to Threads
831         chapter.
832         * manual/nptl.texi: New file.
833
834         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
835
836 2013-03-14  Petr Baudis  <pasky@ucw.cz>
837
838         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
839         for non-NULL pointer before the memory validity test. Pointed
840         out by Holger Brunck <holger.brunck@keymile.com>.
841
842 2013-03-13  Andreas Schwab  <schwab@suse.de>
843
844         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
845         instead of .os.
846
847 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
848
849         * timezone/zic.c: Update from tzcode 2013b.
850
851 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
852
853         * manual/install.texi (Configuring and compiling):
854         Mention i686 and i586.
855         * INSTALL: Regenerate.
856
857 2013-03-12  Roland McGrath  <roland@hack.frob.com>
858
859         * sysdeps/init_array/elf-init.c: New file.
860         * csu/elf-init.c
861         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
862         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
863
864         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
865         __gmon_start__ as global, but as static with a .preinit_array pointer.
866         * sysdeps/init_array/gmon-start.c: New file.  Use that.
867         * sysdeps/init_array/crti.S: New file, empty except for comments.
868         * sysdeps/init_array/crtn.S: Likewise.
869
870 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
871
872         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
873         definining bcopy.
874         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
875         Remove Prefer_SSE_for_memop.
876         * sysdeps/x86_64/multiarch/init-arch.h: Remove
877         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
878         HAS_PREFER_SSE_FOR_MEMOP.
879         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
880         memset-x86-64.
881         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
882         Remove bzero, memset ifunc support.
883         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
884         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
885         * sysdeps/x86_64/multiarch/memset.S: Likewise.
886         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
887
888 2013-03-11  Andreas Schwab  <schwab@suse.de>
889
890         [BZ #15234]
891         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
892         by SHLIB_COMPAT.
893         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
894         (GLIBC_2.16): Remove pthread_atfork.
895
896 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
897
898         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
899         (ptestcases.h): Likewise.
900
901 2013-03-08  Roland McGrath  <roland@hack.frob.com>
902
903         * Makeconfig ($(common-objpfx)config.status): Depend on
904         sysdeps/*/preconfigure{,.in} too.
905
906 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
907
908         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
909         (__free_hook): Use void * instead of __malloc_ptr_t.
910         (__malloc_hook): Likewise.
911         (__realloc_hook): Likewise.
912         (__memalign_hook): Likewise.
913         (__after_morecore_hook): Likewise.
914         * malloc/arena.c (save_malloc_hook): Likewise.
915         (save_free_hook): Likewise.
916         * malloc/hooks.c (malloc_hook_ini): Likewise.
917         (realloc_hook_ini): Likewise.
918         (memalign_hook_ini): Likewise.
919         * malloc/malloc.c (malloc_hook_ini): Likewise.
920         (realloc_hook_ini): Likewise.
921         (memalign_hook_ini): Likewise.
922         (__free_hook): Likewise.
923         (__malloc_hook): Likewise.
924         (__realloc_hook): Likewise.
925         (__memalign_hook): Likewise.
926         (__libc_malloc): Likewise.
927         (__libc_free): Likewise.
928         (__libc_realloc): Likewise.
929         (__libc_memalign): Likewise.
930         (__libc_valloc): Likewise.
931         (__libc_pvalloc): Likewise.
932         (__libc_calloc): Likewise.
933         (__posix_memalign): Likewise.
934         * malloc/morecore.c (__sbrk): Likewise.
935         (__default_morecore): Likewise.
936
937         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
938
939         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
940         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
941         __malloc_ptrdiff_t.
942
943         * malloc/malloc.h (__malloc_size_t): Remove macro.
944         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
945         __malloc_size_t.
946         (old_memalign_hook): Likewise.
947         (old_realloc_hook): Likewise.
948         (struct hdr): Likewise.
949         (flood): Likewise.
950         (mallochook): Likewise.
951         (memalignhook): Likewise.
952         (reallochook): Likewise.
953         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
954         (tr_old_realloc_hook): Likewise.
955         (tr_old_memalign_hook): Likewise.
956         (tr_mallochook): Likewise.
957         (tr_reallochook): Likewise.
958         (tr_memalignhook): Likewise.
959
960 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
961
962         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
963         default_ldbl_pack and using as default implementation.
964         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
965         implementation.
966         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
967         redundant definition.
968         (ldbl_insert_mantissa): Likewise.
969         (ldbl_canonicalize): Likewise.
970         (ldbl_nearbyint): Likewise.
971         (ldbl_pack): Rename to ldbl_pack_ppc.
972         (ldbl_unpack): Rename to ldbl_unpack_ppc.
973         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
974         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
975
976 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
977
978         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
979         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
980         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
981         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
982         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
983         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
984         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
985         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
986
987 2013-03-07  Andreas Jaeger  <aj@suse.de>
988
989         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
990         bits/mman-linux.h.
991
992 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
993
994         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
995         Include mpa.h and declare __MPEXP.
996         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
997         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
998         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
999         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
1000         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
1001         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
1002         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
1003
1004         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
1005         (__slowpow): Use long double EXPL and LOGL functions to
1006         compute POW.
1007         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
1008         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
1009         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
1010         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
1011         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
1012         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
1013
1014         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
1015         intermediate variable to calculate exponent.
1016         (__sqr): Likewise.
1017         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
1018         Likewise.
1019         (__sqr): Likewise.
1020
1021         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
1022         [!NO__SQR]: Define __sqr.
1023         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
1024         and NO__SQR.  Remove all code except __mul and __sqr.  Include
1025         sysdeps/ieee754/dbl-64/mpa.c.
1026         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
1027
1028         [BZ #12723]
1029         * posix/Makefile (tests): Add tst-pathconf.
1030         * posix/tst-pathconf.c: New test case.
1031         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
1032         _PC_PIPE_BUF.
1033         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
1034
1035 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
1036
1037         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
1038
1039 2013-03-06  Andreas Jaeger  <aj@suse.de>
1040
1041         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
1042         definition via __MAP_ANONYMOUS.
1043
1044         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
1045         it's not part of Linux headers.
1046
1047         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
1048         (MAP_HUGE_MASK): Define.
1049
1050         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
1051         Define.
1052         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
1053         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
1054         Define.
1055         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
1056         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
1057         Define.
1058         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
1059         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
1060         Define.
1061         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
1062
1063         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
1064         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
1065         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
1066         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
1067         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
1068         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
1069
1070         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
1071         Handle f2fs.
1072
1073         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
1074         Handle f2fs and efivarfs.
1075
1076         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
1077         f2fs.
1078
1079         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
1080         (EFIVARFS_MAGIC): Add.
1081         (F2FS_LINK_MAX): Add.
1082
1083 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
1084
1085         * stdio-common/vfprintf.c: Replace __builtin_expect with
1086         __glibc_unlikely.
1087
1088 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
1089
1090         [BZ #13550]
1091         * sysdeps/generic/bp-sym.h: Remove file.
1092         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
1093         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
1094         <bp-sym.h> and <bp-asm.h>.
1095         (__longjmp): Don't use BP_SYM.
1096         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
1097         and <bp-asm.h>.
1098         (memcpy): Don't use BP_SYM.
1099         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
1100         <bp-sym.h> and <bp-asm.h>.
1101         (memcpy): Don't use BP_SYM.
1102         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
1103         <bp-asm.h>.
1104         (memcpy): Don't use BP_SYM.
1105         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
1106         <bp-asm.h>.
1107         (memset): Don't use BP_SYM.
1108         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
1109         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
1110         (__bzero): Don't use BP_SYM.
1111         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
1112         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
1113         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
1114         <bp-sym.h> and <bp-asm.h>.
1115         (memcmp): Don't use BP_SYM.  Remove comment about bounded
1116         pointers.
1117         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
1118         <bp-sym.h> and <bp-asm.h>.
1119         (memcpy): Don't use BP_SYM.
1120         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
1121         <bp-sym.h> and <bp-asm.h>.
1122         (memset): Don't use BP_SYM.
1123         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
1124         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
1125         (__bzero): Don't use BP_SYM.
1126         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
1127         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
1128         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
1129         <bp-sym.h> and <bp-asm.h>.
1130         (strncmp): Don't use BP_SYM.  Remove comment about bounded
1131         pointers.
1132         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
1133         <bp-sym.h> and <bp-asm.h>.
1134         (memcpy): Don't use BP_SYM.
1135         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
1136         <bp-sym.h> and <bp-asm.h>.
1137         (memset): Don't use BP_SYM.
1138         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
1139         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
1140         (__bzero): Don't use BP_SYM.
1141         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
1142         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
1143         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
1144         <bp-sym.h> and <bp-asm.h>.
1145         (__memchr): Don't use BP_SYM.
1146         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
1147         <bp-sym.h> and <bp-asm.h>.
1148         (memcmp): Don't use BP_SYM.  Remove comment about bounded
1149         pointers.
1150         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
1151         <bp-sym.h> and <bp-asm.h>.
1152         (memcpy): Don't use BP_SYM.
1153         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
1154         <bp-sym.h> and <bp-asm.h>.
1155         (__mempcpy): Don't use BP_SYM.
1156         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
1157         <bp-sym.h> and <bp-asm.h>.
1158         (__memrchr): Don't use BP_SYM.
1159         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
1160         <bp-sym.h> and <bp-asm.h>.
1161         (memset): Don't use BP_SYM.
1162         (__bzero): Likewise.
1163         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
1164         <bp-sym.h> and <bp-asm.h>.
1165         (__rawmemchr): Don't use BP_SYM.
1166         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
1167         <bp-sym.h> and <bp-asm.h>.
1168         (__STRCMP): Don't use BP_SYM.
1169         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
1170         <bp-sym.h> and <bp-asm.h>.
1171         (strchr): Don't use BP_SYM.
1172         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
1173         <bp-sym.h> and <bp-asm.h>.
1174         (__strchrnul): Don't use BP_SYM.
1175         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
1176         <bp-sym.h> and <bp-asm.h>.
1177         (strlen): Don't use BP_SYM.
1178         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
1179         <bp-sym.h> and <bp-asm.h>.
1180         (strncmp): Don't use BP_SYM.  Remove comment about bounded
1181         pointers.
1182         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
1183         <bp-sym.h> and <bp-asm.h>.
1184         (__strnlen): Don't use BP_SYM.
1185         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
1186         <bp-sym.h> and <bp-asm.h>.
1187         (__GI__setjmp): Don't use BP_SYM.
1188         (_setjmp): Likewise.
1189         (__sigsetjmp): Likewise.
1190         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
1191         (L(start_addresses)): Don't use BP_SYM.
1192         (_start): Likewise.
1193         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
1194         <bp-asm.h>.
1195         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
1196         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
1197         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
1198         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
1199         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
1200         <bp-asm.h>.
1201         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
1202         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
1203         about bounded pointers.
1204         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
1205         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
1206         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
1207         <bp-asm.h>.
1208         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
1209         about bounded pointers.  Remove GKM FIXME comments.
1210         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
1211         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
1212         <bp-asm.h>.
1213         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
1214         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
1215         Remove GKM FIXME comments.
1216         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
1217         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
1218         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
1219         <bp-asm.h>.
1220         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
1221         about bounded pointers.  Remove GKM FIXME comment.
1222         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
1223         and <bp-asm.h>.
1224         (strncmp): Don't use BP_SYM.  Remove comment about bounded
1225         pointers.
1226         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
1227         <bp-sym.h> and <bp-asm.h>.
1228         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
1229         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
1230         <bp-sym.h> and <bp-asm.h>.
1231         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
1232         comment.
1233
1234 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
1235
1236         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
1237         call free(NULL).
1238
1239 2013-03-05  David S. Miller  <davem@davemloft.net>
1240
1241         * po/es.po: Update from translation team.
1242
1243 2013-03-05  Andreas Jaeger  <aj@suse.de>
1244
1245         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
1246         <bits/mman-linux.h>.
1247         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
1248         is fine.
1249         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
1250         <bits/mman-linux.h> to end of file.
1251         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
1252         is fine.
1253         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
1254         <bits/mman-linux.h> to end of file.
1255         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
1256         is fine.
1257         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
1258         <bits/mman-linux.h> to end of file.
1259
1260         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
1261         (MCL_CURRENT, MCL_FUTURE): Define here.
1262
1263 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1264
1265         [BZ #15232]
1266         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
1267         attribute_hidden.
1268         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
1269
1270 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1271
1272         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
1273         fourth parameter needed for rt_sigprocmask syscall.
1274         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
1275         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
1276         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
1277         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
1278         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
1279         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
1280
1281 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
1282
1283         [BZ #13550]
1284         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
1285         comment about bounded pointers.
1286         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
1287         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
1288
1289 2013-03-04  Andreas Jaeger  <aj@suse.de>
1290
1291         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
1292         common definitions.
1293
1294         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
1295         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
1296         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
1297         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
1298         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
1299         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
1300
1301 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1302
1303         [BZ #15055]
1304         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
1305         __ieee754_sqrl instead of __sqrl.
1306
1307 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
1308
1309         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
1310         * sysdeps/powerpc/fpu_control.h: ... here.
1311         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
1312         * sysdeps/powerpc/bits/fenvinline.h: ... here.
1313         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
1314         * sysdeps/powerpc/bits/mathinline.h: ... here.
1315
1316 2013-03-01  Roland McGrath  <roland@hack.frob.com>
1317
1318         * elf/dl-hwcaps.c (_dl_important_hwcaps):
1319         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
1320         to just [NEED_DL_SYSINFO_DSO].
1321         * elf/dl-support.c: Likewise.
1322         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
1323         * elf/rtld.c (dl_main): Likewise.
1324         * elf/setup-vdso.h (setup_vdso): Likewise.
1325         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
1326         * sysdeps/unix/sysv/linux/dl-sysdep.c
1327         (_dl_discover_osversion): Likewise.
1328
1329 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
1330
1331         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
1332         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
1333
1334 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
1335
1336         * NEWS: Mention libm performance improvements and non-x86 PI
1337         futex support.
1338
1339         * csu/libc-start.c (__pthread_initialize_minimal): Change
1340         function arguments.
1341         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
1342
1343 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
1344
1345         [BZ #13550]
1346         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
1347         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
1348         <bp-sym.h> and <bp-asm.h>.
1349         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
1350         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
1351         and <bp-asm.h>.
1352         (memcpy): Don't use BP_SYM.
1353         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
1354         <bp-asm.h>.
1355         (__mpn_add_n): Don't use BP_SYM.
1356         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
1357         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
1358         and <bp-asm.h>.
1359         (__mpn_addmul_1): Don't use BP_SYM.
1360         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
1361         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
1362         <bp-sym.h>.
1363         (_setjmp): Don't use BP_SYM.
1364         (__novmx_setjmp): Likewise.
1365         (__GI__setjmp): Likewise.
1366         (__vmx_setjmp): Likewise.
1367         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
1368         <bp-sym.h>.
1369         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
1370         (__bzero): Don't use BP_SYM.
1371         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
1372         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
1373         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
1374         <bp-sym.h> and <bp-asm.h>.
1375         (memcpy): Don't use BP_SYM.
1376         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
1377         <bp-sym.h> and <bp-asm.h>.
1378         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
1379         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
1380         <bp-sym.h> and <bp-asm.h>.
1381         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
1382         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
1383         <bp-asm.h>.
1384         (__mpn_lshift): Don't use BP_SYM.
1385         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
1386         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
1387         <bp-asm.h>.
1388         (memset): Don't use BP_SYM.
1389         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
1390         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
1391         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
1392         <bp-asm.h>.
1393         (__mpn_mul_1): Don't use BP_SYM.
1394         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
1395         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
1396         <bp-sym.h> and <bp-asm.h>.
1397         (memcmp): Don't use BP_SYM.
1398         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
1399         <bp-sym.h> and <bp-asm.h>.
1400         (memcpy): Don't use BP_SYM.
1401         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
1402         <bp-sym.h> and <bp-asm.h>.
1403         (memset): Don't use BP_SYM.
1404         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
1405         <bp-sym.h> and <bp-asm.h>.
1406         (strncmp): Don't use BP_SYM.
1407         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
1408         <bp-sym.h> and <bp-asm.h>.
1409         (memcpy): Don't use BP_SYM.
1410         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
1411         <bp-sym.h> and <bp-asm.h>.
1412         (memset): Don't use BP_SYM.
1413         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
1414         <bp-sym.h> and <bp-asm.h>.
1415         (__memchr): Don't use BP_SYM.
1416         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
1417         <bp-sym.h> and <bp-asm.h>.
1418         (memcmp): Don't use BP_SYM.
1419         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
1420         <bp-sym.h> and <bp-asm.h>.
1421         (memcpy): Don't use BP_SYM.
1422         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
1423         <bp-sym.h> and <bp-asm.h>.
1424         (__mempcpy): Don't use BP_SYM.
1425         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
1426         <bp-sym.h> and <bp-asm.h>.
1427         (__memrchr): Don't use BP_SYM.
1428         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
1429         <bp-sym.h> and <bp-asm.h>.
1430         (memset): Don't use BP_SYM.
1431         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
1432         <bp-sym.h> and <bp-asm.h>.
1433         (__rawmemchr): Don't use BP_SYM.
1434         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
1435         <bp-sym.h> and <bp-asm.h>.
1436         (__STRCMP): Don't use BP_SYM.
1437         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
1438         <bp-sym.h> and <bp-asm.h>.
1439         (strchr): Don't use BP_SYM.
1440         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
1441         <bp-sym.h> and <bp-asm.h>.
1442         (__strchrnul): Don't use BP_SYM.
1443         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
1444         <bp-sym.h> and <bp-asm.h>.
1445         (strlen): Don't use BP_SYM.
1446         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
1447         <bp-sym.h> and <bp-asm.h>.
1448         (strncmp): Don't use BP_SYM.
1449         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
1450         <bp-sym.h> and <bp-asm.h>.
1451         (__strnlen): Don't use BP_SYM.
1452         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
1453         <bp-asm.h>.
1454         (__mpn_rshift): Don't use BP_SYM.
1455         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
1456         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
1457         <bp-sym.h> and <bp-asm.h>.
1458         (__sigsetjmp): Don't use BP_SYM.
1459         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
1460         (L(start_addresses)): Don't use BP_SYM.
1461         (_start): Likewise.
1462         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
1463         <bp-asm.h>.
1464         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
1465         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
1466         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
1467         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
1468         <bp-asm.h>.
1469         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
1470         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
1471         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
1472         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
1473         <bp-asm.h>.
1474         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
1475         comments.
1476         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
1477         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
1478         <bp-asm.h>.
1479         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
1480         FIXME comments.
1481         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
1482         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
1483         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
1484         <bp-asm.h>.
1485         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
1486         comment.
1487         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
1488         and <bp-asm.h>.
1489         (strncmp): Don't use BP_SYM,
1490         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
1491         <bp-asm.h>.
1492         (__mpn_sub_n): Don't use BP_SYM.
1493         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
1494         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
1495         and <bp-asm.h>.
1496         (__mpn_submul_1): Don't use BP_SYM.
1497         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
1498         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
1499         <bp-sym.h> and <bp-asm.h>.
1500         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
1501         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
1502         <bp-sym.h> and <bp-asm.h>.
1503         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
1504         comment.
1505
1506 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
1507
1508         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
1509         Use ZK to minimize writes to Z.
1510         (sub_magnitudes): Simplify code a bit.
1511         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
1512         Use ZK to minimize writes to Z.
1513         (sub_magnitudes): Simplify code a bit.
1514
1515 2013-02-27  Roland McGrath  <roland@hack.frob.com>
1516
1517         * csu/gmon-start.c: Add special exception to license text.
1518
1519 2013-02-27  Richard Henderson  <rth@redhat.com>
1520
1521         * scripts/config.guess: Update from config.git.
1522         * scripts/config.sub: Likewise.
1523
1524 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
1525
1526         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
1527
1528         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
1529
1530         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
1531
1532         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
1533
1534         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
1535
1536 2013-02-26  Roland McGrath  <roland@hack.frob.com>
1537
1538         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
1539         [$(build-shared = yes].
1540
1541 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
1542
1543         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
1544         (__mul): Reduce iterations for calculating mantissa.
1545
1546         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
1547         MPTWO.
1548         (__mpranred): Likewise.
1549
1550         [BZ #15160]
1551         * malloc/memusagestat.c (main): Draw graphs for heap and stack
1552         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
1553
1554 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
1555
1556         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
1557         Define __attribute__.
1558
1559 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
1560
1561         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
1562         unused.
1563         * posix/regex_internal.h (__attribute): Remove.
1564         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
1565         (re_string_context_at): Likewise.
1566         (bitset_not): Use __attribute__ and mark function as possibly
1567         unused.
1568         (bitset_merge): Likewise.
1569         (bitset_mask): Likewise.
1570         (re_string_char_size_at): Likewise.
1571         (re_string_wchar_at): Likewise.
1572         (re_string_elem_size_at): Likewise.
1573
1574 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
1575
1576         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
1577         code.
1578         (cc32): Likewise.
1579
1580         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
1581         (__acr): Likewise.
1582         (__cpy): Likewise.
1583         (norm): Likewise.
1584         (denorm): Likewise.
1585         (__dbl_mp): Likewise.
1586         (add_magnitudes): Likewise.
1587         (sub_magnitudes): Likewise.
1588         (__mul): Likewise.
1589         (__inv): Likewise.
1590
1591         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
1592         style.
1593
1594         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
1595         style.
1596
1597         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
1598         code.
1599
1600         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
1601         up changes with default code.
1602         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
1603         Likewise.
1604
1605 2013-02-24  Allan McRae  <allan@archlinux.org>
1606
1607         * manual/socket.texi (The Internet Namespace): Order menu items
1608         to match that in the file.
1609
1610         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
1611         node listing of the info page menu.
1612
1613 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
1614
1615         [BZ #13550]
1616         * sysdeps/i386/bp-asm.h: Remove file.
1617         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
1618         (PARMS): Do not use macros from bp-asm.h.
1619         (S1): Likewise.
1620         (S2): Likewise.
1621         (SIZE): Likewise.
1622         (__mpn_add_n): Do not use BP_SYM
1623         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
1624         "bp-asm.h".
1625         (PARMS): Do not use macros from bp-asm.h.
1626         (S1): Likewise.
1627         (SIZE): Likewise.
1628         (__mpn_addmul_1): Do not use BP_SYM
1629         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
1630         "bp-asm.h".
1631         (PARMS): Do not use macros from bp-asm.h.
1632         (SIGMSK): Likewise.
1633         (_setjmp): Likewise.  Do not use BP_SYM.
1634         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
1635         "bp-asm.h".
1636         (PARMS): Do not use macros from bp-asm.h.
1637         (SIGMSK): Likewise.
1638         (setjmp): Likewise.  Do not use BP_SYM.
1639         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
1640         "bp-asm.h".
1641         (PARMS): Do not use macros from bp-asm.h.
1642         (__frexp): Do not use BP_SYM.
1643         (frexp): Likewise.
1644         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
1645         "bp-asm.h".
1646         (PARMS): Do not use macros from bp-asm.h.
1647         (__frexpf): Do not use BP_SYM.
1648         (frexpf): Likewise.
1649         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
1650         "bp-asm.h".
1651         (PARMS): Do not use macros from bp-asm.h.
1652         (__frexpl): Do not use BP_SYM.
1653         (frexpl): Likewise.
1654         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
1655         "bp-asm.h".
1656         (PARMS): Do not use macros from bp-asm.h.
1657         (__remquo): Do not use BP_SYM.
1658         (remquo): Likewise.
1659         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
1660         "bp-asm.h".
1661         (PARMS): Do not use macros from bp-asm.h.
1662         (__remquof): Do not use BP_SYM.
1663         (remquof): Likewise.
1664         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
1665         "bp-asm.h".
1666         (PARMS): Do not use macros from bp-asm.h.
1667         (__remquol): Do not use BP_SYM.
1668         (remquol): Likewise.
1669         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
1670         "bp-asm.h".
1671         (PARMS): Do not use macros from bp-asm.h.
1672         (DEST): Likewise.
1673         (SRC): Likewise.
1674         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
1675         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
1676         "bp-asm.h".
1677         (PARMS): Do not use macros from bp-asm.h.
1678         (strlen): Do not use BP_SYM.
1679         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
1680         "bp-asm.h".
1681         (PARMS): Do not use macros from bp-asm.h.
1682         (S1): Likewise.
1683         (S2): Likewise.
1684         (SIZE): Likewise.
1685         (__mpn_add_n): Do not use BP_SYM.
1686         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
1687         "bp-asm.h".
1688         (PARMS): Do not use macros from bp-asm.h.
1689         (S1): Likewise.
1690         (SIZE): Likewise.
1691         (__mpn_addmul_1): Do not use BP_SYM.
1692         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
1693         weak_alias.
1694         (bzero): Likewise.
1695         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
1696         "bp-asm.h".
1697         (PARMS): Do not use macros from bp-asm.h.
1698         (S): Likewise.
1699         (SIZE): Likewise.
1700         (__mpn_lshift): Do not use BP_SYM.
1701         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
1702         "bp-asm.h".
1703         (PARMS): Do not use macros from bp-asm.h.
1704         (DEST): Likewise.
1705         (SRC): Likewise.
1706         (LEN): Likewise.
1707         (memcpy): Likewise.  Do not use BP_SYM.
1708         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
1709         libc_hidden_def and weak_alias.
1710         (mempcpy): Do not use BP_SYM in weak_alias.
1711         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
1712         "bp-asm.h".
1713         (PARMS): Do not use macros from bp-asm.h.
1714         (DEST): Likewise.
1715         (LEN): Likewise.
1716         [!BZERO_P] (CHR): Likewise.
1717         (memset): Likewise.  Do not use BP_SYM.
1718         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
1719         "bp-asm.h".
1720         (PARMS): Do not use macros from bp-asm.h.
1721         (S1): Likewise.
1722         (SIZE): Likewise.
1723         (__mpn_mul_1): Do not use BP_SYM.
1724         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
1725         "bp-asm.h".
1726         (PARMS): Do not use macros from bp-asm.h.
1727         (S): Likewise.
1728         (SIZE): Likewise.
1729         (__mpn_rshift): Do not use BP_SYM.
1730         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
1731         "bp-asm.h".
1732         (PARMS): Do not use macros from bp-asm.h.
1733         (STR): Likewise.
1734         (CHR): Likewise.
1735         (strchr): Likewise.  Do not use BP_SYM.
1736         (index): Do not use BP_SYM in weak_alias.
1737         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
1738         "bp-asm.h".
1739         (PARMS): Do not use macros from bp-asm.h.
1740         (DEST): Likewise.
1741         (SRC): Likewise.
1742         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
1743         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
1744         "bp-asm.h".
1745         (PARMS): Do not use macros from bp-asm.h.
1746         (strlen): Do not use BP_SYM.
1747         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
1748         "bp-asm.h".
1749         (PARMS): Do not use macros from bp-asm.h.
1750         (S1): Likewise.
1751         (S2): Likewise.
1752         (SIZE): Likewise.
1753         (__mpn_sub_n): Do not use BP_SYM.
1754         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
1755         "bp-asm.h".
1756         (PARMS): Do not use macros from bp-asm.h.
1757         (S1): Likewise.
1758         (SIZE): Likewise.
1759         (__mpn_submul_1): Do not use BP_SYM.
1760         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
1761         "bp-asm.h".
1762         (PARMS): Do not use macros from bp-asm.h.
1763         (S1): Likewise.
1764         (S2): Likewise.
1765         (SIZE): Likewise.
1766         (__mpn_add_n): Do not use BP_SYM.
1767         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
1768         weak_alias.
1769         (bzero): Likewise.
1770         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
1771         "bp-asm.h".
1772         (PARMS): Do not use macros from bp-asm.h.
1773         (BLK2): Likewise.
1774         (LEN): Likewise.
1775         (memcmp): Do not use BP_SYM.
1776         (bcmp): Do not use BP_SYM in weak_alias.
1777         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
1778         "bp-asm.h".
1779         (PARMS): Do not use macros from bp-asm.h.
1780         (DEST): Likewise.
1781         (SRC): Likewise.
1782         (LEN): Likewise.
1783         (memcpy): Likewise.  Do not use BP_SYM.
1784         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
1785         "bp-asm.h".
1786         (PARMS): Do not use macros from bp-asm.h.
1787         (DEST): Likewise.
1788         (SRC): Likewise.
1789         (LEN): Likewise.
1790         (memmove): Likewise.  Do not use BP_SYM.
1791         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
1792         "bp-asm.h".
1793         (PARMS): Do not use macros from bp-asm.h.
1794         (DEST): Likewise.
1795         (SRC): Likewise.
1796         (LEN): Likewise.
1797         (__mempcpy): Likewise.  Do not use BP_SYM.
1798         (mempcpy): Do not use BP_SYM in weak_alias.
1799         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
1800         "bp-asm.h".
1801         (PARMS): Do not use macros from bp-asm.h.
1802         (DEST): Likewise.
1803         (LEN): Likewise.
1804         [!BZERO_P] (CHR): Likewise.
1805         (memset): Likewise.  Do not use BP_SYM.
1806         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
1807         "bp-asm.h".
1808         (PARMS): Do not use macros from bp-asm.h.
1809         (STR2): Likewise.
1810         (strcmp): Do not use BP_SYM.
1811         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
1812         "bp-asm.h".
1813         (PARMS): Do not use macros from bp-asm.h.
1814         (STR): Likewise.
1815         (DELIM): Likewise.
1816         [USE_AS_STRTOK_R] (SAVE): Likewise.
1817         (FUNCTION): Likewise.  Do not use BP_SYM.
1818         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
1819         aliases.
1820         (strtok_r): Likewise.
1821         (__GI___strtok_r): Likewise.
1822         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
1823         (PARMS): Do not use macros from bp-asm.h.
1824         (S): Likewise.
1825         (SIZE): Likewise.
1826         (__mpn_lshift): Do not use BP_SYM.
1827         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
1828         (PARMS): Do not use macros from bp-asm.h.
1829         (STR): Likewise.
1830         (CHR): Likewise.
1831         (__memchr): Do not use BP_SYM.
1832         (memchr): Do not use BP_SYM in weak_alias.
1833         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
1834         (PARMS): Do not use macros from bp-asm.h.
1835         (BLK2): Likewise.
1836         (LEN): Likewise.
1837         (memcmp): Do not use BP_SYM.
1838         (bcmp): Do not use BP_SYM in weak_alias.
1839         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
1840         (PARMS): Do not use macros from bp-asm.h.
1841         (S1): Likewise.
1842         (SIZE): Likewise.
1843         (__mpn_mul_1): Do not use BP_SYM.
1844         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
1845         "bp-asm.h".
1846         (PARMS): Do not use macros from bp-asm.h.
1847         (STR): Likewise.
1848         (CHR): Likewise.
1849         (__rawmemchr): Do not use BP_SYM.
1850         (rawmemchr): Do not use BP_SYM in weak_alias.
1851         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
1852         (PARMS): Do not use macros from bp-asm.h.
1853         (S): Likewise.
1854         (SIZE): Likewise.
1855         (__mpn_rshift): Do not use BP_SYM.
1856         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
1857         (PARMS): Do not use macros from bp-asm.h.
1858         (SIGMSK): Likewise.
1859         (__sigsetjmp): Likewise.  Do not use BP_SYM.
1860         * sysdeps/i386/start.S: Do not include "bp-sym.h".
1861         (_start): Do not use BP_SYM.
1862         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
1863         (PARMS): Do not use macros from bp-asm.h.
1864         (DEST): Likewise.
1865         (SRC): Likewise.
1866         (__stpcpy): Likewise.  Do not use BP_SYM.
1867         (stpcpy): Do not use BP_SYM in weak_alias.
1868         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
1869         "bp-asm.h".
1870         (PARMS): Do not use macros from bp-asm.h.
1871         (DEST): Likewise.
1872         (SRC): Likewise.
1873         (LEN): Likewise.
1874         (__stpncpy): Likewise.  Do not use BP_SYM.
1875         (stpncpy): Do not use BP_SYM in weak_alias.
1876         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
1877         (PARMS): Do not use macros from bp-asm.h.
1878         (STR): Likewise.
1879         (CHR): Likewise.
1880         (strchr): Likewise.  Do not use BP_SYM.
1881         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
1882         "bp-asm.h".
1883         (PARMS): Do not use macros from bp-asm.h.
1884         (STR): Likewise.
1885         (CHR): Likewise.
1886         (__strchrnul): Likewise.  Do not use BP_SYM.
1887         (strchrnul): Do not use BP_SYM in weak_alias.
1888         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
1889         "bp-asm.h".
1890         (PARMS): Do not use macros from bp-asm.h.
1891         (STOP): Likewise.
1892         (strcspn): Do not use BP_SYM.
1893         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
1894         "bp-asm.h".
1895         (PARMS): Do not use macros from bp-asm.h.
1896         (STR): Likewise.
1897         (STOP): Likewise.
1898         (strpbrk): Likewise.  Do not use BP_SYM.
1899         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
1900         "bp-asm.h".
1901         (PARMS): Do not use macros from bp-asm.h.
1902         (STR): Likewise.
1903         (CHR): Likewise.
1904         (strrchr): Likewise.  Do not use BP_SYM.
1905         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
1906         (PARMS): Do not use macros from bp-asm.h.
1907         (SKIP): Likewise.
1908         (strspn): Do not use BP_SYM.
1909         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
1910         (PARMS): Do not use macros from bp-asm.h.
1911         (STR): Likewise.
1912         (DELIM): Likewise.
1913         (SAVE): Likewise.
1914         (FUNCTION): Likewise.  Do not use BP_SYM.
1915         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
1916         aliases.
1917         (strtok_r): Likewise.
1918         (__GI___strtok_r): Likewise.
1919         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
1920         (PARMS): Do not use macros from bp-asm.h.
1921         (S1): Likewise.
1922         (S2): Likewise.
1923         (SIZE): Likewise.
1924         (__mpn_sub_n): Do not use BP_SYM.
1925         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
1926         "bp-asm.h".
1927         (PARMS): Do not use macros from bp-asm.h.
1928         (S1): Likewise.
1929         (SIZE): Likewise.
1930         (__mpn_submul_1): Do not use BP_SYM.
1931         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
1932         <bp-sym.h>.
1933         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
1934         and <bp-asm.h>.
1935         (PARMS): Do not use macros from bp-asm.h.
1936         (FLAGS): Likewise.
1937         (PTID): Likewise.
1938         (TLS): Likewise.
1939         (CTID): Likewise.
1940         (__clone): Do not use BP_SYM.
1941         (clone): Do not use BP_SYM in weak_alias.
1942         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
1943         and <bp-asm.h>.
1944         (PARMS): Do not use macros from bp-asm.h.
1945         (LEN): Likewise.
1946         (__mmap64): Do not use BP_SYM.
1947         (mmap64): Do not use BP_SYM in weak_alias.
1948         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
1949         <bp-sym.h> and <bp-asm.h>.
1950         (PARMS): Do not use macros from bp-asm.h.
1951         (__posix_fadvise64_l64): Do not use BP_SYM.
1952         * sysdeps/unix/sysv/linux/i386/semtimedop.S
1953         (PARMS): Do not use macros from bp-asm.h.
1954         (NSOPS): Likewise.
1955         (semtimedop): Do not use BP_SYM.
1956         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
1957         and <bp-asm.h>.
1958
1959 2013-02-21  Allan McRae  <allan@archlinux.org>
1960
1961         * manual/message.texi (Charset conversion in gettext):
1962         Move @end statement to beginning of line.
1963
1964 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
1965
1966         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
1967         static.
1968         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
1969         Likewise.
1970
1971         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
1972         (denorm): Likewise.
1973         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
1974         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
1975
1976 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1977
1978         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
1979         tail-call to the resolved function if pltexit isn't needed.
1980
1981 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
1982
1983         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
1984         or Y being zero as being unlikely.
1985         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
1986         Likewise.
1987
1988 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
1989
1990         * manual/nss.texi (System Databases and Name Service Switch):
1991         Remove frobnicate @pxref.
1992
1993 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
1994
1995         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
1996         __attribute__ ((unused)) to __attribute__ ((__unused__)).
1997
1998 2013-02-20  Petr Machata  <pmachata@redhat.com>
1999
2000         * elf/elf.h (R_ARM_TARGET1): New macro.
2001         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
2002         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
2003         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
2004         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
2005         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
2006         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
2007         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
2008         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
2009         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
2010         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
2011         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
2012         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
2013         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
2014         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
2015         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
2016         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
2017         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
2018         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
2019         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
2020         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
2021         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
2022         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
2023         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
2024         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
2025         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
2026         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
2027         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
2028         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
2029         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
2030         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
2031         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
2032         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
2033         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
2034         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
2035         (R_ARM_THM_GOT_BREL12): Likewise.
2036         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
2037         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
2038         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
2039         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
2040         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
2041         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
2042         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
2043         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
2044         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
2045
2046 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
2047
2048         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
2049         __attribute_used__ to __attribute__ ((unused)).
2050
2051 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
2052
2053         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
2054         powerpc mpa.c.
2055         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
2056         comment formatting.
2057         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
2058
2059 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
2060
2061         [BZ #13550]
2062         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
2063         Remove macro.
2064         (ENTER): Remove both macro definitions.
2065         (LEAVE): Likewise.
2066         (CHECK_BOUNDS_LOW): Likewise.
2067         (CHECK_BOUNDS_HIGH): Likewise.
2068         (CHECK_BOUNDS_BOTH): Likewise.
2069         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
2070         (RETURN_BOUNDED_POINTER): Likewise.
2071         (RETURN_NULL_BOUNDED_POINTER): Likewise.
2072         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
2073         (POP_ERRNO_LOCATION_RETURN): Likewise.
2074         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
2075         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
2076         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
2077         macros.
2078         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
2079         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
2080         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
2081         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
2082         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
2083         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
2084         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
2085         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
2086         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
2087         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
2088         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
2089         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
2090         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
2091         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
2092         removed macros.
2093         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
2094         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
2095         macros.
2096         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
2097         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
2098         * sysdeps/i386/i586/memset.S (memset): Likewise.
2099         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
2100         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
2101         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
2102         macros.
2103         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
2104         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
2105         Change uses of L(2) to L(out).
2106         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
2107         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
2108         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
2109         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
2110         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
2111         removed macros.
2112         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
2113         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
2114         macros.
2115         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
2116         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
2117         (RETURN): Do not use macro LEAVE.
2118         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
2119         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
2120         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
2121         * sysdeps/i386/i686/memset.S (memset): Likewise.
2122         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
2123         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
2124         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
2125         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
2126         Likewise.
2127         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
2128         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
2129         L(1_2) and L(1_3) into L(1).
2130         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
2131         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
2132         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
2133         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
2134         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
2135         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
2136         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
2137         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
2138         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
2139         macros.
2140         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
2141         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
2142         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
2143         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
2144         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
2145         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
2146         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
2147         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
2148         * sysdeps/i386/strcspn.S (strcspn): Likewise.
2149         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
2150         * sysdeps/i386/strrchr.S (strrchr): Likewise.
2151         * sysdeps/i386/strspn.S (strspn): Likewise.
2152         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
2153         conditional code.
2154         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
2155         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
2156         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
2157         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
2158         L(1_3) into L(1_1).
2159         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
2160         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
2161         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
2162         macros.
2163         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
2164
2165 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
2166
2167         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
2168         macro.
2169
2170 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
2171
2172         * math/atest-exp.c (exp_mpn): Remove ROUND.
2173         * math/atest-exp2.c (exp_mpn): Likewise.
2174         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
2175
2176         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
2177         * stdlib/tst-tls-atexit-lib.c: Likewise.
2178         * stdlib/tst-tls-atexit.c: Likewise.
2179
2180 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
2181
2182         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
2183         and __attribute_alloc_size__.
2184
2185 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
2186
2187         * include/programs/xmalloc.h: Change __attribute_alloc_size to
2188         __attribute_alloc_size__.
2189         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
2190         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
2191
2192 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
2193
2194         * include/programs/xmalloc.h: New file.
2195         * catgets/gencat.c: Include it.
2196         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
2197         * elf/pldd.c: Likewise.
2198         * iconv/iconv_charmap.c: Likewise.
2199         * iconv/iconvconfig.c: Likewise.
2200         * iconv/strtab.c: Likewise.
2201         * locale/programs/locale.c: Likewise.
2202         * locale/programs/localedef.h: Likewise.
2203         * locale/programs/simple-hash.c: Likewise.
2204         * nscd/nscd.h: Likewise.
2205         * nss/makedb.c: Likewise.
2206         * sysdeps/generic/ldconfig.h: Likewise.
2207
2208 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
2209
2210         * Versions.def: Add GLIBC_2.18.
2211         * include/link.h (struct link_map): New member l_tls_dtor_count.
2212         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
2213         (__call_tls_dtors): Likewise.
2214         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
2215         __cxa_thread_atexit_impl.
2216         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
2217         Likewise.
2218         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
2219         Likewise.
2220         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
2221         Likewise.
2222         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
2223         Likewise.
2224         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
2225         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
2226         Likewise.
2227         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
2228         Likewise.
2229         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
2230         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
2231         Likewise.
2232         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
2233         (tests): Add test case tst-tls-atexit.
2234         (modules-names): Add shared library for tst-tls-atexit.
2235         * stdlib/Versions (GLIBC_2.17): Add __cxa_thread_atexit_impl.
2236         (GLIBC_PRIVATE): Add __call_tls_dtors.
2237         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
2238         for libstdc++.
2239         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
2240         * stdlib/tst-tls-atexit.c: New test case.
2241         * stdlib/tst-tls-atexit-lib.c: New test case.
2242
2243         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
2244
2245         * elf/Versions (ld): Add _dl_find_dso_for_object.
2246         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
2247         * elf/dl-open.c (_dl_find_dso_for_object): New function.
2248         (dl_open_worker): Use _dl_find_dso_for_object.
2249         * elf/dl-sym.c (do_sym): Likewise.
2250         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
2251
2252 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2253
2254         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
2255         Syntactic changes only.
2256         (_dl_runtime_profile): Do a tail-call to the resolved function.
2257
2258 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
2259
2260         [BZ #13550]
2261         * sysdeps/x86_64/bp-asm.h: Remove file.
2262         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
2263         <bp-sym.h> and <bp-asm.h>.
2264         (__clone): Do not use BP_SYM.
2265         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
2266         <bp-sym.h> and <bp-asm.h>.
2267         * sysdeps/unix/x86_64/sysdep.S: Likewise.
2268         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
2269         "bp-asm.h".
2270         (_setjmp): Do not use BP_SYM.
2271         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
2272         "bp-asm.h".
2273         (setjmp): Do not use BP_SYM.
2274         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
2275         libc_hidden_def.
2276         (mempcpy): Do not use BP_SYM in weak_alias.
2277         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
2278         "bp-asm.h".
2279         (strchr): Do not use BP_SYM.
2280         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
2281         "bp-asm.h".
2282         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
2283         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
2284         (_start): Do not use BP_SYM.
2285         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
2286         "bp-asm.h".
2287         (strcat): Do not use BP_SYM.
2288         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
2289         "bp-asm.h".
2290         (STRCMP): Do not use BP_SYM.
2291         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
2292         "bp-asm.h".
2293         (STRCPY): Do not use BP_SYM.
2294         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
2295         "bp-asm.h".
2296         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
2297         "bp-asm.h".
2298         (FUNCTION): Do not use BP_SYM.
2299         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
2300         weak_alias.
2301         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
2302
2303 2013-02-17  Andreas Jaeger  <aj@suse.de>
2304
2305         * time/Versions: Sort entries.
2306         * string/Versions: Likewise.
2307         * resolv/Versions: Likewise.
2308         * posix/Versions: Likewise.
2309         * iconv/Versions: Likewise.
2310         * elf/Versions: Likewise.
2311         * wcsmbs/Versions: Likewise.
2312
2313 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
2314
2315         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
2316         loop termination condition.
2317
2318         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
2319         variable to calculate EZ.
2320         (__sqr): Likewise.
2321
2322         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
2323         the lower precision input.
2324
2325 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
2326
2327         [BZ #13550]
2328         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
2329         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
2330         (run-via-rtld-prefix): Do not handle %-bp tests.
2331         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
2332         (all-object-suffixes): Remove .ob.
2333         (bppfx): Remove variable.
2334         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
2335         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
2336         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
2337         [$(build-bounded) = yes] (libtype.ob): Likewise.
2338         * Makerules (elide-routines.ob): Remove variable.
2339         (do-tests-clean): Do not handle *-bp.out.
2340         (common-mostlyclean): Do not handle *-bp and *-bp.out.
2341         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
2342         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
2343         (tests): Do not include $(tests-bp.out).
2344         (xtests): Do not include $(xtests-bp.out).
2345         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
2346         [$(build-bounded) = yes] ($(addprefix
2347         $(objpfx),$(binaries-bounded))): Remove rule.
2348         ($(objpfx)%-bp.out): Remove rule.
2349         * config.make.in (build-bounded): Remove variable.
2350         * crypt/Makefile [$(build-bounded) = yes]
2351         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
2352         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
2353         append to variable.
2354         [$(build-bounded) = yes] (install-lib): Likewise.
2355         [$(build-bounded) = yes] (generated): Likewise.
2356         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
2357         Remove rule.
2358         * intl/Makefile [$(build-bounded) = yes]
2359         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
2360         * math/Makefile [$(build-bounded) = yes]
2361         ($(tests:%=$(objpfx)%-bp): Likewise.
2362         * misc/Makefile [$(build-bounded) = yes]
2363         ($(objpfx)tst-tsearch-bp): Likewise.
2364         * nptl/Makeconfig (bounded-thread-library): Remove variable.
2365         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
2366         Remove dependency.
2367         * string/Makefile (o-objects.ob): Remove variable.
2368         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
2369         (CFLAGS-.ob): Remove variable.
2370         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
2371         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
2372         both definitions of variable.
2373         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
2374         (ASFLAGS-.ob): Remove variable.
2375
2376 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
2377
2378         [BZ #13550]
2379         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
2380         Remove __BOUNDED_POINTERS__ from condition.
2381         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
2382         * string/bits/string2.h [!__NO_STRING_INLINES &&
2383         !__BOUNDED_POINTERS__]: Likewise.
2384         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
2385         Likewise.
2386         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
2387         Remove conditional code.
2388         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
2389         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
2390         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
2391         condition.
2392
2393         [BZ #13550]
2394         * csu/libc-start.c: Do not include <bp-sym.h>.
2395         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
2396         * elf/dl-open.c: Do not include <bp-sym.h>.
2397         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
2398         * math/fegetenv.c: Do not include <bp-sym.h>.
2399         (fegetenv): Do not use BP_SYM in versioned symbols.
2400         * nptl/sysdeps/pthread/bits/libc-lockP.h
2401         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
2402         <bp-sym.h>.
2403         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
2404         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
2405         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
2406         (__pthread_mutex_destroy): Likewise.
2407         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
2408         (__pthread_mutex_lock): Likewise.
2409         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
2410         (__pthread_mutex_trylock): Likewise.
2411         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
2412         (__pthread_mutex_unlock): Likewise.
2413         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
2414         (__pthread_mutexattr_init): Likewise.
2415         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
2416         (__pthread_mutexattr_destroy): Likewise.
2417         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
2418         (__pthread_mutexattr_settype): Likewise.
2419         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
2420         (__pthread_rwlock_init): Likewise.
2421         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
2422         (__pthread_rwlock_destroy): Likewise.
2423         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
2424         (__pthread_rwlock_rdlock): Likewise.
2425         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
2426         (__pthread_rwlock_tryrdlock): Likewise.
2427         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
2428         (__pthread_rwlock_wrlock): Likewise.
2429         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
2430         (__pthread_rwlock_trywrlock): Likewise.
2431         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
2432         (__pthread_rwlock_unlock): Likewise.
2433         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
2434         (__pthread_key_create): Likewise.
2435         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
2436         (__pthread_setspecific): Likewise.
2437         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
2438         (__pthread_getspecific): Likewise.
2439         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
2440         Likewise.
2441         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
2442         (_pthread_cleanup_push_defer): Likewise.
2443         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
2444         (_pthread_cleanup_pop_restore): Likewise.
2445         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
2446         (pthread_setcancelstate): Likewise.
2447         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
2448         <bp-sym.h>.
2449         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
2450         (memchr): Do not use BP_SYM in weak_alias.
2451         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
2452         (fegetenv): Do not use BP_SYM in versioned symbols.
2453         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
2454         (fesetenv): Do not use BP_SYM in versioned symbols.
2455         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
2456         (feupdateenv): Do not use BP_SYM in versioned symbols.
2457         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
2458         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
2459         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
2460         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
2461         (open64): Do not use BP_SYM in weak_alias.
2462         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
2463         (fegetenv): Do not use BP_SYM in versioned symbols.
2464         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
2465         (fesetenv): Do not use BP_SYM in versioned symbols.
2466         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
2467         (feupdateenv): Do not use BP_SYM in versioned symbols.
2468         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
2469         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
2470         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
2471         (feraiseexcept): Do not use BP_SYM in versioned symbols.
2472         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
2473         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
2474         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
2475         <bp-sym.h>.
2476         (__libc_start_main): Do not use BP_SYM.
2477
2478 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
2479
2480         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
2481         redundant return line.
2482         (norm): Likewise.
2483         (denorm): Likewise.
2484         (dbl_mp): Likewise.
2485         (sub_magnitudes): Likewise.
2486         (__add): Likewise.
2487         (__sub): Likewise.
2488         (__mul): Likewise.
2489         (__inv): Likewise.
2490         (__dvd): Likewise.
2491         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
2492         (norm): Likewise.
2493         (denorm): Likewise.
2494         (dbl_mp): Likewise.
2495         (sub_magnitudes): Likewise.
2496         (__add): Likewise.
2497         (__sub): Likewise.
2498         (__mul): Likewise.
2499         (__inv): Likewise.
2500         (__dvd): Likewise.
2501
2502         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
2503         instead of __mul.
2504         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
2505         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
2506         (cc32): Likewise.
2507
2508         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
2509         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
2510         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
2511         of __mul for squares.
2512         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
2513         function
2514         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
2515         Likewise.
2516         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
2517         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
2518
2519 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
2520
2521         [BZ #13550]
2522         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
2523         code.
2524         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
2525         prototype or function definition.  Rename ubp_* variables and
2526         parameters.  Remove argv definitions conditional on
2527         [__BOUNDED_POINTERS__].
2528         * debug/backtrace.c (__backtrace): Do not use __unbounded.
2529         * elf/dl-runtime.c (_dl_fixup): Likewise.
2530         * include/set-hooks.h (RUN_HOOK): Likewise.
2531         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
2532         definition.
2533         * string/strcpy.c (strcpy): Do not use __unbounded.
2534         * sysdeps/generic/frame.h (struct layout): Likewise.
2535         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
2536         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
2537         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
2538         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
2539         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
2540         (__backtrace): Likewise.
2541         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
2542         use __ptrvalue.
2543         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
2544         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
2545         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
2546         Likewise.
2547         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
2548         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
2549         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
2550         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
2551         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
2552         Do not use __unbounded.
2553         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
2554         Rename __unboundedrlimits parameter to rlimits in prototype.
2555         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
2556         Do not use __unbounded.
2557         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
2558         not use __ptrvalue.
2559         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
2560         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
2561         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
2562         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
2563         __ptrvalue or __unbounded.
2564         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
2565         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
2566         use __unbounded.
2567         (__new_msgctl): Do not use __ptrvalue.
2568         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
2569         __unbounded.
2570         (__libc_msgrcv): Do not use __ptrvalue.
2571         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
2572         startup_info): Do not use __unbounded.
2573         (__libc_start_main): Likewise.  Rename ubp_* variables and
2574         parameters.  Remove argv definitions conditional on
2575         [__BOUNDED_POINTERS__].
2576         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
2577         __ptrvalue.
2578         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
2579         use __unbounded.
2580         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
2581         or __ptrvalue.
2582         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
2583         use __unbounded.
2584         (__new_shmctl): Do not use __ptrvalue.
2585         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
2586         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
2587         Likewise.
2588         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
2589         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
2590         (__libc_sigaction): Likewise.
2591         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
2592         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
2593         Likewise.
2594         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
2595
2596 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
2597
2598         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
2599
2600         * string/mempcpy.c: Implement by calling memcpy.
2601
2602 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
2603
2604         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
2605
2606         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
2607         evaluation.
2608
2609         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
2610         values in the mantissa.
2611
2612         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
2613         minimize writes to Z.
2614         (sub_magnitudes): Simplify code a bit.
2615
2616 2013-02-12  Roland McGrath  <roland@hack.frob.com>
2617
2618         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
2619         from the message.  The linker prefixes all warnings with that already.
2620
2621 2013-02-12  Andreas Schwab  <schwab@suse.de>
2622
2623         [BZ #15078]
2624         * posix/regexec.c (extend_buffers): Add parameter min_len.
2625         (check_matching): Pass minimum needed length.
2626         (clean_state_log_if_needed): Likewise.
2627         (get_subexp): Likewise.
2628         * posix/Makefile (tests): Add bug-regex34.
2629         (bug-regex34-ENV): Define.
2630         * posix/bug-regex34.c: New file.
2631
2632         [BZ #11561]
2633         * posix/regcomp.c (parse_bracket_exp): When looking up collating
2634         elements compare against the byte sequence of it, not its name.
2635         * posix/Makefile (tests): Add bug-regex35.
2636         (bug-regex35-ENV): Define.
2637         * posix/bug-regex35.c: New file.
2638
2639 2013-02-11  Tom de Vries  <tom@codesourcery.com>
2640
2641         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
2642         comment.
2643         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
2644         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
2645         (CHECK_EOL): Add undef.
2646
2647 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
2648
2649         * bits/stdlib-bsearch.h: New file.
2650         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
2651         * stdlib/stdlib.h: Likewise.
2652
2653 2013-02-11  Roland McGrath  <roland@hack.frob.com>
2654
2655         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
2656         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
2657         declaration.
2658         * manual/search.texi (Array Search Function): Add missing const in
2659         lfind prototype.
2660         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
2661         declaration to use rlim_t.
2662         (Basic Scheduling Functions): Remove erroneous const from
2663         sched_getparam prototype.  Remove erroneous * from
2664         sched_get_priority_max and sched_get_priority_min prototypes.
2665         (Resource Usage): Fix summary @comment on vtimes to refer to
2666         sys/vtimes.h rather than vtimes.h.
2667         Add missing *s in vtimes prototype.
2668         (Limits on Resources): Fix ulimit prototype to return long int.
2669         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
2670         prototypes to use long int rather than double.
2671         (BSD Random): Fix initstate and setstate to use char *, not void *.
2672         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
2673         prototype to make second argument 'struct aiocb64 *const[]'.
2674         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
2675         (Status of AIO Operations): Remove erroneous const in aio_return and
2676         aio_return64 prototypes.
2677         (Synchronizing I/O): Fix sync prototype to return void.
2678         * manual/startup.texi (Suboptions): Remove an erroneous const in
2679         getsubopt prototype.
2680         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
2681         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
2682         use size_t rather than int.
2683         (Scanning All Users): Likewise for getpwent_r.
2684         (Setting Groups): Add missing const to setgroups prototype.
2685         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
2686         * manual/socket.texi (Host Names): Fix gethostbyaddr and
2687         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
2688         'const void *' rather than 'const char *'.
2689         (Host Address Functions): Likewise for inet_ntop.
2690         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
2691         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
2692         ssize_t for return value.
2693         (Sending Data): Likewise for send, sendto, sendmsg.
2694         (Socket Option Functions): Add a missing const in setsockopt prototype.
2695         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
2696         use wchar_t for the argument.
2697         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
2698         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
2699         take no arguments.
2700         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
2701         double/float/long double for second argument.
2702         Fix return types of significand, significandf, significandl.
2703         * manual/filesys.texi (Setting Permissions): Use mode_t for second
2704         argument in fchmod prototype.
2705         (File Owner): Use uid_t and gid_t in fchown prototype.
2706         (File Times): Add const to utimes, futimes, and lutimes prototypes.
2707         (Making Special Files): Use mode_t and dev_t in mknod prototype.
2708         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
2709         use 'const struct dirent **' as argument types to CMP function pointer
2710         argument.
2711         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
2712         (File Times): Fix summary magic @comment for struct utimbuf and utime
2713         to refer to utime.h, not time.h.
2714         * manual/string.texi (Argz Functions): Add missing const in
2715         argz_extract and argz_next prototypes.
2716         (Finding Tokens in a String): Likewise for basename.
2717         (String/Array Comparison): Fix typo in wcscasecmp prototype.
2718         (Copying and Concatenation): Fix typo in wmemmove prototype.
2719         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
2720         (Signal Stack): Remove erroneous const in sigstack prototype.
2721         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
2722         prototype.
2723         (Simple Calendar Time): Likewise for stime.
2724         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
2725         prototype.
2726         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
2727         say sys/sysctl.h instead.
2728         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
2729         and vsyslog prototypes.
2730
2731 2013-02-11  Tom de Vries  <tom@codesourcery.com>
2732
2733         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
2734         Remove.
2735
2736 2013-02-11  Roland McGrath  <roland@hack.frob.com>
2737
2738         * misc/sys/mman.h: Fix typo in mremap comment.
2739
2740 2013-02-08  Roland McGrath  <roland@hack.frob.com>
2741
2742         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
2743         the '\0' terminator.
2744
2745 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
2746
2747         [BZ #13550]
2748         * debug/segfault.c: Don't include <bp-checks.h>.
2749         * sysdeps/generic/bp-checks.h: Remove file.
2750         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
2751         (__GETDENTS): Don't use CHECK_N.
2752         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
2753         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
2754         (__getgroups): Don't use CHECK_N.
2755         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
2756         (setgroups): Don't use CHECK_N.
2757         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
2758         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
2759         (__libc_msgrcv): Don't use CHECK_N.
2760         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
2761         (__libc_msgsnd): Don't use CHECK_N.
2762         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
2763         <bp-checks.h>.
2764         (__libc_pread): Don't use CHECK_N.
2765         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
2766         include <bp-checks.h>.
2767         (__libc_pread64): Don't use CHECK_N.
2768         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
2769         include <bp-checks.h>.
2770         (__libc_pwrite): Don't use CHECK_N.
2771         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
2772         include <bp-checks.h>.
2773         (__libc_pwrite64): Don't use CHECK_N.
2774         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
2775         <bp-checks.h>.
2776         (__libc_pread): Don't use CHECK_N.
2777         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
2778         include <bp-checks.h>.
2779         (__libc_pread64): Don't use CHECK_N.
2780         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
2781         include <bp-checks.h>.
2782         (__libc_pwrite): Don't use CHECK_N.
2783         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
2784         include <bp-checks.h>.
2785         (__libc_pwrite64): Don't use CHECK_N.
2786         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
2787         (do_pread): Don't use CHECK_N.
2788         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
2789         (do_pread64): Don't use CHECK_N.
2790         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
2791         (do_pwrite): Don't use CHECK_N.
2792         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
2793         (do_pwrite64): Don't use CHECK_N.
2794         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
2795         (__libc_readv): Don't use CHECK_N.
2796         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
2797         (semop): Don't use CHECK_N.
2798         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
2799         <bp-checks.h>.
2800         (semtimedop): Don't use CHECK_N.
2801         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
2802         (__libc_pread): Don't use CHECK_N.
2803         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
2804         <bp-checks.h>.
2805         (__libc_pread64): Don't use CHECK_N.
2806         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
2807         <bp-checks.h>.
2808         (__libc_pwrite): Don't use CHECK_N.
2809         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
2810         <bp-checks.h>.
2811         (__libc_pwrite64): Don't use CHECK_N.
2812         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
2813         <bp-checks.h>.
2814         (__libc_msgrcv): Don't use CHECK_N.
2815         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
2816         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
2817         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
2818         (__libc_writev): Don't use CHECK_N.
2819
2820 2013-02-08  Roland McGrath  <roland@hack.frob.com>
2821
2822         * string/strcpy.c: Removed unused variable.
2823
2824         * Makeconfig (+sysdep-includes): Define with := rather than =.
2825         Use an existing include/ subdir of each sysdeps dir before it.
2826
2827 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
2828
2829         * nscd/connection.c (register_traced_file): Comment function.
2830         [HAVE_INOTIFY] (union __inev): Define.
2831         [HAVE_INOTIFY] (inotify_check_files): New function.
2832         [HAVE_INOTIFY] (clear_db_cache): Likewise.
2833         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
2834         clear_db_cache.
2835         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
2836
2837 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
2838
2839         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
2840         loaded if not already and that a failure is permanent.
2841
2842 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
2843
2844         [BZ #15006]
2845         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
2846         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
2847
2848 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
2849
2850         [BZ #13550]
2851         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
2852         (CHECK_1_NULL_OK): Likewise.
2853         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
2854         (__fxstat): Do not use CHECK_1.
2855         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
2856         <bp-checks.h>.
2857         (___fxstat64): Do not use CHECK_1.
2858         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
2859         <bp-checks.h>.
2860         (__fxstatat): Do not use CHECK_1.
2861         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
2862         <bp-checks.h>.
2863         (__fxstatat64): Do not use CHECK_1.
2864         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
2865         <bp-checks.h>.
2866         (__fxstat): Do not use CHECK_1.
2867         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
2868         <bp-checks.h>.
2869         (__fxstatat): Do not use CHECK_1.
2870         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
2871         <bp-checks.h>.
2872         (__getresgid): Do not use CHECK_1.
2873         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
2874         <bp-checks.h>.
2875         (__getresuid): Do not use CHECK_1.
2876         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
2877         <bp-checks.h>.
2878         (__lxstat): Do not use CHECK_1.
2879         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
2880         <bp-checks.h>.
2881         (__old_msgctl): Do not use CHECK_1.
2882         (__new_msgctl): Likewise.
2883         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
2884         <bp-checks.h>.
2885         (__new_setrlimit): Do not use CHECK_1.
2886         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
2887         <bp-checks.h>.
2888         (__old_shmctl): Do not use CHECK_1.
2889         (__new_shmctl): Likewise.
2890         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
2891         <bp-checks.h>.
2892         (__xstat): Do not use CHECK_1.
2893         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
2894         (__lxstat): Do not use CHECK_1.
2895         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
2896         <bp-checks.h>.
2897         (___lxstat64): Do not use CHECK_1.
2898         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
2899         (__old_msgctl): Do not use CHECK_1.
2900         (__new_msgctl): Likewise.
2901         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
2902         <bp-checks.h>.
2903         (__gettimeofday): Do not use CHECK_1.
2904         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
2905         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
2906         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
2907         <bp-checks.h>.
2908         (__gettimeofday): Do not use CHECK_1.
2909         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
2910         (__old_shmctl): Do not use CHECK_1_NULL_OK.
2911         (__new_shmctl): Do not use CHECK_1.
2912         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
2913         <bp-checks.h>.
2914         (do_sigtimedwait): Do not use CHECK_1.
2915         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
2916         <bp-checks.h>.
2917         (do_sigwaitinfo): Do not use CHECK_1.
2918         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
2919         <bp-checks.h>.
2920         (msgctl): Do not use CHECK_1.
2921         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
2922         <bp-checks.h>.
2923         (shmctl): Do not use CHECK_1.
2924         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
2925         (ustat): Do not use CHECK_1.
2926         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
2927         <bp-checks.h>.
2928         (__fxstat): Do not use CHECK_1.
2929         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
2930         <bp-checks.h>.
2931         (__fxstatat): Do not use CHECK_1.
2932         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
2933         <bp-checks.h>.
2934         (__lxstat): Do not use CHECK_1.
2935         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
2936         <bp-checks.h>.
2937         (__xstat): Do not use CHECK_1.
2938         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
2939         (__xstat): Do not use CHECK_1.
2940         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
2941         (___xstat64): Do not use CHECK_1.
2942
2943         [BZ #13550]
2944         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
2945         definitions.
2946         (CHECK_BOUNDS_HIGH): Likewise.
2947         * string/strcpy.c: Do not include <bp-checks.h>.
2948         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
2949
2950 2013-02-07  Roland McGrath  <roland@hack.frob.com>
2951
2952         * nscd/nscd-client.h (__nscd_drop_map_ref):
2953         Add __attribute__ ((unused)).
2954         * nis/nss-nisplus.h (niserr2nss): Likewise.
2955
2956         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
2957         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
2958
2959         * csu/libc-tls.c (init_static_tls, init_slotinfo):
2960         Remove inline keyword.
2961         * include/rounding-mode.h (round_away): Likewise.
2962         * libio/wfileops.c (adjust_wide_data): Likewise.
2963         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
2964         (__m128i_strloadu_tolower): Likewise.
2965         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
2966         (__m128i_strloadu_tolower): Likewise.
2967         * time/mktime.c (ydhms_diff): Likewise.
2968         * locale/elem-hash.h (elem_hash): Likewise.
2969         * locale/setlocale.c (setdata): Likewise.
2970         * posix/regex_internal.h (re_string_char_size_at): Likewise.
2971         (re_string_wchar_at): Likewise.
2972         (bitset_not, bitset_merge, bitset_mask): Likewise.
2973         [!(__GNUC__ > 3)] (inline): Remove macro.
2974         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
2975         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
2976         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
2977         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
2978         * string/memcmp.c (memcmp_bytes): Likewise.
2979         * locale/programs/locarchive.c (compute_hashval): Likewise.
2980         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
2981         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
2982         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
2983         * nss/getent.c (print_rpc, print_protocols): Likewise.
2984         (print_passwd, print_group, print_aliases): Likewise.
2985         * nis/nss-nisplus.h (niserr2nss): Likewise.
2986         * nscd/connections.c (restart_p): Likewise.
2987         Change return type to bool.
2988
2989 2013-02-05  Roland McGrath  <roland@hack.frob.com>
2990
2991         * Makeconfig (all-Depend-files): Add existing
2992         $(sorted-subdirs:=/Depend) files.
2993         (all-subdirs): Remove nss.
2994         * sysdeps/unix/inet/Subdirs: Add it here instead.
2995         * hesiod/Depend: New file.
2996
2997         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
2998         instead of calling alloca.
2999
3000         * io/lseek.c (__lseek): Rename to __libc_lseek.
3001         Define __lseek as an alias.
3002
3003         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
3004
3005 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
3006
3007         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
3008         else clause and remove check for non-standard endianness.
3009
3010 2013-02-04  David S. Miller  <davem@davemloft.net>
3011
3012         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3013
3014 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
3015
3016         [BZ #13550]
3017         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
3018         (__ubp_memchr): Remove prototype.
3019         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
3020         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
3021         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
3022         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
3023         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
3024         Remove alias.
3025         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
3026         (__ubp_memchr): Likewise.
3027         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
3028         (__ubp_memchr): Likewise.
3029         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
3030         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
3031         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
3032         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
3033         CHECK_STRING.
3034         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
3035         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
3036         (__getcwd): Do not use CHECK_STRING.
3037         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
3038         <bp-checks.h>.
3039         (__real_chown): Do not use CHECK_STRING.
3040         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
3041         <bp-checks.h>.
3042         (fchownat): Do not use CHECK_STRING.
3043         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
3044         CHECK_STRING.
3045         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
3046         <bp-checks.h>.
3047         (__lchown): Do not use CHECK_STRING.
3048         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
3049         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
3050         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
3051         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
3052         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
3053         include <bp-checks.h>.
3054         (truncate64): Do not use CHECK_STRING.
3055         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
3056         <bp-checks.h>.
3057         (__real_chown): Do not use CHECK_STRING.
3058         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
3059         <bp-checks.h>.
3060         (__lchown): Do not use CHECK_STRING.
3061         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
3062         <bp-checks.h>.
3063         (__chown): Do not use CHECK_STRING.
3064         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
3065         <bp-checks.h>.
3066         (truncate64): Do not use CHECK_STRING.
3067         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
3068         Likewise.
3069         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
3070         (__xmknod): Do not use CHECK_STRING.
3071         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
3072         <bp-checks.h>.
3073         (__xmknodat): Do not use CHECK_STRING.
3074         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
3075         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
3076
3077 2013-02-04  Andreas Schwab  <schwab@suse.de>
3078
3079         [BZ #14142]
3080         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
3081         * include/netdb.h: Likewise for h_errno.
3082         * elf/tst-stackguard1.c: Include <tls.h>.
3083
3084 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3085
3086         * elf/link.h (struct link_map): Extend the l_addr comment.
3087         * include/link.h (struct link_map): Likewise.
3088
3089 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
3090
3091         [BZ #13550]
3092         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
3093         (BOUNDED_1): Remove macro.
3094         * debug/backtrace.c: Don't include <bp-checks.h>.
3095         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
3096         (__backtrace): Likewise.
3097         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
3098         <bp-checks.h>.
3099         (__backtrace): Don't use BOUNDED_1.
3100         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
3101         <bp-checks.h>.
3102         (__backtrace): Don't use BOUNDED_1.
3103         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
3104         (__backtrace): Don't use BOUNDED_1.
3105         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
3106         (shmat): Don't use BOUNDED_N.
3107
3108 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
3109
3110         [BZ #13550]
3111         * sysdeps/generic/bp-start.h: Remove file.
3112         * csu/libc-start.c: Don't include <bp-start.h>.
3113         (LIBC_START_MAIN): Set up __environ directly instead of using
3114         INIT_ARGV_and_ENVIRON.
3115         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
3116         <bp-start.h>.
3117
3118         [BZ #13550]
3119         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
3120         definitions.
3121         (CHECK_FCNTL): Likewise.
3122         (CHECK_N_PAGES): Likewise.
3123
3124         [BZ #13550]
3125         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
3126         definitions.
3127         (CHECK_SIGSET_NULL_OK): Likewise.
3128         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
3129         <bp-checks.h>.
3130         (sigpending): Don't use CHECK_SIGSET.
3131         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
3132         <bp-checks.h>.
3133         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
3134         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
3135         <bp-checks.h>.
3136         (do_sigsuspend): Don't use CHECK_SIGSET.
3137         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
3138         use CHECK_SIGSET.
3139         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
3140         (do_sigwait): Don't use CHECK_SIGSET.
3141         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
3142         use CHECK_SIGSET.
3143         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
3144         include <bp-checks.h>.
3145         (sigpending): Don't use CHECK_SIGSET.
3146         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
3147         include <bp-checks.h>.
3148         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
3149         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
3150         <bp-checks.h>.
3151         (sigpending): Don't use CHECK_SIGSET.
3152         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
3153         <bp-checks.h>.
3154         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
3155
3156         [BZ #13550]
3157         * sysdeps/generic/bp-semctl.h: Remove file.
3158         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
3159         <bp-checks.h> and <bp-semctl.h>.
3160         (__old_semctl): Don't use CHECK_SEMCTL.
3161         (__new_semctl): Likewise.
3162         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
3163         and <bp-semctl.h>.
3164         (__old_semctl): Don't use CHECK_SEMCTL.
3165         (__new_semctl): Likewise.
3166         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
3167         <bp-checks.h> and <bp-semctl.h>.
3168         (__old_semctl): Don't use CHECK_SEMCTL.
3169         (__new_semctl): Likewise.
3170         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
3171         <bp-checks.h> and <bp-semctl.h>.
3172         (semctl): Don't use CHECK_SEMCTL.
3173
3174         [BZ #13550]
3175         * Makerules (elide-bp-thunks): Remove variable.
3176         (elide-routines.oS): Don't use $(elide-bp-thunks).
3177         (elide-routines.os): Likewise.
3178         (elide-routines.o): Likewise.
3179         (elide-routines.op): Likewise.
3180         (elide-routines.og): Likewise.
3181         (objects): Don't use $(bp-thunks).
3182         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
3183         include.
3184         (common-generated): Do not add s-proto-bp.d.
3185         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
3186         (int): Likewise.
3187         (typ): Likewise.
3188         Do not generate makefile rules for bounded-pointer thunks.
3189         * sysdeps/generic/bp-thunks.h: Remove file.
3190         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
3191         * sysdeps/unix/s-proto-bp.S: Likewise.
3192
3193         [BZ #15062]
3194         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
3195         parts of result separately when argument is not close to line from
3196         -i to i and one part of argument is small.
3197         * math/k_casinhf.c (__kernel_casinhf): Likewise.
3198         * math/k_casinhl.c (__kernel_casinhl): Likewise.
3199         * math/libm-test.inc (cacos_test): Add more tests.
3200         (casin_test): Likewise.
3201         (casinh_test): Likewise.
3202         * sysdeps/i386/fpu/libm-test-ulps: Update.
3203         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3204
3205 2013-01-31  David S. Miller  <davem@davemloft.net>
3206
3207         * po/de.po: Update from translation team.
3208
3209 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
3210
3211         * time/tzfile.c: Include stdint.h for SIZE_MAX.
3212
3213 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
3214
3215         * configure.in (_AC_PROG_CC_C89): New definition.
3216         * configure: Regenerate.
3217
3218         * configure.in (AC_PROG_CPP): New definition.
3219         * configure: Regenerate.
3220
3221 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
3222
3223         * debug/tst-backtrace.h: New file.
3224         * debug/tst-backtrace2.c: Include tst-backtrace.h.
3225         (ret): Remove variable.
3226         (x): Likewise.
3227         (FAIL): Remove macro.
3228         (NO_INLINE): Likewise.
3229         (fn1): Use match function instead of strstr.
3230         * debug/tst-backtrace3.c: Include tst-backtrace.h.
3231         (ret): Remove variable.
3232         (x): Likewise.
3233         (FAIL): Remove macro.
3234         (NO_INLINE): Likewise.
3235         (fn): Use match function instead of strstr.
3236         * debug/tst-backtrace4.c: Include tst-backtrace.h.
3237         (ret): Remove variable.
3238         (x): Likewise.
3239         (FAIL): Remove macro.
3240         (NO_INLINE): Likewise.
3241         (handle_signal): Use match function instead of strstr.
3242         * debug/tst-backtrace5.c: Include tst-backtrace.h.
3243         (ret): Remove variable.
3244         (x): Likewise.
3245         (FAIL): Remove macro.
3246         (NO_INLINE): Likewise.
3247         (handle_signal): Use match function instead of strstr.
3248
3249 2013-01-23  Roland McGrath  <roland@hack.frob.com>
3250
3251         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
3252
3253 2013-01-23  David S. Miller  <davem@davemloft.net>
3254
3255         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
3256         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
3257         argument of CAS if possible.
3258         * sysdeps/sparc/sparc64/bits/atomic.h
3259         (__arch_compare_and_exchange_val_32_acq): Likewise.
3260         (__arch_compare_and_exchange_val_64_acq): Likewise.
3261
3262 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
3263
3264         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
3265         * sysdeps/posix/ulimit.c: ... this.
3266         Include <limits.h>.
3267         * sysdeps/unix/bsd/ulimit.c: Remove file.
3268
3269 2013-01-23  Adam Conrad  <adconrad@0c3.net>
3270
3271         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
3272         (LDFLAGS-tst-array5): Likewise.
3273
3274 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
3275
3276         [BZ #15036]
3277         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
3278         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
3279         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
3280         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
3281
3282 2013-01-21  David S. Miller  <davem@davemloft.net>
3283
3284         * sysdeps/sparc/backtrace.c: New file.
3285         * sysdeps/sparc/sparc32/backtrace.h: New file.
3286         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
3287         * sysdeps/sparc/sparc64/backtrace.h: New file.
3288         * sysdeps/sparc/sparc64/backtrace.c: Delete.
3289         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
3290         -funwind-tables.
3291
3292 2013-01-21  Andreas Schwab  <schwab@suse.de>
3293
3294         [BZ #15020]
3295         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
3296         closed its stdout.
3297
3298 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
3299
3300         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
3301         "mpa2.h".
3302         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
3303
3304 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
3305             Mark Mitchell  <mark@codesourcery.com>
3306             Tom de Vries  <tom@codesourcery.com>
3307             Paul Pluzhnikov  <ppluzhnikov@google.com>
3308
3309         * debug/tst-backtrace2.c: New file.
3310         * debug/tst-backtrace3.c: Likewise.
3311         * debug/tst-backtrace4.c: Likewise.
3312         * debug/tst-backtrace5.c: Likewise.
3313         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
3314         (CFLAGS-tst-backtrace3.c): Likewise.
3315         (CFLAGS-tst-backtrace4.c): Likewise.
3316         (CFLAGS-tst-backtrace5.c): Likewise.
3317         (LDFLAGS-tst-backtrace2): Likewise.
3318         (LDFLAGS-tst-backtrace3): Likewise.
3319         (LDFLAGS-tst-backtrace4): Likewise.
3320         (LDFLAGS-tst-backtrace5): Likewise.
3321         (tests): Add new tests tst-backtrace2, tst-backtrace3,
3322         tst-backtrace4 and tst-backtrace5.
3323
3324 2013-01-18  Anton Blanchard  <anton@samba.org>
3325             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
3326
3327         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
3328         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
3329         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
3330         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
3331         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
3332         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
3333         "+r" and remove output regs list as redundant.  Add explicit inline
3334         asm to specify register of return val to work around compiler codegen
3335         bug.  Remove (int) cast on return value.  Add return type parameter to
3336         use in macro so that this macro does not truncate return value for
3337         64-bit values.
3338         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
3339         pass to INTERNAL_VSYSCALL_NCS.
3340         (INLINE_VSYSCALL): Add 'long int' as return type to
3341         INTERNAL_VSYSCALL_NCS macro invocation.
3342         (INTERNAL_VSYSCALL): Add 'long int' as return type to
3343         INTERNAL_VSYSCALL_NCS macro invocation.
3344         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
3345
3346 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
3347
3348         [BZ #14496]
3349         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
3350         Fix application of SIMD FP exception mask.
3351
3352         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
3353         mp_no from a power of two.
3354         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
3355         __mpexp_twomm1.  Use __pow_mp.
3356
3357         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
3358         multiplication.
3359
3360 2013-01-17  David S. Miller  <davem@davemloft.net>
3361
3362         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3363
3364 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
3365
3366         [BZ #15023]
3367         * include/complex.h: Condition contents on [!_COMPLEX_H].
3368         (__kernel_casinhf): New prototype.
3369         (__kernel_casinh): Likewise.
3370         (__kernel_casinhl): Likewise.
3371         * math/Makefile (libm_calls): Add k_casinh.
3372         * math/k_casinh.c: New file.
3373         * math/k_casinhf.c: Likewise.
3374         * math/k_casinhl.c: Likewise.
3375         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
3376         finite nonzero arguments.
3377         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
3378         finite nonzero arguments.
3379         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
3380         finite nonzero arguments.
3381         * math/s_casinh.c: Do not include <float.h>.
3382         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
3383         * math/s_casinhf.c: Do not include <float.h>.
3384         (__casinhf): Move code for finite nonzero arguments to
3385         k_casinhf.c.
3386         * math/s_casinhl.c: Do not include <float.h>.
3387         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
3388         redefine.
3389         (__casinhl): Move code for finite nonzero arguments to
3390         k_casinhl.c.
3391         * math/libm-test.inc (cacos_test): Add more tests.
3392         * sysdeps/i386/fpu/libm-test-ulps: Update.
3393         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3394
3395 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
3396
3397         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
3398         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
3399         [!HAVE_MREMAP]: Remove [defined linux] case.
3400         * malloc/arena.c: Do not include <malloc-sysdep.h>.
3401
3402 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
3403
3404         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
3405
3406 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
3407
3408         * elf/elf.h (R_386_SIZE32): New relocation.
3409         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
3410         R_386_SIZE32.
3411         (elf_machine_rela): Likewise.
3412         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
3413         R_X86_64_SIZE64 and R_X86_64_SIZE32.
3414
3415 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
3416
3417         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
3418         (FP_FAST_FMA): Do not define.
3419         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
3420         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
3421         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
3422         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
3423         !_SOFT_FLOAT]: Likewise.
3424         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
3425         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
3426         value.
3427         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
3428         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
3429         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
3430         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
3431         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
3432         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
3433         file.
3434
3435 2013-01-16  Andreas Schwab  <schwab@suse.de>
3436
3437         [BZ #14327]
3438         * include/stdlib.h (__mktemp): Add declaration.
3439         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
3440         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
3441
3442 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
3443
3444         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
3445         definitions.
3446         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
3447         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
3448         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
3449         definitions here.
3450         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
3451         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
3452         definitions.
3453         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
3454         and ONE.
3455         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
3456         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
3457         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
3458         definitions.
3459         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
3460         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
3461         definitions.
3462         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
3463
3464         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
3465
3466 2013-01-15  David S. Miller  <davem@davemloft.net>
3467
3468         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
3469         trunc{,f} to libm-sysdep_routes.
3470         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
3471         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
3472         file.
3473         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
3474         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
3475         file.
3476         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
3477         file.
3478         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
3479         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
3480         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
3481         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
3482         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
3483         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
3484         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
3485         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
3486
3487         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
3488         nearbyint{,f} to libm-sysdep_routes.
3489         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
3490         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
3491         New file.
3492         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
3493         file.
3494         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
3495         New file.
3496         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
3497         file.
3498         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
3499         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
3500         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
3501         file.
3502         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
3503         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
3504         file.
3505         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
3506         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
3507         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
3508
3509         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
3510         libc_feholdexcept and libc_fesetenv.
3511
3512 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
3513
3514         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
3515
3516 2013-01-14  David S. Miller  <davem@davemloft.net>
3517
3518         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
3519         (SPARC_ASM_VIS2_IFUNC): Likewise.
3520         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
3521         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
3522         use of 'siam' instruction.
3523         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
3524         Likewise.
3525         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
3526         Likewise.
3527         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
3528         Likewise.
3529         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
3530         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
3531         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
3532         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
3533         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
3534         file.
3535         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
3536         file.
3537         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
3538         file.
3539         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
3540         file.
3541         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
3542         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
3543         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
3544         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
3545         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
3546         new VIS2 routines.
3547         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
3548         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
3549         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
3550         Likewise.
3551         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
3552         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
3553         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
3554         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
3555         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
3556         routines to libm-sysdep_routines.
3557         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
3558
3559         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
3560         fdim/fdimf to libm-sysdep_routines.
3561         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
3562         file.
3563         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
3564         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
3565         file.
3566         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
3567         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
3568         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
3569         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
3570         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
3571         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
3572         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
3573
3574 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
3575
3576         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
3577         to optimize copies.
3578
3579         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
3580         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
3581         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
3582
3583         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
3584         local variable MPTWO.
3585         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
3586         Likewise.
3587
3588 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
3589
3590         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
3591         GLOB_NOESCAPE.
3592
3593 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
3594
3595         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
3596
3597 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
3598
3599         * manual/pattern.texi (glob_t): Document gl_flags.
3600         (glob64_t): Likewise.
3601
3602 2013-01-11  David S. Miller  <davem@davemloft.net>
3603
3604         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
3605         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
3606         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
3607         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
3608         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
3609         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
3610         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
3611         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
3612         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
3613         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
3614         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
3615         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
3616         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
3617
3618         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
3619         sparc V9 rather than using V8 code.
3620         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
3621         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
3622
3623         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
3624         Move to...
3625         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
3626         Here.
3627
3628 2013-01-11  Roland McGrath  <roland@hack.frob.com>
3629
3630         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
3631         not in the main loop.
3632         * configure: Regenerated.
3633
3634 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
3635
3636         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
3637         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
3638         to just #else.
3639         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
3640         [!__GLIBC_HAVE_LONG_LONG] case.
3641         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
3642         condition to just #else.
3643         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
3644         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
3645         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
3646         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
3647         unconditional.
3648         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
3649         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
3650         #elif condition to just #else.
3651         * sysdeps/unix/sysv/linux/sys/sysmacros.h
3652         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
3653         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
3654         #elif condition to just #else.
3655
3656 2013-01-11  Steve Ellcey  <sellcey@mips.com>
3657
3658         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
3659         (EF_MIPS_ARCH_64): Fix value.
3660         (EF_MIPS_ARCH_32R2): New.
3661         (EF_MIPS_ARCH_64R2): New.
3662
3663 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
3664
3665         * Makeconfig (+link-pie-before-libc): New.
3666         (+link-pie-after-libc): Likewise.
3667         (+link-pie-tests): Likewise.
3668         (+link-pie): Rewritten.
3669         (link-before-libc): Remove $(config-LDFLAGS).
3670         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
3671         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
3672         (config-LDFLAGS): Renamed to ...
3673         (rtld-LDFLAGS): This.
3674         (rtld-tests-LDFLAGS): New macro.
3675         (link-libc-rpath-link): Likewise.
3676         (link-libc-tests-rpath-link): Likewise.
3677         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
3678         (link-libc): Prepand $(link-libc-rpath-link).
3679         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
3680         (test-program-prefix): New macro.
3681         (test-via-rtld-prefix): Likewise.
3682         (test-program-cmd): Likewise.
3683         (host-test-program-cmd): Likewise.
3684         * Makefile ($(common-objpfx)testrun.sh): Replace
3685         $(run-program-prefix) with $(test-program-prefix).
3686         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
3687         $(rtld-LDFLAGS).
3688         ($(common-objpfx)shlib.lds): Likewise.
3689         (build-module-helper): Likewise.
3690         ($(common-objpfx)format.lds): Likewise.
3691         * Rules (binaries-pie-tests): New.
3692         (binaries-pie-notests): Likewise.
3693         (binaries-pie): Rewritten.
3694         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
3695         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
3696         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
3697         (make-test-out): Replace $(host-built-program-cmd) with
3698         $(host-test-program-cmd).
3699         * config.make.in (build-hardcoded-path-in-tests): New variable.
3700         * configure.in (--enable-hardcoded-path-in-tests): New configure
3701         option.
3702         (hardcoded_path_in_tests): New AC_SUBST.
3703         * configure: Regenerated.
3704         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
3705         $(built-program-cmd) with $(test-program-cmd).
3706         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
3707         (test_program_cmd): This.
3708         * elf/Makefile ($(objpfx)order.out): Run test with
3709         $(test-program-prefix).
3710         ($(objpfx)order2.out): Likewise.
3711         ($(objpfx)tst-initorder.out): Likewise.
3712         ($(objpfx)tst-initorder2.out): Likewise.
3713         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
3714         $(test-program-cmd).
3715         ($(objpfx)tst-array1-static.out): Likewise.
3716         ($(objpfx)tst-array2.out): Likewise.
3717         ($(objpfx)tst-array3.out): Likewise.
3718         ($(objpfx)tst-array4.out): Likewise.
3719         ($(objpfx)tst-array5.out): Likewise.
3720         ($(objpfx)tst-array5-static.out): Likewise.
3721         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
3722         $(test-program-cmd).
3723         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
3724         $(run-program-prefix) with $(test-program-prefix).
3725         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
3726         (test_program_prefix): This.
3727         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
3728         $(run-program-prefix) with $(test-program-prefix).
3729         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
3730         (test_program_prefix): This.
3731         * iconvdata/tst-tables.sh: Likewise.
3732         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
3733         $(run-program-prefix) with $(test-program-prefix).
3734         ($(objpfx)tst-translit.out): Likewise.
3735         ($(objpfx)tst-gettext2.out): Likewise.
3736         ($(objpfx)tst-gettext4.out): Likewise.
3737         ($(objpfx)tst-gettext6.out): Likewise.
3738         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
3739         (test_program_prefix): This.
3740         * intl/tst-gettext2.sh: Likewise.
3741         * intl/tst-gettext4.sh  Likewise.
3742         * intl/tst-gettext6.sh: Likewise.
3743         * intl/tst-translit.sh: Likewise.
3744         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
3745         with $(test-program-cmd).
3746         * libio/Makefile ($(objpfx)test-freopen.out): Replace
3747         $(run-program-prefix) with $(test-program-prefix).
3748         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
3749         (test_program_prefix): This.
3750         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
3751         $(run-program-prefix) with $(test-program-prefix).
3752         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
3753         (test_program_prefix): This.
3754         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
3755         * posix/Makefile ($(objpfx)globtest.out): Replace
3756         $(run-via-rtld-prefix) and $(test-wrapper) with
3757         $(test-program-prefix) and $(test-via-rtld-prefix).
3758         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
3759         $(test-program-prefix).
3760         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
3761         $(host-test-program-cmd).
3762         (tst-spawn-ARGS): Likewise.
3763         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
3764         $(test-program-prefix).
3765         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
3766         (test_via_rtld_prefix): This.
3767         (test_wrapper): Renamed to ...
3768         (test_program_prefix): This.
3769         (run_program_prefix): Replaced by test_program_prefix.
3770         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
3771         (test_program_prefix): This.
3772         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
3773         with $(host-test-program-cmd).
3774         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
3775         $(run-program-prefix) with $(test-program-prefix).
3776         ($(objpfx)tst-printf.out): Likewise.
3777         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
3778         $(test-program-cmd).
3779         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
3780         (test_program_prefix): This.
3781         * stdio-common/tst-unbputc.sh: Likewise.
3782         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
3783         $(run-program-prefix) with $(test-program-prefix).
3784         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
3785         (test_program_prefix): This.
3786         * string/Makefile ($(objpfx)tst-svc.out):  Replace
3787         $(built-program-cmd) with $(test-program-cmd).
3788
3789 2013-01-11  Andreas Jaeger  <aj@suse.de>
3790
3791         [BZ #15003]
3792         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
3793         value. Sync with Linux 3.7.
3794
3795 2013-01-10  David S. Miller  <davem@davemloft.net>
3796
3797         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
3798         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
3799         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
3800
3801 2013-01-10  Roland McGrath  <roland@hack.frob.com>
3802
3803         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
3804         never set.
3805         * configure: Regenerated.
3806
3807 2013-01-10  David S. Miller  <davem@davemloft.net>
3808
3809         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
3810         sparc V9 rather than using V8 code.
3811         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
3812         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
3813
3814 2013-01-10  Roland McGrath  <roland@hack.frob.com>
3815
3816         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
3817         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
3818         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
3819         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
3820         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
3821         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
3822         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
3823         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
3824         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
3825         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
3826         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
3827         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
3828         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
3829         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
3830         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
3831         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
3832         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
3833         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
3834         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
3835         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
3836         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
3837         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
3838         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
3839         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
3840         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
3841         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
3842         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
3843
3844 2013-01-10  David S. Miller  <davem@davemloft.net>
3845
3846         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3847
3848 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
3849
3850         * posix/Makefile (tests-static): New variable.
3851         (tests): Add $(tests-static).
3852         (tst-exec-static-ARGS): New variable.
3853         (tst-spawn-static-ARGS): Likewise.
3854         * posix/tst-exec-static.c: New file.
3855         * posix/tst-spawn-static.c: Likewise.
3856         * posix/tst-exec.c: Support run directly.
3857         * posix/tst-spawn.c: Likewise.
3858
3859 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
3860
3861         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
3862         long.
3863         * math/bits/mathcalls.h (llrint): Likewise.
3864         (llround): Likewise.
3865         * stdlib/stdlib.h (struct drand48_data): Likewise.
3866         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
3867         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
3868         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
3869         Likewise.
3870         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
3871         Likewise.
3872         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
3873         (elf_greg_t): Likewise.
3874         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
3875         (__jmp_buf): Likewise.
3876         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
3877         definitions.
3878         (llrint): Likewise, for all definitions.
3879         (llrintl): Likewise.
3880
3881         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
3882         Remove [__GNUC__] condition.
3883         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
3884         condition to just [__USE_ISOC99].
3885         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
3886
3887 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
3888
3889         [BZ #14200]
3890         * sysdeps/unix/sysv/linux/x86/bits/environments.h
3891         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
3892         defined.
3893         (_POSIX_V6_ILP32_OFF32): Likewise.
3894         (_XBS5_ILP32_OFF32): Likewise.
3895         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
3896         (__ILP32_OFFBIG_LDFLAGS): Likewise.
3897
3898 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
3899
3900         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
3901
3902         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
3903         doubles __mpexp_twomm1.  Adjust usage.
3904         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
3905         Remove.
3906
3907 2013-01-10  Andreas Schwab  <schwab@suse.de>
3908
3909         [BZ #14964]
3910         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
3911         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
3912
3913 2013-01-09  David S. Miller  <davem@davemloft.net>
3914
3915         [BZ #15003]
3916         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS,
3917         TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT,
3918         TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS,
3919         TCP_FASTOPEN): Define.
3920         (tcp_repair_opt): New structure.
3921         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
3922         enum values.
3923         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE,
3924         TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN,
3925         TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
3926         (tcp_cookie_transactions): New structure.
3927
3928 2013-01-09  Anton Blanchard  <anton@samba.org>
3929
3930         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
3931         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
3932         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
3933         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
3934
3935 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
3936
3937         * include/features.h (__USE_ANSI): Remove.
3938
3939 2013-01-09  Roland McGrath  <roland@hack.frob.com>
3940
3941         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
3942
3943         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
3944
3945 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
3946
3947         * sysdeps/s390/fpu/libm-test-ulps: Update.
3948
3949         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3950
3951         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
3952         (__acr): Likewise.
3953         (__cpy): Likewise.
3954         (norm): Likewise.
3955         (denorm): Likewise.
3956         (__mp_dbl): Likewise.
3957         (__dbl_mp): Likewise.
3958         (add_magnitudes): Likewise.
3959         (sub_magnitudes): Likewise.
3960         (__add): Likewise.
3961         (__sub): Likewise.
3962         (__mul): Likewise.
3963         (__inv): Likewise.
3964         (__dvd): Likewise.
3965         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
3966         (__acr): Likewise.
3967         (__cpy): Likewise.
3968         (norm): Likewise.
3969         (denorm): Likewise.
3970         (__mp_dbl): Likewise.
3971         (__dbl_mp): Likewise.
3972         (add_magnitudes): Likewise.
3973         (sub_magnitudes): Likewise.
3974         (__add): Likewise.
3975         (__sub): Likewise.
3976         (__mul): Likewise.
3977         (__inv): Likewise.
3978         (__dvd): Likewise.
3979         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
3980         (__acr): Likewise.
3981         (__cpy): Likewise.
3982         (norm): Likewise.
3983         (denorm): Likewise.
3984         (__mp_dbl): Likewise.
3985         (__dbl_mp): Likewise.
3986         (add_magnitudes): Likewise.
3987         (sub_magnitudes): Likewise.
3988         (__add): Likewise.
3989         (__sub): Likewise.
3990         (__mul): Likewise.
3991         (__inv): Likewise.
3992         (__dvd): Likewise.
3993
3994 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
3995
3996         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
3997         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
3998         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
3999         2 && __USE_EXTERN_INLINES]: Likewise.
4000
4001 2013-01-08  Andreas Jaeger  <aj@suse.de>
4002
4003         [BZ# 14985]
4004         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
4005         Remove.
4006         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
4007         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
4008
4009 2013-01-07  Anton Blanchard  <anton@samba.org>
4010
4011         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
4012         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
4013         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
4014         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
4015         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
4016         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
4017         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
4018         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
4019         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
4020         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
4021         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
4022         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
4023         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
4024         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
4025         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
4026         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
4027         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
4028         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
4029         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
4030         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
4031         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
4032         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
4033         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
4034         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
4035         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
4036         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
4037         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
4038         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
4039         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
4040         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
4041         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
4042         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
4043         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
4044         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
4045         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
4046         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
4047         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
4048         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
4049         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
4050         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
4051         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
4052         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
4053         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
4054
4055 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
4056
4057         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
4058         (__MALLOC_PMT): Likewise.
4059         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
4060         [__GNUC__], only on [_LIBC].
4061         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
4062         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
4063         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
4064         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
4065         forward declaration.
4066         (realloc_hook_ini): Likewise.
4067         (memalign_hook_ini): Likewise.
4068         (__libc_memalign): Do not use __MALLOC_PMT in variable
4069         declaration.
4070         (__libc_valloc): Likewise.
4071         (__libc_pvalloc): Likewise.
4072         (__libc_calloc): Likewise.
4073         (__posix_memalign): Likewise.
4074
4075         [BZ #14996]
4076         * math/s_casinh.c: Include <float.h>.
4077         (__casinh): Do not do computation with squaring and square root
4078         for large arguments.
4079         * math/s_casinhf.c: Include <float.h>.
4080         (__casinhf): Do not do computation with squaring and square root
4081         for large arguments.
4082         * math/s_casinhl.c: Include <float.h>.
4083         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
4084         (__casinhl): Do not do computation with squaring and square root
4085         for large arguments.
4086         * math/libm-test.inc (casin_test): Add more tests.
4087         (casinh_test): Likewise.
4088         * sysdeps/i386/fpu/libm-test-ulps: Update.
4089         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4090
4091 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
4092
4093         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
4094         (__x86_64_raw_data_cache_size): Likewise.
4095         (__x86_64_data_cache_size_half): Likewise.
4096         (__x86_64_raw_data_cache_size_half): Likewise.
4097         (__x86_64_shared_cache_size): Likewise.
4098         (__x86_64_raw_shared_cache_size): Likewise.
4099         (__x86_64_shared_cache_size_half): Likewise.
4100         (__x86_64_raw_shared_cache_size_half): Likewise.
4101         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
4102         to ...
4103         (__x86_data_cache_size): This.
4104         (__x86_64_raw_data_cache_size): Renamed to ...
4105         (__x86_raw_data_cache_size): This.
4106         (__x86_64_data_cache_size_half): Renamed to ...
4107         (__x86_data_cache_size_half): This.
4108         (__x86_64_raw_data_cache_size_half): Renamed to ...
4109         (__x86_raw_data_cache_size_half): This.
4110         (__x86_64_shared_cache_size): Renamed to ...
4111         (__x86_shared_cache_size): This.
4112         (__x86_64_raw_shared_cache_size): Renamed to ...
4113         (__x86_raw_shared_cache_size): This.
4114         (__x86_64_shared_cache_size_half): Renamed to ...
4115         (__x86_shared_cache_size_half): This.
4116         (__x86_64_raw_shared_cache_size_half): Renamed to ...
4117         (__x86_raw_shared_cache_size_half): This.
4118         * sysdeps/x86_64/memcpy.S: Updated.
4119         * sysdeps/x86_64/memset.S: Likewise.
4120         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
4121         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
4122         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
4123
4124 2013-01-04  David S. Miller  <davem@davemloft.net>
4125
4126         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4127
4128 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
4129
4130         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
4131         1 to avoid redefinition warning.
4132         (__USE_GNU): Don't define.
4133         (init_signaling_nan): Protoize.
4134
4135         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4136
4137 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
4138
4139         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
4140         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
4141         (__cpymn): Likewise.
4142         (norm): Remove commented code.
4143         (denorm): Likewise.
4144         (__mp_dbl): Likewise.
4145         (__inv): Likewise.
4146         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
4147         (__cpymn): Likewise.
4148         (norm): Remove commented code.
4149         (denorm): Likewise.
4150         (__mp_dbl): Likewise.
4151         (__inv): Likewise.
4152
4153         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
4154         mp_no value for 1.0 and 2.0.
4155         (norm): Use RADIXI instead of radixi.d.
4156         (denorm): Likewise.
4157         (__mul): Use 0.0 instead of zero.d.
4158         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
4159         mp_no value for 1.0 and 2.0.
4160         (norm): Use RADIXI instead of radixi.d.
4161         (denorm): Likewise.
4162         (__mul): Use 0.0 instead of zero.d.
4163
4164 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
4165
4166         [BZ #14994]
4167         * math/s_casinh.c (__casinh): Reduce finite argument to first
4168         quadrant then set signs of results at the end.
4169         * math/s_casinhf.c (__casinhf): Likewise.
4170         * math/s_casinhl.c (__casinhl): Likewise.
4171         * math/libm-test.inc (casin_test): Add more tests.
4172         (casinh_test): Likewise.
4173         * sysdeps/i386/fpu/libm-test-ulps: Update.
4174         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4175
4176 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
4177
4178         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
4179
4180         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
4181
4182         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
4183         declarations.
4184         (denorm): Likewise.
4185         (__mp_dbl): Likewise.
4186         (__inv): Likewise.
4187
4188         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
4189         and adjust the header comment.
4190
4191         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
4192         variable name from declaration.
4193
4194 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
4195
4196         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
4197         Initialize COMMON_CPUID_INDEX_7 element.
4198         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
4199         (CPUID_RTM): Likewise.
4200         (HAS_RTM): Likewise.
4201         (COMMON_CPUID_INDEX_7): New enum.
4202
4203 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
4204
4205         [BZ #14981]
4206         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
4207         size is zero, record memory as freed.
4208
4209 2013-01-03  Andreas Jaeger  <aj@suse.de>
4210
4211         * po/ia.po: Add new Interlingua translation.
4212
4213 2012-01-03  Allan McRae  <allan@archlinux.org>
4214
4215         * locale/programs/localedef.c: Fix description of '--posix' flag.
4216
4217 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
4218
4219         * NEWS: Update dates in second copyright notice.
4220         * README: Update copyright dates in example.
4221         * manual/libc.texinfo: Update copyright dates.
4222         * scripts/test-installation.pl: Update copyright date in --version
4223         output.
4224
4225         * hurd/ctty-input.c: Fix copyright notice formatting.
4226         * hurd/ctty-output.c: Likewise.
4227         * hurd/dtable.c: Likewise.
4228         * hurd/hurd-raise.c: Likewise.
4229         * hurd/hurdprio.c: Likewise.
4230         * hurd/msgportdemux.c: Likewise.
4231         * misc/sys/file.h: Likewise.
4232         * misc/sys/ioctl.h: Likewise.
4233         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
4234         * sysdeps/mach/hurd/chdir.c: Likewise.
4235         * sysdeps/mach/hurd/fchdir.c: Likewise.
4236         * sysdeps/mach/hurd/rename.c: Likewise.
4237         * sysdeps/mach/hurd/rmdir.c: Likewise.
4238         * sysdeps/mach/hurd/seekdir.c: Likewise.
4239         * sysdeps/mach/hurd/setsid.c: Likewise.
4240         * sysdeps/posix/wait3.c: Likewise.
4241
4242         * All files with FSF copyright notices: Update copyright dates
4243         using scripts/update-copyrights.
4244         * intl/plural.c: Regenerated.
4245         * locale/programs/charmap-kw.h: Likewise.
4246         * locale/programs/locfile-kw.h: Likewise.
4247
4248 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
4249
4250         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
4251         four values.
4252
4253         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
4254         calculation loop and add branch prediction.
4255
4256         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
4257         check access beyond bounds of m1np.
4258
4259         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
4260         MPTWO.
4261         (__inv): Remove local variable MPTWO to use the global
4262         constant.
4263         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
4264         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
4265         variable MPTWO.
4266         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
4267         MP3HALFS static const.
4268
4269 2013-01-01  David S. Miller  <davem@davemloft.net>
4270
4271         * po/ca.po: Update from translation team.
4272
4273 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
4274
4275         * scripts/update-copyrights: New file.
4276         * Makeconfig: Reformat copyright notice.
4277         * ctype/ctype.h: Likewise.
4278         * debug/swprintf_chk.c: Likewise.
4279         * elf/dl-cache.c: Likewise.
4280         * elf/dl-debug.c: Likewise.
4281         * elf/dl-object.c: Likewise.
4282         * grp/initgroups.c: Likewise.
4283         * hurd/Makefile: Likewise.
4284         * hurd/hurd/signal.h: Likewise.
4285         * hurd/hurdfault.c: Likewise.
4286         * hurd/hurdioctl.c: Likewise.
4287         * hurd/hurdlookup.c: Likewise.
4288         * hurd/intr-msg.c: Likewise.
4289         * iconv/gconv_open.c: Likewise.
4290         * libio/swprintf.c: Likewise.
4291         * locale/lc-ctype.c: Likewise.
4292         * locale/nl_langinfo.c: Likewise.
4293         * mach/Machrules: Likewise.
4294         * mach/Makefile: Likewise.
4295         * malloc/obstack.h: Likewise.
4296         * manual/Makefile: Likewise.
4297         * manual/tsort.awk: Likewise.
4298         * misc/bits/stab.def: Likewise.
4299         * nis/nis_print_group_entry.c: Likewise.
4300         * nis/nis_table.c: Likewise.
4301         * nis/nss_compat/compat-pwd.c: Likewise.
4302         * nis/nss_compat/compat-spwd.c: Likewise.
4303         * po/Makefile: Likewise.
4304         * posix/fnmatch.c: Likewise.
4305         * posix/regex.h: Likewise.
4306         * resolv/Makefile: Likewise.
4307         * resolv/nss_dns/dns-network.c: Likewise.
4308         * resolv/res_hconf.c: Likewise.
4309         * scripts/gen-sorted.awk: Likewise.
4310         * soft-fp/soft-fp.h: Likewise.
4311         * stdio-common/printf.h: Likewise.
4312         * stdlib/monetary.h: Likewise.
4313         * stdlib/random.c: Likewise.
4314         * stdlib/random_r.c: Likewise.
4315         * sysdeps/generic/Makefile: Likewise.
4316         * sysdeps/gnu/Makefile: Likewise.
4317         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
4318         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
4319         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
4320         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
4321         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
4322         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
4323         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
4324         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
4325         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
4326         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
4327         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
4328         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
4329         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
4330         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
4331         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
4332         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
4333         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
4334         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
4335         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
4336         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
4337         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
4338         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
4339         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
4340         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
4341         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
4342         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
4343         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
4344         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
4345         * sysdeps/mach/hurd/errnos.awk: Likewise.
4346         * sysdeps/mach/hurd/fork.c: Likewise.
4347         * sysdeps/mach/hurd/getcwd.c: Likewise.
4348         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
4349         * sysdeps/mach/hurd/mmap.c: Likewise.
4350         * sysdeps/mach/hurd/utimes.c: Likewise.
4351         * sysdeps/mach/hurd/xmknod.c: Likewise.
4352         * sysdeps/posix/profil.c: Likewise.
4353         * sysdeps/posix/readdir_r.c: Likewise.
4354         * sysdeps/powerpc/bits/mathdef.h: Likewise.
4355         * sysdeps/powerpc/bits/setjmp.h: Likewise.
4356         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
4357         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
4358         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
4359         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
4360         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
4361         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
4362         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
4363         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
4364         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
4365         * sysdeps/pthread/lio_listio.c: Likewise.
4366         * sysdeps/sparc/dl-procinfo.h: Likewise.
4367         * sysdeps/unix/i386/sysdep.S: Likewise.
4368         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
4369         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
4370         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
4371         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
4372         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
4373         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
4374         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
4375         * sysdeps/unix/sysv/linux/speed.c: Likewise.
4376         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
4377         * sysdeps/wordsize-32/divdi3.c: Likewise.
4378         * time/sys/time.h: Likewise.
4379         * wcsmbs/Makefile: Likewise.
4380
4381 2013-01-01  David S. Miller  <davem@davemloft.net>
4382
4383         * po/fr.po: Update from translation team.
4384
4385         * catgets/gencat.c: Update copyright year.
4386         * csu/version.c: Likewise.
4387         * debug/catchsegv.sh: Likewise.
4388         * debug/pcprofiledump.c: Likewise.
4389         * debug/xtrace.sh: Likewise.
4390         * elf/ldconfig.c: Likewise.
4391         * elf/ldd.bash.in: Likewise.
4392         * elf/pldd.c: Likewise.
4393         * elf/sotruss.ksh: Likewise.
4394         * elf/sprof.c: Likewise.
4395         * iconv/iconv_prog.c: Likewise.
4396         * iconv/iconvconfig.c: Likewise.
4397         * locale/programs/locale.c: Likewise.
4398         * locale/programs/localedef.c: Likewise.
4399         * login/programs/pt_chown.c: Likewise.
4400         * malloc/memusage.sh: Likewise.
4401         * malloc/memusagestat.c: Likewise.
4402         * malloc/mtrace.pl: Likewise.
4403         * nscd/nscd.c: Likewise.
4404         * nss/getent.c: Likewise.
4405         * nss/makedb.c: Likewise.
4406         * posix/getconf.c: Likewise.
4407
4408 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
4409
4410         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
4411         numbers.
4412
4413 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
4414
4415         * math/bits/mathcalls.h (modf): Use __nonnull.
4416
4417 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
4418
4419         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
4420         (split): Use macro CN instead of the bare value.
4421         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
4422         could be used.
4423         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
4424         instead of the bare value.
4425         (power1): Likewise.
4426
4427 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
4428
4429         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
4430         __ATAN_TWOM.
4431         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
4432
4433         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
4434         their values.
4435         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
4436         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
4437         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
4438         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
4439
4440 2012-12-28  Andreas Jaeger  <aj@suse.de>
4441
4442         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
4443         values are from Linux 3.7.
4444
4445         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
4446         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
4447
4448 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
4449
4450         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
4451         TRUE case.
4452
4453         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
4454         (norm): Likewise.
4455         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
4456         variables with preprocessor constants.
4457         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
4458         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
4459         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
4460
4461 2012-12-27  Bruno Haible  <bruno@clisp.org>
4462
4463         [BZ #14317]
4464         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
4465         only if needed.
4466
4467 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
4468
4469         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
4470         and use variable directly.
4471         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
4472
4473         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
4474         MPONE.
4475         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
4476         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
4477         variable MPONE.
4478         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
4479         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
4480         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
4481         include directive.  Remove local variable MPONE.
4482         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
4483         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
4484         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
4485
4486 2012-12-25  David S. Miller  <davem@davemloft.net>
4487
4488         * version.h (RELEASE): Set to "development".
4489         (VERSION): Set to "2.17.90".
4490         * NEWS: Add 2.18 section.
4491
4492 2012-12-21  David S. Miller  <davem@davemloft.net>
4493
4494         * po/hr.po: Update from translation team.
4495
4496 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4497
4498         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
4499
4500 2012-12-19  Steve Ellcey  <sellcey@mips.com>
4501
4502         * NEWS:  Mention new memcpy for MIPS.
4503
4504 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
4505
4506         * manual/contrib.texi (Contributors): Spelling correction.
4507
4508 2012-12-15  David S. Miller  <davem@davemloft.net>
4509
4510         * po/ru.po: Update from translation team.
4511
4512 2012-12-13  David S. Miller  <davem@davemloft.net>
4513
4514         * NEWS: Mention IFUNC testsuite enhancements.
4515
4516         * po/pl.po: Update from translation team.
4517         * po/bg.po: Likewise.
4518
4519         * manual/contrib.texi (Contributors): Update entries for Hongjiu
4520         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
4521
4522 2012-12-11  David S. Miller  <davem@davemloft.net>
4523
4524         * po/sv.po: Update from translation team.
4525
4526         * po/vi.po: Update from translation team.
4527
4528         * po/cs.po: Update from translation team.
4529
4530         * po/de.po: Update from translation team.
4531         * po/eo.po: Likewise.
4532         * po/nl.po: Likewise.
4533
4534 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
4535
4536         [BZ #14246]
4537         * manual/argp.texi (Argp Helper Functions): Move node to follow
4538         Argp Parsing State.
4539
4540         [BZ #14872]
4541         * manual/conf.texi (Limits on File System Capacity): Mention if
4542         terminating null is included in the max size.
4543
4544 2012-12-10  Andreas Jaeger  <aj@suse.de>
4545
4546         * po/cs.po: Update from translation team.
4547
4548 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
4549
4550         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
4551         void pointer and cast to uintptr_t.
4552         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
4553         path.
4554         * sysdeps/s390/s390-64/memcpy.S: Likewise.
4555         * sysdeps/s390/s390-64/memset.S: Likewise.
4556
4557 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
4558
4559         [BZ #14833]
4560         * menual/message.texi (Message Translation): Fix typos.
4561         (Helper programs for gettext): Likewise.
4562
4563 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
4564
4565         [BZ #14898]
4566         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
4567         Change to -1.
4568
4569 2012-12-07  David S. Miller  <davem@davemloft.net>
4570
4571         * po/libc.pot: Update.
4572
4573 2012-12-07  Richard Henderson  <rth@redhat.com>
4574
4575         [BZ #10114]
4576         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
4577         normal/normal case to before the switch.
4578         (_FP_DIV): Likewise.
4579
4580 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
4581             Mike Frysinger  <vapier@gentoo.org>
4582
4583         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
4584         check for __NR_fadvise64_64.
4585
4586 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
4587
4588         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
4589         0, not just to plain "0" as a statement.
4590         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
4591         with cw.
4592
4593 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
4594
4595         * NEWS: Use sourceware.org in Bugzilla URL.
4596
4597 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
4598
4599         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
4600         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
4601
4602         * stdio-common/tst-put-error.c (do_test): Add newline to the
4603         padded test to ensure flush.
4604
4605 2012-12-05  Jeff Law  <law@redhat.com>
4606
4607         * sunrpc/etc.rpc (fedfs_admin): Add entry.
4608
4609 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
4610
4611         * README: Don't refer to ports add-on as distributed separately.
4612         Mention AArch64 in list of systems supported in the ports add-on.
4613
4614         * LICENSES: Add more non-FSF copyright and license notices.
4615
4616         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
4617         ((unused)).
4618
4619         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
4620
4621         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
4622         10000 as width of padded output.
4623
4624 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
4625
4626         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
4627
4628         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
4629         variable LX with __attribute__ ((unused)).
4630         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
4631         Likewise.
4632         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
4633         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
4634         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
4635         with __attribute__ ((unused)).
4636
4637 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
4638
4639         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
4640
4641 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
4642
4643         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
4644         (CFLAGS-nldbl-acos.c): New variable.
4645         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
4646         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
4647         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
4648         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
4649         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
4650         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
4651         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
4652         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
4653         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
4654         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
4655         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
4656         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
4657         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
4658         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
4659         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
4660         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
4661         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
4662         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
4663         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
4664         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
4665         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
4666         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
4667         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
4668         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
4669         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
4670         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
4671         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
4672         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
4673         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
4674         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
4675         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
4676         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
4677         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
4678         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
4679         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
4680         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
4681         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
4682         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
4683         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
4684         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
4685         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
4686         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
4687         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
4688         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
4689         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
4690         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
4691         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
4692         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
4693         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
4694         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
4695         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
4696         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
4697         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
4698         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
4699         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
4700         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
4701         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
4702         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
4703         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
4704         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
4705         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
4706         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
4707         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
4708         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
4709         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
4710         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
4711         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
4712         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
4713         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
4714         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
4715         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
4716         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
4717         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
4718         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
4719         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
4720         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
4721         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
4722         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
4723         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
4724         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
4725         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
4726         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
4727         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
4728         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
4729         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
4730         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
4731         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
4732         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
4733         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
4734         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
4735         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
4736         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
4737         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
4738         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
4739         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
4740         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
4741         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
4742
4743         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
4744         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
4745
4746         [BZ #14914]
4747         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
4748         whole low double instead of just low 47 bits when splitting values
4749         into two parts.
4750
4751 2012-12-03  Allan McRae  <allan@archlinux.org>
4752
4753         * manual/stdio.texi (Predefined Printf Handlers): Remove
4754         @hsep and @vsep usage.
4755
4756 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
4757
4758         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
4759         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
4760
4761 2012-12-03  Jeff Law  <law@redhat.com>
4762
4763         * time/sys/time.h (settimeofday): Do not mark TV argument
4764         as __nonnull.
4765
4766 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
4767
4768         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
4769         when currently writing and seek to current position when not.
4770         * libio/Makefile (tests): Remove bug-fclose1.
4771         * libio/bug-fclose1.c: Delete.
4772
4773 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
4774
4775         * manual/arith.texi (feenableexcept): Fix typo.
4776         (fedisableexcept): Likewise.
4777
4778 2012-11-30  Roland McGrath  <roland@hack.frob.com>
4779
4780         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
4781         second, differently-typed declaration, rather than a cast.
4782
4783 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
4784
4785         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
4786         * include/rpc/svc.h: ... here.
4787
4788 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
4789
4790         [BZ #13013]
4791         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
4792         depending n and resplen2 to catch cases where answer
4793         equals answerp2.
4794
4795 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
4796
4797         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
4798         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
4799
4800 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
4801
4802         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
4803
4804 2012-11-29  Roland McGrath  <roland@hack.frob.com>
4805
4806         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
4807
4808 2012-11-28  Jeff Law  <law@redhat.com>
4809
4810         [BZ #13761]
4811         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
4812         dataset_temporary.  Track alloca usage into alloca_used.
4813         If dataset is large allocate and release it via malloc/free.
4814
4815 2012-06-04  Florian Weimer  <fweimer@redhat.com>
4816
4817         [BZ #14197]
4818         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
4819
4820 2012-11-28  David S. Miller  <davem@davemloft.net>
4821
4822         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4823
4824 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
4825
4826         [BZ #14803]
4827         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
4828         of pi/2 rounded to nearest to 64 bits.
4829         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
4830         nearest to 64 bits.
4831         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
4832         bits.
4833
4834 2012-11-28  Jeff Law <law@redhat.com>
4835             Martin Osvald <mosvald@redhat.com>
4836
4837         [BZ #14889]
4838         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
4839         * sunrpc/svc.c: Include time.h.
4840         (__svc_accept_failed): New function.
4841         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
4842         any reason other than EINTR, call __svc_accept_failed.
4843         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
4844         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
4845
4846 2012-11-28  Andreas Schwab  <schwab@suse.de>
4847
4848         * scripts/abilist.awk: Also handle indirect functions in .opd
4849         section.
4850
4851 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
4852
4853         [BZ #13881]
4854         * sysdeps/x86/fpu/powl_helper.c: New file.
4855         * sysdeps/x86/fpu/Makefile: Likewise.
4856         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
4857         (p3): New object.
4858         (__ieee754_powl): Use __powl_helper for finite arguments except
4859         integer exponents below 8.
4860         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
4861         (p3): New object.
4862         (__ieee754_powl): Use __powl_helper for finite arguments except
4863         integer exponents below 8.
4864         * math/libm-test.inc (pow_test): Add more tests and enable some
4865         previously disabled tests.
4866         * sysdeps/i386/fpu/libm-test-ulps: Update.
4867         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4868
4869 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
4870             Carlos O'Donell  <carlos_odonell@mentor.com>
4871
4872         * nss/makedb.c (is_prime): Assert that input is odd and greater
4873         than 4.  Note that fact in a comment too.
4874         (next_prime): Add 4 to input.
4875
4876 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
4877
4878         [BZ #11741]
4879         * libio/Makefile (tests): Add test case tst-fwrite-error.
4880         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
4881         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
4882         * libio/tst-fwrite-error.c: New test case.
4883
4884 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
4885
4886         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
4887         before casting to void *.
4888         * include/libc-internal.h (__pointer_type): New macro.
4889         (__integer_if_pointer_type_sub): Likewise.
4890         (__integer_if_pointer_type): Likewise.
4891         (cast_to_integer): Likewise.
4892         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
4893         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
4894         before casting to atomic64_t.
4895         (atomic_exchange_acq): Likewise.
4896         (__arch_exchange_and_add_body): Likewise.
4897         (__arch_add_body): Likewise.
4898         (atomic_add_negative): Likewise.
4899         (atomic_add_zero): Likewise.
4900
4901 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
4902
4903         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
4904         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
4905         (add_fdes): Likewise.
4906         (linear_search_fdes): Likewise.
4907         (binary_search_unencoded_fdes): Likewise.
4908
4909 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
4910
4911         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
4912
4913 2012-11-24  Adam Conrad  <adconrad@0c3.net>
4914
4915         * configure.in: Autodetect C++ header directories.
4916         * configure: Regenerated.
4917
4918 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
4919
4920         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
4921
4922 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
4923
4924         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4925
4926 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
4927
4928         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
4929         LDBL_MANT_DIG == 106]: Disable some tests.
4930         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
4931         Likewise.
4932         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
4933         Likewise.
4934
4935         [BZ #14871]
4936         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
4937         input for small inputs.  Return +/- pi/2 for large inputs.
4938         * math/libm-test.inc (atan_test): Add more tests.
4939
4940         * sysdeps/generic/unwind-dw2-fde-glibc.c
4941         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
4942         __attribute__ ((unused)).
4943
4944         [BZ #14645]
4945         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
4946         x * y if x and y are nonzero and z is zero.
4947
4948         [BZ #14811]
4949         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
4950         nonzero exponents with absolute value below 0x1p-117 to +/-
4951         0x1p-117.
4952
4953         [BZ #14869]
4954         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
4955         up arguments below 2**-450, not just those below 2**-500.
4956         * math/libm-test.inc (hypot_test): Add another test.
4957
4958         [BZ #14868]
4959         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
4960         Return a+b for ratio over 2**120, not 2**60.
4961         * math/libm-test.inc (hypot_test): Add another test.
4962
4963         * math/libm-test.inc (clog_test): Use
4964         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
4965         (clog10_test): Likewise.
4966
4967         [BZ #6778]
4968         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
4969
4970 2012-11-22  Andreas Schwab  <schwab@suse.de>
4971
4972         * sysdeps/i386/fpu/libm-test-ulps: Update.
4973
4974 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
4975
4976         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
4977         printf output with newline.
4978
4979 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
4980
4981         [BZ #14865]
4982         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
4983         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
4984         -z nodlopen, -z initfirst and -z execstack support.
4985         * configure: Regenerated.
4986
4987         * elf/elf.h (DF_1_NODIRECT): New macro.
4988         (DF_1_IGNMULDEF): Likewise.
4989         (DF_1_NOKSYMS): Likewise.
4990         (DF_1_NOHDR): Likewise.
4991         (DF_1_EDITED): Likewise.
4992         (DF_1_NORELOC): Likewise.
4993         (DF_1_SYMINTPOSE): Likewise.
4994         (DF_1_GLOBAUDIT): Likewise.
4995         (DF_1_SINGLETON): Likewise.
4996         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
4997         DT_1_SUPPORTED_MASK bits.
4998         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
4999
5000 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
5001
5002         * sysdeps/unix/make-syscalls.sh: Document prefixes.
5003
5004 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
5005
5006         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
5007         macro.
5008
5009         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
5010         (sendmmsg): Move declarations...
5011         * socket/sys/socket.h: ... here.
5012         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
5013         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
5014         include it from...
5015         * socket/recvmmsg.c: ... this new file.
5016         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
5017         (sendmmsg): Rename to __sendmmsg, create weak alias and make
5018         definition of __sendmmsg hidden.
5019         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
5020         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
5021         Move ENOSYS stub into and include it from...
5022         * socket/sendmmsg.c: ... this new file.
5023         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
5024         (sysdep_routines): Move recvmmsg and sendmmsg...
5025         * socket/Makefile (routines): ... here.
5026         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
5027         (GLIBC_PRIVATE): Add __sendmmsg.
5028         * include/sys/socket.h (__sendmmsg): Add declarations.
5029         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
5030         sendmmsg.
5031
5032 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
5033
5034         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
5035         variable I1 with __attribute__ ((unused)).
5036         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
5037
5038 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
5039
5040         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
5041         DUMMY variables with __attribute__ ((unused)).
5042
5043         * bits/byteswap.h: Include <bits/types.h>.
5044         (__bswap_64): Use __uint64_t instead of unsigned long long int.
5045
5046 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
5047
5048         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
5049         string_t.  Do not manually set errno.
5050         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
5051         length with __strnlen.  Make sure to both set errno and return it on
5052         failure.
5053
5054 2012-11-19  David S. Miller  <davem@davemloft.net>
5055
5056         With help from Joseph Myers.
5057         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
5058         very large arguments properly.
5059         * math/libm-test.inc (atan_test): New tests.
5060         (atan2_test): New tests.
5061         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5062         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
5063
5064 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
5065
5066         [BZ #14856]
5067         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
5068         Define to 3.
5069
5070         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
5071         [POSIX] (EADDRNOTAVAIL): Likewise.
5072         [POSIX] (EAFNOSUPPORT): Likewise.
5073         [POSIX] (EALREADY): Likewise.
5074         [POSIX] (ECONNABORTED): Likewise.
5075         [POSIX] (ECONNREFUSED): Likewise.
5076         [POSIX] (ECONNRESET): Likewise.
5077         [POSIX] (EDESTADDRREQ): Likewise.
5078         [POSIX] (EDQUOT): Likewise.
5079         [POSIX] (EHOSTUNREACH): Likewise.
5080         [POSIX] (EIDRM): Likewise.
5081         [POSIX] (EISCONN): Likewise.
5082         [POSIX] (ELOOP): Likewise.
5083         [POSIX] (EMULTIHOP): Likewise.
5084         [POSIX] (ENETDOWN): Likewise.
5085         [POSIX] (ENETUNREACH): Likewise.
5086         [POSIX] (ENOBUFS): Likewise.
5087         [POSIX] (ENODATA): Likewise.
5088         [POSIX] (ENOLINK): Likewise.
5089         [POSIX] (ENOMSG): Likewise.
5090         [POSIX] (ENOPROTOOPT): Likewise.
5091         [POSIX] (ENOSR): Likewise.
5092         [POSIX] (ENOSTR): Likewise.
5093         [POSIX] (ENOTCONN): Likewise.
5094         [POSIX] (ENOTSOCK): Likewise.
5095         [POSIX] (EOPNOTSUPP): Likewise.
5096         [POSIX] (EOVERFLOW): Likewise.
5097         [POSIX] (EPROTO): Likewise.
5098         [POSIX] (EPROTONOSUPPORT): Likewise.
5099         [POSIX] (EPROTOTYPE): Likewise.
5100         [POSIX] (ESTALE): Likewise.
5101         [POSIX] (ETIME): Likewise.
5102         [POSIX] (ETXTBSY): Likewise.
5103         [POSIX] (EWOULDBLOCK): Likewise.
5104         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
5105         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
5106         [POSIX] (SEEK_CUR): Likewise.
5107         [POSIX] (SEEK_END): Likewise.
5108         [POSIX || UNIX98] (mode_t): Do not require.
5109         [POSIX] (off_t): Likewise.
5110         [POSIX] (pid_t): Likewise.
5111         [POSIX] (sys/stat.h): Do not allow header.
5112         [POSIX] (unistd.h): Likewise.
5113         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
5114         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
5115         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
5116         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
5117         require.
5118         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
5119         sigevent): Specify elements.
5120         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
5121         entry.
5122         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
5123         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
5124
5125         * conform/data/cpio.h-data [POSIX]: Disable whole file.
5126         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
5127         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
5128         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
5129         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
5130         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
5131         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
5132         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
5133         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
5134         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
5135         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
5136         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
5137         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
5138         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
5139         Likewise.
5140         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
5141         Likewise.
5142         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
5143         Likewise.
5144         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
5145         Likewise.
5146         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
5147         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
5148         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
5149         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
5150         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
5151         Specify lower bound on value.
5152         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
5153         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
5154         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
5155         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
5156         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
5157         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise
5158         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
5159         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
5160         value.
5161         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
5162         as optional.
5163         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
5164         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
5165         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
5166         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
5167         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
5168         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
5169         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
5170         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
5171         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
5172         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
5173         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
5174         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
5175         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
5176         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
5177         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
5178         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
5179         entry.
5180         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
5181         optional.
5182         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
5183         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
5184         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
5185         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
5186         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
5187         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
5188         Likewise.
5189         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
5190         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
5191         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
5192         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
5193         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
5194         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
5195         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
5196         as optional.
5197         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
5198         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
5199         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
5200         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
5201         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
5202         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
5203         specify as optional.
5204         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
5205         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
5206         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
5207         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
5208         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
5209         [XPG3] (NL_LANGMAX): Likewise.
5210         [POSIX || XPG3] (NL_MSGMAX): Likewise.
5211         [POSIX || XPG3] (NL_NMAX): Likewise.
5212         [POSIX || XPG3] (NL_SETMAX): Likewise.
5213         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
5214         [XPG3] (NZERO): Likewise.
5215         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
5216         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
5217         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
5218         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
5219         (REG_ERANGE): Expect.
5220         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
5221         optional-constant.
5222         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
5223         Use (void) in prototype.
5224         [POSIX] (*_t): Allow.
5225         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
5226         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
5227         (WRDE_BADVAL): Expect.
5228
5229         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
5230         expect.
5231         [XPG3 || XPG4] (O_RSYNC): Likewise.
5232         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
5233         Likewise.
5234         [XPG3 || XPG4] (pthread_sigmask): Likewise.
5235         [XPG3 || XPG4] (sigqueue): Likewise.
5236         [XPG3 || XPG4] (sigtimedwait): Likewise.
5237         [XPG3 || XPG4] (sigwaitinfo): Likewise.
5238         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
5239         [XPG3 || XPG4] (vsnprintf): Likewise.
5240         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
5241         Likewise.
5242         [XPG3 || XPG4] (blksize_t): Likewise.
5243         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
5244         Likewise.
5245         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
5246         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
5247         [XPG3 || XPG4] (struct itimerspec): Likewise.
5248         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
5249         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
5250         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
5251         [XPG3 || XPG4] (clockid_t): Likewise.
5252         [XPG3 || XPG4] (timer_t): Likewise.
5253         [XPG3 || XPG4] (clock_getres): Likewise.
5254         [XPG3 || XPG4] (clock_gettime): Likewise.
5255         [XPG3 || XPG4] (clock_settime): Likewise.
5256         [XPG3 || XPG4] (nanosleep): Likewise.
5257         [XPG3 || XPG4] (timer_create): Likewise.
5258         [XPG3 || XPG4] (timer_delete): Likewise.
5259         [XPG3 || XPG4] (timer_gettime): Likewise.
5260         [XPG3 || XPG4] (timer_getoverrun): Likewise.
5261         [XPG3 || XPG4] (timer_settime): Likewise.
5262         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
5263         [XPG3 || XPG4] (getlogin_r): Likewise.
5264         [XPG3 || XPG4] (pread): Likewise.
5265         [XPG3 || XPG4] (pthread_atfork): Likewise.
5266         [XPG3 || XPG4] (pwrite): Likewise.
5267
5268         [BZ #14835]
5269         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
5270         <bits/siginfo.h>.
5271
5272 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
5273
5274         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
5275         finalizing MALLSTREAM.
5276
5277         * sysdeps/mach/hurd/syncfs.c: New file.
5278
5279 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
5280
5281         [BZ #14719]
5282         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
5283         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
5284         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
5285         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
5286         (_nss_dns_gethostbyname4_r): Likewise.
5287         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
5288         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
5289
5290 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
5291
5292         [BZ #13763]
5293         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
5294
5295 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
5296
5297         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
5298         * elf/cache.c (print_entry): Print ",AArch64" for
5299         FLAG_AARCH64_LIB64
5300
5301         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
5302         * elf/cache.c (print_entry): Print ",hard-float" for
5303         FLAG_ARM_LIBHF.
5304
5305 2012-11-18  David S. Miller  <davem@davemloft.net>
5306
5307         With help from Joseph Myers.
5308         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
5309         cutoff to 2**-13.
5310         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
5311         cutoff to 2**-25.
5312         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
5313         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
5314         small.
5315         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
5316         * math/libm-test.inc (y0_test): New tests.
5317         (y1_test): New tests.
5318         * sysdeps/i386/fpu/libm-test-ulps: Update.
5319         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
5320         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5321
5322 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
5323
5324         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
5325         64-bit targets.
5326         * configure: Regenerated.
5327
5328 2012-11-17  David S. Miller  <davem@davemloft.net>
5329
5330         [BZ #14811]
5331         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
5332         nonzero exponents with absolute value below 0x1p-128 to +/-
5333         0x1p-128.
5334
5335 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
5336
5337         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
5338
5339         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
5340
5341         * posix/getconf-speclist.c: New file.
5342         * posix/posix-envs.def: Likewise.
5343         * posix/confstr.c (START_ENV_GROUP): New macro.
5344         (END_ENV_GROUP): Likewise.
5345         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
5346         (KNOWN_PRESENT_ENV_STRING): Likewise.
5347         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
5348         (UNKNOWN_ENVIRONMENT): Likewise.
5349         (confstr): Include posix-envs.def instead of handling
5350         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
5351         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
5352         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
5353         (END_ENV_GROUP): Likewise.
5354         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
5355         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
5356         (UNKNOWN_ENVIRONMENT): Likewise.
5357         (__sysconf): Include posix-envs.def instead of handling associated
5358         cases directly here.
5359         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
5360         preprocessing getconf-speclist.c rather than running getconf or
5361         generating empty file.
5362
5363 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
5364
5365         * scripts/check-local-headers.sh: Ignore 'mach' headers.
5366
5367 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
5368
5369         [BZ #14672]
5370         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
5371
5372 2012-11-16  David S. Miller  <davem@davemloft.net>
5373
5374         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
5375         smaller than LDBL_EPSILON/2.0L, just return xm1.
5376
5377 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
5378
5379         * elf/tst-array1.c (init): Set constructor priority to 1000.
5380         (fini): Set destructor priority to 1000.
5381         * elf/tst-array2dep.c: Likewise.
5382
5383 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
5384
5385         [BZ #11741]
5386         * libio/fileops.c (_IO_new_file_write): Correctly return error.
5387         (_IO_new_file_xsputn): Also return EOF if none of the input
5388         data was written when overflow failed.
5389         * libio/iopadn.c (_IO_padn): Likewise.
5390         * libio/iowpadn.c (_IO_wpadn): Likewise.
5391         * stdio-common/tst-put-error.c: Add copyright notice.
5392         (do_test): Add case for printing padded string.
5393         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
5394         _IO_padn returned error.
5395         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
5396         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
5397         return EOF.
5398
5399 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
5400
5401         * libio/libioP.h: Add comment note that the references to C++
5402         bits are now obsolete.
5403
5404 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
5405
5406         * math/libm-test.inc (check_complex): Use asprintf.
5407
5408 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
5409
5410         * debug/pcprofiledump.c (print_version): Update copyright year.
5411         * malloc/memusagestat.c (print_version): Likewise.
5412
5413 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
5414
5415         [BZ #14831]
5416         * elf/Makefile (tests): Add tst-audit8.
5417         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
5418         ($(objpfx)tst-audit8.out): New target.
5419         (tst-audit8-ENV): New variable.
5420         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
5421         audit if l_reloc_result is NULL.
5422         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
5423         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
5424         * elf/tst-audit8.c: New file.
5425
5426 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
5427
5428         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
5429         * misc/Makefile (CFLAGS-select.c): Define.
5430         * posix/Makefile (CFLAGS-pause.c): Define.
5431
5432 2012-11-13  David S. Miller  <davem@davemloft.net>
5433
5434         * crypt/Makefile: Move test targets after toplevel Rules
5435         inclusion.  Grab any necessary sysdep routines when linking.
5436         * crypt/md5.c (md5_process_block): Remove define, we will always
5437         name it __md5_process_block.
5438         (md5_finish_ctx): Update md5_process_block call.
5439         (md5_stream): Likewise.
5440         (md5_process_bytes): Likewise.
5441         (md5_process_block): Rename to __md5_process_block and move to ...
5442         * crypt/md5-block.c: ... here.
5443         * crypt/sha256.c (sha256_process_block): Move to ...
5444         * crypt/sha256-block.c: ... here.
5445         * crypt/sha512.c (sha512_process_block): Move to ...
5446         * crypt/sha512-block.c: ... here.
5447         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
5448         path.
5449         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
5450         * sysdeps/sparc/sparc64/multiarch/Makefile
5451         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
5452         crypt subdir.
5453         (localedef-aux): Add md5 crypto assembler when in locale subdir.
5454         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
5455         multiarch changes.
5456         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
5457         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
5458         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
5459         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
5460         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
5461         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
5462         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
5463         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
5464         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
5465         file.
5466         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
5467         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
5468         file.
5469         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
5470
5471 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
5472
5473         * timezone/tzselect.ksh: Update from tzcode git revision
5474         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
5475         * timezone/zdump.c: Likewise.
5476         * timezone/zic.c: Likewise.
5477         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
5478         in TZVERSION setting, not $(PKGVERSION).
5479         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
5480         REPORT_BUGS_TO settings.
5481
5482         [BZ #14838]
5483         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
5484         macro.
5485
5486 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
5487
5488         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
5489         detection to immediately after _FP_ROUND().
5490         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
5491         bits are 0.
5492
5493 2012-11-11  David S. Miller  <davem@davemloft.net>
5494
5495         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
5496         inttypes.h
5497         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
5498         __close rather than their public counterparts.
5499
5500 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
5501
5502         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
5503         file.
5504         [UNIX98] (sem_timedwait): Do not expect.
5505         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
5506         [XPG4 || UNIX98] (sockatmark): Do not expect.
5507         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
5508         (clock_getcpuclockid): Do not expect.
5509         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
5510         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
5511         Do not expect.
5512         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
5513         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
5514         [UNIX98] (vwscanf): Likewise.
5515         [UNIX98] (vswscanf): Likewise.
5516
5517 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
5518
5519         * timezone/version.h: Remove file.
5520         * timezone/README: Do not refer to version.h.
5521         * timezone/Makefile ($(objpfx)zic.o): New dependency on
5522         $(objpfx)version.h.
5523         ($(objpfx)zdump.o): Likewise.
5524         ($(objpfx)version.h): New target.
5525
5526         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
5527         2012i.
5528         * timezone/README: Don't mention modification to tzselect.ksh.
5529         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
5530         work on unmodified tzselect.ksh.  Substitute version numbers in
5531         tzselect.ksh.
5532
5533         * Makefile (format-me): Remove.
5534         (INSTALL): Adjust indentation.  Use commands directly instead of
5535         using $(format-me).
5536
5537         * aclocal.m4 (ACX_PKGVERSION): New macro.
5538         (ACX_BUGURL): Likewise.
5539         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
5540         (PKGVERSION): New AC_DEFINE_UNQUOTED.
5541         (REPORT_BUGS_TO): Likewise.
5542         * configure: Regenerated.
5543         * config.h.in (PKGVERSION): New macro.
5544         (REPORT_BUGS_TO): Likewise.
5545         * config.make.in (PKGVERSION): New variable.
5546         (PKGVERSION_TEXI): Likewise.
5547         (REPORT_BUGS_TO): Likewise.
5548         (REPORT_BUGS_TEXI): Likewise.
5549         * Makefile (format-me): Use -I$(common-objpfx)manual.
5550         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
5551         ($(common-objpfx)manual/%): New target.
5552         (manual/%): Remove target.
5553         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
5554         (print_version): Use PKGVERSION.
5555         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
5556         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
5557         and REPORT_BUGS_TO.
5558         ($(objpfx)xtrace): Likewise.
5559         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
5560         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
5561         (print_version): Use PKGVERSION.
5562         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
5563         (do_version): Use PKGVERSION.
5564         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
5565         REPORT_BUGS_TO.
5566         (common-ldd-rewrite): Likewise.
5567         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
5568         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
5569         (print_version): Use PKGVERSION.
5570         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
5571         * elf/pldd.c (argp_program_bug_address): Remove variable.
5572         (more_help): New function.
5573         (argp): Use more_help.
5574         (print_version): Use PKGVERSION.
5575         * elf/sln.c (main): Use PKGVERSION.
5576         (usage): Use REPORT_BUGS_TO.
5577         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
5578         (top level): Use PKGVERSION.
5579         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
5580         (print_version): Use PKGVERSION.
5581         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
5582         (print_version): Use PKGVERSION.
5583         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
5584         (print_version): Use PKGVERSION.
5585         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
5586         (print_version): Use PKGVERSION.
5587         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
5588         (print_version): Use PKGVERSION.
5589         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
5590         (print_version): Use PKGVERSION.
5591         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
5592         and BUGURL.
5593         ($(objpfx)memusage): Likewise.
5594         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
5595         (do_version): Use PKGVERSION.
5596         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
5597         (print_version): Use PKGVERSION.
5598         * malloc/mtrace.pl ($PACKAGE): Remove variable.
5599         ($PKGVERSION): New variable.
5600         ($REPORT_BUGS_TO): Likewise.
5601         (usage): Use $REPORT_BUGS_TO.
5602         (top level): Use $PKGVERSION.
5603         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
5604         ($(objpfx)pkgvers.texi): New rule.
5605         ($(objpfx)stamp-pkgvers): Likewise.
5606         * manual/install.texi: Include pkgvers.texi.
5607         (--with-pkgversion): Document new configure option.
5608         (--with-bugurl): Likewise.
5609         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
5610         than necessarily for this particular distribution.  Use
5611         REPORT_BUGS_TO for where to report bugs.
5612         * INSTALL: Regenerated.
5613         * manual/libc.texinfo: Include pkgvers.texi.
5614         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
5615         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
5616         (print_version): Use PKGVERSION.
5617         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
5618         (print_version): Use PKGVERSION.
5619         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
5620         (print_version): Use PKGVERSION.
5621         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
5622         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
5623         macro.
5624         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
5625         (print_version): Use PKGVERSION.
5626         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
5627         (print_version): Use PKGVERSION.
5628         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
5629         and PKGVERSION.
5630
5631         * timezone/checktab.awk: Update from tzcode 2012i.
5632         * timezone/ialloc.c: Likewise.
5633         * timezone/private.h: Likewise.
5634         * timezone/scheck.c: Likewise.
5635         * timezone/tzfile.h: Likewise.
5636         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
5637         (TZVERSION): Hardcode tzcode version number.
5638         * timezone/zdump.c: Update from tzcode 2012i.
5639         * timezone/zic.c: Likewise.
5640         * timezone/version.h: New file.
5641         * timezone/README: Describe version.h.  Update upstream location.
5642
5643         [BZ #14824]
5644         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
5645         (mktemp): Enable declaration.
5646         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
5647         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
5648         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
5649         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
5650         Likewise.
5651         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
5652         Likewise.
5653         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
5654         Likewise.
5655         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
5656         Likewise.
5657         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
5658         Likewise.
5659         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
5660         Likewise.
5661
5662         [BZ #14821]
5663         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
5664         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
5665         for copies of such integer values.
5666         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
5667         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
5668
5669 2012-11-09  Andreas Jaeger  <aj@suse.de>
5670
5671         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
5672         definitions and declarations that are provided by
5673         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
5674
5675 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5676
5677         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
5678         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
5679         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
5680         definition.
5681
5682 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
5683
5684         * elf/elf.h: Update comment before AArch64 relocations.
5685
5686 2012-11-07  David S. Miller  <davem@davemloft.net>
5687
5688         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
5689         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
5690         (__start_context): Declare.
5691         (__makecontext_ret): Delete.
5692         (__makecontext): Hook up __start_context instead of
5693         __makecontext_ret.
5694         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
5695         (sysdep_routines): Add __start_context when in stdlib.
5696
5697 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
5698
5699         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
5700         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
5701         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
5702         hardcoded "nm".
5703         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
5704         (READELF): New variable.  Use it instead of hardcoded "readelf".
5705
5706 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
5707
5708         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
5709         * sysdeps/x86/Makefile: Here.
5710         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
5711         * sysdeps/x86/tst-xmmymm.sh: This.
5712
5713 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
5714
5715         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
5716         expectations.
5717         [UNIX98] (pthread_barrier_t): Do not expect.
5718         [UNIX98] (pthread_barrierattr_t): Likewise.
5719         [UNIX98] (pthread_spinlock_t): Likewise.
5720         [UNIX98] (pthread_barrier_destroy): Likewise.
5721         [UNIX98] (pthread_barrier_init): Likewise.
5722         [UNIX98] (pthread_barrier_wait): Likewise.
5723         [UNIX98] (pthread_barrierattr_destroy): Likewise.
5724         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
5725         [UNIX98] (pthread_barrierattr_init): Likewise.
5726         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
5727         [UNIX98] (pthread_getcpuclockid): Likewise.
5728         [UNIX98] (pthread_mutex_timedlock): Likewise.
5729         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
5730         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
5731         [UNIX98] (pthread_sigmask): Likewise.
5732         [UNIX98] (pthread_spin_destroy): Likewise.
5733         [UNIX98] (pthread_spin_init): Likewise.
5734         [UNIX98] (pthread_spin_lock): Likewise.
5735         [UNIX98] (pthread_spin_trylock): Likewise.
5736         [UNIX98] (pthread_spin_unlock): Likewise.
5737         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
5738         Do not expect.
5739         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
5740         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
5741         [XPG3 || XPG4] (pthread_cond_t): Likewise.
5742         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
5743         [XPG3 || XPG4] (pthread_key_t): Likewise.
5744         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
5745         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
5746         [XPG3 || XPG4] (pthread_once_t): Likewise.
5747         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
5748         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
5749         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
5750         [XPG3 || XPG4] (pthread_t): Likewise.
5751
5752         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
5753         not expect.
5754         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
5755
5756         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
5757         Change function return type to int.
5758
5759         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
5760         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
5761         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
5762         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
5763         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
5764         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
5765         [!POSIX] (posix_madvise): Likewise.
5766         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
5767         && !UNIX98].
5768         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
5769         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
5770         (mode_t): Likewise.
5771         (posix_mem_offset): Likewise.
5772         (posix_typed_mem_get_info): Likewise.
5773         (posix_typed_mem_open): Likewise.
5774
5775         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
5776         Change condition to [XOPEN2K8].
5777
5778         * conform/conformtest.pl: Preprocess allow-header data with -x c
5779         instead of from stdin.
5780         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
5781         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
5782         [C99-based standards] (cerfc): Likewise.
5783         [C99-based standards] (cexp2): Likewise.
5784         [C99-based standards] (cexpm1): Likewise.
5785         [C99-based standards] (clog10): Likewise.
5786         [C99-based standards] (clog1p): Likewise.
5787         [C99-based standards] (clog2): Likewise.
5788         [C99-based standards] (clgamma): Likewise.
5789         [C99-based standards] (ctgamma): Likewise.
5790         [C99-based standards] (cerff): Likewise.
5791         [C99-based standards] (cerfcf): Likewise.
5792         [C99-based standards] (cexp2f): Likewise.
5793         [C99-based standards] (cexpm1f): Likewise.
5794         [C99-based standards] (clog10f): Likewise.
5795         [C99-based standards] (clog1pf): Likewise.
5796         [C99-based standards] (clog2f): Likewise.
5797         [C99-based standards] (clgammaf): Likewise.
5798         [C99-based standards] (ctgammaf): Likewise.
5799         [C99-based standards] (cerfl): Likewise.
5800         [C99-based standards] (cerfcl): Likewise.
5801         [C99-based standards] (cexp2l): Likewise.
5802         [C99-based standards] (cexpm1l): Likewise.
5803         [C99-based standards] (clog10l): Likewise.
5804         [C99-based standards] (clog1pl): Likewise.
5805         [C99-based standards] (clog2l): Likewise.
5806         [C99-based standards] (clgammal): Likewise.
5807         [C99-based standards] (ctgammal): Likewise.
5808         * conform/data/inttypes.h-data [C99-based standards]: Include
5809         stdint.h-data.  Remove all expectations for stdint.h contents.
5810         [C99-based standards] (PRI*): Do not allow.
5811         [C99-based standards] (SCN*): Likewise.
5812         [C99-based standards] (*_t): Likewise.
5813         [C99-based-standards] (PRId8): Expect macro.
5814         [C99-based-standards] (PRIi8): Likewise.
5815         [C99-based-standards] (PRIo8): Likewise.
5816         [C99-based-standards] (PRIu8): Likewise.
5817         [C99-based-standards] (PRIx8): Likewise.
5818         [C99-based-standards] (PRIX8): Likewise.
5819         [C99-based-standards] (SCNd8): Likewise.
5820         [C99-based-standards] (SCNi8): Likewise.
5821         [C99-based-standards] (SCNo8): Likewise.
5822         [C99-based-standards] (SCNu8): Likewise.
5823         [C99-based-standards] (SCNx8): Likewise.
5824         [C99-based-standards] (PRIdLEAST8): Likewise.
5825         [C99-based-standards] (PRIiLEAST8): Likewise.
5826         [C99-based-standards] (PRIoLEAST8): Likewise.
5827         [C99-based-standards] (PRIuLEAST8): Likewise.
5828         [C99-based-standards] (PRIxLEAST8): Likewise.
5829         [C99-based-standards] (PRIXLEAST8): Likewise.
5830         [C99-based-standards] (SCNdLEAST8): Likewise.
5831         [C99-based-standards] (SCNiLEAST8): Likewise.
5832         [C99-based-standards] (SCNoLEAST8): Likewise.
5833         [C99-based-standards] (SCNuLEAST8): Likewise.
5834         [C99-based-standards] (SCNxLEAST8): Likewise.
5835         [C99-based-standards] (PRIdFAST8): Likewise.
5836         [C99-based-standards] (PRIiFAST8): Likewise.
5837         [C99-based-standards] (PRIoFAST8): Likewise.
5838         [C99-based-standards] (PRIuFAST8): Likewise.
5839         [C99-based-standards] (PRIxFAST8): Likewise.
5840         [C99-based-standards] (PRIXFAST8): Likewise.
5841         [C99-based-standards] (SCNdFAST8): Likewise.
5842         [C99-based-standards] (SCNiFAST8): Likewise.
5843         [C99-based-standards] (SCNoFAST8): Likewise.
5844         [C99-based-standards] (SCNuFAST8): Likewise.
5845         [C99-based-standards] (SCNxFAST8): Likewise.
5846         [C99-based-standards] (PRId16): Likewise.
5847         [C99-based-standards] (PRIi16): Likewise.
5848         [C99-based-standards] (PRIo16): Likewise.
5849         [C99-based-standards] (PRIu16): Likewise.
5850         [C99-based-standards] (PRIx16): Likewise.
5851         [C99-based-standards] (PRIX16): Likewise.
5852         [C99-based-standards] (SCNd16): Likewise.
5853         [C99-based-standards] (SCNi16): Likewise.
5854         [C99-based-standards] (SCNo16): Likewise.
5855         [C99-based-standards] (SCNu16): Likewise.
5856         [C99-based-standards] (SCNx16): Likewise.
5857         [C99-based-standards] (PRIdLEAST16): Likewise.
5858         [C99-based-standards] (PRIiLEAST16): Likewise.
5859         [C99-based-standards] (PRIoLEAST16): Likewise.
5860         [C99-based-standards] (PRIuLEAST16): Likewise.
5861         [C99-based-standards] (PRIxLEAST16): Likewise.
5862         [C99-based-standards] (PRIXLEAST16): Likewise.
5863         [C99-based-standards] (SCNdLEAST16): Likewise.
5864         [C99-based-standards] (SCNiLEAST16): Likewise.
5865         [C99-based-standards] (SCNoLEAST16): Likewise.
5866         [C99-based-standards] (SCNuLEAST16): Likewise.
5867         [C99-based-standards] (SCNxLEAST16): Likewise.
5868         [C99-based-standards] (PRIdFAST16): Likewise.
5869         [C99-based-standards] (PRIiFAST16): Likewise.
5870         [C99-based-standards] (PRIoFAST16): Likewise.
5871         [C99-based-standards] (PRIuFAST16): Likewise.
5872         [C99-based-standards] (PRIxFAST16): Likewise.
5873         [C99-based-standards] (PRIXFAST16): Likewise.
5874         [C99-based-standards] (SCNdFAST16): Likewise.
5875         [C99-based-standards] (SCNiFAST16): Likewise.
5876         [C99-based-standards] (SCNoFAST16): Likewise.
5877         [C99-based-standards] (SCNuFAST16): Likewise.
5878         [C99-based-standards] (SCNxFAST16): Likewise.
5879         [C99-based-standards] (PRId32): Likewise.
5880         [C99-based-standards] (PRIi32): Likewise.
5881         [C99-based-standards] (PRIo32): Likewise.
5882         [C99-based-standards] (PRIu32): Likewise.
5883         [C99-based-standards] (PRIx32): Likewise.
5884         [C99-based-standards] (PRIX32): Likewise.
5885         [C99-based-standards] (SCNd32): Likewise.
5886         [C99-based-standards] (SCNi32): Likewise.
5887         [C99-based-standards] (SCNo32): Likewise.
5888         [C99-based-standards] (SCNu32): Likewise.
5889         [C99-based-standards] (SCNx32): Likewise.
5890         [C99-based-standards] (PRIdLEAST32): Likewise.
5891         [C99-based-standards] (PRIiLEAST32): Likewise.
5892         [C99-based-standards] (PRIoLEAST32): Likewise.
5893         [C99-based-standards] (PRIuLEAST32): Likewise.
5894         [C99-based-standards] (PRIxLEAST32): Likewise.
5895         [C99-based-standards] (PRIXLEAST32): Likewise.
5896         [C99-based-standards] (SCNdLEAST32): Likewise.
5897         [C99-based-standards] (SCNiLEAST32): Likewise.
5898         [C99-based-standards] (SCNoLEAST32): Likewise.
5899         [C99-based-standards] (SCNuLEAST32): Likewise.
5900         [C99-based-standards] (SCNxLEAST32): Likewise.
5901         [C99-based-standards] (PRIdFAST32): Likewise.
5902         [C99-based-standards] (PRIiFAST32): Likewise.
5903         [C99-based-standards] (PRIoFAST32): Likewise.
5904         [C99-based-standards] (PRIuFAST32): Likewise.
5905         [C99-based-standards] (PRIxFAST32): Likewise.
5906         [C99-based-standards] (PRIXFAST32): Likewise.
5907         [C99-based-standards] (SCNdFAST32): Likewise.
5908         [C99-based-standards] (SCNiFAST32): Likewise.
5909         [C99-based-standards] (SCNoFAST32): Likewise.
5910         [C99-based-standards] (SCNuFAST32): Likewise.
5911         [C99-based-standards] (SCNxFAST32): Likewise.
5912         [C99-based-standards] (PRId64): Likewise.
5913         [C99-based-standards] (PRIi64): Likewise.
5914         [C99-based-standards] (PRIo64): Likewise.
5915         [C99-based-standards] (PRIu64): Likewise.
5916         [C99-based-standards] (PRIx64): Likewise.
5917         [C99-based-standards] (PRIX64): Likewise.
5918         [C99-based-standards] (SCNd64): Likewise.
5919         [C99-based-standards] (SCNi64): Likewise.
5920         [C99-based-standards] (SCNo64): Likewise.
5921         [C99-based-standards] (SCNu64): Likewise.
5922         [C99-based-standards] (SCNx64): Likewise.
5923         [C99-based-standards] (PRIdLEAST64): Likewise.
5924         [C99-based-standards] (PRIiLEAST64): Likewise.
5925         [C99-based-standards] (PRIoLEAST64): Likewise.
5926         [C99-based-standards] (PRIuLEAST64): Likewise.
5927         [C99-based-standards] (PRIxLEAST64): Likewise.
5928         [C99-based-standards] (PRIXLEAST64): Likewise.
5929         [C99-based-standards] (SCNdLEAST64): Likewise.
5930         [C99-based-standards] (SCNiLEAST64): Likewise.
5931         [C99-based-standards] (SCNoLEAST64): Likewise.
5932         [C99-based-standards] (SCNuLEAST64): Likewise.
5933         [C99-based-standards] (SCNxLEAST64): Likewise.
5934         [C99-based-standards] (PRIdFAST64): Likewise.
5935         [C99-based-standards] (PRIiFAST64): Likewise.
5936         [C99-based-standards] (PRIoFAST64): Likewise.
5937         [C99-based-standards] (PRIuFAST64): Likewise.
5938         [C99-based-standards] (PRIxFAST64): Likewise.
5939         [C99-based-standards] (PRIXFAST64): Likewise.
5940         [C99-based-standards] (SCNdFAST64): Likewise.
5941         [C99-based-standards] (SCNiFAST64): Likewise.
5942         [C99-based-standards] (SCNoFAST64): Likewise.
5943         [C99-based-standards] (SCNuFAST64): Likewise.
5944         [C99-based-standards] (SCNxFAST64): Likewise.
5945         [C99-based-standards] (PRIdMAX): Likewise.
5946         [C99-based-standards] (PRIiMAX): Likewise.
5947         [C99-based-standards] (PRIoMAX): Likewise.
5948         [C99-based-standards] (PRIuMAX): Likewise.
5949         [C99-based-standards] (PRIxMAX): Likewise.
5950         [C99-based-standards] (PRIXMAX): Likewise.
5951         [C99-based-standards] (SCNdMAX): Likewise.
5952         [C99-based-standards] (SCNiMAX): Likewise.
5953         [C99-based-standards] (SCNoMAX): Likewise.
5954         [C99-based-standards] (SCNuMAX): Likewise.
5955         [C99-based-standards] (SCNxMAX): Likewise.
5956         [C99-based-standards] (PRIdPTR): Likewise.
5957         [C99-based-standards] (PRIiPTR): Likewise.
5958         [C99-based-standards] (PRIoPTR): Likewise.
5959         [C99-based-standards] (PRIuPTR): Likewise.
5960         [C99-based-standards] (PRIxPTR): Likewise.
5961         [C99-based-standards] (PRIXPTR): Likewise.
5962         [C99-based-standards] (SCNdPTR): Likewise.
5963         [C99-based-standards] (SCNiPTR): Likewise.
5964         [C99-based-standards] (SCNoPTR): Likewise.
5965         [C99-based-standards] (SCNuPTR): Likewise.
5966         [C99-based-standards] (SCNxPTR): Likewise.
5967         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
5968         allow.
5969         * conform/data/stdint.h-data: Update comments to clarify
5970         requirements.
5971         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
5972         type.
5973         [C99-based standards] (INT8_MAX): Likewise.
5974         [C99-based standards] (INT16_MIN): Likewise.
5975         [C99-based standards] (INT16_MAX): Likewise.
5976         [C99-based standards] (INT32_MIN): Likewise.
5977         [C99-based standards] (INT32_MAX): Likewise.
5978         [C99-based standards] (INT64_MIN): Likewise.
5979         [C99-based standards] (INT64_MAX): Likewise.
5980         [C99-based standards] (UINT8_MAX): Likewise.
5981         [C99-based standards] (UINT16_MAX): Likewise.
5982         [C99-based standards] (UINT32_MAX): Likewise.
5983         [C99-based standards] (UINT64_MAX): Likewise.
5984         [C99-based standards] (INT_LEAST8_MIN): Likewise.
5985         [C99-based standards] (INT_LEAST8_MAX): Likewise.
5986         [C99-based standards] (INT_LEAST16_MIN): Likewise.
5987         [C99-based standards] (INT_LEAST16_MAX): Likewise.
5988         [C99-based standards] (INT_LEAST32_MIN): Likewise.
5989         [C99-based standards] (INT_LEAST32_MAX): Likewise.
5990         [C99-based standards] (INT_LEAST64_MIN): Likewise.
5991         [C99-based standards] (INT_LEAST64_MAX): Likewise.
5992         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
5993         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
5994         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
5995         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
5996         [C99-based standards] (INT_FAST8_MIN): Likewise.
5997         [C99-based standards] (INT_FAST8_MAX): Likewise.
5998         [C99-based standards] (INT_FAST16_MIN): Likewise.
5999         [C99-based standards] (INT_FAST16_MAX): Likewise.
6000         [C99-based standards] (INT_FAST32_MIN): Likewise.
6001         [C99-based standards] (INT_FAST32_MAX): Likewise.
6002         [C99-based standards] (INT_FAST64_MIN): Likewise.
6003         [C99-based standards] (INT_FAST64_MAX): Likewise.
6004         [C99-based standards] (UINT_FAST8_MAX): Likewise.
6005         [C99-based standards] (UINT_FAST16_MAX): Likewise.
6006         [C99-based standards] (UINT_FAST32_MAX): Likewise.
6007         [C99-based standards] (UINT_FAST64_MAX): Likewise.
6008         [C99-based standards] (INTPTR_MIN): Likewise.
6009         [C99-based standards] (INTPTR_MAX): Likewise.
6010         [C99-based standards] (UINTPTR_MAX): Likewise.
6011         [C99-based standards] (INTMAX_MIN): Likewise.
6012         [C99-based standards] (INTMAX_MAX): Likewise.
6013         [C99-based standards] (UINTMAX_MAX): Likewise.
6014         [C99-based standards] (PTRDIFF_MIN): Likewise.
6015         [C99-based standards] (PTRDIFF_MAX): Likewise.
6016         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
6017         [C99-based standards] (SIZE_MAX): Likewise.
6018         [C99-based standards] (WCHAR_MAX): Likewise.
6019         [C99-based standards] (WINT_MAX): Likewise.
6020         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
6021         constraint on value.
6022         [C99-based standards] (WCHAR_MIN): Likewise.
6023         [C99-based standards] (WINT_MIN): Likewise.
6024         [C99-based standards] (*_t): Allow.
6025         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
6026         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
6027         Include math.h-data and complex.h-data.  Remove all expectations
6028         of math.h and complex.h contents.
6029         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
6030         at end of line.
6031         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
6032         (struct tm): Expect tag.
6033         [C99-based-standards] (wcstof): Expect function.
6034         [C99-based-standards] (wcstold): Likewise.
6035         [C99-based-standards] (wcstoll): Likewise.
6036         [C99-based-standards] (wcstoull): Likewise.
6037         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
6038         macro-int-constant.  Specify type.
6039         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
6040         constraint on value.
6041         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
6042         Specify type.
6043         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
6044         Specify value.
6045         [ISO C standards]: Do not allow headers.
6046         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
6047         wcs[abcdefghijklmnopqrstuvwxyz]*.
6048         [ISO C standards] (*_t): Do not allow.
6049         * conform/data/wctype.h-data [C99-based standards] (iswblank):
6050         Expect function.
6051         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
6052         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
6053         Specify type.
6054         [ISO C standards]: Do not allow headers.
6055         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
6056         is[abcdefghijklmnopqrstuvwxyz]*.
6057         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
6058         to[abcdefghijklmnopqrstuvwxyz]*.
6059         [ISO C standards] (*_t): Do not allow.
6060         * conform/data/stdalign.h-data: New file.
6061         * conform/data/stdbool.h-data: Likewise.
6062         * conform/data/stdnoreturn.h-data: Likewise.
6063
6064 2012-11-07  Roland McGrath  <roland@hack.frob.com>
6065
6066         [BZ #14815]
6067         * manual/filesys.texi (Directory Entries): Typo fix.
6068         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
6069
6070 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
6071
6072         * elf/elf.h (EM_AARCH64): New macro.
6073         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
6074         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
6075         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
6076         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
6077         (R_AARCH64_TLSDESC): Likewise.
6078         (NT_ARM_TLS): Likewise.
6079         (NT_ARM_HW_BREAK): Likewise.
6080         (NT_ARM_HW_WATCH): Likewise.
6081
6082 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
6083
6084         [BZ #14811]
6085         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
6086         (__ieee754_powl): Saturate nonzero exponents with absolute value
6087         below 0x1p-79 to +/- 0x1p-79.
6088         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
6089         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
6090         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
6091         nonzero exponents with absolute value below 0x1p-32 to +/-
6092         0x1p-32.
6093         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
6094         (__ieee754_powl): Saturate nonzero exponents with absolute value
6095         below 0x1p-79 to +/- 0x1p-79.
6096         * math/libm-test.inc (pow_test): Add more tests.
6097
6098 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6099
6100         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
6101         _dl_s390_cap_flags with kernel. Increase string length.
6102         (_dl_s390_platforms): Add z196 and zEC12.
6103
6104 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
6105
6106         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
6107         Change XOPEN21K to XOPEN2K.
6108
6109 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
6110
6111         * string/memmove.c: Use memcpy when possible.
6112
6113 2012-11-06  Andreas Jaeger  <aj@suse.de>
6114
6115         * po/eo.po: Update from translation team.
6116
6117 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
6118
6119         [BZ #14793]
6120         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
6121         exponent and small x and y exponents, scale x or y up.  Increase
6122         by 2 the exponent used in scaling up.
6123         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
6124         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
6125         * math/libm-test.inc (fma_test): Add more tests.
6126         (fma_test_towardzero): Likewise.
6127         (fma_test_downward): Likewise.
6128         (fma_test_upward): Likewise.
6129
6130 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
6131
6132         [BZ #14805]
6133         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
6134         fenv_t *.
6135
6136         [BZ #14801]
6137         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
6138         namespace for names of struct fields.
6139         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
6140         fenv_t fields.
6141         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
6142         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
6143
6144 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6145
6146         [BZ #3665]
6147         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
6148
6149 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
6150
6151         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
6152         PTR_DEMANGLE.
6153
6154         [BZ #5246]
6155         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
6156         PTR_DEMANGLE.
6157
6158 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
6159
6160         [BZ #14797]
6161         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
6162         definitely overflow as x * y not x * y + z.
6163         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
6164         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
6165         * math/libm-test.inc (fma_test): Add more tests.
6166         (fma_test_towardzero): Likewise.
6167         (fma_test_downward): Likewise.
6168         (fma_test_upward): Likewise.
6169
6170 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
6171
6172         [BZ #157]
6173
6174         * include/stub-tag.h: Remove file.
6175         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
6176         '#include' of it.
6177         * manual/maint.texi (Porting): Don't reference it.
6178         * Makerules ($(objpfx)stubs): Likewise.
6179         * dirent/closedir.c: Don't include <stub-tag.h>.
6180         * dirent/dirfd.c: Likewise.
6181         * dirent/fdopendir.c: Likewise.
6182         * dirent/getdents.c: Likewise.
6183         * dirent/getdents64.c: Likewise.
6184         * dirent/opendir.c: Likewise.
6185         * dirent/readdir.c: Likewise.
6186         * dirent/readdir64.c: Likewise.
6187         * dirent/readdir64_r.c: Likewise.
6188         * dirent/readdir_r.c: Likewise.
6189         * dirent/rewinddir.c: Likewise.
6190         * dirent/seekdir.c: Likewise.
6191         * dirent/telldir.c: Likewise.
6192         * gmon/profil.c: Likewise.
6193         * grp/setgroups.c: Likewise.
6194         * inet/if_index.c: Likewise.
6195         * io/access.c: Likewise.
6196         * io/chdir.c: Likewise.
6197         * io/chmod.c: Likewise.
6198         * io/chown.c: Likewise.
6199         * io/close.c: Likewise.
6200         * io/dup.c: Likewise.
6201         * io/dup2.c: Likewise.
6202         * io/dup3.c: Likewise.
6203         * io/euidaccess.c: Likewise.
6204         * io/faccessat.c: Likewise.
6205         * io/fchdir.c: Likewise.
6206         * io/fchmod.c: Likewise.
6207         * io/fchmodat.c: Likewise.
6208         * io/fchown.c: Likewise.
6209         * io/fchownat.c: Likewise.
6210         * io/fcntl.c: Likewise.
6211         * io/flock.c: Likewise.
6212         * io/fstatfs.c: Likewise.
6213         * io/fstatfs64.c: Likewise.
6214         * io/fstatvfs.c: Likewise.
6215         * io/fstatvfs64.c: Likewise.
6216         * io/futimens.c: Likewise.
6217         * io/fxstat.c: Likewise.
6218         * io/fxstat64.c: Likewise.
6219         * io/fxstatat.c: Likewise.
6220         * io/fxstatat64.c: Likewise.
6221         * io/getcwd.c: Likewise.
6222         * io/isatty.c: Likewise.
6223         * io/lchmod.c: Likewise.
6224         * io/lchown.c: Likewise.
6225         * io/link.c: Likewise.
6226         * io/linkat.c: Likewise.
6227         * io/lseek.c: Likewise.
6228         * io/lseek64.c: Likewise.
6229         * io/lxstat64.c: Likewise.
6230         * io/mkdir.c: Likewise.
6231         * io/mkdirat.c: Likewise.
6232         * io/mkfifo.c: Likewise.
6233         * io/mkfifoat.c: Likewise.
6234         * io/open.c: Likewise.
6235         * io/open64.c: Likewise.
6236         * io/openat.c: Likewise.
6237         * io/openat64.c: Likewise.
6238         * io/pipe.c: Likewise.
6239         * io/pipe2.c: Likewise.
6240         * io/poll.c: Likewise.
6241         * io/posix_fadvise.c: Likewise.
6242         * io/posix_fadvise64.c: Likewise.
6243         * io/posix_fallocate.c: Likewise.
6244         * io/posix_fallocate64.c: Likewise.
6245         * io/read.c: Likewise.
6246         * io/readlink.c: Likewise.
6247         * io/readlinkat.c: Likewise.
6248         * io/rmdir.c: Likewise.
6249         * io/sendfile.c: Likewise.
6250         * io/sendfile64.c: Likewise.
6251         * io/statfs.c: Likewise.
6252         * io/statfs64.c: Likewise.
6253         * io/statvfs.c: Likewise.
6254         * io/statvfs64.c: Likewise.
6255         * io/symlink.c: Likewise.
6256         * io/symlinkat.c: Likewise.
6257         * io/ttyname.c: Likewise.
6258         * io/ttyname_r.c: Likewise.
6259         * io/umask.c: Likewise.
6260         * io/unlink.c: Likewise.
6261         * io/unlinkat.c: Likewise.
6262         * io/utime.c: Likewise.
6263         * io/utimensat.c: Likewise.
6264         * io/write.c: Likewise.
6265         * io/xmknod.c: Likewise.
6266         * io/xmknodat.c: Likewise.
6267         * io/xstat.c: Likewise.
6268         * io/xstat64.c: Likewise.
6269         * login/getpt.c: Likewise.
6270         * login/grantpt.c: Likewise.
6271         * login/unlockpt.c: Likewise.
6272         * math/e_acoshl.c: Likewise.
6273         * math/e_acosl.c: Likewise.
6274         * math/e_asinl.c: Likewise.
6275         * math/e_atan2l.c: Likewise.
6276         * math/e_atanhl.c: Likewise.
6277         * math/e_coshl.c: Likewise.
6278         * math/e_expl.c: Likewise.
6279         * math/e_fmodl.c: Likewise.
6280         * math/e_gammal_r.c: Likewise.
6281         * math/e_hypotl.c: Likewise.
6282         * math/e_j0l.c: Likewise.
6283         * math/e_j1l.c: Likewise.
6284         * math/e_jnl.c: Likewise.
6285         * math/e_lgammal_r.c: Likewise.
6286         * math/e_log10l.c: Likewise.
6287         * math/e_log2l.c: Likewise.
6288         * math/e_logl.c: Likewise.
6289         * math/e_powl.c: Likewise.
6290         * math/e_rem_pio2l.c: Likewise.
6291         * math/e_sinhl.c: Likewise.
6292         * math/e_sqrtl.c: Likewise.
6293         * math/fclrexcpt.c: Likewise.
6294         * math/fedisblxcpt.c: Likewise.
6295         * math/feenablxcpt.c: Likewise.
6296         * math/fegetenv.c: Likewise.
6297         * math/fegetexcept.c: Likewise.
6298         * math/fegetround.c: Likewise.
6299         * math/feholdexcpt.c: Likewise.
6300         * math/fesetenv.c: Likewise.
6301         * math/fesetround.c: Likewise.
6302         * math/feupdateenv.c: Likewise.
6303         * math/fgetexcptflg.c: Likewise.
6304         * math/fraiseexcpt.c: Likewise.
6305         * math/fsetexcptflg.c: Likewise.
6306         * math/ftestexcept.c: Likewise.
6307         * math/k_cosl.c: Likewise.
6308         * math/k_rem_pio2l.c: Likewise.
6309         * math/k_sinl.c: Likewise.
6310         * math/k_tanl.c: Likewise.
6311         * math/s_asinhl.c: Likewise.
6312         * math/s_atanl.c: Likewise.
6313         * math/s_cbrtl.c: Likewise.
6314         * math/s_erfl.c: Likewise.
6315         * math/s_expm1l.c: Likewise.
6316         * math/s_log1pl.c: Likewise.
6317         * math/s_tanhl.c: Likewise.
6318         * misc/acct.c: Likewise.
6319         * misc/brk.c: Likewise.
6320         * misc/chflags.c: Likewise.
6321         * misc/chroot.c: Likewise.
6322         * misc/fchflags.c: Likewise.
6323         * misc/fgetxattr.c: Likewise.
6324         * misc/flistxattr.c: Likewise.
6325         * misc/fremovexattr.c: Likewise.
6326         * misc/fsetxattr.c: Likewise.
6327         * misc/fsync.c: Likewise.
6328         * misc/ftruncate.c: Likewise.
6329         * misc/futimes.c: Likewise.
6330         * misc/futimesat.c: Likewise.
6331         * misc/getdomain.c: Likewise.
6332         * misc/getdtsz.c: Likewise.
6333         * misc/gethostid.c: Likewise.
6334         * misc/gethostname.c: Likewise.
6335         * misc/getloadavg.c: Likewise.
6336         * misc/getpagesize.c: Likewise.
6337         * misc/getsysstats.c: Likewise.
6338         * misc/getxattr.c: Likewise.
6339         * misc/gtty.c: Likewise.
6340         * misc/ioctl.c: Likewise.
6341         * misc/lgetxattr.c: Likewise.
6342         * misc/listxattr.c: Likewise.
6343         * misc/llistxattr.c: Likewise.
6344         * misc/lremovexattr.c: Likewise.
6345         * misc/lsetxattr.c: Likewise.
6346         * misc/lutimes.c: Likewise.
6347         * misc/madvise.c: Likewise.
6348         * misc/mincore.c: Likewise.
6349         * misc/mlock.c: Likewise.
6350         * misc/mlockall.c: Likewise.
6351         * misc/mmap.c: Likewise.
6352         * misc/mprotect.c: Likewise.
6353         * misc/msync.c: Likewise.
6354         * misc/munlock.c: Likewise.
6355         * misc/munlockall.c: Likewise.
6356         * misc/munmap.c: Likewise.
6357         * misc/preadv.c: Likewise.
6358         * misc/preadv64.c: Likewise.
6359         * misc/ptrace.c: Likewise.
6360         * misc/pwritev.c: Likewise.
6361         * misc/pwritev64.c: Likewise.
6362         * misc/readv.c: Likewise.
6363         * misc/reboot.c: Likewise.
6364         * misc/remap_file_pages.c: Likewise.
6365         * misc/removexattr.c: Likewise.
6366         * misc/revoke.c: Likewise.
6367         * misc/select.c: Likewise.
6368         * misc/setdomain.c: Likewise.
6369         * misc/setegid.c: Likewise.
6370         * misc/seteuid.c: Likewise.
6371         * misc/sethostid.c: Likewise.
6372         * misc/sethostname.c: Likewise.
6373         * misc/setregid.c: Likewise.
6374         * misc/setreuid.c: Likewise.
6375         * misc/setxattr.c: Likewise.
6376         * misc/sstk.c: Likewise.
6377         * misc/stty.c: Likewise.
6378         * misc/swapoff.c: Likewise.
6379         * misc/swapon.c: Likewise.
6380         * misc/sync.c: Likewise.
6381         * misc/syncfs.c: Likewise.
6382         * misc/syscall.c: Likewise.
6383         * misc/truncate.c: Likewise.
6384         * misc/ualarm.c: Likewise.
6385         * misc/usleep.c: Likewise.
6386         * misc/ustat.c: Likewise.
6387         * misc/utimes.c: Likewise.
6388         * misc/vhangup.c: Likewise.
6389         * misc/writev.c: Likewise.
6390         * posix/_exit.c: Likewise.
6391         * posix/alarm.c: Likewise.
6392         * posix/execve.c: Likewise.
6393         * posix/fexecve.c: Likewise.
6394         * posix/fork.c: Likewise.
6395         * posix/fpathconf.c: Likewise.
6396         * posix/getaddrinfo.c: Likewise.
6397         * posix/getegid.c: Likewise.
6398         * posix/geteuid.c: Likewise.
6399         * posix/getgid.c: Likewise.
6400         * posix/getgroups.c: Likewise.
6401         * posix/getlogin.c: Likewise.
6402         * posix/getlogin_r.c: Likewise.
6403         * posix/getpgid.c: Likewise.
6404         * posix/getpid.c: Likewise.
6405         * posix/getppid.c: Likewise.
6406         * posix/getresgid.c: Likewise.
6407         * posix/getresuid.c: Likewise.
6408         * posix/getsid.c: Likewise.
6409         * posix/getuid.c: Likewise.
6410         * posix/glob64.c: Likewise.
6411         * posix/nanosleep.c: Likewise.
6412         * posix/pathconf.c: Likewise.
6413         * posix/pause.c: Likewise.
6414         * posix/posix_madvise.c: Likewise.
6415         * posix/pread.c: Likewise.
6416         * posix/pread64.c: Likewise.
6417         * posix/pwrite.c: Likewise.
6418         * posix/pwrite64.c: Likewise.
6419         * posix/sched_getaffinity.c: Likewise.
6420         * posix/sched_getp.c: Likewise.
6421         * posix/sched_gets.c: Likewise.
6422         * posix/sched_primax.c: Likewise.
6423         * posix/sched_primin.c: Likewise.
6424         * posix/sched_rr_gi.c: Likewise.
6425         * posix/sched_setaffinity.c: Likewise.
6426         * posix/sched_setp.c: Likewise.
6427         * posix/sched_sets.c: Likewise.
6428         * posix/sched_yield.c: Likewise.
6429         * posix/setgid.c: Likewise.
6430         * posix/setlogin.c: Likewise.
6431         * posix/setpgid.c: Likewise.
6432         * posix/setresgid.c: Likewise.
6433         * posix/setresuid.c: Likewise.
6434         * posix/setsid.c: Likewise.
6435         * posix/setuid.c: Likewise.
6436         * posix/sleep.c: Likewise.
6437         * posix/spawni.c: Likewise.
6438         * posix/sysconf.c: Likewise.
6439         * posix/times.c: Likewise.
6440         * posix/wait.c: Likewise.
6441         * posix/wait3.c: Likewise.
6442         * posix/wait4.c: Likewise.
6443         * posix/waitpid.c: Likewise.
6444         * resolv/gai_sigqueue.c: Likewise.
6445         * resource/getpriority.c: Likewise.
6446         * resource/getrlimit.c: Likewise.
6447         * resource/getrusage.c: Likewise.
6448         * resource/nice.c: Likewise.
6449         * resource/setpriority.c: Likewise.
6450         * resource/setrlimit.c: Likewise.
6451         * resource/ulimit.c: Likewise.
6452         * rt/aio_cancel.c: Likewise.
6453         * rt/aio_fsync.c: Likewise.
6454         * rt/aio_read.c: Likewise.
6455         * rt/aio_sigqueue.c: Likewise.
6456         * rt/aio_suspend.c: Likewise.
6457         * rt/aio_write.c: Likewise.
6458         * rt/clock_getres.c: Likewise.
6459         * rt/clock_gettime.c: Likewise.
6460         * rt/clock_nanosleep.c: Likewise.
6461         * rt/clock_settime.c: Likewise.
6462         * rt/lio_listio.c: Likewise.
6463         * rt/mq_close.c: Likewise.
6464         * rt/mq_getattr.c: Likewise.
6465         * rt/mq_notify.c: Likewise.
6466         * rt/mq_open.c: Likewise.
6467         * rt/mq_receive.c: Likewise.
6468         * rt/mq_send.c: Likewise.
6469         * rt/mq_setattr.c: Likewise.
6470         * rt/mq_timedreceive.c: Likewise.
6471         * rt/mq_timedsend.c: Likewise.
6472         * rt/mq_unlink.c: Likewise.
6473         * rt/shm_open.c: Likewise.
6474         * rt/shm_unlink.c: Likewise.
6475         * rt/timer_create.c: Likewise.
6476         * rt/timer_delete.c: Likewise.
6477         * rt/timer_getoverr.c: Likewise.
6478         * rt/timer_gettime.c: Likewise.
6479         * rt/timer_settime.c: Likewise.
6480         * setjmp/__longjmp.c: Likewise.
6481         * setjmp/setjmp.c: Likewise.
6482         * signal/kill.c: Likewise.
6483         * signal/killpg.c: Likewise.
6484         * signal/raise.c: Likewise.
6485         * signal/sigaction.c: Likewise.
6486         * signal/sigaltstack.c: Likewise.
6487         * signal/sigblock.c: Likewise.
6488         * signal/sigignore.c: Likewise.
6489         * signal/sigintr.c: Likewise.
6490         * signal/signal.c: Likewise.
6491         * signal/sigpause.c: Likewise.
6492         * signal/sigpending.c: Likewise.
6493         * signal/sigqueue.c: Likewise.
6494         * signal/sigreturn.c: Likewise.
6495         * signal/sigset.c: Likewise.
6496         * signal/sigsetmask.c: Likewise.
6497         * signal/sigstack.c: Likewise.
6498         * signal/sigsuspend.c: Likewise.
6499         * signal/sigtimedwait.c: Likewise.
6500         * signal/sigvec.c: Likewise.
6501         * signal/sigwait.c: Likewise.
6502         * signal/sigwaitinfo.c: Likewise.
6503         * signal/sysv_signal.c: Likewise.
6504         * socket/accept.c: Likewise.
6505         * socket/accept4.c: Likewise.
6506         * socket/bind.c: Likewise.
6507         * socket/connect.c: Likewise.
6508         * socket/getpeername.c: Likewise.
6509         * socket/getsockname.c: Likewise.
6510         * socket/getsockopt.c: Likewise.
6511         * socket/isfdtype.c: Likewise.
6512         * socket/listen.c: Likewise.
6513         * socket/recv.c: Likewise.
6514         * socket/recvfrom.c: Likewise.
6515         * socket/recvmsg.c: Likewise.
6516         * socket/send.c: Likewise.
6517         * socket/sendmsg.c: Likewise.
6518         * socket/sendto.c: Likewise.
6519         * socket/setsockopt.c: Likewise.
6520         * socket/shutdown.c: Likewise.
6521         * socket/sockatmark.c: Likewise.
6522         * socket/socket.c: Likewise.
6523         * socket/socketpair.c: Likewise.
6524         * stdio-common/ctermid.c: Likewise.
6525         * stdio-common/cuserid.c: Likewise.
6526         * stdio-common/remove.c: Likewise.
6527         * stdio-common/rename.c: Likewise.
6528         * stdio-common/renameat.c: Likewise.
6529         * stdio-common/tempname.c: Likewise.
6530         * stdlib/getcontext.c: Likewise.
6531         * stdlib/makecontext.c: Likewise.
6532         * stdlib/setcontext.c: Likewise.
6533         * stdlib/swapcontext.c: Likewise.
6534         * stdlib/system.c: Likewise.
6535         * streams/fattach.c: Likewise.
6536         * streams/fdetach.c: Likewise.
6537         * streams/getmsg.c: Likewise.
6538         * streams/getpmsg.c: Likewise.
6539         * streams/putmsg.c: Likewise.
6540         * streams/putpmsg.c: Likewise.
6541         * sysdeps/unix/bsd/getpt.c: Likewise.
6542         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
6543         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
6544         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
6545         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
6546         Likewise.
6547         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
6548         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
6549         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
6550         * sysvipc/msgctl.c: Likewise.
6551         * sysvipc/msgget.c: Likewise.
6552         * sysvipc/msgrcv.c: Likewise.
6553         * sysvipc/msgsnd.c: Likewise.
6554         * sysvipc/semctl.c: Likewise.
6555         * sysvipc/semget.c: Likewise.
6556         * sysvipc/semop.c: Likewise.
6557         * sysvipc/semtimedop.c: Likewise.
6558         * sysvipc/shmat.c: Likewise.
6559         * sysvipc/shmctl.c: Likewise.
6560         * sysvipc/shmdt.c: Likewise.
6561         * sysvipc/shmget.c: Likewise.
6562         * termios/tcdrain.c: Likewise.
6563         * termios/tcflow.c: Likewise.
6564         * termios/tcflush.c: Likewise.
6565         * termios/tcgetattr.c: Likewise.
6566         * termios/tcgetpgrp.c: Likewise.
6567         * termios/tcsendbrk.c: Likewise.
6568         * termios/tcsetattr.c: Likewise.
6569         * termios/tcsetpgrp.c: Likewise.
6570         * time/adjtime.c: Likewise.
6571         * time/clock.c: Likewise.
6572         * time/getitimer.c: Likewise.
6573         * time/gettimeofday.c: Likewise.
6574         * time/setitimer.c: Likewise.
6575         * time/settimeofday.c: Likewise.
6576         * time/stime.c: Likewise.
6577         * time/time.c: Likewise.
6578
6579 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
6580
6581         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
6582         /usr/old/bin.
6583
6584         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
6585         instead of spaces.
6586         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
6587
6588 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
6589
6590         [BZ #14796]
6591         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
6592         FE_TONEAREST before applying Dekker multiplication and Knuth
6593         addition.  Clear inexact exceptions and check for exact zero
6594         results afterwards.
6595         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
6596         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
6597         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
6598         * math/libm-test.inc (fma_test): Add more tests.
6599         (fma_test_towardzero): Likewise.
6600         (fma_test_downward): Likewise.
6601         (fma_test_upward): Likewise.
6602         * sysdeps/generic/math_private.h (default_libc_fesetround): New
6603         function.
6604         (libc_fesetround): New macro.
6605         (libc_fesetroundf): Likewise.
6606         (libc_fesetroundl): Likewise.
6607         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
6608         function.
6609         (libc_fesetround_387): Likewise.
6610         (libc_fesetroundf): New macro.
6611         (libc_fesetround): Likewise.
6612         (libc_fesetroundl): Likewise.
6613         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
6614         function.
6615         (libc_fesetroundf): New macro.
6616         (libc_fesetround): Likewise.
6617         (libc_fesetroundl): Likewise.
6618         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
6619         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
6620         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
6621         libm_hidden_ver.
6622         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
6623         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
6624         libm_hidden_def.
6625         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
6626         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
6627         libm_hidden_ver.
6628         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
6629         libm_hidden_def.
6630
6631         [BZ #3439]
6632         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
6633         integer constant usable in #if and use that to give value to enum
6634         constant.
6635         (FE_DIVBYZERO): Likewise.
6636         (FE_UNDERFLOW): Likewise.
6637         (FE_OVERFLOW): Likewise.
6638         (FE_INVALID): Likewise.
6639         (FE_INVALID_SNAN): Likewise.
6640         (FE_INVALID_ISI): Likewise.
6641         (FE_INVALID_IDI): Likewise.
6642         (FE_INVALID_ZDZ): Likewise.
6643         (FE_INVALID_IMZ): Likewise.
6644         (FE_INVALID_COMPARE): Likewise.
6645         (FE_INVALID_SOFTWARE): Likewise.
6646         (FE_INVALID_SQRT): Likewise.
6647         (FE_INVALID_INTEGER_CONVERSION): Likewise.
6648         (FE_TONEAREST): Likewise.
6649         (FE_TOWARDZERO): Likewise.
6650         (FE_UPWARD): Likewise.
6651         (FE_DOWNWARD): Likewise.
6652         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
6653         (FE_DIVBYZERO): Likewise.
6654         (FE_OVERFLOW): Likewise.
6655         (FE_UNDERFLOW): Likewise.
6656         (FE_INEXACT): Likewise.
6657         (FE_TONEAREST): Likewise.
6658         (FE_DOWNWARD): Likewise.
6659         (FE_UPWARD): Likewise.
6660         (FE_TOWARDZERO): Likewise.
6661         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
6662         (FE_UNDERFLOW): Likewise.
6663         (FE_OVERFLOW): Likewise.
6664         (FE_DIVBYZERO): Likewise.
6665         (FE_INVALID): Likewise.
6666         (FE_TONEAREST): Likewise.
6667         (FE_TOWARDZERO): Likewise.
6668         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
6669         (FE_OVERFLOW): Likewise.
6670         (FE_UNDERFLOW): Likewise.
6671         (FE_DIVBYZERO): Likewise.
6672         (FE_INEXACT): Likewise.
6673         (FE_TONEAREST): Likewise.
6674         (FE_TOWARDZERO): Likewise.
6675         (FE_UPWARD): Likewise.
6676         (FE_DOWNWARD): Likewise.
6677         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
6678         (FE_DIVBYZERO): Likewise.
6679         (FE_OVERFLOW): Likewise.
6680         (FE_UNDERFLOW): Likewise.
6681         (FE_INEXACT): Likewise.
6682         (FE_TONEAREST): Likewise.
6683         (FE_DOWNWARD): Likewise.
6684         (FE_UPWARD): Likewise.
6685         (FE_TOWARDZERO): Likewise.
6686
6687 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
6688
6689         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
6690
6691 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
6692
6693         * scripts/cross-test-ssh.sh (command): Use newlines to separate
6694         commands.  Quote $PWD.
6695         (blacklist_exports): Don't use remove_newlines.  Replace "declare
6696         -x" by "export".
6697         (remove_newlines): Remove.
6698
6699 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
6700
6701         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
6702         * stdlib/stdlib.h (atof): Moved to ...
6703         * include/bits/stdlib-float.h: Here.  New file.
6704         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
6705         * stdlib/bits/stdlib-float.h: New file.
6706         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
6707         -mno-sse -mno-mmx.
6708         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
6709         <xmmintrin.h>.
6710
6711 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
6712
6713         * conform/conformtest.pl (@headers): Add fenv.h.
6714         * conform/data/fenv.h-data: New file.
6715         * include/fenv.h [_ISOMAC]: Disable all contents of file except
6716         include of <math/fenv.h>.
6717
6718         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
6719         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
6720         && !UNIX98].  Enables tests for XOPEN2K8.
6721         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
6722         POSIX2008]: Likewise.
6723
6724         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
6725         (struct rusage): Do not expect type or its members.
6726
6727         [BZ #3439]
6728         * math/math.h (FP_NAN): Define macro to integer constant usable in
6729         #if and use that to give value to enum constant.
6730         (FP_INFINITE): Likewise.
6731         (FP_ZERO): Likewise.
6732         (FP_SUBNORMAL): Likewise.
6733         (FP_NORMAL): Likewise.
6734
6735 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
6736
6737         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
6738         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
6739         arguments.
6740
6741 2012-11-02  Roland McGrath  <roland@hack.frob.com>
6742
6743         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
6744         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
6745         autoconf-time if not.
6746         * configure.in: Remove AC_PREREQ.
6747
6748 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6749
6750         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
6751         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
6752         of the internal implementation.
6753
6754 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
6755
6756         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
6757         except include of <misc/sys/syslog.h>.
6758
6759 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
6760
6761         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
6762         function returns with a NULL context exit with zero.
6763
6764 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6765
6766         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
6767
6768 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
6769
6770         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
6771         (run_program_cmd): This.
6772         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
6773         (tst_langinfo): New variable.  Use it.
6774
6775 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
6776
6777         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
6778         floating point opcodes.
6779
6780 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
6781
6782         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
6783         variable.
6784
6785         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
6786
6787         * sysdeps/mach/hurd/powerpc: Remove directory.
6788         * sysdeps/mach/powerpc: Likewise.
6789
6790 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
6791
6792         * scripts/check-local-headers.sh: Ignore c++ headers.
6793
6794 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
6795
6796         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
6797         __libc_cleanup_region_start argument.
6798
6799 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
6800
6801         [BZ #14784]
6802         [BZ #14785]
6803         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
6804         x * y using scaling, not as x * y + z.
6805         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
6806         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
6807         * math/libm-test.inc (fma_test): Add more tests.
6808         (fma_test_towardzero): Likewise.
6809         (fma_test_downward): Likewise.
6810         (fma_test_upward): Likewise.
6811
6812 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
6813
6814         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
6815
6816 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
6817
6818         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
6819         New variable.
6820
6821 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
6822
6823         * rt/tst-shm.c (worker): Correct checking for mmap failure.
6824
6825 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
6826
6827         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
6828         Fix sort order.
6829         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
6830         Likewise.
6831
6832 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6833
6834         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
6835         Fix the order of the list for glibc 2.17.
6836         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
6837         Likewise.
6838
6839 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
6840
6841         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6842
6843 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
6844
6845         [BZ #14610]
6846         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
6847         for low part of x being zero before using __atanl (y).
6848         * math/libm-test.inc (atan2_test): Add another test.
6849
6850         * manual/install.texi (Configuring and compiling): Document
6851         general use of test-wrapper and test-wrapper-env.
6852         * INSTALL: Regenerated.
6853
6854         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
6855         (__fma): Do not extract and scale down low bits on after-rounding
6856         systems when result rounded to normal precision would have normal
6857         exponent.
6858         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
6859         (__fmal): Do not extract and scale down low bits on after-rounding
6860         systems when result rounded to normal precision would have normal
6861         exponent.
6862         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
6863         (__fmal): Do not extract and scale down low bits on after-rounding
6864         systems when result rounded to normal precision would have normal
6865         exponent.
6866         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
6867         macro.
6868         (fma_test): Add more tests.
6869         (fma_test_towardzero): Likewise.
6870         (fma_test_downward): Likewise.
6871         (fma_test_upward): Likewise.
6872
6873 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
6874
6875         * sysdeps/i386/tininess.h: Renamed to ...
6876         * sysdeps/x86/tininess.h: This.
6877         * sysdeps/x86_64/tininess.h: Removed.
6878
6879 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
6880
6881         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
6882         input.  Use $(build-program-cmd).
6883         ($(objpfx)tst-array1-static.out): Likewise.
6884         ($(objpfx)tst-array2.out): Likewise.
6885         ($(objpfx)tst-array3.out): Likewise.
6886         ($(objpfx)tst-array4.out): Likewise.
6887         ($(objpfx)tst-array5.out): Likewise.
6888         ($(objpfx)tst-array5-static.out): Likewise.
6889
6890 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
6891
6892         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
6893         if defined.
6894
6895         * nss/nsswitch.h (nss_interface_function): Provide new
6896         macro for use with NSS functions.
6897         * grp/initgroups.c: Use new macro.
6898         * nss/getXXbyYY.c: Likewise.
6899         * nss/getXXbyYY_r.c: Likewise.
6900         * nss/getXXent.c: Likewise.
6901         * nss/getXXent_r.c: Likewise.
6902         * sysdeps/posix/getaddrinfo.c: Likewise.
6903
6904 2012-10-30  Andreas Jaeger  <aj@suse.de>
6905
6906         * po/ru.po: Update Russion translation from translation project.
6907
6908 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
6909
6910         [BZ #14152]
6911         [BZ #14783]
6912         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
6913         result and shift together with sticky bit instead of replicating
6914         round-to-nearest rounding.
6915         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
6916         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
6917         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
6918         missing underflow exceptions.
6919         (fma_test_towardzero): Add more tests.
6920         (fma_test_downward): Likewise.
6921         (fma_test_upward): Likewise.
6922
6923         [BZ #14047]
6924         * sysdeps/generic/tininess.h: New file.
6925         * sysdeps/i386/tininess.h: Likewise.
6926         * sysdeps/sh/tininess.h: Likewise.
6927         * sysdeps/x86_64/tininess.h: Likewise.
6928         * stdlib/tst-strtod-underflow.c: Likewise.
6929         * stdlib/tst-tininess.c: Likewise.
6930         * stdlib/strtod_l.c: Include <tininess.h>.
6931         (round_and_return): Do not set errno for exact underflow cases.
6932         Force an underflow exception when setting errno for underflow.
6933         Determine underflow based on rounding to normal precision if
6934         TININESS_AFTER_ROUNDING.
6935         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
6936         ERANGE for exact underflow cases.
6937         * stdlib/Makefile (tests): Add tst-tininess and
6938         tst-strtod-underflow.
6939         ($(objpfx)tst-tininess): Use $(link-libm).
6940         ($(objpfx)tst-strtod-underflow): Likewise.
6941
6942 2012-10-30  Andreas Jaeger  <aj@suse.de>
6943
6944         [BZ#14767]
6945         * elf/Makefile (tests): Remove conditional for have-initfini-array
6946         since this is now always required and the variable does not exist
6947         anymore.
6948         (tests-static): Likewise.
6949         (modules-names): Likewise.
6950
6951         * po/eo.po: Add Esperanto translation from translation project.
6952
6953         * elf/tst-array1.c (fini_array): Make writeable so that it can be
6954         merged with constructor/destructor.
6955         (init_array): Likewise.
6956         * elf/tst-array2dep.c (fini_array): Likewise.
6957         (init_array): Likewise.
6958
6959 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
6960
6961         * manual/message.texi: Delete @cartouche tags.
6962
6963 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
6964
6965         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
6966         EOPNOTSUPP.
6967         * sysdeps/mach/hurd/fsync.c: Likewise.
6968
6969         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
6970         [_POSIX_REALTIME_SIGNALS]: Change condition to
6971         [_POSIX_REALTIME_SIGNALS > 0].
6972
6973 2012-10-27  Andreas Jaeger  <aj@suse.de>
6974
6975         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
6976         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
6977         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
6978         [__WORDSIZE != 64]: Likewise.
6979
6980 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
6981
6982         *  iconvdata/tst-table.sh: Remove ${SHELL}.
6983         *  iconvdata/tst-tables.sh: Likewise.
6984
6985 2012-10-25  David S. Miller  <davem@davemloft.net>
6986
6987         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
6988         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
6989         of strtoull.
6990
6991         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
6992         ifunc-impl-list.c
6993         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
6994         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
6995         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
6996         file.
6997
6998 2012-10-25  Roland McGrath  <roland@hack.frob.com>
6999
7000         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
7001         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
7002         __getdirentries.
7003
7004 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
7005             Jim Blandy  <jimb@codesourcery.com>
7006
7007         * scripts/cross-test-ssh.sh: New file.
7008         * manual/install.texi (Configuring and compiling): Document use of
7009         cross-test-ssh.sh.
7010         * INSTALL: Regenerated.
7011
7012 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
7013
7014         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
7015         EOPNOTSUPP.
7016
7017 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
7018
7019         * Makeconfig (run-program-prefix): Fix comment.
7020
7021 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
7022             Jim Blandy  <jimb@codesourcery.com>
7023
7024         * Makeconfig (test-wrapper): New variable,
7025         (test-wrapper-env): Likewise.
7026         [$(cross-compiling) = yes && $(test-wrapper) != ""]
7027         (run-built-tests): Define to yes.
7028         (run-program-prefix): Use $(test-wrapper).
7029         (built-program-cmd): Likewise.
7030         * Rules (make-test-out): Use $(test-wrapper-env) and
7031         $(host-built-program-cmd).
7032         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
7033         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
7034         tst-pathopt.sh.
7035         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
7036         $(test-wrapper-env) to tst-rtld-load-self.sh.
7037         ($(objpfx)order2.out): Use $(test-wrapper).
7038         ($(objpfx)tst-initorder.out): Likewise.
7039         ($(objpfx)tst-initorder2.out): Likewise.
7040         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
7041         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
7042         (test_wrapper_env): New variable.  Use it to run ld.so.
7043         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
7044         Use it to run ld.so.
7045         (test_wrapper_env): Likewise.
7046         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
7047         $(test-wrapper) to run-iconv-test.sh.
7048         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
7049         (ICONV): Use $test_wrapper.
7050         * posix/Makefile ($(objpfx)globtest.out): Pass
7051         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
7052         globtest.sh, not $(run-program-prefix).
7053         * posix/globtest.sh (run_via_rtld_prefix): New variable.
7054         (test_wrapper): Likewise.
7055         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
7056         set together with run_via_rtld_prefix.
7057         (run_program_prefix): Define in terms of test_wrapper and
7058         run_via_rtld_prefix.
7059
7060 2012-10-24  Roland McGrath  <roland@hack.frob.com>
7061
7062         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
7063         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
7064         Targets removed.
7065
7066         [BZ #14743]
7067         * include/time.h: Remove librt_hidden_proto (clock_gettime).
7068         Declare __clock_getres, __clock_gettime, __clock_settime,
7069         __clock_nanosleep, and __clock_getcpuclockid.
7070         * rt/clock_gettime.c: Define __clock_gettime as an alias.
7071         Remove librt_hidden_def (clock_gettime).
7072         * sysdeps/unix/clock_gettime.c: Likewise.
7073         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
7074         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
7075         * rt/clock_getres.c: Define __clock_getres as an alias.
7076         * sysdeps/posix/clock_getres.c: Likewise.
7077         * rt/clock_settime.c: Define __clock_settime as an alias.
7078         * sysdeps/unix/clock_settime.c: Likewise.
7079         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
7080         * sysdeps/unix/clock_nanosleep.c: Likewise.
7081         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
7082         * rt/clock-compat.c: New file.
7083         * rt/Makefile (librt-routines): Add clock-compat and move
7084         $(clock-routines) to ...
7085         (routines): ... here, new variable.
7086         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
7087         Don't add get_clockfreq here.
7088         * rt/Versions (libc: GLIBC_2.17): New version set.
7089         Add clock_* symbols here.
7090         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
7091         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
7092         (GLIBC_2.17): Add clock_* symbols.
7093         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
7094         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
7095         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
7096         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
7097         Likewise.
7098         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
7099         Likewise.
7100         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
7101         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
7102         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
7103         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
7104         * NEWS: Mention the move.
7105
7106         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
7107         Use __open, __read, __close rather than their public counterparts.
7108         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
7109         (__get_clockfreq_via_cpuinfo): Likewise.
7110         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
7111         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
7112
7113         * config.h.in (HAVE_IFUNC): New #undef.
7114         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
7115         was successful.
7116         * configure: Regenerated.
7117
7118 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
7119
7120         * configure.in: Move READELF check to start of file.
7121         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
7122         libc_cv_asm_gnu_indirect_function in the process.
7123         * configure: Regenerated.
7124
7125 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
7126
7127         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
7128         send the output to /dev/null.
7129         (libc_cv_cc_with_libunwind): Likewise.
7130         (libc_cv_as_noexecstack): Likewise.
7131         * configure: Regenerate.
7132
7133 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
7134
7135         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
7136
7137         * posix/globtest.sh (TMPDIR): Do not set.
7138         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
7139         (testout): Likewise.
7140
7141 2012-10-24  Andreas Jaeger  <aj@suse.de>
7142
7143         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
7144         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
7145         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
7146         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
7147         posix_fadvise64, posix_fallocate64.
7148
7149         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
7150         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
7151         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
7152         Likewise.
7153         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
7154         Likewise.
7155         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
7156
7157         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
7158         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
7159         <bits/fcntl-linux.h>.
7160         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
7161
7162         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
7163         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
7164         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
7165         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
7166         [__WORDSIZE != 64]: Likewise.
7167
7168 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
7169
7170         * Makeconfig (run-built-tests): New variable.
7171         * Rules [$(cross-compiling) = yes]: Change condition to
7172         [$(run-built-tests) = no].
7173         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
7174         to [$(run-built-tests) = yes].
7175         * elf/Makefile [$(cross-compiling) = no]: Likewise
7176         * grp/Makefile [$(cross-compiling) = no]: Likewise.
7177         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
7178         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
7179         * intl/Makefile [$(cross-compiling) = no]: Likewise.
7180         * io/Makefile [$(cross-compiling) = no]: Likewise.
7181         * libio/Makefile [$(cross-compiling) = no]: Likewise.
7182         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
7183         * misc/Makefile [$(cross-compiling) = no]: Likewise.
7184         * posix/Makefile [$(cross-compiling) = no]: Likewise.
7185         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
7186         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
7187         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
7188         * string/Makefile [$(cross-compiling) = no]: Likewise.
7189
7190         * posix/Makefile ($(objpfx)globtest.out): Pass
7191         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
7192         $(rtld-installed-name).
7193         * posix/globtest.sh (elf_objpfx): Remove variable.
7194         (rtld_installed_name): Likewise.
7195         (library_path): Likewise.
7196         (run_program_prefix): New variable.  Use for running globtest
7197         binary.
7198
7199 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
7200             Joseph Myers  <joseph@codesourcery.com>
7201
7202         * Makeconfig (host-built-program-cmd): New variable.
7203         * elf/Makefile (tst-stackguard1-ARGS): Use
7204         $(host-built-program-cmd).
7205         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
7206         (tst-spawn-ARGS): Likewise.
7207         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
7208
7209 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
7210             Jim Blandy  <jimb@codesourcery.com>
7211
7212         * Makeconfig (run-via-rtld-prefix): New variable.
7213         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
7214         (built-program-cmd): Likewise.
7215
7216 2012-10-22  Andreas Jaeger  <aj@suse.de>
7217
7218         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
7219         __O_RSYNC if it exists, otherwise to O_SYNC.
7220
7221 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
7222             Joseph Myers  <joseph@codesourcery.com>
7223
7224         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
7225         /dev/null.
7226         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
7227         from /dev/null
7228         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
7229         /dev/null.
7230
7231 2012-10-22  Andreas Jaeger  <aj@suse.de>
7232
7233         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
7234         Define always.
7235         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
7236
7237         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7238         bits/fcntl-linux.h.
7239
7240         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
7241         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
7242
7243         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
7244         to __O_LARGEFILE.
7245         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
7246         to __O_LARGEFILE.
7247
7248 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
7249             Joseph Myers  <joseph@codesourcery.com>
7250
7251         * config.make.in (NM): New variable.
7252
7253 2012-10-21  Andreas Jaeger  <aj@suse.de>
7254
7255         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
7256         definitions and declarations that are provided by
7257         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
7258
7259 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
7260
7261         [BZ #14683]
7262         * elf/Makefile (tests-static): Add tst-leaks1-static.
7263         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
7264         ($(objpfx)tst-leaks1-static): New rule.
7265         ($(objpfx)tst-leaks1-static-mem): Likewise.
7266         (tst-leaks1-static-ENV): New macro.
7267         * elf/dl-open.c (dl_open_worker): Check the main application
7268         only if SHARED is defined.
7269         * elf/tst-leaks1-static.c: New file.
7270
7271 2012-10-20  Andreas Jaeger  <aj@suse.de>
7272
7273         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
7274         generic values for Linux.
7275         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
7276         and declarations that are provided by <bits/fcntl-linux.h> and
7277         include <bits/fcntl-linux.h>.
7278         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
7279         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
7280
7281 2012-10-20  Roland McGrath  <roland@hack.frob.com>
7282
7283         * io/fcntl.h: Move include of <bits/types.h> to the top and
7284         include it unconditionally.
7285
7286 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
7287
7288         * wcsmbs/Makefile (tests-ifunc): New variable.
7289         (tests): Add $(tests-ifunc).
7290         * wcsmbs/test-wcschr-ifunc.c: New file.
7291         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
7292         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
7293         * wcsmbs/test-wcslen-ifunc.c: Likewise.
7294         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
7295         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
7296
7297         * string/Makefile (tests-ifunc): New variable.
7298         (tests): Add $(tests-ifunc).
7299         * string/test-memccpy.c (TEST_NAME): New macro.
7300         * string/test-memchr.c (TEST_NAME): Likewise.
7301         * string/test-memcmp.c (TEST_NAME): Likewise.
7302         * string/test-memcpy.c (TEST_NAME): Likewise.
7303         * string/test-memmem.c (TEST_NAME): Likewise.
7304         * string/test-memmove.c (TEST_NAME): Likewise.
7305         * string/test-memset.c (TEST_NAME): Likewise.
7306         * string/test-rawmemchr.c (TEST_NAME): Likewise.
7307         * string/test-stpcpy.c (TEST_NAME): Likewise.
7308         * string/test-stpncpy.c (TEST_NAME): Likewise.
7309         * string/test-strcasecmp.c (TEST_NAME): Likewise.
7310         * string/test-strcasestr.c (TEST_NAME): Likewise.
7311         * string/test-strcat.c (TEST_NAME): Likewise.
7312         * string/test-strchr.c (TEST_NAME): Likewise.
7313         * string/test-strcmp.c(TEST_NAME): Likewise.
7314         * string/test-strcpy.c (TEST_NAME): Likewise.
7315         * string/test-strcspn.c (TEST_NAME): Likewise.
7316         * string/test-strlen.c (TEST_NAME): Likewise.
7317         * string/test-strncasecmp.c (TEST_NAME): Likewise.
7318         * string/test-strncmp.c (TEST_NAME): Likewise.
7319         * string/test-strncpy.c (TEST_NAME): Likewise.
7320         * string/test-strnlen.c (TEST_NAME): Likewise.
7321         * string/test-strpbrk.c (TEST_NAME): Likewise.
7322         * string/test-strrchr.c (TEST_NAME): Likewise.
7323         * string/test-strspn.c (TEST_NAME): Likewise.
7324         * string/test-strstr.c (TEST_NAME): Likewise.
7325         * string/test-bcopy-ifunc.c: New file.
7326         * string/test-bzero-ifunc.c: Likewise.
7327         * string/test-memccpy-ifunc.c: Likewise.
7328         * string/test-memchr-ifunc.c: Likewise.
7329         * string/test-memcmp-ifunc.c: Likewise.
7330         * string/test-memcpy-ifunc.c: Likewise.
7331         * string/test-memmem-ifunc.c: Likewise.
7332         * string/test-memmove-ifunc.c: Likewise.
7333         * string/test-mempcpy-ifunc.c: Likewise.
7334         * string/test-memset-ifunc.c: Likewise.
7335         * string/test-rawmemchr-ifunc.c: Likewise.
7336         * string/test-stpcpy-ifunc.c: Likewise.
7337         * string/test-stpncpy-ifunc.c: Likewise.
7338         * string/test-strcasecmp-ifunc.c: Likewise.
7339         * string/test-strcasestr-ifunc.c: Likewise.
7340         * string/test-strcat-ifunc.c: Likewise.
7341         * string/test-strchr-ifunc.c: Likewise.
7342         * string/test-strchrnul-ifunc.c: Likewise.
7343         * string/test-strcmp-ifunc.c: Likewise.
7344         * string/test-strcpy-ifunc.c: Likewise.
7345         * string/test-strcspn-ifunc.c: Likewise.
7346         * string/test-strlen-ifunc.c: Likewise.
7347         * string/test-strncasecmp-ifunc.c: Likewise.
7348         * string/test-strncat-ifunc.c: Likewise.
7349         * string/test-strncmp-ifunc.c: Likewise.
7350         * string/test-strncpy-ifunc.c: Likewise.
7351         * string/test-strnlen-ifunc.c: Likewise.
7352         * string/test-strpbrk-ifunc.c: Likewise.
7353         * string/test-strrchr-ifunc.c: Likewise.
7354         * string/test-strspn-ifunc.c: Likewise.
7355         * string/test-strstr-ifunc.c: Likewise.
7356
7357         * debug/Makefile (tests-ifunc): New variable.
7358         (tests): Add $(tests-ifunc).
7359         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
7360         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
7361         * debug/test-stpcpy_chk-ifunc.c: New file.
7362         * debug/test-strcpy_chk-ifunc.c: Likewise.
7363
7364 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
7365
7366         [BZ #13601]
7367         * elf/dl-load.c (open_verify): Retry read if the entire ELF
7368         header is not read in.
7369
7370 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
7371
7372         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
7373         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
7374         directly.  Pass built executable to script as
7375         $(built-program-cmd).
7376         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
7377         $testprogram without using LD_LIBRARY_PATH and $ldso.
7378
7379         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
7380         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
7381         $(rtld-installed-name).
7382         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
7383         (rtld_installed_name): Likewise.
7384         (library_path): Likewise.
7385         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
7386         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
7387         $(run-program-prefix) to tst-tables.sh.
7388         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
7389         it to run tst-table-from and tst-table-to.
7390         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
7391         Pass it to tst-table.sh.
7392         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
7393         $(run-program-prefix) to tst-gettext.sh.
7394         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
7395         tst-translit.sh.
7396         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
7397         tst-gettext2.sh.
7398         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
7399         to run tst-gettext.
7400         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
7401         to run tst-gettext2.
7402         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
7403         to run tst-translit.
7404         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
7405         $(run-program-prefix) to tst-mtrace.sh.
7406         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
7407         to run tst-mtrace.
7408         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
7409         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
7410         $(rtld-installed-name).
7411         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
7412         (rtld_installed_name): Likewise.
7413         (run_program_prefix): New variable.  Use it to run wordexp-test.
7414
7415         * Makeconfig (ARCH): Remove all definitions.
7416         (machine): Likewise.
7417         [ARCH]: Remove conditional code.
7418         [!objdir]: Give error.
7419         [!objdir] (objpfx): Remove.
7420         [!objdir] (common-objpfx): Likewise.
7421         [!objdir] (common-objdir): Likewise.
7422         * configure.in (config_makefile): Remove.  Hardcode Makefile in
7423         AC_CONFIG_FILES call.
7424         * configure: Regenerated.
7425
7426         [BZ #13888]
7427         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
7428         or TMPDIR.
7429         (testout): Likewise.
7430
7431         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
7432         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
7433         $(rtld-installed-name).
7434         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
7435         (rtld_installed_name): Likwise.
7436         (runit): Remove function.
7437         (run_getconf): New variable,  Use it for running getconf binary.
7438
7439 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
7440
7441         [BZ #14716]
7442         * string/test-memmem.c (check_result): New function.
7443         (do_one_test): Use it.
7444         (check1): New function.
7445         (test_main): Use it.
7446
7447 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
7448
7449         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
7450
7451 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
7452
7453         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
7454         (_G_LSEEK64): Likewise.
7455         (_G_MMAP64): Likewise.
7456         (_G_FSTAT64): Likewise.
7457         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
7458         (_G_LSEEK64): Likewise.
7459         (_G_MMAP64): Likewise.
7460         (_G_FSTAT64): Likewise.
7461         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
7462         unconditional.  Call __mmap64 directly.
7463         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
7464         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
7465         __lseek64 directly.
7466         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
7467         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
7468         __mmap64 directly.
7469         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
7470         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
7471         __lseek64 directly.
7472         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
7473         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
7474         __lseek64 directly.
7475         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
7476         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
7477         __lseek64 directly.
7478         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
7479         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
7480         __fxstat64 directly.
7481         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
7482         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
7483         unconditional.
7484         (freopen64) [!_G_OPEN64]: Remove conditional code.
7485         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
7486         unconditional.
7487         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
7488         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
7489         unconditional.
7490         (ftello64) [!_G_LSEEK64]: Remove conditional code.
7491         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
7492         unconditional.
7493         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
7494         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
7495         unconditional.
7496         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
7497         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
7498         unconditional.
7499         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
7500         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
7501         unconditional.
7502         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
7503         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
7504         unconditional.
7505         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
7506
7507 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
7508
7509         [BZ #12140]
7510         * manual/memory.texi (Malloc Tunable Parameters): Add note
7511         about free list pointers overwriting some perturb bytes.
7512         Wording suggested by Roland McGrath.
7513
7514 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
7515
7516         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
7517         (lgamma_test): Likewise.
7518         (tgamma_test): Likewise.
7519
7520 2012-10-16  Florian Weimer  <fweimer@redhat.com>
7521
7522         [BZ #14700]
7523         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
7524         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
7525
7526 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
7527
7528         * NEWS: Mention BZ #14716.
7529         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
7530         when removing AVAILABLE1_USES_J macro.
7531
7532 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
7533
7534         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
7535         (__bswap_64): __uint64_t for unsigned 64-bit int.
7536
7537 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
7538
7539         * include/string.h (memmem): Declare libc hidden alias.
7540         * string/memmem.c (memmem): Define libc hidden alias.
7541         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
7542         __read, __close instead of open, read, close.
7543
7544 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
7545
7546         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
7547         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
7548         global and hidden.
7549         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
7550         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
7551         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
7552         Likewise.
7553         (__rawmemchr_sse2): Likewise.
7554         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
7555         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
7556         (__strchr_sse2): Likewise.
7557         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
7558         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
7559         (__strcasecmp_sse2): Likewise.
7560         (__strncasecmp_sse2): Likewise.
7561         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
7562         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
7563         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
7564         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
7565         (__strrchr_sse2): Likewise.
7566         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
7567         ifunc-impl-list.c.
7568         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
7569         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
7570         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
7571         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
7572         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
7573         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
7574         * sysdeps/x86_64/multiarch/memset.S: Likewise.
7575         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
7576         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
7577         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
7578         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
7579         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
7580         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
7581         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
7582         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
7583         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
7584         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
7585         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
7586         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
7587         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
7588         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
7589         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
7590         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
7591         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
7592         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
7593         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
7594         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
7595         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
7596         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
7597         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
7598
7599         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
7600         global and hidden.
7601         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
7602         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
7603         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
7604         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
7605         Likewise.
7606         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
7607         Likewise.
7608         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
7609         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
7610         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
7611         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
7612         ifunc-impl-list.c.
7613         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
7614         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
7615         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
7616         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
7617         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
7618         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
7619         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
7620         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
7621         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
7622         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
7623         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
7624         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
7625         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
7626         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
7627         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
7628         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
7629         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
7630         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
7631         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
7632         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
7633         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
7634         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
7635         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
7636         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
7637         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
7638         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
7639         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
7640         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
7641         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
7642         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
7643         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
7644         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
7645         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
7646         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
7647         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
7648         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
7649         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
7650         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
7651         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
7652         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
7653         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
7654
7655         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
7656         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
7657         * include/ifunc-impl-list.h: New file.
7658         * misc/ifunc-impl-list.c: Likewise.
7659         * misc/Makefile (routines): Add ifunc-impl-list.
7660         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
7661         * string/test-string.h: Include <ifunc-impl-list.h>.
7662         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
7663         impl_array): New variables.
7664         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
7665         are defined.
7666         (test_init): Call __libc_ifunc_impl_list to initialize
7667         func_list if TEST_IFUNC and TEST_NAME are defined.
7668
7669         * string/Makefile (strop-tests): Add bcopy and bzero.
7670         * string/test-bcopy.c: New file.
7671         * string/test-bzero.c: Likewise.
7672         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
7673         defined.
7674         * string/test-memset.c: Support bzero test if TEST_BZERO is
7675         defined.
7676         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
7677         __libc_memmove.
7678         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
7679         __libc_memset.
7680         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
7681         of memset.
7682
7683 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
7684
7685         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
7686         * configure: Regenerated.
7687
7688         * Makeconfig (+link-static-before-libc): Don't include
7689         $(link-static-libc).
7690
7691         * libio/libio.h (_IO_pos_t): Remove.
7692
7693 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
7694
7695         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
7696         McGrath.
7697
7698 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
7699
7700         * crypt/crypt-entry.c: Include fips-private.h.
7701         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
7702         * crypt/md5c-test.c (main): Tolerate disabled MD5.
7703         * sysdeps/unix/sysv/linux/fips-private.h: New file.
7704         * sysdeps/generic/fips-private.h: New file, dummy fallback.
7705
7706 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
7707
7708         * crypt/crypt-private.h: Include stdbool.h.
7709         (_ufc_setup_salt_r): Return bool.
7710         * crypt/crypt-entry.c: Include errno.h.
7711         (__crypt_r): Return NULL with EINVAL for bad salt.
7712         * crypt/crypt_util.c (bad_for_salt): New.
7713         (_ufc_setup_salt_r): Check that salt is long enough and within
7714         the specified alphabet.
7715         * crypt/badsalttest.c: New file.
7716         * crypt/Makefile (tests): Add it.
7717         ($(objpfx)badsalttest): New.
7718
7719 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
7720
7721         * NEWS: Add entry for BZ #14602.
7722
7723 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
7724
7725         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
7726         type-generic.
7727         * math/libm-test.inc: Update comment listing what functions and
7728         macros are tested.
7729         (isgreater_test): New function.
7730         (isgreaterequal_test): Likewise.
7731         (isless_test): Likewise.
7732         (islessequal_test): Likewise.
7733         (islessgreater_test): Likewise.
7734         (isunordered_test): Likewise.
7735         (main): Call the new functions.
7736
7737 2012-10-09  Roland McGrath  <roland@hack.frob.com>
7738
7739         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
7740         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
7741         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
7742         * sysdeps/i386/configure: Regenerated.
7743         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
7744         * sysdeps/mach/configure: Regenerated.
7745         * sysdeps/mach/hurd/configure: Regenerated.
7746         * sysdeps/powerpc/configure: Regenerated.
7747         * sysdeps/powerpc/powerpc32/configure: Regenerated.
7748         * sysdeps/powerpc/powerpc64/configure: Regenerated.
7749         * sysdeps/s390/s390-32/configure: Regenerated.
7750         * sysdeps/s390/s390-64/configure: Regenerated.
7751         * sysdeps/sh/configure: Regenerated.
7752         * sysdeps/sparc/configure: Regenerated.
7753         * sysdeps/unix/sysv/linux/configure: Regenerated.
7754         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
7755         * sysdeps/x86_64/configure: Regenerated.
7756
7757         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
7758         defined.  Don't check if MAP is NULL.
7759
7760 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
7761
7762         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
7763         (_G_stat64): Likewise.
7764         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
7765         (_G_stat64): Likewise.
7766         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
7767         instead of struct _G_stat64.
7768         * libio/fileops.c (mmap_remap_check): Likewise.
7769         (decide_maybe_mmap): Likewise.
7770         (_IO_new_file_seekoff): Likewise.
7771         (_IO_file_stat): Likewise.
7772         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
7773         _G_off64_t.
7774         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
7775         instead of struct _G_stat64.
7776         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
7777
7778 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
7779
7780         [BZ #14602]
7781         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
7782         Replace with ...
7783         (CHECK_EOL): New macro.
7784         (two_way_short_needle): Check beginning of haystack for EOL.  Use
7785         CHECK_EOL.
7786         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
7787         Replace with CHECK_EOL.
7788         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
7789         Replace with CHECK_EOL.
7790
7791 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
7792
7793         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
7794         type-generic.
7795         * math/libm-test.inc: Update comment listing what functions and
7796         macros are tested.
7797         (finite_test): New function.
7798         (isinf_test): Likewise.
7799         (isnan_test): Likewise.
7800         (fpclassify_test): Test subnormal input.
7801         (isfinite_test): Likewise.
7802         (isnormal_test): Likewise.
7803         (main): Call the new functions.
7804
7805 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
7806
7807         [BZ #14660]
7808         * Makerules (%.dynsym): Force C locale when running
7809         $(OBJDUMP) --dynamic-syms.
7810
7811 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
7812
7813         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
7814         <stdint.h>.
7815
7816 2012-10-06  David S. Miller  <davem@davemloft.net>
7817
7818         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
7819         upper 32-bits of the length value in %o2 since we use branch-on-register
7820         tests which consider the entire 64-bit register.
7821
7822 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
7823
7824         * string/test-strstr.c (check2): Add a test for page boundary.
7825
7826 2012-10-05  David S. Miller  <davem@davemloft.net>
7827
7828         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
7829         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
7830         file.
7831         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
7832         sysdep_routines.
7833         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
7834         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
7835         and bzero when HWCAP_SPARC_CRYPTO is present.
7836
7837 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
7838
7839         [BZ #14602]
7840         * string/test-strstr.c (check2): New function.
7841         (test_main): Call check2.
7842
7843         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
7844         and bug-strchr1.
7845         * string/bug-strcasestr1.c (do_test): Moved to ...
7846         * string/test-strcasestr.c (check1): Here.  New function.
7847         (do_one_test): Break out result checking code into ...
7848         (check_result): This.  New function.
7849         (do_one_test): Call check_result.
7850         (test_main): Call check1.
7851         * string/bug-strchr1.c (do_test): Moved to ...
7852         * string/test-strchr.c (check1): Here.  New function.
7853         (do_one_test): Break out result checking code into ...
7854         (check_result): This.  New function.
7855         (do_one_test): Call check_result.
7856         (test_main): Call check1.
7857         * string/bug-strstr1.c (main): Moved to ...
7858         * string/test-strstr.c (check1): Here.  New function.
7859         (do_one_test): Break out result checking code into ...
7860         (check_result): This.  New function.
7861         (do_one_test): Call check_result.
7862         (test_main): Call check1.
7863         * string/bug-strcasestr1.c: Removed.
7864         * string/bug-strchr1.c: Likewise.
7865         * string/bug-strstr1.c: Likewise.
7866
7867         * elf/Makefile (dl-routines): Add hwcaps.
7868         * elf/dl-support.c (_dl_important_hwcaps): Removed.
7869         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
7870         (_dl_important_hwcaps): Moved to ...
7871         * elf/dl-hwcaps.c: Here.  New file.
7872         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
7873
7874         [BZ #14557]
7875         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
7876         if IS_IN_rtld isn't defined.
7877
7878         * elf/dl-support.c (_dl_sysinfo_map): New.
7879         Include "get-dynamic-info.h" and "setup-vdso.h".
7880         (_dl_non_dynamic_init): Call setup_vdso.
7881         * elf/dynamic-link.h: Don't include <assert.h>.
7882         (elf_get_dynamic_info): Moved to ...
7883         * elf/get-dynamic-info.h: Here.  New file.
7884         * elf/dynamic-link.h: Include "get-dynamic-info.h".
7885         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
7886         * elf/setup-vdso.h: Here.  New file.
7887         * elf/rtld.c: Include "setup-vdso.h".
7888         (dl_main): Call setup_vdso.
7889
7890 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
7891
7892         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
7893         creal in comment listing functions tested.  List finite, isinf,
7894         isnan, isless, islessequal, isgreater, isgreaterequal,
7895         islessgreater, isunordered, lgamma_r and pow10 as functions and
7896         macros not tested.  Mention which functions not tested are aliases
7897         for other functions.  Fix typo.  Note that signs of NaNs are not
7898         tested.
7899
7900         * scripts/config.guess: Update from config.git.
7901         * scripts/config.sub: Likewise.
7902
7903 2012-10-04  Roland McGrath  <roland@hack.frob.com>
7904
7905         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
7906         * misc/madvise.c (madvise): Renamed to __madvise.
7907         Make madvise a weak alias.
7908         * include/sys/mman.h: Declare __madvise.
7909         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
7910         * sysdeps/unix/syscalls.list
7911         (madvise): Make __madvise the strong name, and madvise a weak alias.
7912         * sysdeps/unix/sysv/linux/syscalls.list
7913         (madvise, mmap): Remove redundant entries.
7914         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
7915         * malloc/malloc.c (mtrim): Likewise.
7916         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
7917
7918 2012-10-03  Roland McGrath  <roland@hack.frob.com>
7919
7920         * sysdeps/mach/hurd/dl-cache.c: File removed.
7921         * config.h.in (USE_LDCONFIG): New #undef.
7922         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
7923         * configure: Regenerated.
7924         * elf/Makefile (dl-routines): Add dl-cache only under
7925         [$(use-ldconfig) = yes].
7926         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
7927         cache on [USE_LDCONFIG].
7928         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
7929         [USE_LDCONFIG].
7930         * elf/rtld.c (dl_main): Likewise.
7931
7932 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
7933
7934         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
7935         _SC_LEVEL4_CACHE_LINESIZE.
7936
7937 2012-10-03  Roland McGrath  <roland@hack.frob.com>
7938
7939         * sysdeps/unix/bsd/confstr.h: File removed.
7940
7941 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
7942
7943         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
7944         sys/sdt-config.h.
7945
7946 2012-10-02  Roland McGrath  <roland@hack.frob.com>
7947
7948         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
7949         Make 'mapoff' field ElfW(Off) rather than off_t.
7950
7951 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
7952
7953         * nscd/Makefile: Remove nscd-cflags and all its users.
7954         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
7955         (CFLAGS-nonlib): Add compiler flags for nscd modules.
7956
7957         [BZ #10631]
7958         * malloc.c (malloc_printerr): Clarify error message.
7959
7960 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
7961
7962         [BZ #14648]
7963         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
7964         Set bit_FMA_Usable if FMA is supported.
7965         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
7966         macro.
7967         (bit_FMA4_Usable): Updated.
7968         (index_FMA_Usable): New macro.
7969         (CPUID_FMA): Likewise
7970         (HAS_FMA): Defined with bit_FMA_Usable.
7971
7972 2012-10-01  Roland McGrath  <roland@hack.frob.com>
7973
7974         * bits/types.h (__swblk_t): Type removed.
7975         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
7976         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
7977         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
7978         (__SWBLK_T_TYPE): Likewise.
7979         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
7980         (__SWBLK_T_TYPE): Likewise.
7981         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
7982         (__SWBLK_T_TYPE): Likewise.
7983         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
7984         (__SWBLK_T_TYPE): Likewise.
7985
7986 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
7987             Honza Horak <hhorak@redhat.com>
7988
7989         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
7990         (xdr_mapname): Use YPMAXMAP as maxsize.
7991         (xdr_peername): Use YPMAXPEER as maxsize.
7992         (xdr_keydat): Use YPAXRECORD as maxsize.
7993         (xdr_valdat): Use YPMAXRECORD as maxsize.
7994
7995 2012-10-01  Roland McGrath  <roland@hack.frob.com>
7996
7997         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
7998
7999         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
8000         * csu/init-first.c: ... here.
8001         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
8002         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
8003         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
8004         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
8005         * sysdeps/i386/init-first.c: File removed.
8006         * sysdeps/sh/init-first.c: File removed.
8007
8008 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
8009
8010         [BZ #14645]
8011         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
8012         if x * y might underflow to zero and z is zero.
8013         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
8014         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
8015         * math/libm-test.inc (min_subnorm_value): New variable.
8016         (fma_test): Add more tests.
8017         (fma_test_towardzero): Likewise.
8018         (fma_test_downward): Likewise
8019         (fma_test_upward): Likewise.
8020         (initialize): Set min_subnorm_value.
8021
8022 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
8023
8024         [BZ #14638]
8025         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
8026         0 + 0.
8027         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
8028         mode for addition resulting in exact zero.
8029         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
8030         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
8031         exact 0 + 0.
8032         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
8033         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
8034         * math/libm-test.inc (fma_test): Add more tests.
8035         (fma_test_towardzero): New function.
8036         (fma_test_downward): Likewise.
8037         (fma_test_upward): Likewise.
8038         (main): Call the new functions.
8039
8040 2012-09-28  David S. Miller  <davem@davemloft.net>
8041
8042         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
8043
8044 2012-09-28  Roland McGrath  <roland@hack.frob.com>
8045
8046         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
8047         instead of SIGALRM.
8048
8049         * sysdeps/gnu/_G_config.h: Moved to ...
8050         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
8051         * sysdeps/mach/hurd/_G_config.h: Moved to ...
8052         * sysdeps/generic/_G_config.h: ... here.
8053
8054         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
8055
8056         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
8057
8058         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
8059         Conditionalize target on [libnss_test1.so-version].
8060
8061         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
8062
8063         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
8064         (elfobjdir): Move out of conditionals.
8065
8066         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
8067         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
8068         (__nss_lookup_function): Conditionalize label remove_from_tree on
8069         [!DO_STATIC_NSS || SHARED], matching its only use.
8070
8071 2012-09-28  David S. Miller  <davem@davemloft.net>
8072
8073         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
8074         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
8075         file.
8076         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
8077         sysdep_routines.
8078         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
8079         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
8080         when HWCAP_SPARC_CRYPTO is present.
8081
8082 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
8083
8084         * io/tst-mknodat.c: Create a FIFO instead of a socket.
8085
8086 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
8087
8088         [BZ #6530]
8089         * stdio-common/vfprintf.c (process_string_arg): Revert
8090         2000-07-22 change.
8091
8092 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
8093
8094         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
8095         for testcase.
8096         * stdio-common/tst-sprintf.c: Include <locale.h>
8097         (main): Test sprintf's handling of incomplete multibyte
8098         characters.
8099
8100 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
8101
8102         * elf/dl-runtime.c (VERSYMIDX): Removed.
8103         * elf/dl-version.c (VERSYMIDX): Likewise.
8104         * elf/do-rel.h (VERSYMIDX): Likewise.
8105         (VALIDX): Likewise.
8106         * elf/dynamic-link.h (VERSYMIDX): Likewise.
8107         * elf/rtld.c (VALIDX): Likewise.
8108         (ADDRIDX): Likewise.
8109         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
8110         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
8111         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
8112         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
8113         (VALIDX): Likewise.
8114         (ADDRIDX): Likewise.
8115
8116 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
8117
8118         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
8119
8120 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
8121
8122         [BZ #11438]
8123         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
8124         to global scope.
8125         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
8126         addresses are in the same scope as 192.0.2/24.
8127         * posix/gai.conf: Document new scope table defaults.
8128
8129 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
8130
8131         [BZ #5298]
8132         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
8133         for ftell.  Compute offsets from write pointers instead.
8134         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
8135
8136 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
8137
8138         [BZ #14543]
8139         * libio/Makefile (tests): New test case tst-fseek.
8140         * libio/tst-fseek.c: New test case to verify that fseek/ftell
8141         combination works in wide mode.
8142         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
8143         state when the external buffer state changes.
8144
8145 2012-09-27  David S. Miller  <davem@davemloft.net>
8146
8147         [BZ #14376]
8148         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
8149         pass reloc->r_addend in as the 'high' argument to
8150         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
8151
8152         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8153
8154 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
8155
8156         * rt/tst-aio2.c: Include <pthread.h>.
8157         * rt/tst-aio3.c: Likewise.
8158
8159 2012-09-27  Steve Ellcey  <sellcey@mips.com>
8160
8161         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
8162
8163 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
8164
8165         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
8166         contents on [SHARED].
8167
8168 2012-09-26  Marek Polacek  <polacek@redhat.com>
8169
8170         [BZ #14530]
8171         [BZ #13741]
8172         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
8173         for C++ and GCC <4.3 as well as for non GCC compilers.
8174
8175 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
8176
8177         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8178
8179 2012-09-25  Roland McGrath  <roland@hack.frob.com>
8180
8181         * Makefile.in (all, install): Declare with .PHONY.
8182         Reported by Michael Hope <michael.hope@linaro.org>.
8183
8184 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8185
8186         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
8187         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
8188         system header.
8189         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
8190         Likewise.
8191         (sydep_routines): Add the new and the internal functions.
8192         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
8193         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
8194         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
8195         (GLIBC_2.17): Add the new function.
8196         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
8197         (GLIBC_2.17): Likewise.
8198         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
8199         (GLIBC_2.17): Likewise.
8200         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
8201         (GLIBC_2.17): Likewise.
8202         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
8203
8204 2012-09-25  Alan Modra  <amodra@gmail.com>
8205
8206         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
8207         Add release barrier before setting once_control to say
8208         initialisation is done.  Add hints on lwarx.  Use macro in
8209         place of isync.
8210         (clear_once_control): Add release barrier.
8211
8212 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
8213
8214         [BZ #13629]
8215         * math/s_clog.c (__clog): Handle more values close to |z| = 1
8216         specially.
8217         * math/s_clog10.c (__clog10): Likewise.
8218         * math/s_clog10f.c (__clog10f): Likewise.
8219         * math/s_clog10l.c (__clog10l): Likewise.
8220         * math/s_clogf.c (__clogf): Likewise.
8221         * math/s_clogl.c (__clogl): Likewise.
8222         * math/Makefile (libm-calls): Add x2y2m1.
8223         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
8224         (__x2y2m1): Likewise.
8225         (__x2y2m1l): Likewise.
8226         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
8227         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
8228         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
8229         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
8230         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
8231         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
8232         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
8233         * sysdeps/i386/fpu/libm-test-ulps: Update.
8234         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8235
8236         [BZ #14621]
8237         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
8238         int as type of variable DEPTH.
8239         (glob): Use size_t instead of int as type of variables NEWCOUNT
8240         and OLD_PATHC.
8241
8242 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8243
8244         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
8245         Add s_sincosf-sse2.
8246         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
8247         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
8248         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
8249         macros for using routine as __sincosf_ia32.
8250         Use macro for function declaration and weak_alias.
8251         * sysdeps/i386/fpu/libm-test-ulps: Update.
8252
8253         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
8254         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8255
8256         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
8257         subnormal argument.
8258         * math/s_cexpf.c (__cexpf): Likewise.
8259         * math/s_csinf.c (__csinf): Likewise.
8260         * math/s_csinhf.c (__csinhf): Likewise.
8261         * math/s_ctanf.c (__ctanf): Likewise.
8262         * math/s_ctanhf.c (__ctanhf): Likewise.
8263         * math/s_ccosh.c (__ccoshf): Likewise.
8264         * math/s_cexp.c (__cexpl): Likewise.
8265         * math/s_csin.c (__csin): Likewise.
8266         * math/s_csinh.c (__csinh): Likewise.
8267         * math/s_ctan.c (__ctan): Likewise.
8268         * math/s_ctanh.c (ctanh): Likewise.
8269         * math/s_ccoshl.c (__ccoshl): Likewise.
8270         * math/s_cexpl.c (__cexpl): Likewise.
8271         * math/s_csinl.c (__csinl): Likewise.
8272         * math/s_csinhl.c (__csinhl): Likewise.
8273         * math/s_ctanl.c (__ctanl): Likewise.
8274         * math/s_ctanhl.c (__ctanhl): Likewise.
8275
8276 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
8277
8278         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
8279         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
8280         (_IO_off_t): Define to __off_t, not _G_off_t.
8281         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
8282         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
8283         (_IO_wint_t): Define to wint_t, not _G_wint_t.
8284         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
8285         type of __dummy and __dummy2 fields.
8286         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
8287         (_G_ssize_t): Likewise.
8288         (_G_off_t): Likewise.
8289         (_G_pid_t): Likewise.
8290         (_G_uid_t): Likewise.
8291         (_G_wchar_t): Likewise.
8292         (_G_wint_t): Likewise.
8293         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
8294         (_G_ssize_t): Likewise.
8295         (_G_off_t): Likewise.
8296         (_G_pid_t): Likewise.
8297         (_G_uid_t): Likewise.
8298         (_G_wchar_t): Likewise.
8299         (_G_wint_t): Likewise.
8300         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
8301         (_G_ssize_t): Likewise.
8302         (_G_off_t): Likewise.
8303         (_G_pid_t): Likewise.
8304         (_G_uid_t): Likewise.
8305         (_G_wchar_t): Likewise.
8306         (_G_wint_t): Likewise.
8307
8308 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
8309
8310         * malloc/arena.c: Include malloc-sysdep.h.
8311         (shrink_heap): Use check_may_shrink_heap to decide if madvise
8312         is sufficient to shrink the heap or an unmap is needed.
8313         * sysdeps/generic/malloc-sysdep.h: New file.  Define
8314         new function check_may_shrink_heap.
8315         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
8316         new function check_may_shrink_heap.
8317
8318 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
8319
8320         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
8321         comments.
8322
8323 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
8324
8325         * catgets/test-gencat.sh: Add "set -e".
8326         * elf/tst-pathopt.sh: Likewise.
8327         * grp/tst_fgetgrent.sh: Likewise.
8328         * iconvdata/run-iconv-test.sh: Likewise.
8329         * intl/tst-gettext.sh: Likewise.
8330         * intl/tst-gettext2.sh: Likewise.
8331         * intl/tst-gettext4.sh: Likewise.
8332         * intl/tst-gettext6.sh: Likewise.
8333         * intl/tst-translit.sh: Likewise.
8334         * io/ftwtest-sh: Likewise.
8335         * libio/test-freopen.sh: Likewise.
8336         * malloc/tst-mtrace.sh: Likewise.
8337         * posix/globtest.sh: Likewise.
8338         * posix/tst-getconf.sh: Likewise.
8339         * posix/wordexp-tst.sh: Likewise.
8340         * stdio-common/tst-printf.sh: Likewise.
8341         * stdio-common/tst-unbputc.sh: Likewise.
8342         * stdlib/tst-fmtmsg.sh: Likewise.
8343         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
8344         * catgets/Makefile: Do not specify -e option when running
8345         testsuite shell scripts.
8346         * elf/Makefile: Likewise.
8347         * grp/Makefile: Likewise.
8348         * iconvdata/Makefile: Likewise.
8349         * intl/Makefile: Likewise.
8350         * io/Makefile: Likewise.
8351         * libio/Makefile: Likewise.
8352         * malloc/Makefile: Likewise.
8353         * posix/Makefile: Likewise.
8354         * stdio-common/Makefile: Likewise.
8355         * stdlib/Makefile: Likewise.
8356         * sysdeps/x86_64/Makefile: Likewise.
8357
8358         * io/ftwtest-sh: Add copyright header.
8359         * posix/globtest.sh: Likewise.
8360         * posix/tst-getconf.sh: Likewise.
8361         * posix/wordexp-tst.sh: Likewise.
8362         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
8363
8364 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
8365
8366         [BZ #13679]
8367         * Makeconfig (+link): Defined as $(+link-static) if
8368         $(build-shared) isn't yes.
8369         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
8370         isn't yes.
8371         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
8372
8373         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
8374
8375         [BZ #14562]
8376         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
8377         new chunk size with MALLOC_ALIGN_MASK.
8378
8379 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
8380
8381         [BZ #5044]
8382         * stdio-common/printf_fphex.c: Include <stdbool.h> and
8383         <rounding-mode.h>.
8384         (__printf_fphex): Determine rounding using get_rounding_mode and
8385         round_away.
8386         * stdio-common/tst-printf-round.c (struct hex_test): New
8387         structure.
8388         (hex_tests): New variable.
8389         (test_hex_in_one_mode): New function.
8390         (do_test): Also run tests for hex float output.
8391
8392 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
8393
8394         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
8395         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
8396         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
8397         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
8398         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
8399         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
8400         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
8401         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
8402
8403 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
8404
8405         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
8406         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
8407         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
8408         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
8409
8410 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
8411
8412         [BZ #14579]
8413         * elf/rtld.c (dl_main): Limit the check for self loading to normal
8414         mode only.
8415         * elf/tst-rtld-load-self.sh: New test.
8416         * elf/Makefile: Run it.
8417
8418 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
8419
8420         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
8421         (tst-writev-ENV): Remove.
8422         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
8423
8424 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
8425
8426         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
8427
8428 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
8429
8430         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
8431         unconditional.
8432         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
8433         Likewise.
8434         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
8435         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
8436         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
8437         Likewise.
8438
8439 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
8440
8441         [BZ #14587]
8442         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
8443         * config.make.in (have-cpp-asm-debuginfo): Removed.
8444         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
8445         * configure: Regenerated.
8446
8447 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
8448
8449         [BZ #5044]
8450         * stdio-common/printf_fp.c: Include <stdbool.h> and
8451         <rounding-mode.h>.
8452         (___printf_fp): Determine rounding using get_rounding_mode and
8453         round_away.
8454         * stdio-common/tst-printf-round.c: New file.
8455         * stdio-common/Makefile (tests): Add tst-printf-round.
8456         (link-libm): New variable.
8457         ($(objpfx)tst-printf-round): Depend in $(link-libm).
8458
8459 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
8460
8461         [BZ #14576]
8462         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
8463         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
8464         Likewise.
8465         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
8466         Likewise.
8467
8468 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
8469
8470         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
8471         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
8472         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
8473         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
8474
8475 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
8476
8477         [BZ #14518]
8478         * include/rounding-mode.h: New file.
8479         * sysdeps/generic/get-rounding-mode.h: Likewise.
8480         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
8481         * stdlib/strtod_l.c: Include <rounding-mode.h>.
8482         (MAX_VALUE): New macro.
8483         (MIN_VALUE): Likewise.
8484         (overflow_value): New function.
8485         (underflow_value): Likewise.
8486         (round_and_return): Use overflow_value and underflow_value to
8487         determine return values in overflow and underflow cases.  Use
8488         round_away to determine rounding depending on rounding mode.
8489         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
8490         determine return values in overflow and underflow cases.
8491         * stdlib/tst-strtod-round.c: Include <fenv.h>.
8492         (struct test_results): New structure.
8493         (struct test): Use struct test_results to store expected results
8494         for all rounding modes.
8495         (TEST): Include expected results for all rounding modes.
8496         (test_in_one_mode): New function.
8497         (do_test): Use test_in_one_mode to compute and check results.
8498         Check results for all rounding modes.
8499         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
8500         $(link-libm).
8501
8502 2012-12-09  Allan McRae  <allan@archlinux.org>
8503
8504         * sysdeps/i386/fpu/libm-test-ulps: Update
8505
8506 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
8507
8508         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
8509         (_G_int32_t): Likewise.
8510         (_G_uint16_t): Likewise.
8511         (_G_uint32_t): Likewise.
8512         (_G_HAVE_BOOL): Likewise.
8513         (_G_HAVE_ATEXIT): Likewise.
8514         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
8515         (_G_HAVE_IO_FILE_OPEN): Likewise.
8516         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
8517         (_G_int32_t): Likewise.
8518         (_G_uint16_t): Likewise.
8519         (_G_uint32_t): Likewise.
8520         (_G_HAVE_BOOL): Likewise.
8521         (_G_HAVE_ATEXIT): Likewise.
8522         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
8523         (_G_HAVE_IO_FILE_OPEN): Likewise.
8524         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
8525         (_G_int32_t): Likewise.
8526         (_G_uint16_t): Likewise.
8527         (_G_uint32_t): Likewise.
8528         (_G_HAVE_BOOL): Likewise.
8529         (_G_HAVE_ATEXIT): Likewise.
8530         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
8531         (_G_HAVE_IO_FILE_OPEN): Likewise.
8532
8533 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
8534
8535         * csu/libc-tls.c: Update copyright years.
8536
8537 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
8538
8539         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
8540         [!_G_USING_THUNKS]: Remove conditional code.
8541         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
8542         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
8543
8544         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
8545         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
8546         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
8547         (_G_VTABLE_LABEL_PREFIX): Likewise.
8548         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
8549         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
8550         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
8551         (_G_VTABLE_LABEL_PREFIX): Likewise.
8552         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
8553         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
8554         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
8555         (_G_VTABLE_LABEL_PREFIX): Likewise.
8556         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
8557
8558 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
8559
8560         * libio/Makefile: Include ../Makeconfig before tests.
8561         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
8562         only if $(build-shared) is yes.
8563
8564         * iconv/gconv_db.c: Update copyright years.
8565
8566 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8567
8568         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
8569         unwind info if defined PIC. Fix special cases description.
8570         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
8571
8572         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
8573         DP_HI_MASK entry.
8574         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
8575
8576 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
8577
8578         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
8579
8580         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
8581         is NULL.
8582
8583         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
8584         (LDLIBS-tst-chk4): This.
8585         (LDFLAGS-tst-chk5): Renamed to ...
8586         (LDLIBS-tst-chk5): This.
8587         (LDFLAGS-tst-chk6): Renamed to ...
8588         (LDLIBS-tst-chk6): This.
8589         (LDFLAGS-tst-lfschk4): Renamed to ...
8590         (LDLIBS-tst-lfschk4): This.
8591         (LDFLAGS-tst-lfschk5): Renamed to ...
8592         (LDLIBS-tst-lfschk5): This.
8593         (LDFLAGS-tst-lfschk6): Renamed to ...
8594         (LDLIBS-tst-lfschk6): This.
8595
8596         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
8597         on $(common-objpfx)soversions.mk.
8598
8599 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
8600
8601         [BZ #10014]
8602         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
8603         example host name.
8604
8605 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
8606
8607         * malloc/arena.c (arena_get_retry): New function that gets
8608         another arena for the caller to try its request on.
8609         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
8610         current arena cannot fulfill the request.
8611         (__libc_memalign): Likewise.
8612         (__libc_memalign): Likewise.
8613         (__libc_pvalloc): Likewise.
8614         (__libc_calloc): Likewise.
8615
8616 2012-09-05  John Tobey  <john.tobey@gmail.com>
8617
8618         [BZ #13542]
8619         * manual/arith.texi (Operations on Complex): Fix description
8620         of carg branch cut.
8621
8622 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
8623
8624         [BZ #10014]
8625         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
8626         host name.
8627
8628         [BZ #10038]
8629         * manual/memory.texi (Memory): Make order of menu items match
8630         order of sections.
8631
8632 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
8633
8634         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
8635         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
8636         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
8637
8638 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
8639
8640         * csu/libc-tls.c (static_dtv): Renamed to ...
8641         (_dl_static_dtv): This.  Make it global.
8642         (_dl_initial_dtv): Removed.
8643         (__libc_setup_tls): Updated.
8644         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
8645         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
8646         DL_INITIAL_DTV.
8647
8648 2012-09-06  Petr Machata  <pmachata@redhat.com>
8649
8650         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
8651         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
8652         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
8653         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
8654
8655 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
8656
8657         [BZ #14545]
8658         * csu/libc-tls.c (_dl_initial_dtv): New variable.
8659         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
8660         freeing dtv[-1].
8661
8662 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
8663
8664         [BZ #14544]
8665         * Makeconfig (link-static-before-libc): Replace $(+prector)
8666         with $(+prectorT).
8667         (link-static-after-libc): Replace $(+postctor) with
8668         $(+postctorT).
8669         (link-bounded): Replace $(+prector)/$(+postctor) with
8670         $(+prectorT)/$(+postctorT).
8671         (+prectorT): New macro.
8672         (+postctorT): Likewise.
8673
8674 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
8675
8676         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
8677         (round_str): Handle values above the maximum for IBM long double
8678         as inexact.
8679         * stdlib/tst-strtod-round.c (tests): Regenerated.
8680
8681 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8682
8683         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
8684         assembler flag.
8685         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
8686         zarch_nohighgprs around the zarch optimized routines.
8687         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
8688         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
8689         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
8690         for zarch.
8691
8692 2012-09-05  David S. Miller  <davem@davemloft.net>
8693
8694         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8695
8696         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
8697         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
8698         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
8699         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
8700         entries.
8701
8702 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
8703
8704         * malloc/arena.c: Fold copyright years.
8705         * malloc/mcheck.c, malloc/memusage.c: Likewise.
8706
8707 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
8708
8709         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
8710
8711 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
8712
8713         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
8714
8715 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
8716
8717         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
8718         change internal state upon failure.
8719
8720 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
8721
8722         * malloc/mcheck.c (mcheck_check_all): Fix typo.
8723         * malloc/memusage.c (mmap): Likewise.
8724         (mmap64, mremap): Likewise.  Adjust name in comment.
8725
8726 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
8727
8728         * libio/fileops.c: Fix typos in comments.
8729         * libio/oldfileops.c: Likewise.
8730         * libio/wfileops.c: Likewise.
8731
8732 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
8733
8734         [BZ #1349]
8735         * malloc/Makefile (tests): Add tst-malloc-usable test case.
8736         (tst-malloc-usable-ENV): Set environment for test case.
8737         * malloc/hooks.c (malloc_check_get_size): New function to get
8738         requested size.
8739         * malloc/malloc.c (musable): Use malloc_check_get_size.
8740         * malloc/tst-malloc-usable.c: New test case.
8741
8742 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
8743
8744         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
8745
8746 2012-09-05  Allan McRae  <allan@archlinux.org>
8747
8748         [BZ #13966]
8749         * configure.in (CXX_SYSINCLUDES): Use compiler output to
8750         determine header location.
8751         * configure: Regenerated.
8752
8753 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
8754
8755         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
8756         float format.
8757         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
8758         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
8759         format.
8760         (test): Regenerate.
8761
8762 2012-09-04  David S. Miller  <davem@davemloft.net>
8763
8764         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
8765         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
8766         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
8767
8768 2012-09-04  Florian Weimer  <fweimer@redhat.com>
8769
8770         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
8771         failures.
8772
8773         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
8774
8775 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
8776
8777         [BZ #9914]
8778         * libio/iogetdelim.c: Include <limits.h>.
8779         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
8780         + len + 1 would overflow.
8781
8782 2012-09-03  Andreas Jaeger  <aj@suse.de>
8783
8784         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8785         * sysdeps/i386/fpu/libm-test-ulps: Update.
8786
8787 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8788
8789         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
8790         Add s_sinf-sse2, s_conf-sse2.
8791
8792         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
8793         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
8794         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
8795         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
8796
8797         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
8798         for using routine as __sinf_ia32.
8799         Use macro for function declaration and weak_alias.
8800         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
8801         for using routine as __cosf_ia32.
8802         Use macro for function declaration and weak_alias.
8803
8804         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
8805         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
8806
8807         * sysdeps/x86_64/fpu/s_sinf.S: New file.
8808         * sysdeps/x86_64/fpu/s_cosf.S: New file.
8809         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8810
8811         * math/libm-test.inc (cos_test): Add more test cases.
8812         (sin_test): Likewise.
8813         (sincos_test): Likewise.
8814
8815 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8816
8817         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
8818         (IFUNC_RESOLVE): Make pointers to the specialized implementations
8819         hidden.
8820         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
8821
8822 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
8823
8824         [BZ #14538]
8825         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
8826         first element of the GOT.
8827         (elf_machine_load_address): Return the difference between
8828         the runtime address of _DYNAMIC and elf_machine_dynamic ().
8829
8830 2012-09-01  Allan McRae  <allan@archlinux.org>
8831
8832         [BZ #13412]
8833         * configure.in (AWK): Require gawk version 3.0 or later.
8834         * configure: Regenerated.
8835
8836 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
8837
8838         * sysdeps/unix/sysv/linux/kernel-features.h
8839         (__ASSUME_POSIX_CPU_TIMERS): Remove.
8840         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
8841         [__NR_clock_getres]: Make code unconditional.
8842         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
8843         (clock_getcpuclockid): Remove code left unreachable by removal of
8844         conditionals.
8845         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
8846         code unconditional.
8847         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
8848         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
8849         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
8850         Make code unconditional.
8851         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
8852         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
8853         * sysdeps/unix/sysv/linux/clock_settime.c
8854         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
8855         conditional code.
8856         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
8857         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
8858
8859 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
8860
8861         [BZ #14476]
8862         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
8863         scripts/test-installation.pl.
8864
8865         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
8866         and $ld_so_version if it is set.
8867
8868 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
8869
8870         [BZ #14516]
8871         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
8872         failure if reading from procfs failed.
8873         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
8874
8875 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
8876
8877         * sysdeps/unix/sysv/linux/kernel-features.h
8878         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
8879         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
8880         Remove conditional code.
8881         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
8882         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
8883         Remove conditional code.
8884         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
8885         * sysdeps/unix/sysv/linux/i386/fxstat.c
8886         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
8887         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
8888         * sysdeps/unix/sysv/linux/i386/fxstatat.c
8889         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
8890         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
8891         * sysdeps/unix/sysv/linux/i386/lxstat.c
8892         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
8893         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
8894         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
8895         Remove conditional code.
8896         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
8897         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
8898         Remove conditional code.
8899         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
8900         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
8901         <kernel-features.h>.
8902         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
8903         Remove.
8904         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
8905         Remove conditional code.
8906         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
8907         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
8908         Remove conditional.
8909
8910 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
8911
8912         [BZ #5400]
8913         * NEWS: Add fixed bug number.
8914
8915 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
8916
8917         [BZ #14519]
8918         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
8919         underflowing exponent in case of negative sign.
8920         * stdlib/tst-strtod-round-data: Add more tests.
8921         * stdlib/tst-strtod-round.c (tests): Regenerated.
8922
8923         [BZ #3479]
8924         * stdlib/strtod_l.c (NDIG): Remove.
8925         (HEXNDIG): Likewise.
8926         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
8927         smallest representable value.
8928         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
8929         lie within an exact representation of 1/2 ulp of the result.
8930         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
8931         unconditionally.
8932         (TENS_P9_IDX): Define unconditionally.
8933         (TENS_P9_SIZE): Likewise.
8934         (TENS_P10_IDX): Likewise.
8935         (TENS_P10_SIZE): Likewise.
8936         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
8937         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
8938         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
8939         entries for 10^2^13 and 10^2^14.
8940         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
8941         (TENS_P13_IDX): Define.
8942         (TENS_P13_SIZE): Likewise.
8943         (TENS_P14_IDX): Likewise.
8944         (TENS_P14_SIZE): Likewise.
8945         (_fpioconst_pow10): Change array size to
8946         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
8947         unconditional.
8948         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
8949         1024]: Add entries for 10^2^13 and 10^2^14.
8950         [LAST_POW10 > _LAST_POW10]: Remove #error.
8951         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
8952         (_fpioconst_pow10): Change array size to
8953         FPIOCONST_POW10_ARRAY_SIZE.
8954         * stdlib/gen-fpioconst.c: New file.
8955         * stdlib/gen-tst-strtod-round.c: Likewise.
8956         * stdlib/tst-strtod-round-data: Likewise.
8957         * stdlib/tst-strtod-round.c: Likewise.
8958         * stdlib/Makefile (tests): Add tst-strtod-round.
8959
8960         [BZ #14459]
8961         * stdlib/strtod_l.c: Include <stdint.h>.
8962         (NDEBUG): Do not define.
8963         (round_and_return): Change EXPONENT parameter to type intmax_t.
8964         Rearrange calculations to avoid internal overflow possibilities.
8965         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
8966         Rearrange calculations to avoid internal overflow possibilities.
8967         Assert that number fits inside MPNSIZE limbs.
8968         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
8969         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
8970         calculations and add assertions to avoid internal overflow
8971         possibilities.  Add casts to avoid signed/unsigned operations.
8972         * stdlib/tst-strtod-overflow.c: New file.
8973         * stdlib/Makefile (tests): Add tst-strtod-overflow.
8974
8975 2012-08-25  Marek Polacek  <polacek@redhat.com>
8976
8977         * time/time.h: Fix some typos in comments.
8978
8979 2012-08-23  Roland McGrath  <roland@hack.frob.com>
8980
8981         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
8982         * posix/tst-rfc3484-2.c: Likewise.
8983         * posix/tst-rfc3484-3.c: Likewise.
8984
8985 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
8986
8987         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
8988         (EF_ARM_ABI_FLOAT_HARD): Likewise.
8989
8990 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
8991
8992         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
8993         #include of fxstatat64.c.
8994
8995 2012-08-22  Roland McGrath  <roland@hack.frob.com>
8996
8997         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
8998         * shadow/getspent_r.c: Likewise.
8999         * shadow/getspnam.c: Likewise.
9000         * shadow/getspnam_r.c: Likewise.
9001         * gshadow/getsgent.c: Likewise.
9002         * gshadow/getsgent_r.c: Likewise.
9003         * gshadow/getsgnam.c: Likewise.
9004         * gshadow/getsgnam_r.c: Likewise.
9005         * inet/getnetbyad.c: Likewise.
9006         * inet/getnetbyad_r.c: Likewise.
9007         * inet/getnetbynm.c: Likewise.
9008         * inet/getnetbynm_r.c: Likewise.
9009         * inet/getnetent.c: Likewise.
9010         * inet/getnetent_r.c: Likewise.
9011         * inet/getproto.c: Likewise.
9012         * inet/getproto_r.c: Likewise.
9013         * inet/getprtent.c: Likewise.
9014         * inet/getprtent_r.c: Likewise.
9015         * inet/getprtname.c: Likewise.
9016         * inet/getprtname_r.c: Likewise.
9017         * inet/getrpcbyname.c: Likewise.
9018         * inet/getrpcbyname_r.c: Likewise.
9019         * inet/getrpcbynumber.c: Likewise.
9020         * inet/getrpcbynumber_r.c: Likewise.
9021         * inet/getrpcent.c: Likewise.
9022         * inet/getrpcent_r.c: Likewise.
9023         * inet/getaliasent.c: Likewise.
9024         * inet/getaliasent_r.c: Likewise.
9025         * inet/getaliasname.c: Likewise.
9026         * inet/getaliasname_r.c: Likewise.
9027         * nscd/getgrgid_r.c: Likewise.
9028         * nscd/getgrnam_r.c: Likewise.
9029         * nscd/gethstbyad_r.c: Likewise.
9030         * nscd/gethstbynm3_r.c: Likewise.
9031         * nscd/getpwnam_r.c: Likewise.
9032         * nscd/getpwuid_r.c: Likewise.
9033         * nscd/getsrvbynm_r.c: Likewise.
9034         * nscd/getsrvbypt_r.c: Likewise.
9035         * nscd/gai.c: Likewise.
9036
9037         * configure.in (build_nscd): New substituted variable, set
9038         by --disable-build-nscd and defaults to $use_nscd.
9039         * configure: Regenerated.
9040         * config.make.in (build-nscd): New substituted variable.
9041         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
9042         Change conditional to require [$(build-nscd) = yes] as well.
9043         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
9044
9045         [BZ# 13696]
9046         * configure.in (use_nscd): New substituted variable, set by
9047         --disable-nscd.  If enabled, define USE_NSCD.
9048         * configure: Regenerated.
9049         * config.h.in: Add USE_NSCD.
9050         * config.make.in (use-nscd): New substituted variable.
9051         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
9052         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
9053         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
9054         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
9055         (CFLAGS-getgrnam_r.c): Likewise.
9056         (CFLAGS-initgroups.c): Likewise.
9057         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
9058         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
9059         Variables removed.
9060         * inet/getnetgrent_r.c
9061         (nscd_setnetgrent): New function, broken out of ...
9062         (setnetgrent): ... here.  Call it.
9063         (innetgr): Conditionalize nscd bits on [USE_NSCD].
9064         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
9065         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
9066         * nscd/Makefile (routines, aux): Move definitions after include of
9067         Makeconfig.  Conditionalize on [$(use-nscd) != no].
9068         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
9069         Conditionalize on [USE_NSCD].
9070         (is_nscd, nscd_init_cb): Likewise.
9071         (nss_load_library): Conditionalize init callback on [USE_NSCD].
9072         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
9073         * nss/nss_db/db-init.c: Likewise.
9074         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
9075         [USE_NSCD].
9076         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
9077         (make_request): Use it.
9078         (cache_valid_p): New function.
9079         (__check_pf): Use it.
9080         * NEWS: Add item for --disable-nscd.
9081
9082 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
9083
9084         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
9085         to support sed >= 4.2.1-20-ga9bf076.
9086         * configure: Regenerated.
9087
9088 2012-08-22  Roland McGrath  <roland@hack.frob.com>
9089
9090         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
9091         Conditionalize whole body on [IREL].
9092
9093 2012-08-22  Jeff Law <law@redhat.com>
9094
9095         [BZ #14505]
9096         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
9097         if the family is PF_UNSPEC.
9098
9099 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
9100
9101         * Makerules (lib-version): Rename from V.
9102         (install-lib-nosubdir): Change V to lib-version.
9103
9104 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
9105
9106         [BZ #14252]
9107         * powerpc32/power6/wcschr.c: New file.
9108         * powerpc32/power6/wcscpy.c: New file.
9109         * powerpc32/power6/wcsrchr.c: New file.
9110         * powerpc64/power6/wcschr.c: New file.
9111         * powerpc64/power6/wcscpy.c: New file.
9112         * powerpc64/power6/wcsrchr.c: New file.
9113
9114 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
9115
9116         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
9117         (two_way_short_needle): Use it.
9118         * string/strstr.c (AVAILABLE1_USES_J): Define.
9119         * string/strcasestr.c: Likewise.
9120
9121         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
9122         array references.
9123         * string/strcasestr.c (TOLOWER): Make side-effect safe.
9124
9125         [BZ #11607]
9126         * NEWS: Add an entry.
9127         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
9128         define their defaults.
9129         (two_way_short_needle): Detect end-of-string on-the-fly.
9130         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
9131         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
9132         * string/bug-strcasestr1.c: New test.
9133         * string/Makefile: Run it.
9134
9135 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
9136
9137         [BZ #11607]
9138         * string/str-two-way.h (two_way_short_needle): Optimize matching of
9139         the first character.
9140
9141 2012-08-21  Roland McGrath  <roland@hack.frob.com>
9142
9143         * csu/elf-init.c (__libc_csu_irel): Function removed.
9144         * csu/libc-start.c (apply_irel): New function.
9145         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
9146
9147 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
9148
9149         * sysdeps/unix/sysv/linux/kernel-features.h
9150         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
9151         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
9152         <kernel-features.h>.
9153         [__NR_fadvise64_64]: Make code unconditional.
9154         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
9155         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
9156         !__NR_fadvise64_64)]: Likewise.
9157         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
9158         !__NR_fadvise64_64))]: Likewise.
9159         [__NR_fadvise64]: Make code unconditional.
9160         [!__NR_fadvise64]: Remove conditional code.
9161         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
9162         <kernel-features.h>.
9163         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
9164         unconditional.
9165         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
9166         conditional code.
9167         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
9168         not include <kernel-features.h>.
9169         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
9170         unconditional.
9171         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
9172         conditional code.
9173         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
9174         include <kernel-features.h>.
9175         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
9176         unconditional.
9177         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
9178         conditional code.
9179
9180 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
9181
9182         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
9183         slight instruction rearrangements per scrollpipe analysis.
9184         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
9185
9186 2012-08-20  Roland McGrath  <roland@hack.frob.com>
9187
9188         * manual/syslog.texi (syslog; vsyslog, closelog):
9189         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
9190         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
9191
9192         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
9193         DSOCAPS to match condition on defining it.
9194
9195 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
9196
9197         * sysdeps/unix/sysv/linux/kernel-features.h
9198         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
9199         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
9200         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
9201         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
9202         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
9203         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
9204         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
9205         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
9206         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
9207         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
9208
9209         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
9210         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
9211
9212         * sysdeps/unix/sysv/linux/kernel-features.h
9213         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
9214         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
9215         unconditional.
9216         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
9217         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
9218         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
9219         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
9220         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
9221         Make code unconditional.
9222         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
9223         (__mmap64) [!__NR_mmap2]: Likewise.
9224         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
9225         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
9226         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
9227         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
9228         [__NR_mmap2]: Make code unconditional.
9229         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
9230         (__mmap64) [!__NR_mmap2]: Likewise.
9231
9232 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9233
9234         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
9235
9236 2012-08-18  Andreas Jaeger  <aj@suse.de>
9237
9238         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
9239
9240 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
9241
9242         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
9243         * include/unistd.h (__have_sock_cloexec): Likewise.
9244         (__have_pipe2): Likewise.
9245         (__have_dup3): Likewise.
9246
9247 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
9248
9249         [BZ #9685]
9250         * include/unistd.h (__have_pipe2): Change define into an extern int.
9251         (__have_dup3): Likewise.
9252         * socket/have_sock_cloexec.c: Include fcntl.h.
9253         (__have_pipe2): New variable.
9254         (__have_dup3): Likewise.
9255
9256 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
9257
9258         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
9259
9260 2012-08-17  Marek Polacek  <polacek@redhat.com>
9261
9262         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
9263         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
9264
9265 2012-08-17  Roland McGrath  <roland@hack.frob.com>
9266
9267         * configure.in: Add AC_SUBST for sysheaders.
9268         * configure: Regenerated.
9269         * config.make.in (sysheaders): New substituted variable.
9270
9271         * sysdeps/unix/mkfifo.c: Moved ...
9272         * sysdeps/posix/mkfifo.c: ... here.
9273         * sysdeps/unix/mkfifoat.c: Moved ...
9274         * sysdeps/posix/mkfifoat.c: ... here.
9275
9276         * sysdeps/unix/utime.c: Moved ...
9277         * sysdeps/posix/utime.c: ... here.
9278
9279         * sysdeps/unix/time.c: Moved ...
9280         * sysdeps/posix/time.c: ... here.
9281         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
9282         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
9283
9284         * sysdeps/unix/nice.c: Moved ...
9285         * sysdeps/posix/nice.c: ... here.
9286
9287         * sysdeps/unix/alarm.c: Moved ...
9288         * sysdeps/posix/alarm.c: ... here.
9289
9290         * intl/Makefile ($(codeset_mo)): Depend on the input file.
9291
9292 2012-08-17  Jeff Law <law@redhat.com>
9293
9294         * intl/Makefile (codeset_mo): New variable.
9295         ($(codeset_mo)): New target.
9296         (tst-codeset.out): Depend on that.  Remove explicit rule.
9297         (tst-gettext3.out, tst-gettext5.out): Likewise.
9298         (LOCPATH-ENV, tst-codeset-ENV): New variables.
9299         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
9300         * intl/tst-codeset.sh: Remove.
9301         * intl/tst-gettext3.sh: Likewise.
9302         * intl/tst-gettext5.sh: Likewise.
9303
9304 2012-08-17  Roland McGrath  <roland@hack.frob.com>
9305
9306         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
9307         * sysdeps/unix/syscalls.list: ... here.
9308
9309         * sysdeps/posix/getaddrinfo.c
9310         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
9311         (gaiconf_init, gaiconf_reload): Use them.
9312         [!_STATBUF_ST_NSEC]
9313         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
9314         Define using time_t rather than struct timespec.
9315
9316         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
9317         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
9318         Macros removed.
9319         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
9320         [!NO_THREADS].
9321         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
9322         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
9323         Likewise.
9324
9325         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
9326         __libc_cleanup_push argument.
9327
9328         * bits/param.h: New file.
9329         * misc/sys/param.h: New file.
9330         * include/sys/param.h: New file.
9331         * misc/Makefile (headers): Add bits/param.h.
9332         * sysdeps/generic/sys/param.h: File removed.
9333         * sysdeps/unix/sysv/linux/bits/param.h: New file.
9334         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
9335         * sysdeps/mach/hurd/bits/param.h: New file.
9336         * sysdeps/mach/hurd/sys/param.h: File removed.
9337
9338         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
9339         last change.
9340
9341         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
9342         [_IO_MTSAFE_IO].
9343         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
9344         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
9345         New macros.
9346
9347         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
9348         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
9349         rather than -D_IO_MTSAFE_IO conditionally.
9350         * stdio-common/Makefile (CPPFLAGS): Likewise.
9351         * wcsmbs/Makefile (CPPFLAGS): Likewise.
9352         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
9353         Use $(libio-mtsafe).
9354         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
9355         of -D_IO_MTSAFE_IO.
9356         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
9357         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
9358         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
9359         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
9360         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
9361         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
9362         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
9363         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
9364         (CFLAGS-fread_u_chk.c): Likewise.
9365         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
9366         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
9367         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
9368         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
9369         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
9370         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
9371         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
9372         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
9373         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
9374
9375         * libio/Makefile: Test [$(libc-reentrant) = yes]
9376         instead of [$(filter %REENTRANT, $(defines)) nonempty].
9377
9378         * Makeconfig
9379         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
9380         * sysdeps/pthread/configure: File removed.
9381         * sysdeps/pthread/Makeconfig: New file.
9382         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
9383         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
9384
9385 2012-08-16  Gary Benson  <gbenson@redhat.com>
9386
9387         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
9388         unmapping the first object in a namespace.
9389
9390 2012-08-16  Roland McGrath  <roland@hack.frob.com>
9391
9392         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
9393         (__internal_setnetgrent): ... this.  Add internal_function to
9394         definition.  Add libc_hidden_def.
9395         (setnetgrent): Update caller.
9396         (internal_endnetgrent): Renamed to ...
9397         (__internal_endnetgrent): ... this.  Add internal_function to
9398         definition.  Add libc_hidden_def.
9399         (endnetgrent): Update caller.
9400         (internal_getnetgrent_r): Renamed to ...
9401         (__internal_getnetgrent_r): ... this.  Add internal_function to
9402         definition.  Add libc_hidden_def.
9403         (__getnetgrent_r): Update caller.
9404         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
9405
9406 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
9407
9408         * stdlib/longlong.h: Update from GCC.
9409
9410 2012-08-16  Roland McGrath  <roland@hack.frob.com>
9411
9412         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
9413         on _QL, which is set by umul_ppmm but never used.
9414         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
9415         variables, which are set by GMP macros but never used.
9416         * stdio-common/_itowa.c (_itowa): Likewise.
9417         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
9418         * stdlib/mod_1.c (mpn_mod_1): Likewise.
9419
9420 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
9421
9422         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
9423         struct La_sh_regs is not constant.
9424         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
9425         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
9426         and struct La_sparc64_regs are not constant.
9427
9428 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
9429
9430         * sysdeps/unix/sysv/linux/kernel-features.h
9431         (__ASSUME_POSIX_TIMERS): Remove.
9432         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
9433         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
9434         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
9435         Make code unconditional.
9436         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
9437         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
9438         Make code unconditional.
9439         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
9440         * sysdeps/unix/sysv/linux/clock_nanosleep.c
9441         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
9442         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
9443         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
9444         Make code unconditional.
9445         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
9446         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
9447         (__libc_missing_posix_timers): Remove.
9448
9449 2012-08-15  Roland McGrath  <roland@hack.frob.com>
9450
9451         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
9452         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
9453
9454         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
9455
9456         * elf/dl-sym.c: Include <stdlib.h>.
9457
9458         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
9459         constants, which avoids warnings in 32-bit builds.
9460
9461         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
9462         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
9463
9464         * misc/lseek.c: File moved to ...
9465         * io/lseek.c: ... here.
9466
9467         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
9468
9469         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
9470         shifting LEN more than 31 bits at once.
9471
9472 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9473
9474         [BZ #14195]
9475         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
9476         segmentation fault for a case of two empty input strings.
9477         * string/test-strncasecmp.c (check1): Renamed to...
9478         (bz12205): ...this.
9479         (bz14195): Add new testcase for two empty input strings and N > 0.
9480         (test_main): Call new testcase, adapt for renamed function.
9481
9482 2012-08-15  Andreas Jaeger  <aj@suse.de>
9483
9484         [BZ #14090]
9485         * crypt/md5test2.c: New test, based on test supplied by Serge
9486         Belyshev <belyshev@depni.sinp.msu.ru>.
9487         * crypt/Makefile (xtests): Add md5test-giant..
9488         * crypt/Makefile ($(objpfx)md5test-giant): Add.
9489
9490 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
9491
9492         [BZ #14090]
9493         * crypt/md5.c (md5_process_block): Don't assume the buffer
9494         length is less than 2**32.
9495         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
9496         length is less than 2**64.
9497
9498 2012-08-15  Roland McGrath  <roland@hack.frob.com>
9499
9500         * string/str-two-way.h: Include <sys/param.h>.
9501         (MAX): Macro removed.
9502
9503         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
9504         Move #define and #undef of memmove to just before and after
9505         including <string.h>.
9506
9507         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
9508         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
9509         and after including <string.h>.  Move declarations of
9510         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
9511         to before #include "string/memmove.c".
9512
9513         * include/dirent.h: Declare __getdirentries.
9514
9515         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
9516         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
9517
9518 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
9519
9520         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
9521         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
9522         * sysdeps/i386/configure: Regenerated.
9523         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
9524         STABS_CURRENT_FILE, and STABS_FUN.
9525         (END): Remove call to STABS_FUN_END.
9526         (STABS_CURRENT_FILE1): Delete.
9527         (STABS_CURRENT_FILE): Likewise.
9528         (STABS_FUN): Likewise.
9529         (STABS_FUN_END): Likewise.
9530         (STABS_FUN2): Likewise.
9531         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
9532         * sysdeps/x86_64/configure: Regenerated.
9533
9534 2012-08-14  Roland McGrath  <roland@hack.frob.com>
9535
9536         * elf/dl-open.c: Include <atomic.h>.
9537         * elf/dl-lookup.c: Likewise.
9538
9539 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
9540
9541         * sysdeps/unix/sysv/linux/kernel-features.h
9542         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
9543         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
9544         unconditionally.
9545         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
9546         unconditionally.
9547         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
9548         condition on __ASSUME_CLONE_THREAD_FLAGS.
9549
9550 2012-08-14  Andreas Jaeger  <aj@suse.de>
9551
9552         * sysdeps/i386/fpu/libm-test-ulps: Update.
9553
9554 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
9555
9556         * include/atomic.h (atomic_exchange_and_add): Split into ...
9557         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
9558         New atomic macros.
9559
9560 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
9561
9562         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9563
9564 2012-08-13  Jeff Law <law@redhat.com>
9565
9566         * manual/stdio.texi (snprintf): Clarify handling of the trailing
9567         null byte in the output string.
9568
9569 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
9570
9571         * sysdeps/unix/sysv/linux/kernel-features.h
9572         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
9573         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
9574         (__ASSUME_ARG_MAX_STACK_BASED): Define.
9575         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
9576         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
9577         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
9578         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
9579
9580 2012-08-09  Jeff Law <law@redhat.com>
9581
9582         [BZ #13939]
9583         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
9584         When avoid_arena is set, don't retry in the that arena.  Pick the
9585         next one, whatever it might be.
9586         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
9587         (arena_lock): Pass in new parameter to arena_get2.
9588         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
9589         arena_get2.
9590         (__libc_malloc): Unify retrying after main arena failure with
9591         __libc_memalign version.
9592         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
9593
9594 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
9595
9596         [BZ #14166]
9597         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
9598         to __redirect_strstr.
9599         (__strstr_sse42): Use typeof __redirect_strstr.
9600         (__strstr_ia32): Likewise.
9601         (__libc_strstr): New prototype.
9602         (strstr): Renamed to ...
9603         (__libc_strstr): This.
9604         (strstr): New strong alias of __libc_strstr.
9605         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
9606         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
9607         __redirect_time.
9608         Include <time.h>.
9609         (__libc_time): New prototype.
9610         (time_ifunc): Replace time with __libc_time.
9611         (time): New strong alias and hidden definition of __libc_time.
9612         (__GI_time): Remove strong alias.
9613         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
9614         Include <stddef.h>.
9615         (memmove): Redefined to __redirect_memmove.
9616         (__memmove_sse2): Use typeof __redirect_memmove.
9617         (__memmove_ssse3): Likewise.
9618         (__memmove_ssse3_back): Likewise.
9619         (__libc_memmove): New prototype.
9620         (memmove): Renamed to ...
9621         (__libc_memmove): This.
9622         (memmove): New strong alias of __libc_memmove.
9623
9624 2012-08-08  Mark Salter  <msalter@redhat.com>
9625
9626         * elf/elf.h
9627         (R_MN10300_TLS_GD): Define.
9628         (R_MN10300_TLS_LD): Likewise.
9629         (R_MN10300_TLS_LDO): Likewise.
9630         (R_MN10300_TLS_GOTIE): Likewise.
9631         (R_MN10300_TLS_IE): Likewise.
9632         (R_MN10300_TLS_LE): Likewise.
9633         (R_MN10300_TLS_DTPMOD): Likewise.
9634         (R_MN10300_TLS_DTPOFF): Likewise.
9635         (R_MN10300_TLS_TPOFF): Likewise.
9636         (R_MN10300_SYM_DIFF): Likewise.
9637         (R_MN10300_ALIGN): Likewise.
9638         (R_MN10300_NUM): Update.
9639
9640 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
9641
9642         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
9643         Remove.
9644
9645 2012-08-08  Roland McGrath  <roland@hack.frob.com>
9646
9647         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
9648
9649         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
9650         sysdeps/unix -> sysdeps/posix move.
9651         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
9652
9653 2012-08-07      Allan McRae     <allan@archlinux.org>
9654
9655         [BZ #14303]
9656         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
9657         (SUNOS_CPP): Likewise.
9658         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
9659         not found.
9660         (open_input): Call CPP using execvp.
9661
9662 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
9663
9664         * sysdeps/unix/sysv/linux/kernel-features.h
9665         (__ASSUME_PROT_GROWSUPDOWN): Remove.
9666         (__ASSUME_NO_CLONE_DETACHED): Likewise.
9667         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
9668         (__ASSUME_WAITID_SYSCALL): Likewise.
9669         * sysdeps/unix/sysv/linux/dl-execstack.c
9670         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
9671         code unconditional.
9672         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
9673         conditional code.
9674         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
9675         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
9676         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
9677         code.
9678         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
9679         unconditional.
9680         [__ASSUME_WAITID_SYSCALL]: Likewise.
9681         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
9682
9683 2012-08-07  Roland McGrath  <roland@hack.frob.com>
9684
9685         * sysdeps/unix/closedir.c: Renamed to ...
9686         * sysdeps/posix/closedir.c: ... here.
9687         * sysdeps/unix/dirfd.c: Renamed to ...
9688         * sysdeps/posix/dirfd.c: ... here.
9689         * sysdeps/unix/dirstream.h: Renamed to ...
9690         * sysdeps/posix/dirstream.h: ... here.
9691         * sysdeps/unix/fdopendir.c: Renamed to ...
9692         * sysdeps/posix/fdopendir.c: ... here.
9693         * sysdeps/unix/opendir.c: Renamed to ...
9694         * sysdeps/posix/opendir.c: ... here.
9695         * sysdeps/unix/readdir.c: Renamed to ...
9696         * sysdeps/posix/readdir.c: ... here.
9697         * sysdeps/unix/readdir_r.c: Renamed to ...
9698         * sysdeps/posix/readdir_r.c: ... here.
9699         * sysdeps/unix/rewinddir.c: Renamed to ...
9700         * sysdeps/posix/rewinddir.c: ... here.
9701         * sysdeps/unix/seekdir.c: Renamed to ...
9702         * sysdeps/posix/seekdir.c: ... here.
9703         * sysdeps/unix/telldir.c: Renamed to ...
9704         * sysdeps/posix/telldir.c: ... here.
9705         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
9706         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
9707         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
9708         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
9709
9710         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
9711         * bits/fcntl.h: ... here.
9712
9713         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
9714         not 0.
9715         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
9716         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
9717         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
9718         (struct flock): Move l_start, l_len to the beginning.
9719         Use __pid_t for l_pid.
9720         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
9721         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
9722         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
9723         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
9724         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
9725         [__USE_LARGEFILE64] (struct flock64): New type.
9726         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
9727
9728         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
9729         * bits/dirent.h: ... here.
9730
9731         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
9732         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
9733
9734 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
9735
9736         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
9737         Change from 2.6.0 to 2.6.16.
9738         * sysdeps/unix/sysv/linux/configure: Regenerated.
9739         * sysdeps/unix/sysv/linux/kernel-features.h
9740         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
9741         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
9742         version.
9743         (__ASSUME_UTIMES): Likewise.
9744         (__ASSUME_CLONE_STOPPED): Remove.
9745         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
9746         architectures, not kernel version.
9747         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
9748         (__ASSUME_NO_CLONE_DETACHED): Likewise.
9749         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
9750         (__ASSUME_WAITID_SYSCALL): Likewise.
9751         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
9752         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
9753         * README: State 2.6.16 as minimum Linux kernel version.  Do not
9754         refer to older versions.
9755
9756 2012-08-06  Roland McGrath  <roland@hack.frob.com>
9757
9758         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
9759         Define alphasort64 as an alias.
9760         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
9761         Define versionsort64 as an alias.
9762         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
9763         Define scandir64 as an alias.
9764         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
9765         Define scandirat64 as an alias.
9766         * dirent/alphasort64.c (alphasort64):
9767         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
9768         * dirent/versionsort64.c: Likewise.
9769         * dirent/scandir64.c: Likewise.
9770         * dirent/scandirat64.c: Likewise.
9771         * sysdeps/wordsize-64/alphasort.c: File removed.
9772         * sysdeps/wordsize-64/alphasort64.c: File removed.
9773         * sysdeps/wordsize-64/scandir.c: File removed.
9774         * sysdeps/wordsize-64/scandir64.c: File removed.
9775         * sysdeps/wordsize-64/scandirat.c: File removed.
9776         * sysdeps/wordsize-64/scandirat64.c: File removed.
9777         * sysdeps/wordsize-64/versionsort.c: File removed.
9778         * sysdeps/wordsize-64/versionsort64.c: File removed.
9779         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
9780         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
9781         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
9782         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
9783         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
9784         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
9785         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
9786         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
9787
9788         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
9789         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
9790         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
9791         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
9792         [defined __arch64__ || defined __sparcv9]
9793         (__INO_T_MATCHES_INO64_T): New macro.
9794         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
9795         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
9796         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
9797         * sysdeps/unix/sysv/linux/bits/dirent.h
9798         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
9799         (_DIRENT_MATCHES_DIRENT64): New macro.
9800
9801         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
9802         Define lockf64 as an alias.
9803         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
9804         Define fseeko64 as an alias.
9805         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
9806         Define ftello64 as an alias.
9807         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
9808         Define _IO_fgetpos64 and fgetpos64 as aliases.
9809         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
9810         Define _IO_fsetpos64 and fsetpos64 as aliases.
9811         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
9812         Conditionalize body on this.
9813         * libio/fseeko64.c: Likewise.
9814         * libio/ftello64.c: Likewise.
9815         * libio/iofgetpos64.c: Likewise.
9816         * libio/iofsetpos64.c: Likewise.
9817         * sysdeps/wordsize-64/lockf.c: File removed.
9818         * sysdeps/wordsize-64/lockf64.c: File removed.
9819         * sysdeps/wordsize-64/fseeko.c: File removed.
9820         * sysdeps/wordsize-64/fseeko64.c: File removed.
9821         * sysdeps/wordsize-64/ftello.c: File removed.
9822         * sysdeps/wordsize-64/ftello64.c: File removed.
9823         * sysdeps/wordsize-64/iofgetpos.c: File removed.
9824         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
9825         * sysdeps/wordsize-64/iofsetpos.c: File removed.
9826         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
9827         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
9828         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
9829         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
9830         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
9831         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
9832         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
9833         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
9834         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
9835         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
9836         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
9837
9838         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
9839         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
9840         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
9841         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
9842         [defined __arch64__ || defined __sparcv9]
9843         (__OFF_T_MATCHES_OFF64_T): New macro.
9844         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
9845         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
9846         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
9847         (__OFF_T_MATCHES_OFF64_T): New macro.
9848
9849 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
9850
9851         * stdlib/secure-getenv.c (__secure_getenv): Replace
9852         GLIBC_2_16 with GLIBC_2_17.
9853
9854 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
9855
9856         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
9857         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
9858
9859 2012-08-03  David S. Miller  <davem@davemloft.net>
9860
9861         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9862
9863 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
9864
9865         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
9866         Remove.
9867         (__ASSUME_CORRECT_SI_PID): Likewise.
9868         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
9869         (__ASSUME_TMPFS_NAME): Likewise.
9870         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
9871         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
9872         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
9873         (HAVE_AUX_SECURE): Make definition unconditional.
9874         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
9875         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
9876
9877 2012-08-03  Roland McGrath  <roland@hack.frob.com>
9878
9879         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
9880         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
9881         * sysdeps/mach/hurd/eloop-threshold.h: New file.
9882         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
9883         __eloop_threshold instead of SYMLOOP_MAX.
9884
9885         * sysdeps/generic/eloop-threshold.h: New file.
9886         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
9887         of MAXSYMLINKS.
9888         * elf/chroot_canon.c (chroot_canon): Likewise.
9889
9890 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
9891
9892         [BZ #13717]
9893         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
9894         Change to 2.6.0 everywhere.
9895         * sysdeps/unix/sysv/linux/configure: Regenerated.
9896         * sysdeps/unix/sysv/linux/kernel-features.h
9897         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
9898         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
9899         kernel versions.
9900         (__ASSUME_POSIX_TIMERS): Define unconditionally.
9901         (__ASSUME_FUTEX_REQUEUE): Remove.
9902         (__ASSUME_STATFS64): Define unconditionally.
9903         (__ASSUME_AT_SECURE): Likewise.
9904         (__ASSUME_CORRECT_SI_PID): Likewise.
9905         (__ASSUME_TGKILL): Define without depending on kernel version for
9906         i386.
9907         (__ASSUME_UTIMES): Likewise.
9908         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
9909         kernel version.
9910         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
9911         (__ASSUME_TMPFS_NAME): Likewise.
9912         * README: Update reference to Linux kernel versions.
9913
9914 2012-08-02  Marek Polacek  <polacek@redhat.com>
9915
9916         [BZ# 14150]
9917         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
9918         libc_cv_asm_type_prefix with %.
9919         * configure: Regenerated.
9920         * include/libc-symbols.h: Remove comment about
9921         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
9922         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
9923         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
9924         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
9925         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
9926         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
9927         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
9928         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
9929         * elf/tst-unique2mod1.c: Likewise.
9930         * elf/tst-unique1mod2.c: Likewise.
9931         * elf/tst-unique1mod1.c: Likewise.
9932         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
9933         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
9934         Replace ASM_TYPE_DIRECTIVE with .type.
9935         * sysdeps/s390/s390-64/sysdep.h: Likewise.
9936         * sysdeps/i386/sysdep.h: Likewise.
9937         * sysdeps/x86_64/sysdep.h: Likewise.
9938         * sysdeps/sh/sysdep.h: Likewise.
9939         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
9940         Do not define ASM_TYPE_DIRECTIVE.
9941         * sysdeps/powerpc/sysdep.h: Likewise.
9942         * sysdeps/powerpc/powerpc32/sysdep.h:
9943         Replace ASM_TYPE_DIRECTIVE with .type.
9944         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
9945         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
9946         * sysdeps/i386/fpu/e_powf.S: Likewise.
9947         * sysdeps/i386/fpu/e_expl.S: Likewise.
9948         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
9949         * sysdeps/i386/fpu/e_acosh.S: Likewise.
9950         * sysdeps/i386/fpu/e_pow.S: Likewise.
9951         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
9952         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
9953         * sysdeps/i386/fpu/s_expm1.S: Likewise.
9954         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
9955         * sysdeps/i386/fpu/e_log2.S: Likewise.
9956         * sysdeps/i386/fpu/e_log2l.S: Likewise.
9957         * sysdeps/i386/fpu/e_scalb.S: Likewise.
9958         * sysdeps/i386/fpu/e_powl.S: Likewise.
9959         * sysdeps/i386/fpu/e_log10f.S: Likewise.
9960         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
9961         * sysdeps/i386/fpu/e_logl.S: Likewise.
9962         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
9963         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
9964         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
9965         * sysdeps/i386/fpu/e_log2f.S: Likewise.
9966         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
9967         * sysdeps/i386/fpu/e_log.S: Likewise.
9968         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
9969         * sysdeps/i386/fpu/e_logf.S: Likewise.
9970         * sysdeps/i386/fpu/e_log10l.S: Likewise.
9971         * sysdeps/i386/fpu/e_atanh.S: Likewise.
9972         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
9973         * sysdeps/i386/fpu/e_log10.S: Likewise.
9974         * sysdeps/i386/fpu/s_frexp.S: Likewise.
9975         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
9976         * sysdeps/i386/fpu/s_asinh.S: Likewise.
9977         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
9978         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
9979         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
9980         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
9981         * sysdeps/i386/i686/strtok.S: Likewise.
9982         * sysdeps/i386/i386-mcount.S: Likewise.
9983         * sysdeps/i386/strtok.S: Likewise.
9984         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
9985         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
9986         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
9987         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
9988         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
9989         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
9990         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
9991         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
9992         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
9993         * sysdeps/x86_64/_mcount.S: Likewise.
9994         * sysdeps/x86_64/strtok.S: Likewise.
9995         * sysdeps/sh/_mcount.S: Likewise.
9996
9997 2012-08-01  Roland McGrath  <roland@hack.frob.com>
9998
9999         * libio/iofopen.c: Include <fcntl.h>.
10000         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
10001         (_IO_fopen64, fopen64): Define as aliases.
10002         * libio/iofopen64.c: Include <fcntl.h>.
10003         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
10004         Conditionalize body on this.
10005         * sysdeps/wordsize-64/iofopen.c: File removed.
10006         * sysdeps/wordsize-64/iofopen64.c: File removed.
10007
10008 2012-08-01  Marek Polacek  <polacek@redhat.com>
10009
10010         * libc/Makeconfig: Use elf in place of binfmt-subdir.
10011         Use dlfcn directly instead of a variable.
10012         (binfmt-subdir): Do not define.
10013         (dlfcn): Likewise.
10014
10015 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
10016
10017         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
10018         Remove all definitions.
10019         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
10020         <kernel-features.h>.
10021         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
10022         (miss_F_GETOWN_EX): Remove all definitions.
10023         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
10024         macro definition.
10025         [!__ASSUME_FCNTL64]: Remove conditional code.
10026         [__ASSUME_FCNTL64]: Make code unconditional.
10027         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
10028         <kernel-features.h>.
10029         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
10030         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
10031         (lockf64) [__NR_fcntl64]: Make code unconditional.
10032         (lockf64) [__ASSUME_FCNTL64]: Likewise.
10033
10034         * sysdeps/unix/sysv/linux/kernel-features.h
10035         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
10036         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
10037         Make code unconditional.
10038         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
10039         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
10040         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
10041         [__NR_vfork]: Make code unconditional.
10042         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
10043         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
10044         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
10045         [__NR_vfork]: Make code unconditional.
10046         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
10047         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
10048
10049 2012-08-01  Roland McGrath  <roland@hack.frob.com>
10050
10051         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
10052         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
10053
10054         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
10055         Define mkstemp64 as an alias.
10056         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
10057         Define mkstemps64 as an alias.
10058         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
10059         Define mkostemp64 as an alias.
10060         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
10061         Define mkostemps64 as an alias.
10062         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
10063         Conditionalize body on this.
10064         * misc/mkostemp64.c: Likewise.
10065         * misc/mkostemps64.c: Likewise.
10066         * misc/mkstemps64.c: Likewise.
10067         * sysdeps/wordsize-64/mkstemp64.c: File removed.
10068         * sysdeps/wordsize-64/mkostemp64.c: File removed.
10069         * sysdeps/wordsize-64/mkostemp.c: File removed.
10070         * sysdeps/wordsize-64/mkstemp.c: File removed.
10071         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
10072         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
10073         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
10074         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
10075
10076         [BZ #14138]
10077         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
10078         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
10079         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
10080         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
10081
10082         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
10083         compat_symbol macros from <shlib-compat.h> rather than the underlying
10084         default_symbol_version and symbol_version macros, so that DEFAULT
10085         lines in shlib-versions are respected.
10086         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
10087
10088 2012-08-01  Florian Weimer  <fweimer@redhat.com>
10089
10090         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
10091         Declare with warn_unused_result.
10092         (setgid, setregid, setegid, setresgid): Likewise.
10093         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
10094         Likewise.
10095         * WUR-REPORT: Remove set*id functions.
10096
10097 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
10098
10099         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
10100
10101 2012-07-31  Roland McGrath  <roland@hack.frob.com>
10102
10103         * include/sys/socket.h (__libc_accept, __libc_accept4):
10104         Add attribute_hidden.
10105         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
10106
10107         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
10108         use of PTR_MANGLE.
10109         * inet/getnetgrent_r.c (setup): Likewise.
10110
10111         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
10112
10113 2012-07-31  David S. Miller  <davem@davemloft.net>
10114
10115         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10116
10117 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
10118
10119         [BZ #13629]
10120         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
10121         value between 1.0 and 2.0 and smaller part has absolute value less
10122         than 1.0.
10123         * math/s_clog10.c (__clog10): Likewise.
10124         * math/s_clog10f.c (__clog10f): Likewise.
10125         * math/s_clog10l.c (__clog10l): Likewise.
10126         * math/s_clogf.c (__clogf): Likewise.
10127         * math/s_clogl.c (__clogl): Likewise.
10128         * math/libm-test.inc (clog_test): Add more tests.
10129         (clog10_test): Likewise.
10130         * sysdeps/i386/fpu/libm-test-ulps: Update.
10131         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10132
10133 2012-07-31  Florian Weimer  <fweimer@redhat.com>
10134
10135         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
10136         Exit with zero in case no suitable GID is found, and write a
10137         message to standard error.
10138
10139 2012-07-30  Roland McGrath  <roland@hack.frob.com>
10140
10141         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
10142         rather than to 1.
10143         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
10144         (MAXPATHLEN): Removed.
10145         (NOGROUP, NODEV): New macros.
10146         (setbit, clrbit, isset, isclr): New macros.
10147         (howmany, roundup, powerof2): New macros.
10148         (DEV_BSIZE): New macro.
10149
10150         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
10151         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
10152
10153         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
10154         definition on [!__NO_LONG_DOUBLE_MATH].
10155
10156         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
10157         PTR_MANGLE and PTR_DEMANGLE.
10158
10159         * socket/accept4.c (accept4): Rename to __libc_accept4.
10160         Define accept4 as a weak alias.
10161
10162         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
10163         on [_DIRENT_HAVE_D_TYPE].
10164         * io/ftw.c (ftw_dir): Likewise.
10165
10166         * io/xmknod.c (__xmknod): Don't check PATH for being null.
10167
10168         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
10169
10170         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
10171         Use the BSD numbers rather than the arbitrary ones we had.
10172         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
10173         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
10174         (SIGXCPU, SIGXFSZ): New macros.
10175         (_NSIG): Now 32.
10176
10177         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
10178         initializer on [_LIBC_REENTRANT].
10179
10180         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
10181         definitions inside [_POSIX_MAPPED_FILES].
10182
10183         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
10184
10185         * dirent/opendir.c: Include <fcntl.h>.
10186
10187         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
10188         (__libc_getspecific): Likewise.
10189         (__libc_key_create): Likewise.
10190
10191         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
10192         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
10193         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
10194         (tmpfile64): Define as alias.
10195         * sysdeps/wordsize-64/tmpfile.c: File removed.
10196         * sysdeps/wordsize-64/tmpfile64.c: File removed.
10197         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
10198         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
10199
10200         * stdio-common/vfscanf.c: Include <stdbool.h>.
10201         * nss/makedb.c: Likewise.
10202         * stdio-common/_i18n_number.h: Likewise.
10203         * argp/argp-help.c: Likewise.
10204         * posix/wordexp.c: Likewise.
10205         * sysdeps/posix/spawni.c: Likewise.
10206         * nss/nss_files/files-initgroups.c: Likewise.
10207         * stdio-common/reg-modifier.c: Include <stdlib.h>.
10208         * nss/nss_files/files-initgroups.c: Likewise.
10209         * nss/nss_db/db-netgrp.c: Likewise.
10210         * nss/nss_db/db-initgroups.c: Likewise.
10211         * io/fchmodat.c: Include <sys/stat.h>.
10212
10213         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
10214         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
10215
10216         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
10217         [HAVE_MMAP].
10218
10219         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
10220         Add multiple inclusion protection.
10221
10222 2012-07-27  David S. Miller  <davem@davemloft.net>
10223
10224         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10225
10226 2012-07-27  Gary Benson  <gbenson@redhat.com>
10227
10228         [BZ #14298]
10229         * elf/rtld.c: Include <stap-probe.h>.
10230         (dl_main): Added static probes "init_start" and "init_complete".
10231         * elf/dl-load.c: Include <stap-probe.h>.
10232         (lose): Take new parameter "nsid".
10233         Added static probe "map_failed".
10234         (_dl_map_object_from_fd): Pass namespace id to lose.
10235         Added static probe "map_start".
10236         (open_verify): Pass namespace id to lose.
10237         * elf/dl-open.c: Include <stap-probe.h>.
10238         (dl_open_worker) Added static probes "map_complete", "reloc_start"
10239         and "reloc_complete".
10240         * elf/dl-close.c: Include <stap-probe.h>.
10241         (_dl_close_worker): Added static probes "unmap_start" and
10242         "unmap_complete".
10243         * elf/rtld-debugger-interface.txt: New file documenting the above.
10244
10245 2012-07-26  Roland McGrath  <roland@hack.frob.com>
10246
10247         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
10248         rather than a string variable.
10249         * sunrpc/rpc_main.c (h_output): Likewise.
10250         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
10251
10252 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
10253
10254         * inet/check_native.c: New file.
10255
10256 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
10257
10258         [BZ #13629]
10259         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
10260         if larger part has absolute value 1.0.
10261         * math/s_clog10.c (__clog10): Likewise.
10262         * math/s_clog10f.c (__clog10f): Likewise.
10263         * math/s_clog10l.c (__clog10l): Likewise.
10264         * math/s_clogf.c (__clogf): Likewise.
10265         * math/s_clogl.c (__clogl): Likewise.
10266         * math/libm-test.inc (clog_test): Add more tests.
10267         (clog10_test): Likewise.
10268         * sysdeps/i386/fpu/libm-test-ulps: Update.
10269         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10270
10271         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
10272         (pltexit): Likewise.
10273         (La_regs): Likewise.
10274         (La_retval): Likewise.
10275         (int_retval): Likewise.
10276         Update #error for removed macros to refer only to definitions in
10277         tst-audit.h.
10278         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
10279         macro.
10280         (pltexit): Likewise.
10281         (La_regs): Likewise.
10282         (La_retval): Likewise.
10283         (int_retval): Likewise.
10284         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
10285         macro.
10286         (pltexit): Likewise.
10287         (La_regs): Likewise.
10288         (La_retval): Likewise.
10289         (int_retval): Likewise.
10290         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
10291         macro.
10292         (pltexit): Likewise.
10293         (La_regs): Likewise.
10294         (La_retval): Likewise.
10295         (int_retval): Likewise.
10296         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
10297         macro.
10298         (pltexit): Likewise.
10299         (La_regs): Likewise.
10300         (La_retval): Likewise.
10301         (int_retval): Likewise.
10302         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
10303         macro.
10304         (pltexit): Likewise.
10305         (La_regs): Likewise.
10306         (La_retval): Likewise.
10307         (int_retval): Likewise.
10308         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
10309         macro.
10310         (pltexit): Likewise.
10311         (La_regs): Likewise.
10312         (La_retval): Likewise.
10313         (int_retval): Likewise.
10314         * sysdeps/generic/tst-audit.h: Update comment to refer only to
10315         macro definitions in tst-audit.h.
10316         * sysdeps/i386/tst-audit.h: New file.
10317         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
10318         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
10319         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
10320         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
10321         * sysdeps/sh/tst-audit.h: Likewise.
10322         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
10323         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
10324         * sysdeps/x86_64/tst-audit.h: Likewise.
10325
10326 2012-07-26  Andreas Jaeger  <aj@suse.de>
10327
10328         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
10329         ptrace.
10330
10331         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
10332         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
10333         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
10334         PTRACE_O_MASK.
10335         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
10336         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
10337         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
10338
10339         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
10340         value.
10341
10342         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
10343         _sigsys.
10344         (si_call_addr, si_syscall, si_arch): Define new macro.
10345         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
10346         _sigsys.
10347         (si_call_addr, si_syscall, si_arch): Define new marcro.
10348         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
10349         _sigsys.
10350         (si_call_addr, si_syscall, si_arch): Define new macro.
10351         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
10352         _sigsys.
10353         (si_call_addr, si_syscall, si_arch): Define new macro.
10354
10355 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
10356
10357         [BZ #13717]
10358         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
10359         Change to 2.4.21 where previously 2.4.1.
10360         * sysdeps/unix/sysv/linux/configure: Regenerated.
10361         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
10362         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
10363         Linux kernel version.
10364         (__ASSUME_STD_AUXV): Remove.
10365         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
10366         kernel version.
10367         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
10368         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
10369         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
10370         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
10371         (__ASSUME_NETLINK_SUPPORT): Likewise.
10372         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
10373         (__no_netlink_support): Remove conditional definition.
10374         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
10375         Remove.
10376         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
10377         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
10378         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
10379         (if_nameindex_ioctl): Remove.
10380         (if_nameindex_netlink): Do not handle __no_netlink_support.
10381         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
10382         code.
10383         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
10384         Remove conditional code.
10385         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
10386         code.
10387         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
10388         unconditional.
10389         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
10390         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
10391         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
10392         Remove.
10393         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
10394         [!__ASSUME_STD_AUXV]: Remove conditional code.
10395         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
10396         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
10397         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
10398         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
10399         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
10400         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
10401         code.
10402         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
10403         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
10404         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
10405         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
10406         conditional code.
10407         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
10408         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
10409         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
10410         code.
10411         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
10412         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
10413         conditional code.
10414         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
10415         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
10416         code unconditional.
10417         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
10418         conditional code.
10419         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
10420         unconditional.
10421         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
10422         conditional code.
10423         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
10424         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
10425         unconditional.
10426         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
10427         conditional code.
10428         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
10429         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
10430         code unconditional.
10431         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
10432         conditional code.
10433         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
10434         unconditional.
10435         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
10436         conditional code.
10437         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
10438         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
10439         code unconditional.
10440         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
10441         conditional code.
10442         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
10443         unconditional.
10444         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
10445         conditional code.
10446
10447 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
10448
10449         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
10450         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
10451         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
10452         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
10453         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
10454         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
10455         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
10456         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
10457         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
10458         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
10459         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
10460         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
10461         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
10462         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
10463         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
10464         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
10465         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
10466         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
10467         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
10468         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
10469         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
10470         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
10471         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
10472
10473 2012-07-25  Florian Weimer  <fweimer@redhat.com>
10474
10475         * Versions.def: Add GLIBC_2.17.
10476         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
10477         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
10478         Introduce __libc_secure_getenv.
10479         * stdlib/Versions (2.17): Add secure_getenv
10480         (GLIBC_PRIVATE): Add __libc_secure_getenv.
10481         * stdlib/secure-getenv.c: Rename __secure_getenv to
10482         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
10483         symbol __secure_getenv for GLIBC_2.0.
10484         * stdlib/tst-secure-getenv.c: New.
10485         * stdlib/Makefile (tests): Add testcase.
10486         * manual/startup.texi (Environment Access): Document
10487         secure_getenv.
10488         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
10489         __libc_secure_getenv.
10490         * inet/ruserpass.c (ruserpass): Likewise.
10491         * malloc/mtrace.c (mtrace): Likewise.
10492         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
10493         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
10494         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
10495         * sysdeps/posix/tempname.c: Likewise.  Evaluate
10496         HAVE_SECURE_GETENV.
10497         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
10498         __secure_getenv to __libc_secure_getenv.
10499         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
10500         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
10501         Likewise.
10502         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
10503         Likewise.
10504         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
10505         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
10506         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
10507         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
10508         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
10509         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
10510         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
10511
10512 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
10513
10514         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
10515         (struct La_i86_retval): Likewise.
10516         (struct La_x86_64_regs): Likewise.
10517         (struct La_x86_64_retval): Likewise.
10518         (struct La_x32_regs): Likewise.
10519         (struct La_x32_retval): Likewise.
10520         (struct La_ppc32_regs): Likewise.
10521         (struct La_ppc32_retval): Likewise.
10522         (struct La_ppc64_regs): Likewise.
10523         (struct La_ppc64_retval): Likewise.
10524         (struct La_sh_regs): Likewise.
10525         (struct La_sh_retval): Likewise.
10526         (struct La_s390_32_regs): Likewise.
10527         (struct La_s390_32_retval): Likewise.
10528         (struct La_s390_64_regs): Likewise.
10529         (struct La_s390_64_retval): Likewise.
10530         (struct La_sparc32_regs): Likewise.
10531         (struct La_sparc32_retval): Likewise.
10532         (struct La_sparc64_regs): Likewise.
10533         (struct La_sparc64_retval): Likewise.
10534         (struct audit_ifaces): Remove architecture-specific pltenter and
10535         pltexit members.
10536         * sysdeps/i386/ldsodefs.h: New file.
10537         * sysdeps/powerpc/ldsodefs.h: Likewise.
10538         * sysdeps/s390/ldsodefs.h: Likewise.
10539         * sysdeps/sh/ldsodefs.h: Likewise.
10540         * sysdeps/sparc/ldsodefs.h: Likewise.
10541         * sysdeps/x86_64/ldsodefs.h: Likewise.
10542
10543 2012-07-25  Marek Polacek  <polacek@redhat.com>
10544
10545         [BZ #6808]
10546         * math/libm-test.inc (yn_test): Add another test.
10547         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
10548         to ERANGE when the result is +-Inf.
10549         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
10550         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
10551         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
10552         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
10553
10554 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
10555
10556         * conform/data/time.h-data (NULL): Use macro-constant.  Require
10557         equal to 0.
10558         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
10559         clock_t.
10560         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
10561
10562 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
10563
10564         * configure.in <sysdeps resolving>: Correct printing
10565         Implies_before.
10566         * configure: Regenerate.
10567
10568 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
10569
10570         * math/w_ilogb.c: Include <limits.h>.
10571         * math/w_ilogbl.c: Likewise.
10572
10573 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
10574
10575         * manual/lang.texi (__va_copy): Document primarily as ISO C99
10576         va_copy.  Document allowing for unavailable va_copy only as
10577         pre-C99 compatibility.
10578         * manual/string.texi (Copying and Concatenation): Use va_copy
10579         instead of __va_copy in concat example.
10580
10581 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
10582
10583         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
10584         (__sendto): Use create_address_port.  Initialize APORT and deallocate
10585         it if not null.
10586
10587         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
10588         with O_NOLINK passed to __file_name_lookup.
10589
10590         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
10591         with O_NOLINK passed to __file_name_lookup.
10592
10593         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
10594         negative N or less than NGIDS.
10595
10596         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
10597         type to string_t.  Set ERANGE as errno and return it if NAME is not big
10598         enough.  Use memcpy instead of strncpy.
10599
10600 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
10601
10602         * elf/Makefile (check-data): Remove.
10603         (localplt.data): New vpath directive.
10604         ($(objpfx)check-localplt.out): Use localplt.data from vpath
10605         instead of $(check-data).
10606         * scripts/data/localplt-generic.data: Move to ...
10607         * sysdeps/generic/localplt.data: ... here.
10608         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
10609         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
10610         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
10611         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
10612         ... here.
10613         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
10614         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
10615         ... here.
10616         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
10617         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
10618         ... here.
10619         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
10620         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
10621         ... here.
10622         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
10623         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
10624         ... here.
10625         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
10626         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
10627         ... here.
10628
10629 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10630
10631         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
10632         PPC32 and PPC64 files.
10633         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
10634         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
10635
10636 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10637
10638         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
10639         __makecontext_ret to ...
10640         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
10641         ... here and call exit if uc_link is NULL.  New file.
10642         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
10643         __makecontext_ret.S.
10644         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
10645         __makecontext_ret to ...
10646         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
10647         ... here and call exit if uc_link is NULL.  New file.
10648         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
10649         __makecontext_ret.S.
10650
10651 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10652
10653         * elf/elf.h (R_390_IRELATIVE): New definition.
10654         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
10655         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
10656         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
10657         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
10658         (elf_machine_lazy_rel): Likewise.
10659         * sysdeps/s390/dl-irel.h: New file.
10660         * sysdeps/s390/s390-64/memcpy.S: New asm code.
10661         * sysdeps/s390/s390-64/memset.S: New asm code.
10662         * sysdeps/s390/s390-64/memcmp.S: New asm code.
10663         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
10664         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
10665         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
10666         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
10667         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
10668         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
10669         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
10670         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
10671         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
10672         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
10673         * sysdeps/s390/s390-32/memcpy.S: New asm code.
10674         * sysdeps/s390/s390-32/memset.S: New asm code.
10675         * sysdeps/s390/s390-32/memcmp.S: New asm code.
10676
10677 2012-07-17  Marek Polacek  <polacek@redhat.com>
10678
10679         [BZ #14349]
10680         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
10681         * sysdeps/s390/s390-64/configure.in: Likewise.
10682         * sysdeps/sparc/configure.in: Likewise.
10683         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
10684         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
10685         * sysdeps/i386/configure.in: Likewise.
10686         * sysdeps/x86_64/configure.in: Likewise.
10687         * sysdeps/sh/configure.in: Likewise.
10688         * sysdeps/s390/s390-32/configure: Regenerated.
10689         * sysdeps/s390/s390-64/configure: Likewise.
10690         * sysdeps/x86_64/configure: Likewise.
10691         * sysdeps/sh/configure: Likewise.
10692         * sysdeps/powerpc/powerpc64/configure: Likewise.
10693         * sysdeps/powerpc/powerpc32/configure: Likewise.
10694         * sysdeps/sparc/configure: Likwise.
10695         * sysdeps/i386/configure: Likewise.
10696
10697         * elf/dl-open.c: Comment fixes.
10698
10699 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
10700
10701         * Makefile [CXX] (check-data): Remove.
10702         [CXX] (c++-types.data): New vpath directive.
10703         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
10704         vpath.  Do not allow for C++ type data being missing.
10705         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
10706         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
10707         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
10708         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
10709         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
10710         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
10711         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
10712         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
10713         ... here.
10714         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
10715         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
10716         ... here.
10717         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
10718         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
10719         ... here.
10720         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
10721         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
10722         ... here.
10723         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
10724         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
10725         ... here.
10726         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
10727         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
10728         ... here.
10729         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
10730         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
10731         ... here.
10732         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
10733         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
10734
10735         * elf/tls-macros.h (TLS_LE): Move architecture-specific
10736         definitions to architecture-specific files.
10737         (TLS_IE): Likewise.
10738         (TLS_LD): Likewise.
10739         (TLS_GD): Likewise.
10740         * sysdeps/i386/tls-macros.h: New file.
10741         * sysdeps/powerpc/tls-macros.h: Likewise.
10742         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
10743         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
10744         * sysdeps/sh/tls-macros.h: Likewise.
10745         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
10746         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
10747         * sysdeps/x86_64/tls-macros.h: Likewise.
10748
10749 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
10750
10751         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
10752         zero value for regular exit case.
10753
10754         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
10755         (__start_context): Preserve zero value for regular exit case.
10756
10757 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
10758             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10759
10760         * manual/setjmp.texi (setcontext): Clarify normal process
10761         termination when uc_link is the null pointer.
10762         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
10763         exit call.
10764
10765 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
10766
10767         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
10768         preprocessor.  Test for each exception mask separately.
10769
10770 2012-07-16  Andreas Jaeger  <aj@suse.de>
10771
10772         * po/ru.po: Update from translation team.
10773
10774 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
10775
10776         * conform/data/string.h-data (NULL): Use macro-constant.  Require
10777         equal to 0.
10778         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
10779         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
10780         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
10781         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
10782         [ISO || ISO99 || ISO11] (*_t): Do not allow.
10783
10784 2012-07-13  Andreas Jaeger  <aj@suse.de>
10785
10786         * po/fr.po: Update from translation team.
10787
10788 2012-07-12  Marek Polacek  <polacek@redhat.com>
10789
10790         [BZ #14173]
10791         * math/libm-test.inc (yn_test): Add test for BZ #14173.
10792         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
10793         loop condition.
10794
10795 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
10796
10797         [BZ #13717]
10798         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
10799         Change to 2.4.1 where previously 2.4.0.
10800         * sysdeps/unix/sysv/linux/configure: Regenerated.
10801         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
10802         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
10803         version.
10804         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
10805         (__ASSUME_AT_CLKTCK): Remove.
10806         (__ASSUME_AT_PAGESIZE): Likewise.
10807         (__ASSUME_AT_XID): Likewise.
10808         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
10809         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
10810         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
10811         unconditionally.
10812         (HAVE_AUX_PAGESIZE): Likewise.
10813         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
10814         [__ASSUME_AT_CLKTCK]: Make code unconditional.
10815         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
10816
10817 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
10818
10819         [BZ #14307]
10820         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
10821         the temporary buffer used to invoke __gethostbyname2_r,
10822         __gethostbyaddr_r and gethostbyname4_r to make room for struct
10823         host_data / struct gaih_addrtuple.
10824         * resolv/nss_dns/dns-host.c (global scope): Move definition of
10825         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
10826         header file nss/nsswitch.h.
10827         * nss/nsswitch.h (global scope): Add definition of implementation
10828         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
10829         resolv/nss_dns/dns-host.c).
10830
10831 2012-07-11  Andreas Jaeger  <aj@suse.de>
10832
10833         * po/fr.po: Update from translation team.
10834
10835         * po/sv.po: Update from translation team
10836         * po/fr.po: Another update from translation team.
10837
10838 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10839
10840         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
10841         for subnormals or multiply small sinh result by itself.
10842         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
10843         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10844
10845 2012-07-11  David S. Miller  <davem@davemloft.net>
10846
10847         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10848
10849 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
10850
10851         [BZ #14347]
10852         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
10853         (INTERNAL_MARK): Shift it here.
10854
10855 2012-07-10  Marek Polacek  <polacek@redhat.com>
10856
10857         [BZ #14151]
10858         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
10859         libc_cv_asm_global_directive with .globl.
10860         * configure: Regenerated.
10861         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
10862         with .globl.
10863         * sysdeps/i386/configure: Regenerated.
10864         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
10865         with .globl.
10866         * sysdeps/x86_64/configure: Regenerated.
10867         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
10868         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
10869         * elf/tst-unique2mod2.c: Likewise.
10870         * elf/tst-unique2mod1.c: Likewise.
10871         * elf/tst-unique1mod2.c: Likewise.
10872         * elf/tst-unique1mod1.c: Likewise.
10873         * sysdeps/s390/s390-32/sysdep.h: Likewise.
10874         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
10875         * sysdeps/s390/s390-64/sysdep.h: Likewise.
10876         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
10877         * sysdeps/mach/sysdep.h: Likewise.
10878         * sysdeps/i386/sysdep.h: Likewise.
10879         * sysdeps/i386/i386-mcount.S: Likewise.
10880         * sysdeps/x86_64/_mcount.S: Likewise.
10881         * sysdeps/x86_64/sysdep.h: Likewise.
10882         * sysdeps/sh/_mcount.S: Likewise.
10883         * sysdeps/sh/sysdep.h: Likewise.
10884         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
10885         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
10886         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
10887         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
10888         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
10889         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
10890         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
10891         * locale/localeinfo.h: Likewise.
10892         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
10893         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
10894
10895 2012-07-09  Roland McGrath  <roland@hack.frob.com>
10896
10897         [BZ #14336]
10898         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
10899         system".
10900         * manual/message.texi (The Uniforum approach): Likewise.
10901         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
10902         (glibc iconv Implementation): Likewise.
10903
10904 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
10905
10906         [BZ #14337]
10907         * math/s_clog.c (__clog): Avoid scaling a value down where that
10908         could result in underflow.
10909         * math/s_clog10.c (__clog10): Likewise.
10910         * math/s_clog10f.c (__clog10f): Likewise.
10911         * math/s_clog10l.c (__clog10l): Likewise.
10912         * math/s_clogf.c (__clogf): Likewise.
10913         * math/s_clogl.c (__clogl): Likewise.
10914         * math/libm-test.inc (clog_test): Add more tests.
10915         (clog10_test): Likewise.
10916         * sysdeps/i386/fpu/libm-test-ulps: Update.
10917         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10918
10919 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
10920
10921         [BZ #14283]
10922         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
10923         by 7 not 8 to examine high bit of fractional part.
10924
10925         [BZ #14042]
10926         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
10927         for call to __mcount_internal.
10928         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
10929         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
10930         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
10931
10932 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
10933
10934         [BZ #14154]
10935         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
10936         approximation for values within 0x1p-13f of an odd multiple of
10937         pi/4.
10938         * math/libm-test.inc (tan_test): Do not allow spurious underflow
10939         exception.  Add more tests.
10940         * sysdeps/i386/fpu/libm-test-ulps: Update.
10941
10942         [BZ #6778]
10943         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
10944         inputs and return -1 for them.  Do not check for +Inf in case not
10945         reachable for +Inf.
10946         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
10947         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
10948         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
10949         and return -1 for them.  Do not check for +Inf in case not
10950         reachable for +Inf.
10951         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
10952         define.
10953         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
10954         and return -1 for them.  Do not check for +Inf in case not
10955         reachable for +Inf.
10956         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
10957         spurious underflow.
10958         * sysdeps/i386/fpu/libm-test-ulps: Update.
10959         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10960
10961 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
10962
10963         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
10964
10965 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
10966
10967         [BZ #14157]
10968         [BZ #14331]
10969         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
10970         could result in spurious underflow.  Scale down values above
10971         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
10972         * math/s_csqrtf.c (__csqrtf): Likewise.
10973         * math/s_csqrtl.c (__csqrtl): Likewise.
10974         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
10975         spurious underflow.
10976         * sysdeps/i386/fpu/libm-test-ulps: Update.
10977         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10978
10979 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
10980
10981         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
10982         xopen-msg.sed.
10983         * catgets/xopen-msg.awk: New file.
10984         * catgets/xopen-msg.sed: Removed.
10985
10986         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
10987         po2text.sed.
10988         * intl/po2test.awk: New file.
10989         * intl/po2test.sed: Removed.
10990
10991 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
10992
10993         [BZ #14328]
10994         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
10995         or multiply small sinh result by itself.
10996         * math/s_ctanf.c (__ctanf): Likewise.
10997         * math/s_ctanh.c (__ctanh): Likewise.
10998         * math/s_ctanhf.c (__ctanhf): Likewise.
10999         * math/s_ctanhl.c (__ctanhl): Likewise.
11000         * math/s_ctanl.c (__ctanl): Likewise.
11001         * math/libm-test.inc (ctan_test_tonearest): New function.
11002         (ctan_test_towardzero): Likewise.
11003         (ctan_test_downward): Likewise.
11004         (ctan_test_upward): Likewise.
11005         (ctanh_test_tonearest): Likewise.
11006         (ctanh_test_towardzero): Likewise.
11007         (ctanh_test_downward): Likewise.
11008         (ctanh_test_upward): Likewise.
11009         (main): Call these new functions.
11010         * sysdeps/i386/fpu/libm-test-ulps: Update.
11011         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11012
11013 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
11014
11015         * .gitignore: Delete /ports entry.
11016
11017 2012-07-03  Andreas Jaeger  <aj@suse.de>
11018
11019         * po/bg.po: Update from translation team.
11020         * po/cs.po: Likewise.
11021         * po/de.po: Likewise.
11022         * po/hr.po: Likewise.
11023         * po/nl.pl: Likewise.
11024         * po/pl.po: Likewise.
11025         * po/vi.po: Likewise.
11026
11027 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
11028
11029         * Makeconfig [!+link] (+link-before-libc): New variable.
11030         [!+link] (+link-after-libc): Likewise.
11031         [!+link] (+link-tests): Likewise.
11032         [!+link] (+link): Define in terms of $(+link-before-libc) and
11033         $(+link-after-libc).
11034         [!+link-static] (+link-static-before-libc): New variable.
11035         [!+link-static] (+link-static-after-libc): Likewise.
11036         [!+link-static] (+link-static-tests): Likewise.
11037         [!+link-static] (+link-static): Define in terms of
11038         $(+link-static-before-libc) and $(+link-static-after-libc).
11039         [build-shared] (link-libc-before-gnulib): New variable.
11040         [build-shared] (link-libc-tests): Likewise.
11041         [build-shared] (link-libc): Define in terms of
11042         $(link-libc-before-gnulib).
11043         [!build-shared] (link-libc-tests): New variable.
11044         (link-libc-static-tests): New variable.
11045         [!gnulib] (gnulib-arch): New variable.
11046         [!gnulib] (gnulib-tests): Likewise.
11047         [!gnulib] (static-gnulib-arch): Likewise.
11048         [!gnulib] (static-gnulib-tests): Likewise.
11049         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
11050         Define with "=" instead of ":=".
11051         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
11052         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
11053         * Rules (binaries-all-notests): New variable.
11054         (binaries-all-tests): Likewise.
11055         (binaries-static-notests): Likewise.
11056         (binaries-static-tests): Likewise.
11057         (binaries-all): Define using $(binaries-all-notests) and
11058         $(binaries-all-tests).
11059         (binaries-static): Define using $(binaries-static-notests) and
11060         $(binaries-static-tests).
11061         (binaries-shared-tests): New variable.
11062         (binaries-shared-notests): Likewise.
11063         (binaries-shared): Remove variable.
11064         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
11065         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
11066         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
11067         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
11068         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
11069         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
11070         * elf/Makefile (sln-modules): New variable.
11071         (extra-objs): Add $(sln-modules:=.o).
11072         (ldconfig-modules): Add static-stubs.
11073         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
11074         * elf/static-stubs.c: New file.
11075
11076         [BZ #14283]
11077         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
11078         by 7 not 8 to examine high bit of fractional part.  Use volatile
11079         variables when splitting into final array of floats if
11080         __FLT_EVAL_METHOD__ != 0.
11081         * math/libm-test.inc (cos_test): Add another test.
11082         (sin_test): Likewise.
11083         * sysdeps/i386/fpu/libm-test-ulps: Update.
11084
11085         [BZ #14273]
11086         * math/libm-test.inc (cosh_test): Add more tests.
11087
11088         * version.h (RELEASE): Set to "development".
11089         (VERSION): Set to "2.16.90".
11090
11091 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
11092
11093         * NEWS: Update copyright. Remove last-updated date.
11094         Mention math library bug fixes and timezone data changes.
11095         * README: Mention GNU/Hurd, x32, and HPPA support status.
11096
11097 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
11098
11099         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
11100
11101 2012-06-27  Andreas Jaeger  <aj@suse.de>
11102
11103         * manual/contrib.texi (Contributors): Add Samuel Thibault.
11104
11105 2012-06-25  Andreas Jaeger  <aj@suse.de>
11106
11107         * sysdeps/s390/fpu/libm-test-ulps: Update.
11108
11109 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
11110             Thomas Schwinge  <thomas@codesourcery.com>
11111
11112         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
11113         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
11114         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
11115         fanotify_mark.
11116
11117 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
11118
11119         * sysdeps/mach/start.c: Remove file.
11120         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
11121         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
11122         * sysdeps/sh/init-first.c: Likewise.
11123
11124         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
11125         registers for frame unwinding purposes, add CFI directives.
11126         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
11127         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
11128         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
11129         Likewise.
11130
11131         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
11132         __fortify_fail returning.
11133         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
11134
11135         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
11136         sysdeps/sh/____longjmp_chk.S.
11137         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
11138         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
11139         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
11140         (gen-as-const-headers): Append sigaltstack-offsets.sym.
11141
11142         * sysdeps/sh/abort-instr.h: New file.
11143         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
11144         process in case exit returns.
11145
11146         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
11147         initialize the GOT register before use.
11148
11149         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
11150         calculation of ARGC > 4.
11151
11152         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
11153         meaningful names to some local labels.
11154
11155 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
11156             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
11157
11158         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
11159         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
11160         (__arch_compare_and_exchange_val_16_acq): Likewise.
11161         (__arch_compare_and_exchange_val_32_acq): Likewise.
11162         (atomic_exchange_and_add): Fix gUSA sequence.
11163         (atomic_add): Likewise.
11164         (atomic_add_negative): Likewise.
11165         (atomic_add_zero): Likewise.
11166         (atomic_bit_test_set): Likewise.
11167
11168 2012-06-22  Andreas Schwab  <schwab@redhat.com>
11169
11170         [BZ #13579]
11171         * include/link.h (struct link_map): Add l_free_initfini.
11172         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
11173         l_initfini.
11174         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
11175         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
11176         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
11177         set.
11178
11179 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
11180
11181         * configure.in: Use AC_LANG_SOURCE.
11182         * configure: Regenerate.
11183
11184 2012-06-22  Roland McGrath  <roland@hack.frob.com>
11185
11186         * configure.in (libc_cv_localstatedir): New substituted variable.
11187         * configure: Regenerated.
11188         * config.make.in (localstatedir): New variable, substituted from
11189         libc_cv_localstatedir.
11190         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
11191         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
11192         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
11193         * sysdeps/gnu/configure: Regenerated.
11194
11195 2012-06-21  Jeff Law  <law@redhat.com>
11196
11197         [BZ #14277]
11198         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
11199         free.  Simplify list management for _LIBC case.
11200
11201 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
11202
11203         [BZ #14273]
11204         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
11205         Clear sign bit of 64-bit integer value before comparing against
11206         overflow value.
11207
11208         * sysdeps/mach/configure: Regenerated.
11209
11210 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
11211
11212         [BZ #14278]
11213         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
11214
11215 2012-06-21  Jeff Law  <law@redhat.com>
11216
11217         [BZ #13882]
11218         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
11219         uint16_t for elements in the "seen" array to avoid char overflows.
11220         * elf/dl-fini.c (_dl_sort_fini): Likewise.
11221         * elf/dl-open.c (dl_open_worker): Likewise.
11222
11223 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
11224
11225         * scripts/list-sources.sh: Scan PORTS for translations.
11226         * po/libc.pot: Regenerated.
11227
11228 2012-06-21  Andreas Jaeger  <aj@suse.de>
11229
11230         [BZ #12194]
11231         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
11232         warning.
11233         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
11234         * bits/byteswap-16.h (__bswap_16): Likewise.
11235         * bits/byteswap.h (__bswap_constant_16): Likewise.
11236
11237 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
11238
11239         [BZ #14117]
11240         * sysdeps/i386/fpu_control.h: Removed.
11241         * sysdeps/x86_64/fpu_control.h: Moved to ...
11242         * sysdeps/x86/fpu_control.h: Here.
11243
11244         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
11245         (_FPU_SETCW): Likewise.
11246
11247 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
11248
11249         [BZ #14117]
11250         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
11251         * sysdeps/x86/fpu/bits/mathinline.h: This.
11252         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
11253
11254         [BZ #14050]
11255         [BZ #14117]
11256         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
11257         functions if __x86_64__ is defined.
11258
11259 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
11260
11261         * string/endian.h: Add !__ASSEMBLER__ condition for including
11262         conversion interfaces.
11263
11264 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
11265
11266         [BZ #14241]
11267         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
11268         of ABS(x) in calculating zero to negative powers other than odd
11269         integers.
11270         * math/libm-test.inc (pow_test): Add more tests.
11271
11272 2012-06-15  Andreas Jaeger  <aj@suse.de>
11273
11274         * manual/contrib.texi (Contributors): Update entry of Liubov
11275         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
11276         Machado Filho.
11277
11278 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
11279
11280         * string/string.h: Add __wur to GNU version of strerror_r.
11281
11282 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
11283
11284         [BZ #14229]
11285         * string/Makefile (tests): Add tst-strtok_r.
11286         * string/tst-strtok_r.c: New file.
11287         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
11288         RAX_LP/RDX_LP on SAVE_PTR.
11289
11290 2012-06-14  Roland McGrath  <roland@hack.frob.com>
11291
11292         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
11293
11294 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
11295
11296         * libm_test.inc (csqrt_test): Allow more spurious underflow
11297         exceptions.
11298         (j0_test): Likewise.
11299         (j1_test): Likewise.
11300         (y0_test): Likewise.
11301         (y1_test): Likewise.
11302
11303 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
11304
11305         * po/Makefile (libc.pot): Use UTF-8 charset.
11306
11307 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
11308
11309         [BZ #14210]
11310         Suppress sign-conversion warning from FD_SET.
11311         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
11312         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
11313         not unsigned long int.
11314         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
11315
11316 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
11317
11318         [BZ #14050]
11319         [BZ #14117]
11320         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
11321         __extern_always_inline instead of __extern_inline.
11322         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
11323         (__signbit): Likewise.
11324         (__signbitl): Support C++ namespace.
11325         (lrintf): New inline function.
11326         (lrint): Likewise.
11327         (llrintf): Likewise.
11328         (llrint): Likewise.
11329         (fmaxf): Likewise.
11330         (fmax): Likewise.
11331         (fminf): Likewise.
11332         (fmin): Likewise.
11333         (rint): Likewise.
11334         (rintf): Likewise.
11335         (ceil): Likewise.
11336         (ceilf): Likewise.
11337         (floor): Likewise.
11338         (floorf): Likewise.
11339         (nearbyint): Likewise.
11340         (nearbyintf): Likewise.
11341
11342 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
11343
11344         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
11345         non-default versions.
11346
11347 2012-06-11  Roland McGrath  <roland@hack.frob.com>
11348
11349         [BZ #14218]
11350         * manual/argp.texi (Argp): Reword argp_parse description slightly.
11351
11352 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
11353
11354         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
11355         (FE_UPWARD, FE_DOWNWARD): Don't define.
11356         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
11357         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
11358
11359         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
11360         reading it.
11361         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
11362         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
11363
11364 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
11365
11366         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
11367         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
11368         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
11369         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
11370
11371 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
11372
11373         [BZ #14117]
11374         * sysdeps/i386/fpu/bits/fenv.h: Removed.
11375         * sysdeps/i386/fpu/Implies: New file.
11376         * sysdeps/x86_64/fpu/Implies: Likewise.
11377         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
11378         * sysdeps/x86/fpu/bits/fenv.h: This.
11379
11380         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
11381         __SSE_MATH__.
11382
11383 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
11384
11385         [BZ #14134]
11386         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
11387         character 0xffff that matches the last element of the
11388         conversion table.
11389
11390 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11391
11392         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
11393         fmodl commit.
11394
11395 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11396
11397         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
11398         values higher than 25.6283.
11399
11400 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11401
11402         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
11403         subnormal exponent extraction and add some __builtin_expect.
11404         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
11405         Fix for subnormal mantissa calculation.
11406
11407 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
11408
11409         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
11410         cpu2 is -1 and errno is not ENOSYS.
11411
11412 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
11413
11414         [BZ #14117]
11415         * sysdeps/i386/i486/bits/string.h: Renamed to ...
11416         * sysdeps/x86/bits/string.h: This.
11417         * sysdeps/x86_64/bits/string.h: Removed.
11418
11419         * sysdeps/i386/i486/bits/string.h: Define inline functions only
11420         if not compiling for x86-64, but compiling for >= i486.
11421
11422         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
11423         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
11424
11425         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
11426         New macro from Linux kernel 3.4.0.
11427         (FP_XSTATE_MAGIC2): Likewise.
11428         (FP_XSTATE_MAGIC2_SIZE): Likewise.
11429         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
11430         (struct _fpx_sw_bytes): New struct.
11431         (struct _xsave_hdr): Likewise.
11432         (struct _ymmh_state): Likewise.
11433         (struct _xstate): Likewise.
11434
11435         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
11436         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
11437         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
11438         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
11439         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
11440         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
11441
11442         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
11443         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
11444         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
11445         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
11446         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
11447         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
11448
11449 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
11450
11451         [BZ #13743]
11452         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
11453         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
11454         (sysdep_headers): Include sys/platform/ppc.h.
11455         * sysdeps/powerpc/test-gettimebase.c: Test for
11456         __ppc_get_timebase() to catch future ISA opcode/insn changes.
11457         * manual/Makefile (appendices): Include platform.texi.
11458         * manual/contrib.texi (Contributors): Update @node pointers.
11459         * manual/maint.texi (Maintenance): Likewise.
11460         (Platform): New node.
11461         * manual/platform.texi: New file.  Document the new features.
11462
11463 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
11464             Jakub Jelinek  <jakub@redhat.com>
11465
11466         [BZ #14188]
11467         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
11468         where __builtin_expect is unavailable.
11469
11470 2012-06-03  David S. Miller  <davem@davemloft.net>
11471
11472         * stdlib/longlong.h: Updated from GCC.
11473
11474 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
11475
11476         [BZ #14042]
11477         * sysdeps/powerpc/powerpc32/mcount.c: New file.
11478         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
11479         __mcount_internal.
11480         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
11481         (GLIBC_2.16): Likewise.
11482
11483 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
11484
11485         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
11486
11487 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
11488
11489         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
11490         (default-abi): New variable.
11491         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
11492         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
11493         variable.
11494         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
11495         Likewise.
11496         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
11497         Likewise.
11498         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
11499         Likewise.
11500
11501         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
11502         definition.  Document in comment.
11503
11504 2012-06-01  David S. Miller  <davem@davemloft.net>
11505
11506         * stdlib/longlong.h: Updated from GCC.
11507
11508 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
11509
11510         [BZ #14117]
11511         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
11512         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
11513         sys/debugreg.h sys/io.h here.
11514         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
11515         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
11516         sys/io.h.
11517         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
11518         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
11519         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
11520         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
11521         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
11522         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
11523
11524         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
11525         Define only if __x86_64__ is defined.
11526
11527 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
11528
11529         [BZ #14048]
11530         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
11531         Use int64_t for variable i.
11532         * math/libm-test.inc (fmod_test): Add more tests.
11533
11534         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
11535         z computation is not scheduled after fetestexcept.
11536         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
11537         Use math_force_eval instead of asm to ensure calculation scheduled
11538         before exception test.
11539         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
11540         Ensure a1 + u.d computation is not scheduled after fetestexcept.
11541
11542 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
11543
11544         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
11545         computation is not scheduled after fetestexcept.
11546
11547 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
11548
11549         [BZ #14117]
11550         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
11551         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
11552
11553 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11554
11555         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
11556         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
11557
11558 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
11559
11560         [BZ #14117]
11561         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
11562         <bits/wordsize.h>.
11563         (__WCHAR_MIN): Support __WORDSIZE == 64.
11564         (__WCHAR_MAX): Likewise.
11565
11566         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
11567         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
11568
11569         [BZ #14183]
11570         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
11571         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
11572
11573         [BZ #14117]
11574         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
11575         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
11576
11577         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
11578         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
11579
11580         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
11581         Defined to 1 if __x86_64__ isn't defined.
11582         (_STAT_VER_LINUX_OLD): New.
11583         (st_atime): Remove duplicate.
11584         (st_mtime): Likewise.
11585         (st_ctime): Likewise.
11586
11587 2012-05-31  David S. Miller  <davem@davemloft.net>
11588
11589         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
11590         entries.
11591
11592 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
11593
11594         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
11595         gen-libm-test.pl.
11596
11597         [BZ #14132]
11598         * elf/dl-reloc.c: Include <_itoa.h>.
11599         (_dl_reloc_bad_type): Remove use of INTUSE.
11600         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
11601         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
11602         * stdio-common/psiginfo.c (psiginfo): Likewise.
11603         * stdio-common/psignal.c (psignal): Likewise.
11604         * string/strsignal.c (strsignal): Likewise.
11605         * include/signal.h (_sys_siglist): Declare hidden proto.
11606         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
11607         INTVARDEF with libc_hidden_data_def.
11608         * stdio-common/itoa-udigits.c: Likewise.
11609         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
11610         (_itoa_lower_digits_internal): Remove declaration.
11611         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
11612         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
11613         (_sys_sigabbrev_internal): Remove aliases.
11614         (_sys_siglist): Define hidden alias.
11615
11616 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
11617
11618         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11619         bits/sysctl.h.
11620
11621 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
11622
11623         [BZ #14117]
11624         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
11625         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
11626
11627         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
11628         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
11629         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
11630         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
11631         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
11632         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
11633
11634         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
11635         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
11636         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
11637
11638         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
11639         with __addr.
11640         (insw): Likewise.
11641         (insl): Likewise.
11642         (outsb): Likewise.
11643         (outsw): Likewise.
11644         (outsl): Likewise.
11645
11646         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
11647         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
11648         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
11649
11650         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
11651         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
11652         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
11653         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
11654         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
11655         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
11656
11657         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
11658         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
11659
11660         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
11661         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
11662
11663         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
11664         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
11665         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
11666
11667         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
11668         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
11669         to ...
11670         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
11671
11672         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
11673         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
11674         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
11675
11676         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
11677         for x86-64.
11678         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
11679
11680 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
11681
11682         * math/math.h (M_El): Use two more decimal places.
11683         (M_LOG2El): Likewise.
11684         (M_LOG10El): Likewise.
11685         (M_LN2l): Likewise.
11686         (M_LN10l): Likewise.
11687         (M_PIl): Likewise.
11688         (M_PI_2l): Likewise.
11689         (M_PI_4l): Likewise.
11690         (M_1_PIl): Likewise.
11691         (M_2_PIl): Likewise.
11692         (M_2_SQRTPIl): Likewise.
11693         (M_SQRT2l): Likewise.
11694         (M_SQRT1_2l): Likewise.
11695
11696 2012-05-31  David S. Miller  <davem@davemloft.net>
11697
11698         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
11699         values between float registers.
11700         * sysdeps/sparc/sparc64/memset.S: Likewise.
11701         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
11702
11703 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
11704
11705         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
11706         -D_FORTIFY_SOURCE=1.
11707         (CPPFLAGS-tst-longjmp_chk.c): Define.
11708         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
11709         (CPPFLAGS-tst-longjmp_chk2.c): Define.
11710         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
11711         CFLAGS-tst-wchar-h.c.
11712
11713 2012-05-31  Marek Polacek  <polacek@redhat.com>
11714
11715         [BZ #14132]
11716         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
11717         __endmntent_internal): Remove declaration.
11718         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
11719         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
11720         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
11721
11722 2012-05-30  David S. Miller  <davem@davemloft.net>
11723
11724         * sysdeps/sparc/sparc32/soft-fp/q_util.c
11725         (___Q_simulate_exceptions): Use real FP ops rather than writing
11726         into the %fsr.
11727         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
11728         Likewise.
11729
11730 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
11731
11732         [BZ #14117]
11733         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
11734         * sysdeps/x86/bits/xtitypes.h: This.
11735
11736         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
11737         * sysdeps/x86/bits/wordsize.h: This.
11738
11739         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
11740         * sysdeps/x86/bits/huge_vall.h: This.
11741
11742         * sysdeps/i386/bits/select.h: Removed.
11743         * sysdeps/x86_64/bits/select.h: Renamed to ...
11744         * sysdeps/x86/bits/select.h: This.
11745
11746         * sysdeps/i386/bits/setjmp.h: Removed.
11747         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
11748         * sysdeps/x86/bits/setjmp.h: This.
11749
11750         * sysdeps/i386/bits/mathdef.h: Removed.
11751         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
11752         * sysdeps/x86/bits/mathdef.h: This.
11753
11754 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
11755
11756         [BZ #14132]
11757         * include/sys/socket.h (__connect_internal)
11758         (__libc_sa_len_internal): Remove declaration.
11759         (__connect, __libc_sa_len): Declare hidden_proto.
11760         (SA_LEN): Remove use of INTUSE.
11761         * socket/connect.c: Add libc_hidden_def.
11762         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
11763         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
11764         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
11765         alias.
11766         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
11767         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
11768         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
11769         of adding _internal alias.
11770
11771 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
11772
11773         [BZ #14117]
11774         * sysdeps/i386/bits/link.h: Removed.
11775         * sysdeps/i386/bits/linkmap.h: Likewise.
11776         * sysdeps/x86_64/bits/link.h: Renamed to ...
11777         * sysdeps/x86/bits/link.h: This.
11778         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
11779         * sysdeps/x86/bits/linkmap.h: This.
11780
11781         * sysdeps/i386/bits/endian.h: Removed.
11782         * sysdeps/x86_64/bits/endian.h: Renamed to ...
11783         * sysdeps/x86/bits/endian.h: This.
11784
11785         * sysdeps/i386/bits/byteswap.h: Removed.
11786         * sysdeps/i386/bits/byteswap-16.h: Likewise.
11787         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
11788         * sysdeps/x86/bits/byteswap.h: This.
11789         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
11790         * sysdeps/x86/bits/byteswap-16.h: This.
11791         * sysdeps/i386/Implies: Add x86.
11792         * sysdeps/x86_64/Implies: Likewise.
11793
11794 2012-05-30  David S. Miller  <davem@davemloft.net>
11795
11796         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
11797         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
11798         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
11799         (FP_TRAPPING_EXCEPTIONS): Define.
11800         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
11801         (FP_TRAPPING_EXCEPTIONS): Define.
11802         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
11803         subnormals only when inexact has been signalled or underflow
11804         exceptions are enabled.
11805         (_FP_PACK_CANONICAL): Likewise.
11806
11807 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
11808
11809         [BZ #14183]
11810         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
11811         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
11812
11813 2012-05-30  Richard Henderson  <rth@twiddle.net>
11814
11815         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
11816         with #ifndef NOT_IN_libc.
11817
11818         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
11819         marked to avoid plt entry.
11820
11821 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
11822
11823         [BZ #14112]
11824         * Makeconfig (default-abi): New macro.
11825         (abi-includes): Likewise.
11826         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
11827         $(abi-$(default-abi)-lib-soname) for soname if defined.
11828         ($(common-objpfx)gnu/lib-names.stmp): Generate from
11829         abi-variants.
11830         * Makefile (installed-stubs): Likewise.
11831         * include/stubs-biarch.h: Removed.
11832         * scripts/lib-names.awk: Only handle one library at a time.
11833         * scripts/soversions.awk: Remove WORDSIZE support.
11834         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
11835         entries.
11836         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
11837         Removed.
11838         (syscall-list-default-condition): Likewise.
11839         (syscall-list-default-condition): Likewise.
11840         (syscall-list-includes): Likewise.
11841         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
11842         syscall-list-* with abi-*.  Handle undefined abi-variants.
11843         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
11844         * sysdeps/unix/sysv/linux/i386/Implies: New file.
11845         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
11846         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
11847         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
11848         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
11849         Removed.
11850         (syscall-list-32-options): Likewise.
11851         (syscall-list-32-condition): Likewise.
11852         (syscall-list-64-options): Likewise.
11853         (syscall-list-64-condition): Likewise.
11854         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
11855         macro.
11856         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
11857         Renamed to ...
11858         (abi-*): This.
11859         (abi-64-ld-soname): New macro.
11860         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
11861         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
11862         Renamed to ...
11863         (abi-*): This.
11864         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
11865         * sysdeps/x86_64/x32/shlib-versions: Likewise.
11866
11867 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
11868
11869         * sysdeps/unix/sysv/linux/kernel-features.h
11870         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
11871         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
11872         include <kernel-features.h>.
11873         [!__NR_ftruncate64]: Remove conditional code.
11874         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
11875         [__NR_ftruncate64]: Make code unconditional.
11876         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
11877         * sysdeps/unix/sysv/linux/truncate64.c: Do not
11878         include <kernel-features.h>.
11879         [!__NR_ftruncate64]: Remove conditional code.
11880         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
11881         [__NR_ftruncate64]: Make code unconditional.
11882         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
11883         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
11884         include <kernel-features.h>.
11885         [!__NR_ftruncate64]: Remove conditional code.
11886         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
11887         [__NR_ftruncate64]: Make code unconditional.
11888         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
11889         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
11890         include <kernel-features.h>.
11891         [!__NR_ftruncate64]: Remove conditional code.
11892         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
11893         [__NR_ftruncate64]: Make code unconditional.
11894         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
11895
11896         * configure.in (libc_cv_fpie): Weaken to a compile test using
11897         LIBC_TRY_CC_OPTION.
11898         * configure: Regenerated.
11899
11900 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11901
11902         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
11903         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
11904         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
11905         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
11906         Refreshed.
11907         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
11908         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
11909         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
11910         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
11911         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
11912         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
11913         Refreshed.
11914
11915 2012-05-27  David S. Miller  <davem@davemloft.net>
11916
11917         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
11918         (___Q_zero): New.
11919         (__Q_simulate_exceptions): Return void.  Change to simulate
11920         exceptions by writing into the %fsr.
11921         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
11922         (__Qp_handle_exceptions): Likewise.
11923         (numbers): Delete.
11924         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
11925         __Qp_handle_exceptions.
11926         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
11927         __Qp_handle_exceptions.
11928         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
11929         as unused and give dummy FP_RND_NEAREST initializer.
11930         (FP_INHIBIT_RESULTS): Define.
11931         (___Q_simulate_exceptions): Update declaration.
11932         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
11933         formatting.
11934         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
11935         as unused and give dummy FP_RND_NEAREST initializer.
11936         (__Qp_handle_exceptions): Update declaration.
11937         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
11938         formatting.
11939
11940 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
11941
11942         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
11943         the temporary FPU control word.
11944         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
11945         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
11946         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
11947         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
11948         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
11949         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
11950         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
11951         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
11952         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
11953         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
11954         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
11955
11956 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
11957
11958         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
11959         fields.
11960
11961 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
11962
11963         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
11964         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
11965         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
11966         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
11967         Likewise.
11968         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
11969         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
11970         Likewise.
11971
11972 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
11973
11974         * po/h.po: Update from translation team.
11975
11976 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
11977
11978         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
11979
11980         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
11981         handling of denormals.
11982         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
11983         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
11984         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
11985         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
11986         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
11987         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
11988         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
11989         Likewise.
11990
11991 2012-05-26  Marek Polacek  <polacek@redhat.com>
11992
11993         [BZ #14152]
11994         * math/libm-test.inc (fma_test): Don't always expect underflow
11995         exception.
11996
11997 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
11998
11999         [BZ #12416]
12000         * elf/tst-execstack.c: Include stackinfo.h.
12001         (do_test): Adjust test case to ensure that pthread_getattr_np
12002         behaviour remains the same after marking stack executable.
12003
12004 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
12005
12006         * sysdeps/unix/sysv/linux/kernel-features.h
12007         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
12008         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
12009         kernel-features.h.
12010         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
12011         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
12012         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
12013         kernel-features.h.
12014         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
12015         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
12016
12017 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
12018
12019         * configure.in: Define the default includes to being none.
12020         * configure: Regenerated.
12021
12022 2012-05-25  Roland McGrath  <roland@hack.frob.com>
12023
12024         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
12025         * sysdeps/x86_64/setjmp.S: Likewise.
12026         * sysdeps/i386/bsd-setjmp.S: Likewise.
12027         * sysdeps/i386/bsd-_setjmp.S: Likewise.
12028         * sysdeps/i386/setjmp.S: Likewise.
12029         * sysdeps/i386/__longjmp.S: Likewise.
12030         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
12031         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
12032
12033         * include/stap-probe.h: New file.
12034         * configure.in: Handle --enable-systemtap.
12035         * configure: Regenerated.
12036         * config.h.in (USE_STAP_PROBE): New #undef.
12037         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
12038         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
12039         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
12040
12041 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
12042
12043         [BZ #13717]
12044         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
12045         to 2.4.0 where earlier.
12046         * sysdeps/unix/sysv/linux/configure: Regenerated.
12047         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
12048         <kernel-features.h>.
12049         [__ASSUME_32BITUIDS]: Make code unconditional.
12050         [!__ASSUME_32BITUIDS]: Remove conditional code.
12051         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
12052         <kernel-features.h>.
12053         [__ASSUME_32BITUIDS]: Make code unconditional.
12054         [!__ASSUME_32BITUIDS]: Remove conditional code.
12055         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
12056         [__ASSUME_32BITUIDS]: Make code unconditional.
12057         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
12058         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
12059         <kernel-features.h>.
12060         [__ASSUME_32BITUIDS]: Make code unconditional.
12061         [!__ASSUME_32BITUIDS]: Remove conditional code.
12062         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
12063         <kernel-features.h>.
12064         [__ASSUME_32BITUIDS]: Make code unconditional.
12065         [!__ASSUME_32BITUIDS]: Remove conditional code.
12066         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
12067         <kernel-features.h>.
12068         [__ASSUME_32BITUIDS]: Make code unconditional.
12069         [!__ASSUME_32BITUIDS]: Remove conditional code.
12070         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
12071         <kernel-features.h>.
12072         [__ASSUME_32BITUIDS]: Make code unconditional.
12073         [!__ASSUME_32BITUIDS]: Remove conditional code.
12074         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
12075         <kernel-features.h>.
12076         [__ASSUME_32BITUIDS]: Make code unconditional.
12077         [!__ASSUME_32BITUIDS]: Remove conditional code.
12078         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
12079         <kernel-features.h>.
12080         [__ASSUME_32BITUIDS]: Make code unconditional.
12081         [!__ASSUME_32BITUIDS]: Remove conditional code.
12082         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
12083         <kernel-features.h>.
12084         [__ASSUME_32BITUIDS]: Make code unconditional.
12085         [!__ASSUME_32BITUIDS]: Remove conditional code.
12086         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
12087         <kernel-features.h>.
12088         [__ASSUME_32BITUIDS]: Make code unconditional.
12089         [!__ASSUME_32BITUIDS]: Remove conditional code.
12090         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
12091         <kernel-features.h>.
12092         [__ASSUME_32BITUIDS]: Make code unconditional.
12093         [!__ASSUME_32BITUIDS]: Remove conditional code.
12094         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
12095         <kernel-features.h>.
12096         [__ASSUME_32BITUIDS]: Make code unconditional.
12097         [!__ASSUME_32BITUIDS]: Remove conditional code.
12098         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
12099         <kernel-features.h>.
12100         [__NR_setresgid] (__setresgid): Do not declare.
12101         [__ASSUME_32BITUIDS]: Make code unconditional.
12102         [!__ASSUME_32BITUIDS]: Remove conditional code.
12103         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
12104         <kernel-features.h>.
12105         [__NR_setresuid] (__setresuid): Do not declare.
12106         [__ASSUME_32BITUIDS]: Make code unconditional.
12107         [!__ASSUME_32BITUIDS]: Remove conditional code.
12108         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
12109         <kernel-features.h>.
12110         [__ASSUME_32BITUIDS]: Make code unconditional.
12111         [!__ASSUME_32BITUIDS]: Remove conditional code.
12112         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
12113         <kernel-features.h>.
12114         [__ASSUME_32BITUIDS]: Make code unconditional.
12115         [!__ASSUME_32BITUIDS]: Remove conditional code.
12116         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
12117         <kernel-features.h>.
12118         [__ASSUME_32BITUIDS]: Make code unconditional.
12119         [!__ASSUME_32BITUIDS]: Remove conditional code.
12120         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
12121         <kernel-features.h>.
12122         [__ASSUME_32BITUIDS]: Make code unconditional.
12123         [!__ASSUME_32BITUIDS]: Remove conditional code.
12124         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
12125         <kernel-features.h>.
12126         [__ASSUME_32BITUIDS]: Make code unconditional.
12127         [!__ASSUME_32BITUIDS]: Remove conditional code.
12128         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
12129         <kernel-features.h>.
12130         [__ASSUME_32BITUIDS]: Make code unconditional.
12131         [!__ASSUME_32BITUIDS]: Remove conditional code.
12132         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
12133         <kernel-features.h>.
12134         [__ASSUME_32BITUIDS]: Make code unconditional.
12135         [!__ASSUME_32BITUIDS]: Remove conditional code.
12136         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
12137         <kernel-features.h>.
12138         [__ASSUME_32BITUIDS]: Make code unconditional.
12139         [!__ASSUME_32BITUIDS]: Remove conditional code.
12140         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
12141         <kernel-features.h>.
12142         [__ASSUME_32BITUIDS]: Make code unconditional.
12143         [!__ASSUME_32BITUIDS]: Remove conditional code.
12144         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
12145         <kernel-features.h>.
12146         [__ASSUME_32BITUIDS]: Make code unconditional.
12147         [!__ASSUME_32BITUIDS]: Remove conditional code.
12148         * sysdeps/unix/sysv/linux/kernel-features.h
12149         (__ASSUME_SETRESUID_SYSCALL): Remove.
12150         (__ASSUME_SETRESGID_SYSCALL): Likewise.
12151         (__ASSUME_32BITUIDS): Likewise.
12152         (__ASSUME_LDT_WORKS): Likewise.
12153         (__ASSUME_O_DIRECTORY): Likewise.
12154         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
12155         architecture but not kernel version.
12156         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
12157         (__ASSUME_MMAP2_SYSCALL): Likewise.
12158         (__ASSUME_STAT64_SYSCALL): Likewise.
12159         (__ASSUME_IPC64): Likewise.
12160         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
12161         <kernel-features.h>.
12162         [__ASSUME_32BITUIDS]: Make code unconditional.
12163         [!__ASSUME_32BITUIDS]: Remove conditional code.
12164         * sysdeps/unix/sysv/linux/opendir.c: Do not include
12165         <kernel-features.h>.
12166         [__ASSUME_O_DIRECTORY]: Make code unconditional.
12167         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
12168         132096]: Remove conditional code.
12169         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
12170         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
12171         <kernel-features.h>.
12172         [__ASSUME_32BITUIDS]: Make code unconditional.
12173         [!__ASSUME_32BITUIDS]: Remove conditional code.
12174         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
12175         <kernel-features.h>.
12176         [__ASSUME_32BITUIDS]: Make code unconditional.
12177         [!__ASSUME_32BITUIDS]: Remove conditional code.
12178         * sysdeps/unix/sysv/linux/setegid.c: Do not include
12179         <kernel-features.h>.
12180         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
12181         unconditional.
12182         (__setresgid): Do not declare.
12183         [__ASSUME_32BITUIDS]: Make code unconditional.
12184         [!__ASSUME_32BITUIDS]: Remove conditional code.
12185         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
12186         <kernel-features.h>.
12187         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
12188         unconditional.
12189         (__setresuid): Do not declare.
12190         [__ASSUME_32BITUIDS]: Make code unconditional.
12191         [!__ASSUME_32BITUIDS]: Remove conditional code.
12192         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
12193         <kernel-features.h>.
12194         [__ASSUME_32BITUIDS]: Make code unconditional.
12195         [!__ASSUME_32BITUIDS]: Remove conditional code.
12196         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
12197         <kernel-features.h>.
12198         [__ASSUME_32BITUIDS]: Make code unconditional.
12199         [!__ASSUME_32BITUIDS]: Remove conditional code.
12200
12201 2012-05-25  Richard Henderson  <rth@twiddle.net>
12202
12203         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
12204         dl_hwcap to ifunc resolver.
12205         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
12206         elf_ifunc_invoke.
12207         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
12208         dl_hwcap to ifunc resolver.
12209         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
12210
12211 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
12212
12213         [BZ #14153]
12214         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
12215         for |x| <= 2**-26, not 2**-57.
12216         * math/libm-test.inc (acos_test): Do not allow spurious underflow
12217         exception.
12218
12219 2012-05-24  Jeff Law  <law@redhat.com>
12220
12221         * stdio-common/Makefile (tests): Add bug25.
12222         * stdio-common/bug25.c: New test.
12223
12224 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
12225
12226         [BZ #13576]
12227         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
12228         multiple of MALLOC_ALIGNMENT in size.
12229         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
12230
12231 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
12232
12233         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
12234         Require >= 256.
12235         (FILENAME_MAX): Use macro-int-constant.
12236         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
12237         (_IOFBF): Use macro-int-constant.
12238         (_IOLBF): Likewise.
12239         (_IONBF): Likewise.
12240         (SEEK_CUR): Likewise.
12241         (SEEK_END): Likewise.
12242         (SEEK_SET): Likewise.
12243         (TMP_MAX): Likewise.
12244         (EOF): Use macro-int-constant.  Require < 0.
12245         (NULL): Use macro-constant.  Require == 0.
12246         (stdin): Require type to be FILE *.
12247         (stdout): Likewise.
12248         (stderr): Likewise.
12249         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
12250         macro-int-constant.
12251         (EXIT_SUCCESS): Likewise.
12252         (NULL): Use macro-constant.  Require == 0.
12253         (RAND_MAX): Use macro-int-constant.
12254         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
12255         [C99-based standards] (strtof): Require function.
12256         [C99-based standards] (strtold): Likewise.
12257         [C99-based standards] (strtoll): Likewise.
12258         [C99-based standards] (strtoull): Likewise.
12259         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
12260         [ISO || ISO99 || ISO11] (limits.h): Likewise.
12261         [ISO || ISO99 || ISO11] (math.h): Likewise.
12262         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
12263         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
12264         [ISO || ISO99 || ISO11] (*_t): Do not allow.
12265
12266 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
12267
12268         [BZ #14132]
12269         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
12270         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
12271         * intl/dgettext.c (DCGETTEXT): Likewise.
12272         * intl/gettext.c (DCGETTEXT): Likewise.
12273         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
12274         * posix/regex_internal.h (gettext): Likewise.
12275         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
12276         Remove declaration.
12277         * include/argz.h (__argz_count_internal)
12278         (__argz_stringify_internal): Remove declaration.
12279         (__argz_count, __argz_stringify): Declare hidden proto.
12280         * intl/dcgettext.c: Remove use of INTDEF.
12281         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
12282         * string/argz-stringify.c: Likewise.
12283         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
12284         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
12285         Declare hidden proto.
12286         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
12287         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
12288         Declare hidden proto.
12289         * include/stdio.h (__asprintf_internal): Don't declare.
12290         (__asprintf): Don't define as macro.  Declare hidden proto.
12291         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
12292         (__fsetlocking): Declare hidden proto.
12293         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
12294         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
12295         hidden proto.
12296         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
12297         (_IO_setlinebuf): Remove use of INTUSE.
12298         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
12299         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
12300         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
12301         Remove declaration.
12302         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
12303         (_IO_do_flush): Remove use of INTUSE.
12304         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
12305         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
12306         (_IO_adjust_column, _IO_least_wmarker)
12307         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
12308         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
12309         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
12310         (_IO_default_doallocate, _IO_wdefault_doallocate)
12311         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
12312         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
12313         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
12314         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
12315         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
12316         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
12317         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
12318         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
12319         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
12320         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
12321         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
12322         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
12323         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
12324         proto.
12325         (_IO_flush_all_internal, _IO_adjust_column_internal)
12326         (_IO_default_uflow_internal, _IO_default_finish_internal)
12327         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
12328         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
12329         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
12330         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
12331         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
12332         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
12333         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
12334         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
12335         (_IO_file_close_internal, _IO_file_close_it_internal)
12336         (_IO_file_underflow_internal, _IO_file_overflow_internal)
12337         (_IO_file_init_internal, _IO_file_attach_internal)
12338         (_IO_file_fopen_internal, _IO_file_read_internal)
12339         (_IO_file_sync_internal, _IO_file_seek_internal)
12340         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
12341         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
12342         (_IO_str_underflow_internal, _IO_str_overflow_internal)
12343         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
12344         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
12345         (_IO_list_all_internal, _IO_link_in_internal)
12346         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
12347         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
12348         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
12349         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
12350         (_IO_do_write_internal, _IO_padn_internal)
12351         (_IO_getline_info_internal, _IO_getline_internal)
12352         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
12353         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
12354         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
12355         (_IO_vfscanf_internal, _IO_vfprintf_internal)
12356         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
12357         (_IO_init_internal, _IO_un_link_internal): Don't declare.
12358         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
12359         with libc_hidden_ver, remove use of INTUSE.
12360         * libio/genops.c: Likewise.
12361         * libio/freopen.c: Likewise.
12362         * libio/freopen64.c: Likewise.
12363         * libio/iofclose.c: Likewise.
12364         * libio/iofdopen.c: Likewise.
12365         * libio/iofflush.c: Likewise.
12366         * libio/iofflush_u.c: Likewise.
12367         * libio/iofgets.c: Likewise.
12368         * libio/iofgets_u.c: Likewise.
12369         * libio/iofopen.c: Likewise.
12370         * libio/iofopncook.c: Likewise.
12371         * libio/iofread.c: Likewise.
12372         * libio/iofread_u.c: Likewise.
12373         * libio/ioftell.c: Likewise.
12374         * libio/iofwrite.c: Likewise.
12375         * libio/iogetline.c: Likewise.
12376         * libio/iogets.c: Likewise.
12377         * libio/iogetwline.c: Likewise.
12378         * libio/iopadn.c: Likewise.
12379         * libio/iopopen.c: Likewise.
12380         * libio/ioseekoff.c: Likewise.
12381         * libio/ioseekpos.c: Likewise.
12382         * libio/iosetbuffer.c: Likewise.
12383         * libio/iosetvbuf.c: Likewise.
12384         * libio/ioungetc.c: Likewise.
12385         * libio/ioungetwc.c: Likewise.
12386         * libio/iovdprintf.c: Likewise.
12387         * libio/iovsprintf.c: Likewise.
12388         * libio/iovsscanf.c: Likewise.
12389         * libio/memstream.c: Likewise.
12390         * libio/obprintf.c: Likewise.
12391         * libio/oldfileops.c: Likewise.
12392         * libio/oldiofclose.c: Likewise.
12393         * libio/oldiofdopen.c: Likewise.
12394         * libio/oldiofopen.c: Likewise.
12395         * libio/oldiopopen.c: Likewise.
12396         * libio/oldstdfiles.c: Likewise.
12397         * libio/putc.c: Likewise.
12398         * libio/setbuf.c: Likewise.
12399         * libio/setlinebuf.c: Likewise.
12400         * libio/stdfiles.c: Likewise.
12401         * libio/strops.c: Likewise.
12402         * libio/vasprintf.c: Likewise.
12403         * libio/vscanf.c: Likewise.
12404         * libio/vsnprintf.c: Likewise.
12405         * libio/vswprintf.c: Likewise.
12406         * libio/wfiledoalloc.c: Likewise.
12407         * libio/wfileops.c: Likewise.
12408         * libio/wgenops.c: Likewise.
12409         * libio/wmemstream.c: Likewise.
12410         * libio/wstrops.c: Likewise.
12411         * libio/__fpurge.c: Likewise.
12412         * libio/__fsetlocking.c: Likewise.
12413         * assert/assert.c: Likewise.
12414         * debug/fgets_chk.c: Likewise.
12415         * debug/fgets_u_chk.c: Likewise.
12416         * debug/fread_chk.c: Likewise.
12417         * debug/fread_u_chk.c: Likewise.
12418         * debug/gets_chk.c: Likewise.
12419         * debug/obprintf_chk.c: Likewise.
12420         * debug/vasprintf_chk.c: Likewise.
12421         * debug/vdprintf_chk.c: Likewise.
12422         * debug/vsnprintf_chk.c: Likewise.
12423         * debug/vsprintf_chk.c: Likewise.
12424         * malloc/mtrace.c: Likewise.
12425         * misc/error.c: Likewise.
12426         * misc/syslog.c: Likewise.
12427         * stdio-common/asprintf.c: Likewise.
12428         * stdio-common/fxprintf.c: Likewise.
12429         * stdio-common/getw.c: Likewise.
12430         * stdio-common/isoc99_fscanf.c: Likewise.
12431         * stdio-common/isoc99_scanf.c: Likewise.
12432         * stdio-common/isoc99_vfscanf.c: Likewise.
12433         * stdio-common/isoc99_vscanf.c: Likewise.
12434         * stdio-common/isoc99_vsscanf.c: Likewise.
12435         * stdio-common/printf-prs.c: Likewise.
12436         * stdio-common/printf_fp.c: Likewise.
12437         * stdio-common/printf_fphex.c: Likewise.
12438         * stdio-common/printf_size.c: Likewise.
12439         * stdio-common/putw.c: Likewise.
12440         * stdio-common/scanf.c: Likewise.
12441         * stdio-common/sprintf.c: Likewise.
12442         * stdio-common/tmpfile.c: Likewise.
12443         * stdio-common/vfprintf.c: Likewise.
12444         * stdio-common/vfscanf.c: Likewise.
12445         * stdlib/strfmon_l.c: Likewise.
12446         * sunrpc/openchild.c: Likewise.
12447         * sunrpc/xdr_stdio.c: Likewise.
12448         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
12449         * sysdeps/mach/hurd/tmpfile.c: Likewise.
12450
12451 2012-05-24  Roland McGrath  <roland@hack.frob.com>
12452
12453         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
12454
12455         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
12456         in the third column, to generate for the shared library an IFUNC
12457         that uses _dl_vdso_vsym.
12458         * Makerules (COMPILE.c, compile-stdin.c): New variables.
12459         * Makeconfig (object-suffixes-noshared): New variable.
12460
12461         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
12462         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
12463         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
12464         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
12465
12466         [BZ #14132]
12467         * include/sys/time.h (__gettimeofday): Remove macro.
12468         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
12469         * time/gettimeofday.c (__gettimeofday): Remove #undef.
12470         Remove INTDEF.
12471         (__gettimeofday): Add libc_hidden_def.
12472         (gettimeofday): Add libc_hidden_weak.
12473         * sysdeps/mach/gettimeofday.c: Likewise.
12474         * sysdeps/posix/gettimeofday.c: Likewise.
12475         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
12476         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
12477         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
12478         (__gettimeofday_internal): Remove strong_alias.
12479         (__gettimeofday): Add libc_hidden_def.
12480         (gettimeofday): Add libc_hidden_weak.
12481         * sysdeps/unix/syscalls.list (gettimeofday):
12482         Remove __gettimeofday_internal alias.
12483
12484 2012-05-24  Daniel Jacobowitz  <drow@false.org>
12485             H.J. Lu  <hongjiu.lu@intel.com>
12486
12487         [BZ #12495]
12488         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
12489         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
12490         (largebin_index_32_big): New.
12491         (largebin_index): Use it for 16-byte alignment.
12492         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
12493         correction with front_misalign.
12494
12495 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
12496
12497         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
12498         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
12499         Likewise.
12500         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
12501         Likewise.
12502         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
12503         Likewise.
12504         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
12505         Likewise.
12506         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
12507         Likewise.
12508         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
12509         Likewise.
12510         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
12511         Likewise.
12512         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
12513         Likewise.
12514         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
12515         Likewise.
12516         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
12517         Likewise.
12518         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
12519         Likewise.
12520         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
12521         Likewise.
12522
12523         * scripts/data/c++-types-x32-linux-gnu.data: New file.
12524         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
12525
12526 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
12527
12528         [BZ #10846]
12529         [BZ #14036]
12530         * math/libm-test.inc (exp_test): Add test from bug 14036.
12531         (pow_test): Add test from bug 10846.
12532
12533         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
12534         and other flags.
12535         (special_function): Do not include flags in test name.
12536         (parse_args): Likewise.
12537         * sysdeps/i386/fpu/libm-test-ulps: Update.
12538         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
12539         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
12540         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
12541         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12542
12543         * math/gen-libm-test.pl (%beautify): Add entries for underflow
12544         exceptions.
12545         * math/libm-test.inc ("Philosophy"): Update comment about
12546         exception testing.
12547         (UNDERFLOW_EXCEPTION): New macro.
12548         (UNDERFLOW_EXCEPTION_OK): Likewise.
12549         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
12550         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
12551         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
12552         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
12553         (INVALID_EXCEPTION_OK): Update value.
12554         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
12555         (OVERFLOW_EXCEPTION_OK): Likewise.
12556         (IGNORE_ZERO_INF_SIGN): Likewise.
12557         (test_exceptions): Handle underflow exceptions.
12558         (acos_test): Update for underflow exception expectations.
12559         (cexp_test): Likewise.
12560         (clog_test): Likewise.
12561         (clog10_test): Likewise.
12562         (csqrt_test): Likewise.
12563         (ctan_test): Likewise.
12564         (ctanh_test): Likewise.
12565         (exp_test): Likewise.
12566         (exp10_test): Likewise.
12567         (exp2_test): Likewise.
12568         (expm1_test): Likewise.
12569         (fma_test): Likewise.
12570         (j0_test): Likewise.
12571         (jn_test): Likewise.
12572         (nexttoward_test): Likewise.
12573         (pow_test): Likewise.
12574         (scalbn_test): Likewise.
12575         (scalbln_test): Likewise.
12576         (tan_test): Likewise.
12577         (y1_test): Likewise.
12578         * sysdeps/i386/fpu/libm-test-ulps: Update.
12579         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12580
12581 2012-05-23  David S. Miller  <davem@davemloft.net>
12582
12583         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
12584         (__libc_sigaction): Remove unused local variables.
12585
12586 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
12587
12588         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
12589
12590 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
12591
12592         mktime: avoid signed integer overflow
12593         * time/mktime.c (__mktime_internal): Do not mishandle the case
12594         where diff == INT_MIN.
12595
12596         mktime: simplify computation of average
12597         * time/mktime.c (ranged_convert): Use new time_t_avg function
12598         instead of rolling our own (probably-slower) code.
12599
12600         mktime: do not assume signed right shift propagates sign bit
12601         * time/mktime.c (isdst_differ): New static function.
12602         (__mktime_internal): No need to normalize tm_isdst now.
12603         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
12604         tm_isdst values.
12605
12606         mktime: merge another wrapv change from gnulib
12607         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
12608         from some compilers.
12609
12610         mktime: remove incorrect attempt at unusual arithmetics
12611         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
12612         The code didn't really work on such machines anyway.
12613         (TYPE_MINIMUM): Assume two's complement.
12614         (twos_complement_arithmetic): Verify that long_int and time_t
12615         are two's complement (or unsigned, in the latter case).
12616
12617         mktime: check signed shifts on long_int and time_t, too
12618         * time/mktime.c (SHR): Check that shifts work as desired
12619         on the types long_int and time_t too, as SHR is used on
12620         such types.
12621
12622         mktime: do not assume 'long' is wide enough
12623         * time/mktime.c (verify): Move decl up.
12624         (long_int): New type.
12625         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
12626         to remove assumption in the code that 'long' is wide enough to
12627         store year values.  This assumption is not true on x32 and on
12628         some non-glibc platforms.
12629
12630         mktime: merge wrapv change from gnulib
12631         * time/mktime.c (WRAPV): New macro.
12632         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
12633         (guess_time_tm, __mktime_internal): Do not assume that signed
12634         integer overflow wraps around; modern compilers generate code
12635         where this assumption is no longer valid.
12636
12637 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
12638
12639         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
12640         Replace "jmp L(pseudo_end)" with "ret".
12641         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
12642         Likewise.
12643
12644 2012-05-23  Andreas Jaeger  <aj@suse.de>
12645
12646         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
12647         * sysdeps/unix/sysv/linux/poll.c: Remove file.
12648
12649 2012-05-23  Andreas Jaeger  <aj@suse.de>
12650             Maximilian Attems  <max@stro.at>
12651
12652         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
12653         New macros.
12654
12655 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
12656
12657         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
12658         code so that pseudo_end is just ret and the stack pointer is
12659         correct also for static library in error case.
12660
12661 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
12662
12663         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
12664         move to syscalls.list.
12665         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
12666         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
12667         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
12668         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
12669
12670         * manual/install.texi (Running make install): Do not mention Linux
12671         kernel version for which pt_chown is not needed.
12672         (Linux): Do not mention problems with nscd with 2.0 kernels.
12673         * INSTALL: Regenerated.
12674
12675 2012-05-23  Andreas Jaeger  <aj@suse.de>
12676
12677         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
12678         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
12679         macro.
12680         * sysdeps/unix/sysv/linux/s390/bits/mman.h
12681         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
12682         * sysdeps/unix/sysv/linux/sh/bits/mman.h
12683         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
12684         * sysdeps/unix/sysv/linux/i386/bits/mman.h
12685         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
12686         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
12687         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
12688         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
12689         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
12690         * sysdeps/unix/sysv/linux/bits/in.h
12691         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
12692
12693 2012-05-22  Roland McGrath  <roland@hack.frob.com>
12694
12695         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
12696         (PREPARE_VERSION): Just use assert instead, it will be elided
12697         under [NDEBUG] anyway.
12698
12699 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
12700
12701         * sysdeps/unix/sysv/linux/Makefile: Include
12702         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
12703         (sysdep_routines): Remove sysctl.
12704         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
12705         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
12706         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
12707         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
12708         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
12709
12710 2012-05-22  Andreas Jaeger  <aj@suse.de>
12711
12712         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
12713         that pseudo_end is just ret and the stack pointer is correct also
12714         for static library in error case.
12715
12716 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
12717
12718         [BZ #14122]
12719         * nss/nsswitch.c (defconfig_entries): New variable.
12720         (__nss_database_lookup): Don't leak defconfig entries.
12721         (nss_parse_service_list): Don't leak on error paths.
12722         (free_database_entries): New function.
12723         (free_defconfig): New function.
12724         (free_mem): Move common code to free_database_entries.
12725
12726 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
12727
12728         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
12729         Add arch_prctl.
12730         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
12731
12732         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
12733         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
12734         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
12735         New macro.
12736         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
12737         (INTERNAL_SYSCALL_TYPES): Likewise.
12738         (LOAD_ARGS_TYPES_[1-6]): Likewise.
12739         (LOAD_REGS_TYPES_[1-6]): Likewise.
12740         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
12741         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
12742
12743 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12744
12745         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
12746         copysignl for GLIBC_2_0.
12747         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
12748         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
12749         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
12750         logbl for GLIBC_2_0.
12751         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
12752         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
12753
12754 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
12755
12756         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
12757         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
12758
12759         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
12760         Use "neg %eax".
12761
12762         * time/mktime.c: Update copyright years.
12763
12764 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
12765
12766         mktime: merge comment-quoting-style change from gnulib
12767         * time/mktime.c: Quote 'like this' in comments.
12768         The GNU coding standards suggest that we no longer quote `like this',
12769         as "`" and "'" are typically rendered asymmetrically nowadays.
12770         The typical gnulib style is to quote 'like this' when quoting
12771         code, and "like this" when quoting English.
12772
12773         * time/mktime.c (compile-command): Add "-I.".
12774
12775         mktime: merge mktime-internal.h change from gnulib
12776         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
12777
12778         mktime: merge time_r change from gnulib
12779         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
12780
12781         mktime: merge DEBUG change from gnulib
12782         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
12783         case system <time.h> has a #define.
12784
12785         mktime: merge <sys/types.h> change from gnulib
12786         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
12787         since <time.t> is now guaranteed to define time_t.
12788
12789         mktime: merge HAVE_CONFIG_H change from gnulib
12790         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
12791
12792 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
12793
12794         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
12795         Use "neg %eax".
12796
12797         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
12798         __rlim_t cast.
12799         (struct rusage): Use anonymous union to pad each field to
12800         __syscall_slong_t.
12801
12802 2012-05-21  David S. Miller  <davem@davemloft.net>
12803
12804         * Makefules (o-iterator): Remove .s cases.
12805         (compile-command.s): Delete.
12806         (COMPILE.s): Delete.
12807         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
12808
12809 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
12810
12811         * configure.in (libc_cv_predef_stack_protector): Only consider
12812         "foobar" and "__stack_chk_fail" lines in libc_undefs.
12813         * configure: Regenerated.
12814
12815 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
12816
12817         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
12818         New macro.  Use R*LP on int and pointer.
12819         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
12820         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
12821         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
12822         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
12823
12824         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
12825         [__WORDSIZE_TIME64_COMPAT32] instead of
12826         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
12827         (struct utmp): Likewise.
12828         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
12829         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
12830         Renamed to ...
12831         (__WORDSIZE_TIME64_COMPAT32): This.
12832         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
12833         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
12834         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
12835         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
12836         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
12837         (__WORDSIZE_TIME64_COMPAT32): New macro.
12838
12839 2012-05-21  Andreas Jaeger  <aj@suse.de>
12840
12841         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
12842         only if [SHARED]. Add prototype for __wcschr_ia32.
12843
12844 2012-05-21  Roland McGrath  <roland@hack.frob.com>
12845
12846         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
12847         of %rbp unmolested in the jmp_buf while mangling the low bits.
12848         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
12849         unmolested high bits of %rbp while demangling the low bits.
12850         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
12851
12852 2012-05-21  Andreas Jaeger  <aj@suse.de>
12853
12854         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
12855         * sunrpc/svc_simple.c: Use it for registerrpc.
12856         * sunrpc/xcrypt.c: Use it for passwd2des.
12857
12858         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
12859
12860 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
12861
12862         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
12863         Don't define if [__SYSCALL_WORDSIZE != 32].
12864         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
12865         New macro.
12866
12867 2012-05-21  Bruno Haible  <bruno@clisp.org>
12868             Andreas Jaeger  <aj@suse.de>
12869
12870         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
12871         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
12872         inptr and inend for must_buffer_ch.
12873         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
12874         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
12875         * stdio-common/Makefile (tests): Remove bug15.
12876         (bug15-ENV): Remove macro.
12877         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
12878         anymore.
12879
12880 2012-05-19  Andreas Jaeger  <aj@suse.de>
12881             Roland McGrath  <roland@hack.frob.com>
12882
12883         * manual/contrib.texi: Completely rewritten. It contains now an
12884         alphabetical list of contributors and their contributions.
12885
12886 2012-05-21  Richard Henderson  <rth@twiddle.net>
12887
12888         * misc/getauxval.c (__getauxval): Use unsigned long int.
12889         * misc/sys/auxv.h: Include <sys/cdefs.h>.
12890         (getauxval): Use unsigned long int.
12891
12892 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
12893
12894         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
12895
12896 2012-05-21  Roland McGrath  <roland@hack.frob.com>
12897
12898         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
12899         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
12900         __alignof__ (long double).
12901
12902 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12903
12904         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12905
12906 2012-05-20  Richard Henderson  <rth@twiddle.net>
12907
12908         * misc/getauxval.c: New file.
12909         * misc/sys/auxv.h: New file.
12910         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
12911         (routines): Add getauxval.
12912         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
12913         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
12914         * elf/dl-sysdep.c (_dl_auxv): Remove.
12915         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
12916         * elf/dl-support.c (_dl_auxv): New variable.
12917         (_dl_aux_init): Initialize it.
12918         * manual/startup.texi (Auxiliary Vector): New node.
12919         * sysdeps/generic/bits/hwcap.h: New file.
12920         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
12921         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
12922         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
12923         * sysdeps/sparc/sysdep.h: ... here.  Include it.
12924         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
12925         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
12926         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
12927         Update.
12928         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
12929         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
12930         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
12931         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
12932         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
12933         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
12934         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
12935         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
12936
12937 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12938
12939         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12940
12941 2012-05-19  David S. Miller  <davem@davemloft.net>
12942
12943         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12944
12945 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
12946
12947         [BZ #14123]
12948         * math/s_ccosh.c: Include <float.h>
12949         (__ccosh): Avoid internal overflow calculating sinh and cosh
12950         values before multiplying by sin and cos values.
12951         * math/s_ccoshf.c: Likewise.
12952         * math/s_ccoshl.c: Likewise.
12953         * math/s_csin.c: Likewise.
12954         * math/s_csinf.c: Likewise.
12955         * math/s_csinl.c: Likewise.
12956         * math/s_csinh.c: Likewise.
12957         * math/s_csinhf.c: Likewise.
12958         * math/s_csinhl.c: Likewise.
12959         * math/libm-test.inc (ccos_test): Add more tests.
12960         (ccosh_test): Likewise.
12961         (csin_test): Likewise.
12962         (csinh_test): Likewise.
12963         * sysdeps/i386/fpu/libm-test-ulps: Update.
12964         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12965
12966 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
12967
12968         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
12969         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
12970
12971         * sysdeps/x86_64/x32/_itoa.h: Add comment.
12972
12973 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
12974
12975         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
12976         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
12977         * sysdeps/powerpc/soft-fp/Versions: Likewise.
12978         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
12979         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
12980         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
12981         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
12982         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
12983         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
12984         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
12985         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
12986         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
12987         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
12988         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
12989         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
12990         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
12991         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
12992         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
12993         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
12994         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
12995         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
12996         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
12997         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
12998         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
12999         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
13000         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
13001         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
13002         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
13003         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
13004         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
13005         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
13006
13007 2012-05-18  Andreas Jaeger  <aj@suse.de>
13008
13009         * csu/.gitignore: Delete.
13010
13011 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
13012
13013         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
13014         (timex): Use __syscall_slong_t.
13015
13016 2012-05-18  Andreas Jaeger  <aj@suse.de>
13017             Carlos O'Donell  <carlos_odonell@mentor.com>
13018
13019         * manual/install.texi (Configuring and compiling): Update
13020         description about files modified in the source directory.
13021         * INSTALL: Regenerated.
13022
13023 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
13024
13025         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
13026         value.  Use "or" to set return value to -1.
13027         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
13028         negate return value.
13029
13030 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
13031
13032         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
13033         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
13034         failure if the compiler has Graphite support disabled.
13035         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
13036         Likewise.
13037         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
13038         CFLAGS-memmove.c): Likewise.
13039         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
13040         Likewise.
13041
13042 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
13043
13044         * sysdeps/x86_64/x32/_itoa.h: New file.
13045
13046         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
13047         getdents system call only if kernel and user dirents have the
13048         same d_ino and d_off.
13049
13050         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
13051         LLONG_MAX != LONG_MAX.
13052         (_itoa_word): Use _ITOA_WORD_TYPE on value.
13053         (_fitoa_word): Likewise.
13054
13055         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
13056         years.
13057         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
13058         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
13059         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
13060
13061         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
13062         include <bits/wordsize.h>.  Check __x86_64__ instead of
13063         __WORDSIZE.
13064         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
13065         if __x86_64__ is defined.  Use anonymous union on fpstate.
13066
13067         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
13068         anonymous union.
13069
13070 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
13071
13072         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
13073         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
13074         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
13075         Refer to _rtld_local_ro instead of _rtld_global_ro.
13076         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
13077         Likewise.
13078         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
13079         Likewise.
13080         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
13081         Likewise.
13082         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
13083         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
13084         of _rtld_global, and rtld_progname instead of _dl_argv[0].
13085
13086         * sysdeps/powerpc/powerpc32/dl-machine.c
13087         (__elf_machine_runtime_setup) [PROF]: Don't reference
13088         _dl_prof_resolve.
13089
13090 2012-05-18  Andreas Jaeger  <aj@suse.de>
13091
13092         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
13093         function only available for GCCs before 3.4 since GCC 3.4
13094         introduced a builtin.
13095         (lrint): Likewise.
13096         (llrintf): Likewise.
13097         (llrint): Likewise.
13098         (fmaxf): Likewise.
13099         (fmax): Likewise.
13100         (fminf): Likewise.
13101         (fmin): Likewise.
13102         (rint): Likewise.
13103         (rintf): Likewise.
13104         (nearbyint): Likewise.
13105         (nearbyintf): Likewise.
13106         (ceil): Likewise.
13107         (ceilf): Likewise.
13108         (floor): Likewise.
13109         (floorf): Likewise.
13110
13111 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
13112
13113         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
13114         on both fields and cast pointer to __syscall_ulong_t.
13115
13116         * bits/types.h (__fsword_t): New type.
13117         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
13118         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
13119         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
13120         (__FSWORD_T_TYPE): Likewise.
13121         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
13122         (__FSWORD_T_TYPE): Likewise.
13123         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
13124         (__FSWORD_T_TYPE): Likewise.
13125         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
13126         (__FSWORD_T_TYPE): Likewise.
13127         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
13128         __SWORD_TYPE with __fsword_t.
13129         (statfs64): Likewise.
13130
13131 2012-05-17  David S. Miller  <davem@davemloft.net>
13132
13133         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
13134
13135 2012-05-17  Andreas Jaeger  <aj@suse.de>
13136
13137         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
13138         warning.
13139
13140 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
13141
13142         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
13143
13144 2012-05-17  Andreas Jaeger  <aj@suse.de>
13145
13146         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
13147         when it is used.
13148
13149 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
13150
13151         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
13152
13153 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
13154
13155         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
13156         * sysdeps/x86_64/tst-mallocalign1.c: New file.
13157
13158 2012-05-17  Andreas Jaeger  <aj@suse.de>
13159             Carlos O'Donell  <carlos_odonell@mentor.com>
13160
13161         [BZ #14059]
13162         * sysdeps/x86_64/multiarch/init-arch.h
13163         (bit_YMM_Usable): Rename to...
13164         (bit_AVX_Usable): ... this.
13165         (bit_FMA4_Usable): New macro.
13166         (bit_XMM_state): New macro.
13167         (bit_YMM_state): New macro.
13168         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
13169         [__ASSEMBLER__] (index_AVX_Usable): ... this.
13170         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
13171         (CPUID_OSXSAVE): New macro.
13172         (CPUID_AVX): New macro.
13173         (CPUID_FMA4): New macro.
13174         (index_YMM_Usable): Rename to...
13175         (index_AVX_Usable): ... this.
13176         (HAS_AVX): Use HAS_ARCH_FEATURE.
13177         (HAS_FMA4): Likewise.
13178         (HAS_YMM_USABLE): Remove.
13179         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
13180         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
13181         are present.
13182         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
13183         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
13184         * sysdeps/x86_64/multiarch/Makefile: Likewise.
13185         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
13186         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
13187
13188 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
13189
13190         * math/libm-test.c: Support platforms without multiple rounding modes.
13191         * math/bug-nextafter.c: Support platforms without FP exceptions.
13192         * math/bug-nexttoward.c: Likewise.
13193         * math/test-fenv.c: Likewise.
13194         * math/test-misc.c: Likewise.
13195         * stdlib/bug-getcontext.c: Likewise.
13196
13197 2012-05-17  Andreas Jaeger  <aj@suse.de>
13198
13199         * manual/examples/search.c (critter_cmp): Change signature to
13200         avoid warnings.
13201         * manual/string.texi (Collation Functions): Likewise.
13202
13203 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
13204
13205         * bits/types.h: Fold copyright years.
13206         * bits/typesizes.h: Likewise.
13207         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
13208         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
13209         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
13210         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
13211         * time/time.h: Likewise.
13212
13213 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
13214
13215         [BZ #208]
13216         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
13217         in instead of returning them.  Return void.
13218         (__libc_mallinfo): Accumulate over all arenas.
13219         (__malloc_stats): Adjust for change in int_mallinfo interface.
13220
13221 2012-05-16  Roland McGrath  <roland@hack.frob.com>
13222
13223         [BZ #10375]
13224         * configure.in (NM): Add AC_CHECK_TOOL for it.
13225         (libc_extra_cflags): New substituted variable.
13226         Check for -fstack-protector being used implicitly.
13227         * configure: Regenerated.
13228         * config.make.in (config-extra-cflags): New variable,
13229         gets @libc_extra_cflags@.
13230         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
13231
13232         [BZ #10375]
13233         * configure.in: Check for _FORTIFY_SOURCE being predefined.
13234         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
13235         * configure: Regenerated.
13236         * config.make.in (CPPUNDEFS): New substituted variable.
13237         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
13238         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
13239         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
13240
13241 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
13242
13243         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
13244         (mq_attr): Use __syscall_slong_t.
13245
13246 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
13247
13248         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
13249         Check __x86_64__ instead of __WORDSIZE.
13250         (_STAT_VER_LINUX): Likewise.
13251         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
13252         __syscall_ulong_t and __syscall_slong_t.
13253         (stat64): Likewise.
13254
13255 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
13256
13257         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
13258
13259 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
13260
13261         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
13262
13263 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
13264
13265         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
13266         __syscall_ulong_t.
13267
13268         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
13269         include <bits/wordsize.h>.  Check __x86_64__ instead of
13270         __WORDSIZE.
13271         (greg_t): Use "__extension__ long long int" if __x86_64__ is
13272         defined.
13273         (mcontext_t): Replace "unsigned long" with "unsigned long long".
13274
13275         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
13276         include <bits/wordsize.h>.  Check __x86_64__ instead of
13277         __WORDSIZE.
13278         (user_regs_struct): Use "__extension__ unsigned long long"
13279         instead of "unsigned long" if __x86_64__ is defined.
13280         (user): Likewise.  Pad after pointer field if __ILP32__ is
13281         defined.
13282
13283 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
13284
13285         * configure.in (makeinfo): Require version 4.5 or later.  Allow
13286         versions 5 to 9.
13287         * configure: Regenerated.
13288         * manual/install.texi (texinfo): Increase version requirement to
13289         4.5 or later.
13290         * INSTALL: Regenerated.
13291
13292         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
13293
13294 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
13295
13296         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
13297
13298         * sysdeps/x86_64/x32/ffs.c: New file.
13299
13300         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
13301         __syscall_ulong_t.
13302         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
13303         defined.  Use __syscall_ulong_t.
13304         (shminfo): Use __syscall_ulong_t.
13305         (shm_info): Likewise.
13306
13307         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
13308         __syscall_ulong_t.
13309
13310         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
13311         <bits/wordsize.h>.
13312         (msgqnum_t): Use __syscall_ulong_t.
13313         (msglen_t): Likewise.
13314         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
13315         __syscall_ulong_t.
13316
13317         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
13318         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
13319
13320         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
13321
13322         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
13323         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
13324
13325         * sysvipc/sys/msg.h (msgbuf): Replace long int with
13326         __syscall_slong_t.
13327
13328         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
13329         include <bits/wordsize.h>.  Check __x86_64__ instead of
13330         __WORDSIZE.
13331
13332         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
13333         "unsigned long long int" if __x86_64__ is defined.
13334         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
13335
13336         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
13337         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
13338         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
13339
13340         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
13341         <stdint.h>.
13342         (GET_PC): Cast to uintptr_t first.
13343         (GET_FRAME): Likewise.
13344         (GET_STACK): Likewise.
13345
13346         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
13347         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
13348         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
13349         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
13350         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
13351         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
13352         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
13353         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
13354         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
13355         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
13356         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
13357         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
13358         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
13359         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
13360         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
13361         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
13362         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
13363         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
13364         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
13365         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
13366         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
13367         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
13368         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
13369         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
13370         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
13371         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
13372         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
13373         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
13374         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
13375
13376 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
13377
13378         * Makerules (+depfiles): Also collect depfiles from .oS in
13379         $(extra-objs).
13380         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
13381         .oS, $(libnldbl-routines)).
13382
13383         * Makerules (native-compile-mkdep-flags): Define.
13384         * sunrpc/Makefile (extra-objs): Add $(addprefix
13385         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
13386         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
13387         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
13388         calling $(make-target-directory).
13389
13390 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
13391
13392         * bits/types.h (__snseconds_t): Removed.
13393         * time/time.h (struct timespec): Replace __snseconds_t with
13394         __syscall_slong_t.
13395         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
13396         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
13397         Likewise.
13398         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
13399         (__SNSECONDS_T_TYPE): Likewise.
13400         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
13401         (__SNSECONDS_T_TYPE): Likewise.
13402         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
13403         (__SNSECONDS_T_TYPE): Likewise.
13404
13405 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
13406
13407         * sysdeps/mach/hurd/bits/typesizes.h
13408         (__SYSCALL_SLONG_TYPE): New macro.
13409         (__SYSCALL_ULONG_TYPE): Likewise.
13410
13411 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
13412
13413         * bits/types.h (__syscall_slong_t): New type.
13414         (__syscall_ulong_t): Likewise.
13415
13416         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
13417         (__SYSCALL_ULONG_TYPE): Likewise.
13418         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
13419         (__SYSCALL_SLONG_TYPE): Likewise.
13420         (__SYSCALL_ULONG_TYPE): Likewise.
13421         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
13422         (__SYSCALL_SLONG_TYPE): Likewise.
13423         (__SYSCALL_ULONG_TYPE): Likewise.
13424         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
13425         (__SYSCALL_SLONG_TYPE): Likewise.
13426         (__SYSCALL_ULONG_TYPE): Likewise.
13427
13428 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
13429
13430         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
13431         Add sigaltstack-offsets.sym.
13432         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
13433         <sigaltstack-offsets.h>.
13434         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
13435         longjmp_msg pointer.
13436         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
13437         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
13438         signal stack.
13439         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
13440
13441 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
13442
13443         * elf/stackguard-macros.h: Remove file.
13444         * sysdeps/generic/stackguard-macros.h: New file.
13445         * sysdeps/i386/stackguard-macros.h: Likewise.
13446         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
13447         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
13448         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
13449         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
13450         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
13451         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
13452         * sysdeps/x86_64/stackguard-macros.h: Likewise.
13453         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
13454         <elf/stackguard-macros.h>.
13455
13456         [BZ #14109]
13457         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
13458         __aligned__ in attribute.
13459         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
13460         (gregset_t): Likewise.
13461
13462 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
13463
13464         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
13465         * sysdeps/x86_64/64/Implies-after: Here.  New file.
13466         * sysdeps/x86_64/x32/Implies-after: New file.
13467
13468 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
13469
13470         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
13471         and access return value for _dl_profile_fixup.  Use R10_LP to
13472         load frame size.
13473
13474 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
13475
13476         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
13477
13478 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
13479
13480         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
13481         * sysdeps/x86_64/x32/sysdep.h: New file.
13482
13483 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
13484
13485         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
13486         * sysdeps/x86_64/setjmp.S: Likewise.
13487
13488 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13489
13490         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
13491         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
13492         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
13493         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
13494         remove unused global constant.
13495
13496 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
13497
13498         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
13499         include of <not-cancel.h>.
13500
13501 2012-05-15  Roland McGrath  <roland@hack.frob.com>
13502
13503         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
13504
13505 2012-05-15  Jeff Law  <law@redhat.com>
13506             Andreas Jaeger  <aj@suse.de>
13507
13508         [BZ #13594]
13509         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
13510         out from...
13511         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
13512         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
13513         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
13514         code changing __hst_map_handle.map.
13515
13516 2012-05-15  Roland McGrath  <roland@hack.frob.com>
13517
13518         * configure.in (sysnames): Look for Implies-before and Implies-after
13519         files.
13520         * configure: Regenerated.
13521
13522 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
13523
13524         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
13525         8-byte data alignment with LP_SIZE alignment.
13526
13527 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
13528
13529         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
13530         into R10_LP.
13531
13532 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
13533
13534         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
13535
13536 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
13537
13538         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
13539         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
13540         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
13541         Likewise.
13542         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
13543
13544 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
13545
13546         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
13547         (stackinfo_sub_sp): Likewise.
13548
13549 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
13550
13551         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
13552         RAX_LP.
13553
13554 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
13555
13556         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
13557         into R*_LP.
13558
13559 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
13560
13561         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
13562         sizes into R*_LP.
13563
13564 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
13565
13566         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
13567
13568 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
13569
13570         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
13571         into R11_LP and load __x86_64_shared_cache_size_half into
13572         R8_LP.
13573
13574 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
13575
13576         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
13577         R8_LP.
13578
13579 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13580
13581         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
13582         logb for POWER7.
13583         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
13584         logbf for POWER7.
13585         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
13586         logbl for POWER7.
13587         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
13588         powerpc32/power7/fpu/s_logb.c via #include.
13589         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
13590         powerpc32/power7/fpu/s_logbf.c via #include.
13591         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
13592         powerpc32/power7/fpu/s_logbl.c via #include.
13593
13594 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
13595
13596         * README.libm: Remove file.
13597
13598 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
13599
13600         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
13601         count for x32.  Use R*_LP and omit operand-size suffix.
13602
13603 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
13604
13605         * shlib-versions: Move x86_64-.*-linux.* entries to ...
13606         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
13607         * sysdeps/x86_64/x32/shlib-versions: New file.
13608
13609 2012-05-14  Roland McGrath  <roland@hack.frob.com>
13610
13611         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
13612         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
13613         Use _dl_fatal_printf instead.
13614
13615 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
13616
13617         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
13618         set if not set by the user.  Do not allow for being unset.
13619         * sysdeps/unix/sysv/linux/configure: Regenerated.
13620
13621 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
13622
13623         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
13624         the `q' suffix from lea and replace .quad with ASM_ADDR.
13625
13626 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
13627
13628         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
13629         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
13630         instead of $17.
13631         (PTR_DEMANGLE): Likewise.
13632
13633 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
13634
13635         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
13636         (LP_OP): Likewise.
13637         (ASM_ADDR): Likewise.
13638         (RAX_LP): Likewise.
13639         (RBP_LP): Likewise.
13640         (RBX_LP): Likewise.
13641         (RCX_LP): Likewise.
13642         (RDI_LP): Likewise.
13643         (RSI_LP): Likewise.
13644         (RSP_LP): Likewise.
13645         (R8_LP): Likewise.
13646         (R9_LP): Likewise.
13647         (R10_LP): Likewise.
13648         (R10_LP): Likewise.
13649         (R11_LP): Likewise.
13650         (R12_LP): Likewise.
13651         (R13_LP): Likewise.
13652         (R14_LP): Likewise.
13653         (R15_LP): Likewise.
13654
13655 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
13656
13657         * sysdeps/x86_64/x32/dl-machine.h: New file.
13658
13659 2012-05-14  Andreas Jaeger  <aj@suse.de>
13660
13661         * manual/Makefile (subdir): Remove export of subdir.
13662         (all): Remove target.
13663         (.PHONY): Remove all from list.
13664         (mkinstalldirs): Remove.
13665         (.PHONY): Remove installdirs from list.
13666         ($(inst_infodir)/libc.info): Use make-target-directory.
13667         (installdirs): Remove.
13668         (subdir_%): Remove.
13669         (glibc-targets): Remove.
13670         (lib): Remove.
13671         (stubs): Remove.
13672         ($(objpfx)stubs ../po/manual.pot): Remove.
13673         ($(objpfx)stamp%): Remove.
13674         (make-target-directory): Remove.
13675         (subdir_install): Remove.
13676         (routines): Remove.
13677         (aux): Remove.
13678         (sources): Remove.
13679         (objects): Remove.
13680         (headers): Remove.
13681
13682         [BZ #13750]
13683         * manual/.gitignore: Remove, it's not needed anymore.
13684         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
13685         all files in it.
13686         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
13687         directory.
13688         (texis): Renamed to $(objpfx)texis.
13689         (texis-path): New, contains path to generated files.
13690         (chapters.%): Use texis-path for complete path, add extra argument
13691         libc-texinfo.sh.
13692         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
13693         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
13694         (summary,texi, stamp-summary): Use complete path of
13695         files. Generate files in build dir.
13696         (dir-add.texi): Build in build dir.
13697         (libm-err.texi,stamp-libm-err): Likewise.
13698         (version.texi, stamp-version): Likewise.
13699         (.%c.texi): Likewise.
13700         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
13701         (mostlyclean): Remove target.
13702         (realclean): Remove target.
13703         (generated): Add new variable with contents from mostlyclean and
13704         realclean, remove entries duplicated in common-mostlyclean, add
13705         stamp-libm-err and stamp-version.
13706         (generated-dirs): Add libc directory.
13707         ($(inst_infodir)/libc.info): Install files from build dir.
13708
13709         * manual/install.texi (Configuring and compiling): Adjust since
13710         the info files are not part of the tar ball anymore.
13711
13712 2012-05-14  Andreas Jaeger  <aj@suse.de>
13713
13714         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
13715         variable.
13716
13717 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
13718
13719         [BZ #13717]
13720         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
13721         to 2.2.0 where earlier.
13722         * sysdeps/unix/sysv/linux/configure: Regenerated.
13723         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
13724         Remove conditional code.
13725         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
13726         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
13727         Remove conditional code.
13728         [!__NR_lchown]: Likewise.
13729         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
13730         [__NR_lchown]: Likewise.
13731         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
13732         comment referencing __ASSUME_LCHOWN_SYSCALL.
13733         * sysdeps/unix/sysv/linux/i386/sigaction.c
13734         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
13735         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
13736         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
13737         Remove conditional code.
13738         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
13739         (__protocol_available): Remove #if 0 code.
13740         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
13741         conditional code.
13742         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
13743         * sysdeps/unix/sysv/linux/kernel-features.h
13744         (__ASSUME_GETCWD_SYSCALL): Don't define.
13745         (__ASSUME_REALTIME_SIGNALS): Likewise.
13746         (__ASSUME_PREAD_SYSCALL): Likewise.
13747         (__ASSUME_PWRITE_SYSCALL): Likewise.
13748         (__ASSUME_POLL_SYSCALL): Likewise.
13749         (__ASSUME_LCHOWN_SYSCALL): Likewise.
13750         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
13751         non-SPARC.
13752         (__ASSUME_SIOCGIFNAME): Don't define.
13753         (__ASSUME_MSG_NOSIGNAL): Likewise.
13754         (__ASSUME_SENDFILE): Define unconditionally.
13755         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
13756         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
13757         conditional code.
13758         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
13759         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
13760         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
13761         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
13762         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
13763         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
13764         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
13765         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
13766         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
13767         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
13768         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
13769         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
13770         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
13771         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
13772         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
13773         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
13774         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
13775         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
13776         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
13777         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
13778         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
13779         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
13780         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
13781         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
13782         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
13783         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
13784         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
13785         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
13786         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
13787         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
13788         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
13789         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
13790         Remove conditional code.
13791         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
13792         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
13793         Remove conditional code.
13794         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
13795         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
13796         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
13797         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
13798         Remove conditional code.
13799         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
13800         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
13801         Remove conditional code.
13802         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
13803         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
13804         Remove conditional code.
13805         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
13806         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
13807         Remove conditional code.
13808         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
13809         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
13810         Remove conditional code.
13811         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
13812         * sysdeps/unix/sysv/linux/sh/pwrite64.c
13813         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
13814         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
13815         * sysdeps/unix/sysv/linux/sigaction.c
13816         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
13817         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
13818         * sysdeps/unix/sysv/linux/sigpending.c
13819         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
13820         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
13821         * sysdeps/unix/sysv/linux/sigprocmask.c
13822         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
13823         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
13824         * sysdeps/unix/sysv/linux/sigsuspend.c
13825         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
13826         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
13827         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
13828         (__libc_missing_rt_sigs): Remove.
13829         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
13830         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
13831         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
13832         Remove conditional code.
13833         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
13834         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
13835         return 1.
13836         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
13837         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
13838         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
13839         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
13840
13841 2012-05-14  Andreas Jaeger  <aj@suse.de>
13842
13843         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
13844         it's not used in glibc.
13845         (__coshm1): Likewise.
13846         (__acosh1p): Likewise.
13847         (__sgn): Likewise.
13848
13849         * manual/string.texi (Copying and Concatenation): Add missing
13850         variable in concat example.
13851         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
13852
13853 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
13854
13855         [BZ #14103]
13856         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
13857         __builtin_clzl with __builtin_clzll.
13858
13859 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
13860
13861         [BZ #14104]
13862         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
13863         libc_freeres_ptr.
13864
13865 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13866
13867         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
13868         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
13869         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
13870         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
13871
13872 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
13873
13874         * NEWS: Update ia64 info.
13875
13876 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
13877
13878         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
13879         used as bcopy.
13880
13881 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
13882
13883         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
13884         * sysdeps/unix/syscalls.list (dup3): Likewise.
13885         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
13886         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
13887
13888 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
13889
13890         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
13891         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
13892
13893 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
13894
13895         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
13896         thread pointer.
13897         (TLS_IE): Use mov/add instead of movq/addq to load thread
13898         pointer.
13899         (TLS_GD_PREFIX): New.
13900         (TLS_GD): Use it.
13901
13902 2012-05-11  David S. Miller  <davem@davemloft.net>
13903
13904         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
13905         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
13906         (_FPU_SETCW): Likewise.
13907
13908 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
13909
13910         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
13911         is 32-byte aligned.
13912
13913 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
13914
13915         [BZ #11837]
13916         * iconvdata/gb18030.c: Update tables.
13917         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
13918         characters specially.
13919         (BODY for TO_LOOP): Add encoding of missing ranges.
13920
13921 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
13922
13923         [BZ #13673]
13924         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
13925         * sysdeps/mach/hurd/dup3.c: Likewise.
13926         * sysdeps/mach/hurd/readlinkat.c: Likewise.
13927         * sysdeps/powerpc/memmove.c:: Likewise.
13928
13929 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
13930
13931         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
13932         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
13933
13934 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
13935
13936         * elf/elf.h (R_X86_64_RELATIVE64): New.
13937         (R_X86_64_NUM): Updated.
13938         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
13939         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
13940         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
13941         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
13942         tst-quad1pie tst-quad2pie
13943         (modules-names): Add tst-quadmod1 tst-quadmod2.
13944         ($(objpfx)tst-quad1): New dependency.
13945         ($(objpfx)tst-quad2): Likewise.
13946         ($(objpfx)tst-quad1pie): Likewise.
13947         ($(objpfx)tst-quad2pie): Likewise.
13948         * sysdeps/x86_64/tst-quad1.c: New file.
13949         * sysdeps/x86_64/tst-quad1pie.c: New file.
13950         * sysdeps/x86_64/tst-quad2.c: Likewise.
13951         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
13952         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
13953         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
13954         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
13955         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
13956
13957 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13958
13959         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
13960         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
13961         * streams/stropts.h (t_scalar_t): Define type.
13962
13963         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
13964         (_PATH_PRESERVE): Set to "/var/lib".
13965         (_PATH_RWHODIR): Set to "/var/spool/rwho".
13966
13967         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
13968         instead of int.
13969
13970         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
13971         if __dir_mkfile succeeded.
13972
13973         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
13974         checking for _hurd_dtablesize.  Unlock it right after having
13975         finished _hurd_dtable allocation.
13976
13977 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
13978
13979         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
13980         * sysdeps/mach/hurd/configure: Regenerated.
13981         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
13982         special-casing to...
13983         * sysdeps/gnu/configure.in: ... this new file.
13984         * sysdeps/unix/sysv/linux/configure: Regenerated.
13985         * sysdeps/gnu/configure: New generated file.
13986
13987         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
13988         for Linux: use nsec instead of usec, as well as:
13989         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
13990         members of type struct timespec.
13991         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
13992         New macros.
13993         (struct stat64): Likewise.
13994         (_STATBUF_ST_NSEC): New macro.
13995         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
13996
13997         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
13998         __strtoul_internal rather than strtoul.
13999
14000 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
14001
14002         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
14003         and reject them.
14004
14005 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14006
14007         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
14008         which preserves existing values.
14009         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
14010
14011 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
14012
14013         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
14014         TIMEOUT values.  Return EINVAL for NFDS values either negative or
14015         greater than FD_SETSIZE.
14016
14017 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14018
14019         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
14020         allocated, call __vm_protect to finish enabling the existing space, and
14021         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
14022         allocate the remainder.
14023
14024 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
14025
14026         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
14027         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
14028
14029 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14030
14031         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
14032         sysdeps/mach/hurd/readlink.c.
14033
14034         * posix/tst-sysconf.c (posix_options): Only use
14035         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
14036         _POSIX_SYNCHRONIZED_IO when they are defined
14037         * sysdeps/mach/hurd/bits/posix_opt.h:
14038         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
14039         (_XOPEN_REALTIME): Undefine macro.
14040         (_XOPEN_REALTIME_THREADS): Undefine macro.
14041         (_XOPEN_SHM): Undefine macro.
14042         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
14043         macro to -1.
14044         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
14045         macro to -1.
14046         (_POSIX_ASYNC_IO): Undefine macro.
14047         (_POSIX_PRIORITIZED_IO): Undefine macro.
14048         (_POSIX_SPIN_LOCKS): Define macro to -1.
14049
14050         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
14051         SA_NODEFER, SA_RESETHAND.
14052         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
14053         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
14054         F_DUPFD_CLOEXEC.
14055
14056 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
14057
14058         * elf/Makefile (pldd-modules): Define unconditionally.
14059
14060 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
14061
14062         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
14063
14064 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14065
14066         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
14067         Return ENOENT when name is empty.
14068         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
14069
14070 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
14071
14072         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
14073
14074         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
14075
14076 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14077
14078         Fix mlock in all cases except non-readable pages.
14079         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
14080         instead of VM_PROT_ALL as parameter to __vm_wire function.
14081
14082         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
14083         (__mkdir): When path is `/', just fail with EEXIST.
14084         * sysdeps/mach/hurd/mkdirat.c: Likewise.
14085
14086 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
14087
14088         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
14089         <sys/uio.h> (for writev).
14090         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
14091         and <sys/param.h> (for MIN).
14092
14093 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
14094
14095         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
14096         REQUESTED_TIME.  Properly set the remaining time and return EINTR
14097         if interrupted.
14098
14099 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
14100
14101         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
14102         Depend on against $(link-rpcuserlibs).
14103
14104 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14105
14106         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
14107         (__libc_stack_end): Do not use attribute_relro.
14108         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
14109         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
14110         to libthread-provided value.
14111         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
14112         attribute_relro.
14113
14114 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
14115
14116         [BZ #3748]
14117         * bits/libc-lock.h (__libc_once_get): New macro.
14118         * sysdeps/mach/bits/libc-lock.h: Likewise.
14119         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
14120         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
14121         instead of using implementation details.
14122
14123         * libio/fileops.c: Unconditionally include <kernel-features.h>.
14124         * libio/freopen.c: Likewise.
14125         * libio/freopen64.c: Likewise.
14126         * misc/syslog.c: Likewise.
14127         * nscd/connections.c: Likewise.
14128         * nscd/netgroupcache.c: Likewise.
14129         * sysdeps/posix/getcwd.c: Likewise.
14130
14131 2012-05-10  Roland McGrath  <roland@hack.frob.com>
14132
14133         * math/w_ilogbf.c: Add #include <limits.h>.
14134
14135 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14136
14137         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
14138         path instead of returning without unlocking.
14139
14140         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
14141         immediate-write ioctls.
14142         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
14143
14144 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
14145
14146         * sysdeps/mach/hurd/i386/init-first.c (init): Use
14147         __builtin_frame_address instead of making assumptions about the
14148         location of the return address relative to DATA.  Force early load of
14149         the return address.
14150         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
14151         __builtin_frame_address.
14152
14153         dup3 for GNU Hurd.
14154         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
14155         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
14156         implement dup3 and do some further code clean-ups.
14157         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
14158         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
14159
14160 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14161
14162         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
14163
14164         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
14165         HURD_CRITICAL_END around holding _hurd_dtable_lock.
14166         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
14167         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
14168         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
14169         d->port.lock.
14170
14171         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
14172         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
14173         when handler == SIG_ERR, not when handler != SIG_ERR.
14174
14175 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
14176
14177         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
14178         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
14179         definitions.
14180
14181         accept4 for GNU Hurd.
14182         * include/sys/socket.h (__libc_accept4): New prototype.
14183         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
14184         to implement __libc_accept4.
14185         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
14186         __libc_accept4.
14187         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
14188
14189         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
14190         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
14191         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
14192         signal-defines.sym.
14193
14194 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14195
14196         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
14197
14198 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
14199
14200         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
14201         assertion on O_CLOEXEC flag.
14202         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
14203         * hurd/intern-fd.c: Likewise.
14204         * hurd/port2fd.c: Likewise.
14205
14206 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14207
14208         [BZ #3906]
14209         * bits/in.h (IPV6_PKTINFO): Define new macro.
14210         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
14211
14212 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14213
14214         [BZ #13954]
14215         [BZ #13955]
14216         [BZ #13956]
14217         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
14218         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
14219         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
14220         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
14221         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
14222         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
14223         * math/libm-test.inc (logb_test) : Additional logb tests.
14224
14225 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
14226             Andreas Jaeger  <aj@suse.de>
14227
14228         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
14229         * configure: Regenerated.
14230         * config.h.in (LINK_OBSOLETE_RPC): New macro.
14231         * config.make.in (link-obsolete-rpc): New substituted variable.
14232         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
14233         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
14234         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
14235         (shared-only-routines): Don't set it under [link-obsolete-rpc],
14236         so that libc.a contains the symbols.
14237         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
14238         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
14239         * sunrpc/auth_none.c: Likewise.
14240         * sunrpc/auth_unix.c: Likewise.
14241         * sunrpc/authdes_prot.c: Likewise.
14242         * sunrpc/authuxprot.c: Likewise.
14243         * sunrpc/clnt_gen.c: Likewise.
14244         * sunrpc/clnt_perr.c: Likewise.
14245         * sunrpc/clnt_raw.c: Likewise.
14246         * sunrpc/clnt_simp.c: Likewise.
14247         * sunrpc/clnt_tcp.c: Likewise.
14248         * sunrpc/clnt_udp.c: Likewise.
14249         * sunrpc/clnt_unix.c: Likewise.
14250         * sunrpc/des_crypt.c: Likewise.
14251         * sunrpc/des_soft.c: Likewise.
14252         * sunrpc/get_myaddr.c: Likewise.
14253         * sunrpc/key_call.c: Likewise.
14254         * sunrpc/key_prot.c: Likewise.
14255         * sunrpc/netname.c: Likewise.
14256         * sunrpc/pm_getmaps.c: Likewise.
14257         * sunrpc/pm_getport.c: Likewise.
14258         * sunrpc/pmap_clnt.c: Likewise.
14259         * sunrpc/pmap_prot.c: Likewise.
14260         * sunrpc/pmap_prot2.c: Likewise.
14261         * sunrpc/pmap_rmt.c: Likewise.
14262         * sunrpc/publickey.c: Likewise.
14263         * sunrpc/rpc_cmsg.c: Likewise.
14264         * sunrpc/rpc_common.c: Likewise.
14265         * sunrpc/rpc_dtable.c: Likewise.
14266         * sunrpc/rpc_prot.c: Likewise.
14267         * sunrpc/rpc_thread.c: Likewise.
14268         * sunrpc/rtime.c: Likewise.
14269         * sunrpc/svc.c: Likewise.
14270         * sunrpc/svc_auth.c: Likewise.
14271         * sunrpc/svc_raw.c: Likewise.
14272         * sunrpc/svc_run.c: Likewise.
14273         * sunrpc/svc_tcp.c: Likewise.
14274         * sunrpc/svc_udp.c: Likewise.
14275         * sunrpc/svc_unix.c: Likewise.
14276         * sunrpc/svcauth_des.c: Likewise.
14277         * sunrpc/xcrypt.c: Likewise.
14278         * sunrpc/xdr.c: Likewise.
14279         * sunrpc/xdr_array.c: Likewise.
14280         * sunrpc/xdr_float.c: Likewise.
14281         * sunrpc/xdr_intXX_t.c: Likewise.
14282         * sunrpc/xdr_mem.c: Likewise.
14283         * sunrpc/xdr_rec.c: Likewise.
14284         * sunrpc/xdr_ref.c: Likewise.
14285         * sunrpc/xdr_sizeof.c: Likewise.
14286         * sunrpc/xdr_stdio.c: Likewise.
14287
14288 2012-05-10  Roland McGrath  <roland@hack.frob.com>
14289
14290         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
14291         change.  Update copyright years.
14292
14293 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
14294
14295         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
14296
14297 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
14298             Joseph Myers  <joseph@codesourcery.com>
14299             Paul Pluzhnikov  <ppluzhnikov@google.com>
14300
14301         [BZ #14012]
14302         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
14303         requiring rpcgen.
14304         [cross-compiling] (extra-libs): Likewise.
14305         [cross-compiling] (extra-libs-others): Likewise.
14306         [cross-compiling] (librpcsvc-routines): Likewise.
14307         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
14308         [cross-compiling] (omit-deps): Likewise.
14309         (sunrpc-CPPFLAGS): New variable.
14310         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
14311         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
14312         (cross-rpcgen-objs): New variable.
14313         (extra-objs): Append $(cross-rpcgen-objs).
14314         ($(cross-rpcgen-objs)): New rule.
14315         ($(objpfx)cross-rpcgen): Likewise.
14316         (rpcgen-cmd): Define to use $(built-program-file).  Expand
14317         comment.
14318         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
14319         ($(objpfx)x%.stmp): Likewise.
14320         * sunrpc/proto.h [IS_IN_build] (_): Define.
14321         [IS_IN_build] (_libc_intl_domainname): Likewise.
14322
14323 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
14324
14325         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
14326         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
14327         and R_X86_64_TPOFF64.
14328
14329 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
14330
14331         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
14332         sysdeps/unix/sysv/syscalls.list.
14333         (stime): Likewise.
14334         (utime): Likewise.
14335         * sysdeps/unix/sysv/syscalls.list: Remove file.
14336
14337 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
14338
14339         [BZ #3440]
14340         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
14341         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
14342         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
14343         (__LC_IDENTIFICATION): Make these macros useful in #if
14344         expressions, as required by C99.
14345
14346 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
14347
14348         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
14349         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
14350         after this.
14351
14352 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
14353
14354         * stdlib/longlong.h: Updated from GCC.
14355
14356 2012-05-09  Andreas Jaeger  <aj@suse.de>
14357
14358         * nscd/nscd.c (run_modes): Make named enum, reorder so that
14359         default is first entry.
14360         (run_mode): Set type.
14361         (main): Remove informal message about syslog.
14362         (options): Fix typo.
14363
14364         [BZ #14053]
14365         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
14366         to asm.
14367         (lrint): Likewise.
14368         (llrintf): Likewise.
14369         (llrint): Likewise.
14370         (rint): Likewise.
14371         (rintf): Likewise.
14372         (nearbyint): Likewise.
14373         (nearbyintf): Likewise.
14374
14375 2012-05-09  Andreas Jaeger  <aj@suse.de>
14376             Pedro Alves  <palves@redhat.com>
14377
14378         * nscd/nscd.c (run_mode): Use enum.
14379         (main): Cleanup coding style issue.
14380
14381 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
14382             Andreas Jaeger  <aj@suse.de>
14383
14384         * nscd/nscd.c (go_background): Replaced with...
14385         (run_mode): ... this.
14386         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
14387         (options): Add -F --foreground.
14388         (main): Implement it.
14389         (parse_opt): Parse it.
14390
14391 2012-05-09  Andreas Jaeger  <aj@suse.de>
14392
14393         [BZ #14083]
14394         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
14395         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
14396         -Wconversion warning.
14397         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
14398         Likewise.
14399
14400 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
14401
14402         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
14403         == 0.
14404         (LC_ALL): Use macro-int-constant.
14405         (LC_COLLATE): Likewise.
14406         (LC_CTYPE): Likewise.
14407         (LC_MESSAGES): Likewise.
14408         (LC_MONETARY): Likewise.
14409         (LC_NUMERIC): Likewise.
14410         (LC_TIME): Likewise.
14411         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
14412         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
14413         [ISO || ISO99 || ISO11] (*_t): Do not allow.
14414         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
14415         Specify type.
14416         [C99-based standards] (float_t): Expect type.
14417         [C99-based standards] (double_t): Expect type.
14418         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
14419         type.
14420         [C99-based standards] (HUGE_VALL): Likewise.
14421         [C99-based standards] (INFINITY): Likewise.
14422         [C99-based standards] (NAN): Likewise.
14423         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
14424         [C99-based standards] (FP_NAN): Likewise.
14425         [C99-based standards] (FP_NORMAL): Likewise.
14426         [C99-based standards] (FP_SUBNORMAL): Likewise.
14427         [C99-based standards] (FP_ZERO): Likewise.
14428         [C99-based standards] (FP_FAST_FMA): Use
14429         optional-macro-int-constant.  Specify type.  Require == 1.
14430         [C99-based standards] (FP_FAST_FMAF): Likewise.
14431         [C99-based standards] (FP_FAST_FMAL): Likewise.
14432         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
14433         [C99-based standards] (FP_ILOGBNAN): Likewise.
14434         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
14435         Specify type.
14436         [C99-based standards] (MATH_ERREXCEPT): Likewise.
14437         [C99-based standards] (math_errhandling): Specify type.
14438         [ISO99 || ISO11] (signgam): Do not allow.
14439         [non-C99-based standards] (copysignf): Do not allow.
14440         [non-C99-based standards] (exp2f): Likewise.
14441         [non-C99-based standards] (log2f): Likewise.
14442         [non-C99-based standards] (modff): Allow.
14443         [non-C99-based standards] (erff): Do not allow.
14444         [non-C99-based standards] (erfcf): Likewise.
14445         [non-C99-based standards] (gammaf): Likewise.
14446         [non-C99-based standards] (hypotf): Likewise.
14447         [non-C99-based standards] (j0f): Likewise.
14448         [non-C99-based standards] (j1f): Likewise.
14449         [non-C99-based standards] (jnf): Likewise.
14450         [non-C99-based standards] (lgammaf): Likewise.
14451         [non-C99-based standards] (tgammaf): Likewise.
14452         [non-C99-based standards] (y0f): Likewise.
14453         [non-C99-based standards] (y1f): Likewise.
14454         [non-C99-based standards] (ynf): Likewise.
14455         [non-C99-based standards] (isnanf): Likewise.
14456         [non-C99-based standards] (acoshf): Likewise.
14457         [non-C99-based standards] (asinhf): Likewise.
14458         [non-C99-based standards] (atanhf): Likewise.
14459         [non-C99-based standards] (cbrtf): Likewise.
14460         [non-C99-based standards] (expm1f): Likewise.
14461         [non-C99-based standards] (ilogbf): Likewise.
14462         [non-C99-based standards] (log1pf): Likewise.
14463         [non-C99-based standards] (logbf): Likewise.
14464         [non-C99-based standards] (nextafterf): Likewise.
14465         [non-C99-based standards] (remainderf): Likewise.
14466         [non-C99-based standards] (rintf): Likewise.
14467         [non-C99-based standards] (scalbf): Likewise.
14468         [non-C99-based standards] (copysignl): Likewise.
14469         [non-C99-based standards] (exp2l): Likewise.
14470         [non-C99-based standards] (log2l): Likewise.
14471         [non-C99-based standards] (modfl): Allow.
14472         [non-C99-based standards] (erfl): Do not allow.
14473         [non-C99-based standards] (erfcl): Likewise.
14474         [non-C99-based standards] (gammal): Likewise.
14475         [non-C99-based standards] (hypotl): Likewise.
14476         [non-C99-based standards] (j0l): Likewise.
14477         [non-C99-based standards] (j1l): Likewise.
14478         [non-C99-based standards] (jnl): Likewise.
14479         [non-C99-based standards] (lgammal): Likewise.
14480         [non-C99-based standards] (tgammal): Likewise.
14481         [non-C99-based standards] (y0l): Likewise.
14482         [non-C99-based standards] (y1l): Likewise.
14483         [non-C99-based standards] (ynl): Likewise.
14484         [non-C99-based standards] (isnanl): Likewise.
14485         [non-C99-based standards] (acoshl): Likewise.
14486         [non-C99-based standards] (asinhl): Likewise.
14487         [non-C99-based standards] (atanhl): Likewise.
14488         [non-C99-based standards] (cbrtl): Likewise.
14489         [non-C99-based standards] (expm1l): Likewise.
14490         [non-C99-based standards] (ilogbl): Likewise.
14491         [non-C99-based standards] (log1pl): Likewise.
14492         [non-C99-based standards] (logbl): Likewise.
14493         [non-C99-based standards] (nextafterl): Likewise.
14494         [non-C99-based standards] (remainderl): Likewise.
14495         [non-C99-based standards] (rintl): Likewise.
14496         [non-C99-based standards] (scalbl): Likewise.
14497         [ISO || ISO99 || ISO11] (*_t): Do not allow.
14498         [non-C99-based standards] (FP_*): Do not allow.
14499         [C99-based standards] (FP_*): Change to
14500         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
14501         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
14502         allow.
14503         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
14504         (SIG_ERR): Likewise.
14505         [X/Open-based standards] (SIG_HOLD): Likewise.
14506         (SIG_IGN): Likewise.
14507         (SIGABRT): Use macro-int-constant.  Specify type.  Require
14508         positive value.
14509         (SIGFPE): Likewise.
14510         (SIGILL): Likewise.
14511         (SIGINT): Likewise.
14512         (SIGSEGV): Likewise.
14513         (SIGTER): Likewise.
14514         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
14515         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
14516         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
14517         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
14518         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
14519         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
14520         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
14521         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
14522         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
14523         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
14524         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
14525         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
14526         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
14527         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
14528         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
14529         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
14530         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
14531         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
14532         [X/Open-based standards] (SIGTRAP): Likewise.
14533         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
14534         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
14535         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
14536         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
14537         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
14538         allow.
14539
14540 2012-05-08  Ian Wienand  <ianw@vmware.com>
14541
14542         [BZ #14080]
14543         * time/tzset.c (__tzset_parse_tz): Update default rules for
14544         daylight time changes in the Energy Policy Act of 2005.
14545
14546 2012-05-09  Andreas Jaeger  <aj@suse.de>
14547
14548         [BZ #13983]
14549         * elf/ldconfig.c (parse_conf): Change string to make clear that
14550         ldconfig only issued a warning if ld.so.conf does not exist.
14551
14552 2012-05-08  David S. Miller  <davem@davemloft.net>
14553
14554         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
14555         movxtod instead of popping the value on the stack.
14556
14557         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14558
14559 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
14560
14561         * config.h.in: Add HAVE_ARM_PCS_VFP.
14562
14563 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
14564
14565         [BZ #13979]
14566         * include/features.h: Warn if user requests __FORTIFY_SOURCE
14567         checking but the checks are disabled for any reason.
14568
14569 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
14570
14571         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
14572         and ELF64_R_TYPE with ELFW(R_TYPE).
14573
14574 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
14575
14576         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
14577         (ulimit): Likewise.
14578
14579         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
14580         (settimeofday): Likewise.
14581
14582 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
14583
14584         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
14585         a struct th_u2 inside the union, and move tu_block/tu_code into
14586         a new th_u3 union of tu_block/tu_code inside of that.  Move
14587         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
14588         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
14589         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
14590         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
14591         (th_stuff): Change to th_u1.tu_stuff.
14592         (th_data): Define.
14593         (th_msg): Change to th_u1.th_u2.tu_data.
14594
14595 2012-05-07  David S. Miller  <davem@davemloft.net>
14596
14597         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14598
14599         [BZ #14074]
14600         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
14601         (SETUP_PIC_REG): Use it.
14602         (SETUP_PIC_REG_LEAF): Use it.
14603
14604 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
14605
14606         [BZ #13885]
14607         [BZ #13923]
14608         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
14609         USE_AS_EXPM1L.
14610         (EXPL_FINITE): Likewise.
14611         (FLDLOG): Likewise.
14612         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
14613         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
14614         e_expl.S.
14615         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
14616         USE_AS_EXPM1L.
14617         (EXPL_FINITE): Likewise.
14618         (FLDLOG): Likewise.
14619         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
14620         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
14621         e_expl.S.
14622         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
14623         test of -max_value argument for long double.
14624         * sysdeps/i386/fpu/libm-test-ulps: Update.
14625         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14626
14627 2012-05-06  David S. Miller  <davem@davemloft.net>
14628
14629         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
14630         quad soft-float symbols whose references which are compiler
14631         generated.
14632         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
14633
14634 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
14635
14636         [BZ #13884]
14637         [BZ #13914]
14638         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
14639         USE_AS_EXP10L.
14640         (EXPL_FINITE): Likewise.
14641         (FLDLOG): Likewise.
14642         (c0): Likewise.
14643         (c1): Likewise.
14644         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
14645         Adjust comments for base varying.
14646         (__expl_finite): Change alias to EXPL_FINITE.
14647         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
14648         e_expl.S.
14649         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
14650         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
14651         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
14652         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
14653         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
14654         USE_AS_EXP10L.
14655         (EXPL_FINITE): Likewise.
14656         (FLDLOG): Likewise.
14657         (c0): Likewise.
14658         (c1): Likewise.
14659         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
14660         Adjust comments for base varying.
14661         (__expl_finite): Change alias to EXPL_FINITE.
14662         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
14663         tests for bugs.
14664         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14665
14666         [BZ #14064]
14667         * math/libm-test.inc (check_float_internal): Correct ulp
14668         calculation for subnormal expected results.
14669
14670 2012-05-06  Andreas Jaeger  <aj@suse.de>
14671
14672         * Makeconfig (+math-flags): New, set to -frounding-math.
14673         (+cflags): Add +math-flags so that all of glibc gets compiled with
14674         it.
14675
14676         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
14677
14678 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
14679
14680         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
14681         Disable one test.
14682
14683         [BZ #13787]
14684         [BZ #13922]
14685         [BZ #14036]
14686         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
14687         (__ieee754_expl): Allow for and saturate large arguments.
14688         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
14689         (u_threshold): Likewise.
14690         (__exp): Call __ieee754_exp before checking for overflow and
14691         underflow.
14692         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
14693         (u_threshold): Likewise.
14694         (__expf): Call __ieee754_expf before checking for overflow and
14695         underflow.
14696         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
14697         (u_threshold): Likewise.
14698         (__expl): Call __ieee754_expl before checking for overflow and
14699         underflow.
14700         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
14701         (__ieee754_expl): Allow for and saturate large arguments.
14702         * math/libm-test.inc (exp_test): Add another test.  Do not allow
14703         missing overflow exception on overflow.
14704         (expm1_test): Do not allow missing overflow exception on overflow.
14705
14706         * sysdeps/i386/fpu/e_expl.c: Move to ...
14707         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
14708         rather than using inline asm.
14709         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
14710         * sysdeps/x86_64/fpu/e_expl.S: Copy from
14711         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
14712
14713         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
14714         (nice): Likewise.
14715         (poll): Likewise.
14716         (signal): Likewise.
14717         (time): Likewise.
14718         (times): Likewise.
14719
14720 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
14721
14722         * sysdeps/unix/syscalls.list (adjtime): Add entry from
14723         sysdeps/unix/common/syscalls.list.
14724         (fchmod): Likewise.
14725         (fchown): Likewise.
14726         (ftruncate): Likewise.
14727         (getrusage): Likewise.
14728         (gettimeofday): Likewise.
14729         (setpgid): Likewise.
14730         (setregid): Likewise.
14731         (setreuid): Likewise.
14732         (sigaction): Likewise.
14733         (truncate): Likewise.
14734         (vhangup): Likewise.
14735         * sysdeps/unix/common/syscalls.list: Remove file.
14736         * sysdeps/unix/bsd/Implies: Don't include unix/common.
14737         * sysdeps/unix/sysv/linux/Implies: Likewise.
14738
14739 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
14740
14741         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
14742         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
14743         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
14744         Moved to ...
14745         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
14746         Here.
14747         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
14748         to ...
14749         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
14750         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
14751         to ...
14752         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
14753         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
14754         to ...
14755         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
14756         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
14757         to ...
14758         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
14759         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
14760         to ...
14761         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
14762         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
14763         to ...
14764         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
14765         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
14766         to ...
14767         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
14768         Here.
14769         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
14770         to ...
14771         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
14772         Here.
14773         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
14774         to ...
14775         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
14776         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
14777         Moved to ...
14778         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
14779         Here.
14780         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
14781         to ...
14782         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
14783
14784 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
14785
14786         * sysdeps/unix/common/bits/dirent.h: Remove file.
14787         * sysdeps/unix/common/bits/fcntl.h: Likewise.
14788
14789         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
14790         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
14791         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
14792         * sysdeps/unix/bsd/isatty.c: Likewise.
14793         * sysdeps/unix/bsd/tcdrain.c: Likewise.
14794         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
14795         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
14796
14797 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14798
14799         [BZ #13563]
14800         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
14801         long double comparison inaccuracies.
14802         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
14803         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14804
14805 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
14806
14807         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
14808         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
14809
14810 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
14811
14812         [BZ #14049]
14813         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
14814         nonzero digits before rounding a hex value.
14815         * stdlib/tst-strtod.c (tests): Add another test.
14816
14817 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14818
14819         * sysdeps/s390/fpu/libm-test-ulps: Update.
14820
14821 2012-05-03  Andreas Jaeger  <aj@suse.de>
14822
14823         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
14824         does not get optimized out.
14825         (malloc_opt_barrier): New.
14826
14827 2012-05-03  Andreas Jaeger  <aj@suse.de>
14828             Roland McGrath  <roland@hack.frob.com>
14829
14830         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
14831         intermediate file deletion.
14832         (generated): Add .symlist files.
14833
14834 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
14835
14836         [BZ #13775]
14837         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
14838         Redirect under this condition.
14839         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
14840         [__USE_GNU] (__dprintf_chk): Not under this condition.
14841         [__USE_GNU] (__vdprintf_chk): Likewise.
14842         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
14843         under this condition.
14844         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
14845         [__USE_XOPEN2K8] (dprintf): Define under this condition.
14846         [__USE_XOPEN2K8] (vdprintf): Likewise.
14847         [__USE_GNU] (__dprintf_chk): Not under this condition.
14848         [__USE_GNU] (__vdprintf_chk): Likewise.
14849         [__USE_GNU] (dprintf): Likewise.
14850         [__USE_GNU] (vdprintf): Likewise.
14851
14852 2012-05-03  Roland McGrath  <roland@hack.frob.com>
14853
14854         * elf/Makefile (common-generated): Set this instead of generated for
14855         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
14856         $(all-built-dso)-derived lists.
14857
14858 2012-05-03  Andreas Jaeger  <aj@suse.de>
14859
14860         * sysdeps/i386/fpu/libm-test-ulps: Update.
14861
14862         * FAQ: Removed.
14863         * FAQ.in: Likewise.
14864         * scripts/gen-FAQ.pl: Likewise.
14865         * manual/install.texi (Installation): Point to online location of
14866         FAQ.
14867         * Makefile (files-for-dist): Remove FAQ.
14868         (FAQ): Remove.
14869
14870 2012-05-02  Allan McRae  <allan@archlinux.org>
14871
14872         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
14873         (LDFLAGS-reldepmod5.so): Likewise.
14874         (LDFLAGS-reldep6mod1.so): Likewise.
14875         (LDFLAGS-reldep6mod4.so): Likewise.
14876         (LDFLAGS-reldep8mod3.so): Likewise.
14877         (LDFLAGS-unload4mod1.so): Likewise.
14878         (LDFLAGS-unload4mod2.so): Likewise.
14879         (LDFLAGS-tst-initorder): Likewise.
14880         (LDFLAGS-tst-initordera2.so): Likewise.
14881         (LDFLAGS-tst-initordera3.so): Likewise.
14882         (LDFLAGS-tst-initordera4.so): Likewise.
14883         (LDFLAGS-tst-initorderb2.so): Likewise.
14884         (LDFLAGS-noload): Likewise.
14885         (LDFLAGS-next): Likewise.
14886         (LDFLAGS-order2mod1.so): Likewise.
14887         (LDFLAGS-order2mod2.so): Likewise.
14888         (LDFLAGS-tst-initorder2): Likewise.
14889         (LDFLAGS-tst-initorder2a.so): Likewise.
14890         (LDFLAGS-tst-initorder2b.so): Likewise.
14891         (LDFLAGS-tst-initorder2c.so): Likewise.
14892         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
14893
14894 2012-05-02  David S. Miller  <davem@davemloft.net>
14895
14896         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14897
14898 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
14899
14900         [BZ #14055]
14901         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
14902
14903 2012-05-02  Andreas Jaeger  <aj@suse.de>
14904
14905         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
14906         since we manipulate rounding mode.
14907         (CPPFLAGS-test-idouble.c): Likewise.
14908         (CPPFLAGS-test-ifloat.c): Likewise.
14909         (CFLAGS-test-ldouble.c): Likewise.
14910         (CFLAGS-test-double.c): Likewise.
14911         (CFLAGS-test-float.c): Likewise.
14912         (CFLAGS-test-misc.c): Likewise.
14913         (CFLAGS-test-test-fenv.c): Likewise.
14914
14915 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14916
14917         [BZ #2550]
14918         [BZ #2570]
14919         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
14920         comparisons to determine direction to adjust input.
14921
14922 2012-05-01  Roland McGrath  <roland@hack.frob.com>
14923
14924         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
14925         output to the target.
14926
14927         * scripts/localplt.awk: New file.
14928         * elf/Makefile ($(objpfx)check-localplt): Target removed.
14929         (check-localplt-CFLAGS): Variable removed.
14930         ($(all-built-dso:=.jmprel)): New static pattern rule.
14931         (generated): Add those targets.
14932         (localplt-built-dso): New variable.
14933         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
14934
14935         * elf/check-localplt.c: File removed.
14936
14937         * scripts/check-execstack.awk: New file.
14938         * elf/Makefile ($(objpfx)check-execstack): Target removed.
14939         (check-execstack-CFLAGS): Variable removed.
14940         ($(objpfx)check-execstack.h): Target removed.
14941         ($(objpfx)execstack-default): New target.
14942         (generated): Add that instead of check-execstack.h.
14943         ($(all-built-dso:=.phdr)): New static pattern rule.
14944         (generated): Add those targets.
14945         * elf/check-execstack.c: File removed.
14946
14947         * scripts/check-textrel.awk: New file.
14948         * elf/Makefile ($(objpfx)check-textrel): Target removed.
14949         (check-textrel-CFLAGS): Variable removed.
14950         (all-built-dso): Use := to define.o
14951         ($(all-built-dso:=.dyn)): New static pattern rule.
14952         (generated): Add those targets.
14953         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
14954         * config.make.in (READELF): New substituted variable.
14955         * elf/check-textrel.c: File removed.
14956
14957 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
14958
14959         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
14960         allow.
14961         * conform/data/ctype.h-data [C99-based standards] (isblank):
14962         Expect function.
14963         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
14964         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
14965         [ISO || ISO99 || ISO11] (*_t): Do not allow.
14966         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
14967         Specify type.  Require positive value.
14968         (EILSEQ): Likewise.
14969         (ERANGE): Likewise.
14970         [ISO || POSIX] (EILSEQ): Do not expect.
14971         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
14972         Specify type.  Require positive value.
14973         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
14974         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
14975         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
14976         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
14977         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
14978         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
14979         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
14980         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
14981         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
14982         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
14983         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
14984         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
14985         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
14986         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
14987         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
14988         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
14989         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
14990         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
14991         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
14992         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
14993         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
14994         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
14995         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
14996         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
14997         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
14998         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
14999         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
15000         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
15001         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
15002         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
15003         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
15004         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
15005         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
15006         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
15007         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
15008         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
15009         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
15010         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
15011         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
15012         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
15013         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
15014         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
15015         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
15016         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
15017         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
15018         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
15019         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
15020         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
15021         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
15022         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
15023         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
15024         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
15025         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
15026         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
15027         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
15028         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
15029         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
15030         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
15031         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
15032         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
15033         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
15034         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
15035         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
15036         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
15037         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
15038         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
15039         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
15040         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
15041         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
15042         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
15043         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
15044         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
15045         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
15046         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
15047         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
15048         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
15049         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
15050         Require >= 2.
15051         (FLT_ROUNDS): Expect as macro, not constant.
15052         (FLT_MANT_DIG): Use macro-int-constant.
15053         (DBL_MANT_DIG): Likewise.
15054         (LDBL_MANT_DIG): Likewise.
15055         (FLT_DIG): Likewise.
15056         (DBL_DIG): Likewise.
15057         (LDBL_DIG): Likewise.
15058         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
15059         (DBL_MIN_EXP): Likewise.
15060         (LDBL_MIN_EXP): Likewise.
15061         (FLT_MAX_EXP): Use macro-int-constant.
15062         (DBL_MAX_EXP): Likewise.
15063         (LDBL_MAX_EXP): Likewise.
15064         (FLT_MAX_10_EXP): Likewise.
15065         (DBL_MAX_10_EXP): Likewise.
15066         (LDBL_MAX_10_EXP): Likewise.
15067         (FLT_MAX): Use macro-constant.
15068         (DBL_MAX): Likewise.
15069         (LDBL_MAX): Likewise.
15070         (FLT_EPSILON): Use macro-constant.  Give upper bound.
15071         (DBL_EPSILON): Likewise.
15072         (LDBL_EPSILON): Likewise.
15073         (FLT_MIN): Likewise.
15074         (DBL_MIN): Likewise.
15075         (LDBL_MIN): Likewise.
15076         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
15077         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
15078         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
15079         [ISO11] (FLT_HAS_SUBNORM): Likewise.
15080         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
15081         [ISO11] (DBL_DECIMAL_DIG): Likewise.
15082         [ISO11] (FLT_DECIMAL_DIG): Likewise.
15083         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
15084         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
15085         [ISO11] (FLT_TRUE_MIN): Likewise.
15086         [ISO11] (LDBL_TRUE_MIN): Likewise.
15087         [ISO || ISO99 || ISO11] (*_t): Do not allow.
15088         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
15089         (SCHAR_MIN): Use macro-int-constant.  Specify type.
15090         (SCHAR_MAX): Likewise.
15091         (UCHAR_MAX): Likewise.
15092         (CHAR_MIN): Likewise.
15093         (CHAR_MAX): Likewise.
15094         (MB_LEN_MAX): Use macro-int-constant.
15095         (SHRT_MIN): Use macro-int-constant.  Specify type.
15096         (SHRT_MAX): Likewise.
15097         (USHRT_MAX): Likewise.
15098         (INT_MAX): Likewise.
15099         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
15100         bound negative.
15101         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
15102         bound with "U".
15103         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
15104         bound with "L".
15105         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
15106         bound negative.  Suffix upper bound with "L".
15107         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
15108         bound with "UL".
15109         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
15110         Specify type.
15111         [C99-based standards] (LLONG_MAX): Likewise.
15112         [C99-based standards] (ULLONG_MAX): Likewise.
15113         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
15114         == 0.
15115         [ISO11] (max_align_t): Require type.
15116         [ISO || ISO99 || ISO11] (*_t): Do not allow.
15117
15118         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
15119         from $CFLAGS, without defining away __attribute__ calls.
15120         (checknamespace): Use $CFLAGS_namespace.
15121
15122         * conform/conformtest.pl (@keywords): Only include C99 keywords
15123         for standards based on C99 or C11.
15124
15125         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
15126         Disable tests.
15127         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
15128         UNIX98]: Likewise.
15129
15130         * conform/conformtest.pl: Handle "macro-int-constant" and test for
15131         usability of symbols in #if.
15132
15133         * conform/conformtest.pl: If macro or constant types start
15134         "promoted:", expect the symbol to be of the following type
15135         promoted by the integer promotions.
15136
15137         * conform/conformtest.pl: Parse all "constant" and "macro" lines
15138         in one place.  Also handle "macro-constant".
15139
15140         * conform/conformtest.pl: Only accept expected macro values with
15141         "==".  Parse all "macro" lines in one place.
15142         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
15143
15144         * conform/conformtest.pl: Handle braced types on "constant" lines
15145         instead of handling "typed-constant".
15146         * conform/data/signal.h-data: Use "constant" instead of
15147         "typed-constant".
15148
15149         * conform/conformtest.pl: Handle "optional-" at start of lines in
15150         one place rather than duplicating several cases.  Handle each
15151         format of "macro" line with initial "optional-".
15152
15153         * conform/conformtest.pl: Only accept expected constant or
15154         optional-constant values with "==".  Parse all "constant" lines in
15155         one place.  Parse all "optional-constant" lines in one place.
15156         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
15157         * conform/data/fmtmsg.h-data: Likewise.
15158         * conform/data/netinet/in.h-data: Likewise.
15159         * conform/data/tar.h-data: Likewise.
15160         * conform/data/limits.h-data: Use "==" form on "constant" and
15161         "optional-constant" lines.
15162
15163         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
15164         Use -std=c99 for XOPEN2K.
15165         (@knownproblems): Remove.
15166         (newtoken): Don't check %isknown.
15167
15168         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
15169         Do not expect macro.
15170         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
15171         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
15172         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
15173         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
15174         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
15175         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
15176         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
15177         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
15178         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
15179         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
15180         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
15181         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
15182         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
15183         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
15184         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
15185         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
15186         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
15187         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
15188         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
15189         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
15190         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
15191         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
15192         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
15193         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
15194         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
15195         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
15196         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
15197         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
15198         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
15199         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
15200         [XPG3] (acosh): Likewise.
15201         [XPG3] (asinh): Likewise.
15202         [XPG3] (atanh): Likewise.
15203         [XPG3] (cbrt): Likewise.
15204         [XPG3] (expm1): Likewise.
15205         [XPG3] (ilogb): Likewise.
15206         [XPG3] (log1p): Likewise.
15207         [XPG3] (logb): Likewise.
15208         [XPG3] (nextafter): Likewise.
15209         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
15210         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
15211         [XPG3] (remainder): Likewise.
15212         [XPG3] (rint): Likewise.
15213         [XPG3 || XPG4 || UNIX98] (round): Likewise.
15214         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
15215         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
15216         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
15217         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
15218         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
15219         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
15220         [UNIX98 || XOPEN2K] (scalb): Expect.
15221         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
15222         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
15223         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
15224         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
15225         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
15226         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
15227         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
15228         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
15229         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
15230         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
15231         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
15232         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
15233         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
15234         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
15235         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
15236         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
15237         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
15238         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
15239         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
15240         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
15241         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
15242         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
15243         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
15244         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
15245         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
15246         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
15247         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
15248         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
15249         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
15250         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
15251         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
15252         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
15253         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
15254         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
15255         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
15256         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
15257         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
15258         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
15259         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
15260         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
15261         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
15262         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
15263         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
15264         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
15265         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
15266         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
15267         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
15268         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
15269         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
15270         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
15271         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
15272         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
15273         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
15274         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
15275         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
15276         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
15277         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
15278         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
15279         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
15280         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
15281         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
15282         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
15283         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
15284         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
15285         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
15286         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
15287         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
15288         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
15289         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
15290         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
15291         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
15292         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
15293         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
15294         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
15295         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
15296         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
15297         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
15298         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
15299         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
15300         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
15301         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
15302         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
15303         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
15304         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
15305         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
15306         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
15307         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
15308         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
15309         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
15310         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
15311         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
15312         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
15313         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
15314         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
15315         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
15316         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
15317         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
15318         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
15319         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
15320         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
15321         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
15322         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
15323         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
15324         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
15325         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
15326         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
15327         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
15328         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
15329         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
15330         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
15331         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
15332         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
15333         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
15334         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
15335         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
15336         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
15337         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
15338         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
15339         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
15340         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
15341         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
15342         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
15343         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
15344         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
15345         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
15346         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
15347         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
15348         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
15349         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
15350         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
15351         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
15352         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
15353         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
15354         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
15355         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
15356         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
15357         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
15358
15359         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
15360         _XOPEN_SOURCE_EXTENDED for XPG4.
15361
15362         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
15363
15364         * Makeconfig (localtime): Remove variable.
15365         (inst_localtime-file): Likewise.
15366
15367 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
15368
15369         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
15370         Update.
15371         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
15372         Update.
15373         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
15374         Update.
15375         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
15376         Update.
15377         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
15378         Update.
15379         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
15380         Update.
15381         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
15382         Update.
15383         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
15384         Update.
15385         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
15386         Update.
15387
15388 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
15389
15390         [BZ #2550]
15391         [BZ #2570]
15392         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
15393         comparisons to determine direction to adjust input.
15394         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
15395         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
15396         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
15397         Likewise.
15398         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
15399         Likewise.
15400         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
15401         Likewise.
15402         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
15403         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
15404         Likewise.
15405         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
15406         Likewise.
15407         * math/libm-test.inc (nexttoward_test): Add more tests.
15408
15409 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
15410
15411         [BZ #14040]
15412         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
15413         in version GLIBC_2.1, not GLIBC_2.0.
15414         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
15415         Likewise.
15416
15417 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
15418
15419         [BZ #13942]
15420         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
15421         (1 - x) * (1 + x).
15422         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
15423         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
15424         * math/libm-test.inc (acos_test): Add more tests.
15425         (asin_test): Likewise.
15426         * sysdeps/i386/fpu/libm-test-ulps: Update.
15427         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15428
15429         [BZ #14034]
15430         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
15431         of square root.
15432         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
15433         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
15434         * math/libm-test.inc (acos_test_tonearest): New function.
15435         (acos_test_towardzero): Likewise.
15436         (acos_test_downward): Likewise.
15437         (acos_test_upward): Likewise.
15438         (asin_test_tonearest): Likewise.
15439         (asin_test_towardzero): Likewise.
15440         (asin_test_downward): Likewise.
15441         (asin_test_upward): Likewise.
15442         (main): Call the new functions.
15443         * sysdeps/i386/fpu/libm-test-ulps: Update.
15444         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15445
15446         [BZ #13884]
15447         [BZ #13924]
15448         * math/e_exp10.c: Include <float.h>.
15449         (__ieee754_exp10): Handle underflow here rather than multiplying
15450         large negative argument by M_LN10.
15451         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
15452         of __ieee754_expf.
15453         * math/e_exp10l.c: Include <float.h>.
15454         (__ieee754_exp10l): Handle underflow here rather than multiplying
15455         large negative argument by M_LN10l.
15456         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
15457         spurious overflow exception on underflow.
15458
15459 2012-04-29  Marek Polacek  <polacek@redhat.com>
15460
15461         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
15462         (__fortify_function): New macro.
15463         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
15464         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
15465         __extern_always_inline.
15466         * libio/bits/stdio2.h: Likewise.
15467         * libio/bits/stdio.h: Likewise.
15468         * string/string.h: Likewise.
15469         * string/bits/string3.h: Likewise.
15470         * include/stdio.h: Likewise.
15471         * stdlib/bits/stdlib.h: Likewise.
15472         * stdlib/stdlib.h: Likewise.
15473         * rt/bits/mqueue2.h: Likewise.
15474         * rt/mqueue.h: Likewise.
15475         * posix/bits/unistd.h: Likewise.
15476         * posix/unistd.h: Likewise.
15477         * io/bits/poll2.h: Likewise.
15478         * io/bits/fcntl2.h: Likewise.
15479         * io/fcntl.h: Likewise.
15480         * io/sys/poll.h: Likewise.
15481         * misc/bits/syslog.h: Likewise.
15482         * misc/bits/syslog-ldbl.h: Likewise.
15483         * misc/sys/syslog.h: Likewise.
15484         * socket/bits/socket2.h: Likewise.
15485         * socket/sys/socket.h: Likewise.
15486         * debug/tst-chk1.c: Likewise.
15487         * wcsmbs/bits/wchar2.h: Likewise.
15488         * wcsmbs/bits/wchar-ldbl.h: Likewise.
15489         * wcsmbs/wchar.h: Likewise.
15490
15491 2012-04-29  Andreas Jaeger  <aj@suse.de>
15492
15493         * Makerules (tests): Remove enable-check-abi protection.
15494         (check-abi-warn): Remove.
15495         (check-abi-%): Remove check-abi-warn usage.
15496
15497         * configure.in: Remove check-abi configure option.
15498         * configure: Regenerated.
15499         * config.make.in (enable-check-abi): Remove.
15500
15501 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
15502
15503         [BZ #14033]
15504         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
15505         double functions to double *_finite functions.
15506
15507         [BZ #13941]
15508         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
15509         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
15510         LDBL_MIN_EXP.
15511         * stdio-common/Makefile (tests): Add tst-sprintf3.
15512         * stdio-common/tst-sprintf3.c: New file.
15513
15514         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
15515         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
15516
15517 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
15518
15519         * conform/conformtest.pl: Remove duplicate typed-constant
15520         handling.
15521
15522 2012-04-28  David S. Miller  <davem@davemloft.net>
15523
15524         * Makerules (%.abilist): Add vpath on sysdep_dirs.
15525         (check-abi-%): Remove AWK script prerequisite and explicit
15526         abilist directory.
15527         (check-abi): Rewrite to just diff the symlist with the abilist.
15528         (config-tls, config-abi-config): Delete, no longer used.
15529         (update-abi-%): Remove AWK script and explicit abilist directory.
15530         (update-abi): Rewrite to simply compare and conditionally copy the
15531         symlist and the sysdep abilist file.  Remove update-abi-config
15532         checks.
15533         * abilist/ld.abilist: Remove.
15534         * abilist/libBrokenLocale.abilist: Remove.
15535         * abilist/libanl.abilist: Remove.
15536         * abilist/libcrypt.abilist: Remove.
15537         * abilist/libdl.abilist: Remove.
15538         * abilist/librt.abilist: Remove.
15539         * abilist/libthread_db.abilist: Remove.
15540         * abilist/libutil.abilist: Remove.
15541         * scripts/extract-abilist.awk: Remove.
15542         * scripts/merge-abilist.awk: Remove.
15543         * sysdeps/generic/libcidn.abilist: New file.
15544         * sysdeps/generic/libnss_compat.abilist: New file.
15545         * sysdeps/generic/libnss_db.abilist: New file.
15546         * sysdeps/generic/libnss_dns.abilist: New file.
15547         * sysdeps/generic/libnss_files.abilist: New file.
15548         * sysdeps/generic/libnss_hesiod.abilist: New file.
15549         * sysdeps/generic/libnss_nis.abilist: New file.
15550         * sysdeps/generic/libnss_nisplus.abilist: New file.
15551         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
15552         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
15553         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
15554         file.
15555         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
15556         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
15557         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
15558         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
15559         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
15560         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
15561         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
15562         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
15563         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
15564         file.
15565         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
15566         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
15567         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
15568         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
15569         file.
15570         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
15571         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
15572         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
15573         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
15574         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
15575         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
15576         file.
15577         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
15578         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
15579         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
15580         file.
15581         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
15582         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
15583         New file.
15584         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
15585         New file.
15586         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
15587         New file.
15588         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
15589         New file.
15590         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
15591         New file.
15592         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
15593         New file.
15594         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
15595         New file.
15596         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
15597         New file.
15598         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
15599         New file.
15600         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
15601         New file.
15602         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
15603         New file.
15604         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
15605         New file.
15606         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
15607         New file.
15608         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
15609         file.
15610         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
15611         New file.
15612         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
15613         New file.
15614         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
15615         file.
15616         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
15617         New file.
15618         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
15619         New file.
15620         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
15621         file.
15622         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
15623         New file.
15624         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
15625         New file.
15626         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
15627         New file.
15628         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
15629         New file.
15630         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
15631         New file.
15632         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
15633         New file.
15634         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
15635         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
15636         file.
15637         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
15638         New file.
15639         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
15640         file.
15641         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
15642         file.
15643         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
15644         file.
15645         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
15646         file.
15647         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
15648         file.
15649         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
15650         New file.
15651         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
15652         file.
15653         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
15654         file.
15655         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
15656         New file.
15657         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
15658         file.
15659         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
15660         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
15661         file.
15662         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
15663         New file.
15664         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
15665         file.
15666         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
15667         file.
15668         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
15669         file.
15670         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
15671         file.
15672         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
15673         file.
15674         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
15675         New file.
15676         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
15677         file.
15678         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
15679         file.
15680         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
15681         New file.
15682         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
15683         file.
15684         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
15685         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
15686         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
15687         file.
15688         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
15689         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
15690         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
15691         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
15692         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
15693         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
15694         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
15695         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
15696         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
15697         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
15698         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
15699         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
15700         file.
15701         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
15702         New file.
15703         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
15704         file.
15705         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
15706         file.
15707         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
15708         file.
15709         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
15710         file.
15711         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
15712         file.
15713         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
15714         New file.
15715         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
15716         New file.
15717         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
15718         file.
15719         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
15720         New file.
15721         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
15722         file.
15723         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
15724         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
15725         file.
15726         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
15727         New file.
15728         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
15729         file.
15730         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
15731         file.
15732         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
15733         file.
15734         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
15735         file.
15736         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
15737         file.
15738         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
15739         New file.
15740         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
15741         New file.
15742         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
15743         file.
15744         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
15745         New file.
15746         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
15747         file.
15748
15749 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
15750
15751         * conform/conformtest.pl: Fix typo in handling typed-constant from
15752         allow-header.
15753
15754 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
15755
15756         * README: Cut down references to pre-2.6 Linux kernels and
15757         Linuxthreads.  Update lists of configurations in libc and ports
15758         and sort alphabetically.  Say "or newer" with Linux kernel version
15759         requirements.
15760
15761         * config.h.in [IS_IN_build]: Allow compiling without optimization.
15762
15763 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
15764
15765         [BZ #887]
15766         * math/libm-test.inc (logb_test_downward): New test to expose
15767         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
15768         rounding mode.
15769
15770 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
15771
15772         [BZ #14027]
15773         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
15774         to be done.
15775         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
15776         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
15777
15778 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
15779
15780         * sysdeps/unix/i386/brk.S: Remove file.
15781         * sysdeps/unix/i386/dl-brk.S: Likewise.
15782         * sysdeps/unix/i386/pipe.S: Likewise.
15783         * sysdeps/unix/i386/sigreturn.S: Likewise.
15784         * sysdeps/unix/i386/syscall.S: Likewise.
15785         * sysdeps/unix/i386/vfork.S: Likewise.
15786         * sysdeps/unix/i386/wait.S: Likewise.
15787
15788         * sysdeps/unix/common/tcsendbrk.c: Move to ...
15789         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
15790
15791         * configure.in (arm*-none*): Do not allow without
15792         --enable-hacker-mode.
15793         (netbsd*): Remove case setting base_os.
15794         (386bsd*): Likewise.
15795         (freebsd*): Likewise.
15796         (bsdi*): Likewise.
15797         (osf*): Likewise.
15798         (sunos*): Likewise.
15799         (ultrix*): Likewise.
15800         (newsos*): Likewise.
15801         (dynix*): Likewise.
15802         (*bsd*): Likewise.
15803         (sysv*): Likewise.
15804         (isc*): Likewise.
15805         (esix*): Likewise.
15806         (sco*): Likewise.
15807         (minix*): Likewise.
15808         (irix4*): Likewise.
15809         (irix6*): Likewise.
15810         (solaris[2-9]*): Likewise.
15811         (none): Likewise.
15812         * configure: Regenerated.
15813
15814 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15815
15816         [BZ #11521]
15817         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
15818         overflow or cancellation in calculating denominator.
15819         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
15820         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
15821         down expression to avoid unexpected rounding in newer GCCs.
15822         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
15823
15824 2012-04-26  David S. Miller  <davem@davemloft.net>
15825
15826         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
15827         long-double compat symbols.
15828         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
15829         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
15830         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
15831         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
15832         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
15833         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
15834         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
15835         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
15836         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
15837         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
15838         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
15839         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
15840         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
15841
15842 2012-04-25  David S. Miller  <davem@davemloft.net>
15843
15844         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
15845         HWCAP_* values only after the memory barriers have been defined.
15846         (atomic_full_barrier): Define.
15847         (atomic_read_barrier): Define.
15848         (atomic_write_barrier): Define.
15849
15850 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
15851
15852         * shlib-versions: Add libgcc_s version information.
15853         * sysdeps/generic/libgcc_s.h: Remove.
15854         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
15855         libgcc_s.h.
15856         * sysdeps/gnu/unwind-resume.c: Likewise.
15857         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
15858
15859 2012-04-25  David S. Miller  <davem@davemloft.net>
15860
15861         * sysdeps/unix/sparc/brk.S: Delete.
15862         * sysdeps/unix/sparc/dl-brk.S: Delete.
15863         * sysdeps/unix/sparc/pipe.S: Delete.
15864         * sysdeps/unix/sparc/sysdep.S: Delete.
15865         * sysdeps/unix/sparc/sysdep.h: Delete.
15866         * sysdeps/unix/sparc/vfork.S: Delete.
15867         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
15868         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
15869         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
15870         ret_ERRVAL, r0, r1, MOVE): Define.
15871         (JUMPTARGET): Remove.
15872         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
15873         sysdeps/unix/sparc/sysdep.h
15874         (ENTRY, END): Remove.
15875         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
15876
15877 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
15878
15879         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
15880         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
15881         -DIS_IN_build.
15882
15883         * timezone/README: Update upstream location and email address for
15884         tzcode and tzdata.
15885         * timezone/zdump.c: Update from tzcode 2012b.
15886         * timezone/zic.c: Likewise.
15887
15888         * configure.in (libc_cv_as_needed): Remove test.
15889         * configure: Regenerated.
15890         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
15891         conditional definition.
15892         [$(have-as-needed) != yes] (no-as-needed): Likewise.
15893         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
15894         * config.make.in (have-as-needed): Remove variable.
15895
15896 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
15897             Paul Pluzhnikov  <ppluzhnikov@google.com>
15898
15899         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
15900         strings correctly.
15901
15902 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
15903
15904         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
15905         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
15906         * sysdeps/sh/strlen.S: Likewise.
15907
15908 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
15909
15910         * sysdeps/unix/fork.S: Remove file.
15911         * sysdeps/unix/i386/fork.S: Likewise.
15912         * sysdeps/unix/sparc/fork.S: Likewise.
15913
15914         * sysdeps/unix/system.c: Remove file.
15915         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
15916
15917         * sysdeps/unix/getegid.S: Remove file.
15918         * sysdeps/unix/geteuid.S: Likewise.
15919
15920 2012-04-24  Roland McGrath  <roland@hack.frob.com>
15921
15922         * scripts/check-localplt.awk: New file.
15923         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
15924         of diff.
15925         * scripts/data/localplt-generic.data: Add a comment.
15926
15927         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
15928         NODE when __dir_mkfile failed.
15929         * sysdeps/mach/hurd/symlinkat.c: Likewise.
15930         Reported by Ludovic Courtès <ludo@gnu.org>.
15931
15932 2012-04-24  Andreas Jaeger  <aj@suse.de>
15933
15934         * Makerules (common-clean): Also remove gen-as-const-headers
15935         files.
15936
15937 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
15938
15939         * Makerules (native-compile): Do not change working directory for
15940         build.  Use $(OUTPUT_OPTION) in command.
15941         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
15942
15943 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15944
15945         [BZ #13886]
15946         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
15947         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
15948         * math/libm-test.inc (floor_test): Add more tests.
15949         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
15950
15951 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
15952
15953         * sysdeps/unix/getdents.c: Remove file.
15954         * sysdeps/unix/sysv/getdents.c: Likewise.
15955         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
15956
15957         * sysdeps/unix/syscalls.list (madvise): Add syscall from
15958         sysdeps/unix/mman/syscalls.list.
15959         (mmap): Likewise.
15960         (mprotect): Likewise.
15961         (msync): Likewise.
15962         (munmap): Likewise.
15963         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
15964         * sysdeps/unix/mman/syscalls.list: Remove.
15965         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
15966
15967         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
15968         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
15969         * configure: Regenerated.
15970         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
15971         $(libgcc_s_suffix).
15972         * config.make.in (libgcc_s_suffix): Remove variable.
15973
15974 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
15975
15976         * sysdeps/unix/sysv/gethostname.c: Move to ...
15977         * sysdeps/posix/gethostname.c: ... here.
15978
15979         * sysdeps/unix/execve.S: Remove file.
15980
15981         * sysdeps/unix/_exit.S: Remove file.
15982
15983 2012-04-23  Andreas Jaeger  <aj@suse.de>
15984
15985         [BZ #13739]
15986         * manual/Makefile: Remove make dist support, there's no
15987         need for a stand-alone documentation tar ball.
15988         (TEXI2DVI): Define always, it's not in Makeconfig.
15989         (dist): Removed.
15990         (tar-it): Removed.
15991         (edition): Removed.
15992         (glibc-doc-$(edition).tar): Removed
15993         (%.Z): Removed.
15994         (%.gz): Removed.
15995         (%.uu): Removed.
15996         (ETAGS): Remove, it's in Makeconfig.
15997         (move-if-change): Remove, it's in Makeconfig.
15998
15999 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
16000
16001         [BZ #13970]
16002         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
16003         (strtod, strtof, strtold, strtol, strtoul, strtoq)
16004         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
16005         (strtod_l, strtof_l, strtold_l): Remove __wur.
16006         It is not necessarily an error to ignore strtol's return value.
16007         One can reliably look at the stored endptr to decide whether
16008         the number had valid syntax.
16009
16010 2012-04-21  Andreas Jaeger  <aj@suse.de>
16011
16012         [BZ #13739]
16013         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
16014
16015 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
16016
16017         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
16018         * sysdeps/unix/sysv/Versions: Remove file.
16019
16020 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
16021
16022         [BZ #13927]
16023         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16024
16025 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
16026
16027         [BZ #7064]
16028         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
16029         version from __vm86.
16030
16031 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
16032
16033         * sysdeps/unix/common/lxstat.c: Remove file.
16034         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
16035
16036         * sysdeps/unix/sysv/Makefile: Remove file.
16037
16038         * sysdeps/unix/sysv/direct.h: Remove file.
16039
16040         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
16041         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
16042         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
16043         * sysdeps/unix/sysv/bits/signum.h: Likewise.
16044         * sysdeps/unix/sysv/bits/stat.h: Likewise.
16045         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
16046         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
16047
16048         * sysdeps/unix/sysv/setrlimit.c: Remove file.
16049
16050         * sysdeps/unix/xmknod.c: Remove file.
16051         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
16052
16053         * sysdeps/unix/sysv/settimeofday.c: Remove file.
16054
16055         * sysdeps/unix/sysv/i386/time.S: Remove file.
16056
16057         * sysdeps/unix/fxstat.c: Remove file.
16058         * sysdeps/unix/xstat.c: Likewise.
16059         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
16060
16061         * sysdeps/unix/sysv/sigaction.c: Remove file.
16062
16063         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
16064         (sysdep_headers): Remove variable.
16065         [termio.h not in sysdep_headers] (generated): Likewise.
16066         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
16067         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
16068         * sysdeps/unix/sysv/tcdrain.c: Likewise.
16069         * sysdeps/unix/sysv/tcflow.c: Likewise.
16070         * sysdeps/unix/sysv/tcflush.c: Likewise.
16071         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
16072         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
16073         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
16074         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
16075         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
16076
16077         * sysdeps/unix/siglist.c: Remove file.
16078
16079         * sysdeps/unix/getppid.S: Remove file.
16080
16081         * sysdeps/unix/mkdir.c: Remove file.
16082         * sysdeps/unix/rmdir.c: Likewise.
16083
16084 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
16085
16086         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
16087         ERR_MAX value.
16088         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
16089         errlist-compat value.
16090
16091 2012-04-18  David S. Miller  <davem@davemloft.net>
16092
16093         * sysdeps/generic/memcopy.h (reg_char): Delete.
16094         * debug/strcat_chk.c: Use char, not reg_char.
16095         * debug/strcpy_chk.c: Likewise.
16096         * debug/strncat_chk.c: Likewise.
16097         * debug/strncpy_chk.c: Likewise.
16098         * string/memchr.c: Likewise.
16099         * string/memrchr.c: Likewise.
16100         * string/rawmemchr.c: Likewise.
16101         * string/strcat.c: Likewise.
16102         * string/strchr.c: Likewise.
16103         * string/strchrnul.c: Likewise.
16104         * string/strcmp.c: Likewise.
16105         * string/strcpy.c: Likewise.
16106         * string/strncat.c: Likewise.
16107         * string/strncmp.c: Likewise.
16108         * string/strncpy.c: Likewise.
16109
16110 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
16111
16112         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
16113         __builtin_memcopy is called when src and dest ranges are known to not
16114         overlap.
16115
16116 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
16117
16118         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
16119         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
16120         fwd_align_merge macro call.
16121         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
16122         bwd_align_merge macro call.
16123         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
16124
16125 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
16126
16127         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
16128         bwd_align_merge macros.
16129         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
16130         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
16131         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
16132
16133 2012-04-18  David S. Miller  <davem@davemloft.net>
16134
16135         * sysdeps/sparc/sparc64/memcopy.h: Delete.
16136
16137 2012-04-18  Andreas Jaeger  <aj@suse.de>
16138
16139         [BZ# 6794]
16140         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
16141         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
16142         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
16143
16144         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
16145         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
16146         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
16147
16148         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
16149         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
16150         Adjust for changed ldbl-128 files.
16151
16152         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
16153         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
16154         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
16155
16156 2012-04-17  David S. Miller  <davem@davemloft.net>
16157
16158         * sysdeps/sparc/sparc32/memcopy.h: Delete.
16159
16160 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
16161
16162         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
16163         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
16164         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
16165         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
16166         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
16167         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
16168
16169 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16170
16171         [BZ #6794]
16172         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
16173         * math/libm-test.inc: Add ilogb errno and exception tests.
16174         * math/w_ilogb.c: New file: ilogb wrapper.
16175         * math/w_ilogbf.c: New file: ilogbf wrapper.
16176         * math/w_ilogbl.c: New file: ilogbl wrapper.
16177         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
16178         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
16179         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
16180         exception being thrown with 0.0 as argument.
16181         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
16182         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
16183         exception being thrown with 0.0 as argument.
16184         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
16185         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
16186         exception being thrown with 0.0 as argument.
16187         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
16188         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
16189         exception being thrown with 0.0 as argument.
16190         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
16191         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
16192         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
16193         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
16194         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
16195         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
16196         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
16197         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
16198         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
16199
16200 2012-04-17  Petr Baudis  <pasky@ucw.cz>
16201
16202         * include/sys/uio.h: Change __vector to __iovec to avoid clash
16203         with altivec.
16204
16205 2012-04-16  Marek Polacek  <polacek@redhat.com>
16206
16207         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
16208
16209 2012-04-16  Marek Polacek  <polacek@redhat.com>
16210
16211         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
16212         operands of fdivp instruction.
16213
16214 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
16215
16216         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
16217         * elf/tst-auditmod3b.c: Likewise.
16218         * elf/tst-auditmod4b.c: Likewise.
16219         * elf/tst-auditmod5b.c: Likewise.
16220         * elf/tst-auditmod6b.c: Likewise.
16221         * elf/tst-auditmod6c.c: Likewise.
16222         * elf/tst-auditmod7b.c: Likewise.
16223         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
16224         * sysdeps/x86_64/preconfigure.in: Likewise.
16225         * sysdeps/x86_64/preconfigure: Regenerated.
16226
16227 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
16228
16229         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
16230         __ILP32__.
16231
16232 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
16233
16234         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
16235         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
16236
16237 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
16238
16239         [BZ #13973]
16240         * locale/iso-639.def: Fix gl language name. Spotted by
16241         Yaron Shahrabani.
16242
16243 2012-04-12  Roland McGrath  <roland@hack.frob.com>
16244
16245         [BZ #2074]
16246         * libio/libio.h (__io_write_fn): Update comment.
16247
16248 2012-04-12  Petr Baudis  <pasky@ucw.cz>
16249
16250         [BZ #2074]
16251         * stdio.texi (Hook Functions): The user provided writer function
16252         is not allowed to return -1.
16253
16254 2012-04-11  David S. Miller  <davem@davemloft.net>
16255
16256         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16257
16258 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
16259
16260         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
16261         Add a leading slash to rtkaio.
16262
16263 2012-04-11  Jim Meyering  <meyering@redhat.com>
16264
16265         [BZ #11959]
16266         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
16267         It is not necessarily an error to ignore fwrite's return
16268         value.  One can reliably use ferror to test for errors after
16269         the fact.
16270
16271 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
16272
16273         * bits/types.h (__snseconds_t): New type.
16274         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
16275
16276         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
16277         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
16278         (__SNSECONDS_T_TYPE): Likewise.
16279         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
16280         (__SNSECONDS_T_TYPE): Likewise.
16281         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
16282         (__SNSECONDS_T_TYPE): Likewise.
16283
16284 2012-04-10  Andreas Jaeger  <aj@suse.de>
16285
16286         [BZ #2636]
16287         * manual/time.texi (Processor Time): Return type of times is
16288         elapsed real time since an arbitrary point in the past.
16289         (CPU Time): Move CLK_TCK from here...
16290         (Processor Time): ...to here.  Correct description.
16291         * manual/conf.texi (Constants for Sysconf): Correct description of
16292         _SC_CLK_TCK.
16293
16294 2012-04-10  David S. Miller  <davem@davemloft.net>
16295
16296         [BZ #13967]
16297         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
16298         where the is a gap between DT_REL(A) and DT_JMPREL.
16299
16300 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
16301
16302         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
16303         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
16304         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
16305
16306 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
16307
16308         * elf/dl-support.c (_dl_inhibit_cache): New variable.
16309         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
16310         (dl_main): Handle --inhibit-cache.
16311         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
16312         _dl_inhibit_cache.
16313         * elf/dl-load.c (_dl_map_object): Use it.
16314         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
16315
16316 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
16317
16318         [BZ #13872]
16319         * sysdeps/i386/fpu/e_powl.S (p78): New object.
16320         (__ieee754_powl): Saturate large exponents rather than testing for
16321         overflow of y*log2(x).
16322         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
16323         * math/libm-test.inc (pow_test): Do not permit spurious overflow
16324         exceptions.
16325
16326         [BZ #11521]
16327         * math/s_ctan.c: Include <float.h>.
16328         (__ctan): Avoid internal overflow or cancellation in calculating
16329         denominator.
16330         * math/s_ctanf.c: Likewise.
16331         * math/s_ctanl.c: Likewise.
16332         * math/s_ctanh.c: Likewise.
16333         * math/s_ctanhf.c: Likewise.
16334         * math/s_ctanhl.c: Likewise.
16335         * math/libm-test.inc (ctan_test): Add more tests.
16336         (ctanh_test): Likewise.
16337         * sysdeps/i386/fpu/libm-test-ulps: Update.
16338         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16339
16340 2012-04-09  Andreas Jaeger  <aj@suse.de>
16341
16342         [BZ #6894]
16343         * manual/filesys.texi (Directory Entries): Mention that d_namlen
16344         is an optional BSD extension.
16345
16346         [BZ #10254]
16347         * manual/stdio.texi (Opening Streams): Document additional fopen
16348         parameters.
16349
16350 2012-04-09  Roland McGrath  <roland@hack.frob.com>
16351
16352         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
16353         %eax without telling the compiler.
16354
16355 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
16356
16357         [BZ # 13963]
16358         * manual/install.texi: Use sourceware.org.
16359
16360 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
16361
16362         [BZ #13873]
16363         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
16364         (__ieee754_pow): Generate overflow and underflow using huge*huge
16365         and tiny*tiny rather than just returning constant infinity or zero
16366         for large exponents.
16367         * math/libm-test.inc (pow_test): Require overflow exceptions for
16368         applicable cases of large exponents.
16369
16370         [BZ #706]
16371         * sysdeps/i386/fpu/e_pow.S (p10): New object.
16372         (__ieee754_pow): Use iterative multiplication algorithm only for
16373         integer exponents with absolute value below 1024.  Check for odd
16374         integer exponents when using algorithm for real exponents.
16375         * math/libm-test.inc (pow_test): Add more tests.
16376         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16377
16378 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
16379
16380         [BZ #13705]
16381         * math/libm-test.inc (exp_test): Do not allow overflow exception
16382         on underflow test.
16383
16384 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
16385
16386         [BZ #13705]
16387         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
16388         instead of __kernel_standard_f.
16389
16390 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
16391
16392         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
16393         * sysdeps/x86_64/memset_chk.S: Likewise.
16394
16395 2012-04-08  Andreas Jaeger  <aj@suse.de>
16396
16397         [BZ #10153]
16398         * manual/startup.texi (Environment Access): Describe return value
16399         for putenv and setenv.
16400
16401         [BZ #6895]
16402         * manual/filesys.texi (Directory Entries): Add description for
16403         DT_LNK.
16404
16405         [BZ #6890]
16406         * manual/filesys.texi (Directory Entries): Clarify that it's file
16407         system not operating system in the description of DT_UNKNOWN.
16408
16409         [BZ #6578]
16410         * manual/syslog.texi (closelog): Fix reference, it's openlog.
16411
16412 2012-04-08  Stephen Compall  <s11@member.fsf.org>
16413
16414         [BZ #6649]
16415         * manual/llio.texi (Opening and Closing Files): Add cross
16416         reference to explain mode argument.
16417
16418 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
16419
16420         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
16421         * sysdeps/x86_64/memset_chk.S: Likewise.
16422
16423 2012-04-07  David S. Miller  <davem@davemloft.net>
16424
16425         * elf/elf.h (R_SPARC_WDISP10): Define.
16426         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
16427         R_SPARC_SIZE32.
16428         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
16429         R_SPARC_SIZE64 and R_SPARC_H34.
16430
16431 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
16432
16433         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
16434         conditions and remove no longer applicable assertion.
16435
16436 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
16437
16438         * bits/byteswap.h: Include <features.h>.
16439         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
16440         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
16441
16442 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
16443
16444         * bits/byteswap.h (__bswap_16): Removed.
16445         Include <bits/byteswap-16.h> to get __bswap_16.
16446         * sysdeps/i386/bits/byteswap.h: Likewise.
16447         * sysdeps/s390/bits/byteswap.h: Likewise.
16448         * sysdeps/x86_64/bits/byteswap.h: Likewise.
16449         * bits/byteswap-16.h: New file.
16450         * sysdeps/i386/bits/byteswap-16.h: Likewise.
16451         * sysdeps/s390/bits/byteswap-16.h: Likewise.
16452         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
16453         * string/Makefile (headers): Add bits/byteswap-16.h.
16454
16455 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
16456
16457         [BZ #13895]
16458         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
16459         extra indirection.
16460         * nss/Makefile (tests-static, tests): Add tst-nss-static.
16461         * nss/tst-nss-static.c: New.
16462
16463 2012-04-06  Robert Millan  <rmh@gnu.org>
16464
16465         [BZ #6486]
16466         * manual/llio.texi (File Position Primitive): lseek
16467         refers to WHENCE when it really means OFFSET.
16468
16469 2012-04-06  Andreas Jaeger  <aj@suse.de>
16470
16471         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
16472         strncmp declarations.
16473
16474         * abilist/libc.abilist: Add __poll and __ppoll.
16475
16476 2012-04-05  David S. Miller  <davem@davemloft.net>
16477
16478         * scripts/check-local-headers.sh: Accept a host triplet in the
16479         path matched by the exclude regexp.
16480
16481         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
16482         definition.
16483         * sysdeps/powerpc/powerpc32/dl-machine.h
16484         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
16485         * sysdeps/s390/s390-32/dl-machine.h
16486         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
16487         * sysdeps/sparc/sparc32/dl-machine.h
16488         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
16489         * sysdeps/sparc/sparc64/dl-machine.h
16490         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
16491
16492         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
16493         lazy binding.
16494         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
16495         undefined symbol errors.
16496
16497         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
16498         DT_NEEDED entries.
16499
16500 2012-04-05  Michael Matz  <matz@suse.de>
16501
16502         [BZ #13592]
16503         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
16504
16505 2012-04-05  Andreas Jaeger  <aj@suse.de>
16506
16507         [BZ #13908]
16508         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
16509         comment.
16510
16511 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
16512
16513         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
16514         which ROUND is no valid rounding mode.
16515
16516 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
16517
16518         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
16519         read again.
16520         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
16521
16522 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
16523
16524         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
16525         an exception using FPU order intentionally.
16526
16527 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
16528
16529         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
16530         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
16531         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
16532         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
16533
16534 2012-04-05  Simon Josefsson  <simon@josefsson.org>
16535
16536         [BZ #12340]
16537         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
16538         EINVAL when BUFLEN is too smal.
16539
16540 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
16541
16542         [BZ #13553]
16543         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
16544         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
16545
16546 2012-04-03  Andreas Jaeger  <aj@suse.de>
16547
16548         [BZ #13938]
16549         * manual/setjmp.texi (System V contexts): Fix sentence.
16550
16551         [BZ #13926]
16552         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
16553         New macro for this case.
16554         [!__GNUC__] (__bswap_64): New inline function for this case.
16555         * sysdeps/x86_64/bits/byteswap.h: Likewise.
16556         * bits/byteswap.h: Likewise.
16557         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
16558         ull, guard with __GLIBC_HAVE_LONG_LONG.
16559
16560         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
16561         __GLIBC_HAVE_LONG_LONG.
16562
16563         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
16564         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
16565
16566 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
16567
16568         [BZ #13691]
16569         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
16570         inptr and inend, rather than using last_ch.
16571
16572 2012-04-02  David S. Miller  <davem@davemloft.net>
16573
16574         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
16575         * stdio-common/printf-parse.h (read_int): Change return type to
16576         'int', return -1 on INT_MAX overflow.
16577         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
16578         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
16579         overflows INT_MAX.  Check for overflow of in-format-string precision
16580         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
16581         SIZE_MAX not INT_MAX for integer overflow test.
16582         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
16583         skip the construct in the format string but do not record anything.
16584         * stdio-common/bug22.c: Adjust to test both width/prevision
16585         INT_MAX overflow as well as total length INT_MAX overflow.  Check
16586         explicitly for proper errno values.
16587
16588 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
16589
16590         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
16591         CHAR_MAX.
16592         * string/test-strcmp.c [! WIDE]: Likewise.
16593         * time/tst-mktime2.c: Likewise for INT_MAX.
16594         * string/test-string.h: #include <sys/param.h> for MIN.
16595
16596         * csu/init-first.c (__libc_init_first): Call __ctype_init.
16597         * sysdeps/i386/init-first.c (init): Likewise.
16598         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
16599         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
16600         * sysdeps/sh/init-first.c (init): Likewise.
16601
16602 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
16603
16604         * po/ru.po: Update from translation team.
16605         * po/vi.po: Likewise.
16606
16607 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
16608
16609         * resolv/nss_dns/dns-host.c: Merge copyright years.
16610
16611 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16612
16613         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
16614         Optimize memcpy with prefetch if
16615         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
16616         src, dst pointers have unequal 16 byte alignments.
16617
16618 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
16619
16620         [BZ #13928]
16621         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
16622         from a CNAME entry and return the minimum ttl for the query.
16623         (gaih_getanswer_slice): Likewise.
16624
16625 2012-03-30  Jeff Law  <law@redhat.com>
16626
16627         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
16628         due to long keys.
16629         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
16630         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
16631
16632         * resolv/nss_dns/dns-host.c: Update copyright year.
16633
16634 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
16635
16636         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
16637         requests to save a system call.  Fix check that all bytes are sent.
16638
16639         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
16640         comments for sendmmsg.
16641
16642 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
16643
16644         [BZ #13691]
16645         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
16646         with only 1 character between 0x0041 and 0x01b0.
16647         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
16648         * wcsmbs/tst-mbsnrtowcs.c: New file.
16649
16650 2012-03-29  David S. Miller  <davem@davemloft.net>
16651
16652         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
16653         small copies by hand.
16654
16655 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
16656
16657         [BZ #13761]
16658         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
16659         _nss_compat_initgroups_dyn): Fall back to malloc/free
16660         for large group memberships.
16661
16662 2012-03-28  David S. Miller  <davem@davemloft.net>
16663
16664         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
16665         that branches into memcpy.
16666         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
16667         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
16668         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
16669         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
16670         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
16671         bits.
16672         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
16673         implementation too.
16674         * sysdeps/sparc/mempcpy.S: New file.
16675
16676         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
16677         the IFUNC routine in the libc case.
16678         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
16679
16680         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
16681         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
16682         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
16683         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
16684         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
16685         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
16686         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
16687         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
16688
16689         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
16690         loop to 256 bytes instead of 64 bytes and fix test signedness.
16691
16692         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
16693         * sysdeps/sparc/sparc32/Makefile: rather than here...
16694         * sysdeps/sparc/sparc64/Makefile: and here.
16695
16696 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
16697
16698         * malloc/mallocbug.c: Avoid warnings about unused variables.
16699
16700 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
16701
16702         [BZ #13760]
16703         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
16704         in the right place. Discard and retry query if response is
16705         larger than input buffer size.
16706
16707 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
16708
16709         [BZ #369]
16710         [BZ #2678]
16711         [BZ #3866]
16712         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
16713         x for large integer exponent.
16714         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
16715         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
16716         sign of result as needed afterwards.
16717         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
16718         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
16719         result for underflowing pow the same as for overflow.
16720         (__kernel_standard_l): Handle powl overflow and underflow here
16721         rather than calling __kernel_standard.
16722         * math/libm-test.inc (pow_test): Add more tests.
16723
16724         [BZ #3868]
16725         [BZ #13879]
16726         [BZ #13910]
16727         [BZ #13911]
16728         [BZ #13912]
16729         [BZ #13913]
16730         [BZ #13915]
16731         [BZ #13916]
16732         [BZ #13917]
16733         [BZ #13918]
16734         [BZ #13919]
16735         [BZ #13920]
16736         [BZ #13921]
16737         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
16738         * sysdeps/ieee754/k_standard.c: Include <float.h>.
16739         (__kernel_standard_l): New function.
16740         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
16741         __kernel_standard.
16742         * math/w_acosl.c (__acosl): Likewise.
16743         * math/w_asinl.c (__asinl): Likewise.
16744         * math/w_atan2l.c (__atan2l): Likewise.
16745         * math/w_atanhl.c (__atanhl): Likewise.
16746         * math/w_coshl.c (__coshl): Likewise.
16747         * math/w_exp10l.c (__exp10l): Likewise.
16748         * math/w_exp2l.c (__exp2l): Likewise.
16749         * math/w_fmodl.c (__fmodl): Likewise.
16750         * math/w_hypotl.c (__hypotl): Likewise.
16751         * math/w_j0l.c (__j0l, __y0l): Likewise.
16752         * math/w_j1l.c (__j1l, __y1l): Likewise.
16753         * math/w_jnl.c (__jnl, __ynl): Likewise.
16754         * math/w_lgammal.c (__lgammal): Likewise.
16755         * math/w_log10l.c (__log10l): Likewise.
16756         * math/w_log2l.c (__log2l): Likewise.
16757         * math/w_logl.c (__logl): Likewise.
16758         * math/w_powl.c (__powl): Likewise.
16759         * math/w_remainderl.c (__remainderl): Likewise.
16760         * math/w_scalbl.c (sysv_scalbl): Likewise.
16761         * math/w_sinhl.c (__sinhl): Likewise.
16762         * math/w_sqrtl.c (__sqrtl): Likewise.
16763         * math/w_tgammal.c (__tgammal): Likewise.
16764         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
16765         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
16766         * math/libm-test.inc (acos_test): Add more tests.
16767         (acosh_test): Likewise.
16768         (asin_test): Likewise.
16769         (atanh_test): Likewise.
16770         (exp_test): Likewise.
16771         (exp10_test): Likewise.
16772         (exp2_test): Likewise.
16773         (expm1_test): Likewise.
16774         (lgamma_test): Likewise.
16775         (log_test): Likewise.
16776         (log10_test): Likewise.
16777         (log1p_test): Likewise.
16778         (log2_test): Likewise.
16779         (pow_test): Do not allow some spurious overflow exceptions.
16780         (sqrt_test): Add more tests.
16781         (tgamma_test): Likewise.
16782         (y0_test): Likewise.
16783         (y1_test): Likewise.
16784         (yn_test): Likewise.
16785
16786 2012-03-27  Anton Blanchard  <anton@samba.org>
16787
16788         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
16789         MAP_HUGETLB.
16790         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
16791         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
16792         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
16793
16794 2012-03-27  David S. Miller  <davem@davemloft.net>
16795
16796         * conform/Makefile: Run run-conformtest.sh using $(BASH).
16797
16798         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
16799         have-as-vis3 check.
16800
16801 2012-03-27  Andreas Jaeger  <aj@suse.de>
16802
16803         * sysdeps/x86_64/elf/configure.in: Moved to ...
16804         * sysdeps/x86_64/configure.in: ... here.
16805         * sysdeps/x86_64/elf/start.S: Moved to ...
16806         * sysdeps/x86_64/start.S: ... here.
16807         * sysdeps/x86_64/elf/configure: Delete.
16808
16809         * sysdeps/x86_64/configure.in: Merge contents from
16810         sysdeps/i386/configure.in (without i686 check).
16811
16812         * sysdeps/i386/elf/Versions: Merge into ...
16813         * sysdeps/i386/Versions: ... this.
16814         * sysdeps/i386/elf/Versions: Delete file.
16815         * sysdeps/i386/elf/start.S: Moved to ...
16816         * sysdeps/i386/start.S: ...here.
16817         * sysdeps/i386/elf/configure.in: Merge into...
16818         * sysdeps/i386/configure.in: ...here.
16819         * sysdeps/i386/elf/configure.in: Delete file.
16820         * sysdeps/i386/elf/configure: Delete file.
16821
16822         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
16823         * debug/backtracesyms.c: ... here.
16824         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
16825         * debug/backtracesymsfd.c: ... here.
16826         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
16827         * sysdeps/generic/ifunc-sel.h: ... here.
16828
16829         * sysdeps/unix/i386/start.c: Delete file.
16830         * sysdeps/unix/sparc/start.c: Delete file.
16831         * sysdeps/unix/start.c: Delete file.
16832
16833         * sysdeps/sh/elf/configure.in: Moved to ...
16834         * sysdeps/sh/configure.in: ... here.
16835         * sysdeps/sh/elf/start.S: Moved to ...
16836         * sysdeps/sh/start.S: ... here.
16837         * sysdeps/sh/elf/configure: Delete file.
16838
16839         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
16840         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
16841         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
16842         * sysdeps/powerpc/powerpc64/entry.h: ... here.
16843         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
16844         * sysdeps/powerpc/powerpc64/start.S: here.
16845         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
16846         * sysdeps/powerpc/powerpc64/Makefile: ... this.
16847         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
16848         * sysdeps/powerpc/powerpc64/configure.in: ... this.
16849         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
16850
16851         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
16852         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
16853         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
16854         * sysdeps/powerpc/powerpc32/start.S: ... here.
16855         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
16856         * sysdeps/powerpc/powerpc32/configure.in: ... this.
16857         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
16858
16859         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
16860         * sysdeps/powerpc/ifunc-sel.h: ... here.
16861         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
16862         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
16863
16864         * sysdeps/sparc/elf/configure.in: Moved to ...
16865         * sysdeps/sparc/configure.in: ... here.
16866         * sysdeps/sparc/elf/configure: Delete file.
16867         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
16868         * sysdeps/sparc/sparc32/start.S: ... here.
16869         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
16870         * sysdeps/sparc/sparc64/start.S: ... here.
16871         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
16872         * sysdeps/sparc/sparc32/Makefile: ... this.
16873         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
16874         * sysdeps/sparc/sparc64/Makefile: ... this.
16875
16876         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
16877         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
16878         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
16879         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
16880         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
16881         * sysdeps/s390/s390-32/setjmp.S: ... here.
16882         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
16883         * sysdeps/s390/s390-32/configure.in: ... here.
16884         * sysdeps/s390/s390-32/elf/configure: Delete file.
16885         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
16886         * sysdeps/s390/s390-32/start.S: ... here.
16887
16888         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
16889         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
16890         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
16891         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
16892         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
16893         * sysdeps/s390/s390-64/setjmp.S: ... here.
16894         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
16895         * sysdeps/s390/s390-64/configure.in: ... here
16896         * sysdeps/s390/s390-64/elf/configure: Delete file.
16897         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
16898         * sysdeps/s390/s390-64/start.S: ... here.
16899         * sysdeps/s390/s390-64/elf/configure: Delete.
16900
16901         * configure.in: Remove support for elf directories in sysdeps.
16902
16903         * configure: Regenerated.
16904         * sysdeps/i386/configure: Regenerated.
16905         * sysdeps/powerpc/powerpc32/configure: Regenerated.
16906         * sysdeps/powerpc/powerpc64/configure: Regenerated.
16907         * sysdeps/s390/s390-32/configure: Regenerated.
16908         * sysdeps/s390/s390-64/configure: Regenerated.
16909         * sysdeps/sh/configure: Regenerated.
16910         * sysdeps/sparc/configure: Regenerated.
16911         * sysdeps/x86_64/configure: Regenerated.
16912
16913 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
16914
16915         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16916
16917         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
16918         denormal result into account.
16919
16920 2012-03-25  Roland McGrath  <roland@hack.frob.com>
16921
16922         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
16923         Reported by Allan McRae <allan@archlinux.org>.
16924
16925 2012-03-23  Jeff Law  <law@redhat.com>
16926
16927         * nss/getnssent.c (__nss_getent): Fix typo.
16928
16929 2012-03-23  David S. Miller  <davem@davemloft.net>
16930
16931         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16932
16933 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
16934
16935         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
16936         to pad to uint64_t for each field.
16937         (dl_tls_index): Replace unsigned long with uint64_t.
16938
16939 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
16940         Paul Pluzhnikov  <ppluzhnikov@google.com>
16941
16942         [BZ #6528]
16943         * grp/Makefile (otherlibs): Don't set it.
16944         * inet/Makefile (otherlibs): Likewise.
16945         * login/Makefile (otherlibs): Likewise.
16946         * nscd/Makefile (otherlibs): Likewise.
16947         * posix/Makefile (otherlibs): Likewise.
16948         * pwd/Makefile (otherlibs): Likewise.
16949         * rt/Makefile (otherlibs): Likewise.
16950         * sunrpc/Makefile (otherlibs): Likewise.
16951         * nss/Makefile (otherlibs): Likewise.
16952         Add libnss_files to routines and static-only-routines.
16953         ($(objpfx)getent): Remove rule.
16954         * resolv/Makefile: Add libnss_dns and libresolv to routines and
16955         static-only-routines.
16956
16957 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
16958
16959         [BZ #13892]
16960         * math/s_cexp.c: Include <float.h>.
16961         (__cexp): Handle exp result overflowing not necessarily
16962         overflowing both real and imaginary parts of result.
16963         * math/s_cexpf.c: Likewise.
16964         * math/s_cexpl.c: Likewise.
16965         * math/libm-test.inc (cexp_test): Add more tests.
16966         * sysdeps/i386/fpu/libm-test-ulps: Update.
16967         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16968
16969 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
16970
16971         * include/link.h (ELFW): New macro.
16972         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
16973         Replace ELF64_R_TYPE with ELFW(R_TYPE).
16974
16975 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
16976
16977         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
16978         with uint64_t.
16979
16980 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
16981
16982         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
16983         declaration.
16984         (struct La_x32_retval): Likewise.
16985
16986 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
16987
16988         * sysdeps/x86_64/preconfigure.in: New file.
16989         * sysdeps/x86_64/preconfigure: New generated file.
16990
16991 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
16992
16993         [BZ #13824]
16994         * math/e_exp2l.c: Include <float.h>.
16995         (__ieee754_exp2l): Handle overflow and underflow cases
16996         separately.  Only pass fractional part of argument to
16997         __ieee754_expl.
16998         * math/libm-test.inc (exp2_test): Add more tests.
16999
17000         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
17001         negating x to take absolute value.
17002         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
17003         Likewise.
17004         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
17005         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
17006         Likewise.
17007         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
17008         computing low part if x was negated.
17009         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
17010
17011 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
17012
17013         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
17014         la_x32_gnu_pltexit.
17015         (pltexit): Cast int_retval to ptrdiff_t.
17016         * elf/tst-auditmod3b.c: Likewise.
17017         * elf/tst-auditmod4b.c: Likewise.
17018         * elf/tst-auditmod5b.c: Likewise.
17019         * elf/tst-auditmod6b.c: Likewise.
17020         * elf/tst-auditmod6c.c: Likewise.
17021         * elf/tst-auditmod7b.c: Likewise.
17022
17023         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
17024         and x32_gnu_pltexit.
17025
17026         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
17027         __ELF_NATIVE_CLASS.
17028         (La_x32_regs): New macro.
17029         (La_x32_retval): Likewise.
17030         (la_x32_gnu_pltenter): New function prototype.
17031         (la_x32_gnu_pltexit): Likewise.
17032
17033 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
17034
17035         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
17036         exponent.
17037
17038         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17039
17040         * configure.in (libc_cv_cc_nofma): Check for option to disable
17041         generation of FMA instructions.
17042         * configure: Regenerate.
17043         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
17044         * sysdeps/ieee754/dbl-64/Makefile: New file.
17045         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17046         Remove brandred-fma4.
17047         (CFLAGS-brandred-fma4.c): Remove.
17048         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
17049         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
17050         define.
17051         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
17052         define.
17053
17054 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
17055
17056         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
17057         LLONG_MAX != LONG_MAX.
17058         (_itoa_word): Use _ITOA_WORD_TYPE on value.
17059         (_fitoa_word): Likewise.
17060         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
17061         LLONG_MAX != LONG_MAX.
17062         * stdio-common/_itowa.h: Include <_itoa.h>.
17063         (_itowa_word): Use _ITOA_WORD_TYPE on value.
17064         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
17065         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
17066         only if not defined.
17067         (_ITOA_WORD_TYPE): Likewise.
17068         (_itoa_word): Use _ITOA_WORD_TYPE on value.
17069         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
17070
17071 2012-03-21  David S. Miller  <davem@davemloft.net>
17072
17073         * sysdeps/sparc/fpu/libm-test-ulps: Update.
17074
17075 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
17076
17077         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
17078         of x86_64 when setting libc_cv_slibdir, libdir and
17079         libc_cv_localedir.
17080         * sysdeps/unix/sysv/linux/configure: Regenerated.
17081
17082 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
17083
17084         * manual/lang.texi (Old Varargs): Remove section.
17085         (How Variadic): Update menu.
17086         (va_start): Do not mention varargs.h.
17087
17088 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
17089             Joseph Myers  <joseph@codesourcery.com>
17090
17091         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
17092         link test.
17093         * configure: Regenerated.
17094
17095 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
17096
17097         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
17098         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
17099         conformtest.pl
17100
17101 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
17102
17103         * NOTES: Remove.
17104         * Makefile (files-for-dist): Remove NOTES.
17105         (NOTES): Remove rule.
17106         * README: Don't refer to NOTES.
17107         * manual/creature.texi: Don't include macros.texi.
17108         * manual/intro.texi (creature.texi): Remove comment referring to
17109         NOTES.
17110
17111         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
17112         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
17113         * configure: Regenerated.
17114         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
17115         LIBC_TRY_CC_OPTION.
17116         (libc_cv_as_i686): Likewise.
17117         (libc_cv_cc_avx): Likewise.
17118         (libc_cv_cc_sse2avx): Likewise.
17119         (libc_cv_cc_fma4): Likewise.
17120         (libc_cv_cc_novzeroupper): Likewise.
17121         * sysdeps/i386/configure: Regenerated.
17122
17123         [BZ #13883]
17124         * sysdeps/i386/fpu/s_cexp.S: Remove.
17125         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
17126         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
17127         * math/libm-test.inc (cexp_test): Add more tests.
17128         * sysdeps/i386/fpu/libm-test-ulps: Update.
17129         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17130
17131 2012-03-21  Allan McRae  <allan@archlinux.org>
17132
17133         * timezone/Makefile: Do not install iso3166.tab and zone.tab
17134
17135 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
17136
17137         [BZ #13871]
17138         * math/w_exp2.c: Do not include <float.h>.
17139         (o_threshold, u_threshold): Remove.
17140         (__exp2): Calculate result before checking finiteness and calling
17141         __kernel_standard.
17142         * math/w_exp2f.c: Likewise.
17143         * math/w_exp2l.c: Likewise.
17144         * math/libm-test.inc (exp2_test): Require overflow exception for
17145         1e6 input.
17146
17147         [BZ #3866]
17148         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
17149         range of signed 64-bit integers before using fistpll.  Remove
17150         checks for whether integers fit in mantissa bits.
17151         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
17152         the range of signed 32-bit integers before using fistpl.  Remove
17153         checks for whether integers fit in mantissa bits.
17154         * sysdeps/i386/fpu/e_powl.S (p64): New object.
17155         (__ieee754_powl): Test for y outside the range of signed 64-bit
17156         integers before using fistpll.  Reduce 64-bit values to 63-bit
17157         ones as needed.
17158         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
17159         divide-by-zero is raised for zero to large negative powers.
17160         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
17161         (__ieee754_powl): Test for y outside the range of signed 64-bit
17162         integers before using fistpll.  Reduce 64-bit values to 63-bit
17163         ones as needed.
17164         * math/libm-test.inc (pow_test): Add more tests.
17165
17166 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
17167
17168         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
17169         <stdio-common/_itoa.h>.
17170         * debug/segfault.c: Likewise.
17171         * elf/dl-cache.c: Likewise.
17172         * elf/dl-minimal.c: Likewise.
17173         * elf/dl-misc.c: Likewise.
17174         * elf/dl-sysdep.c: Likewise.
17175         * elf/dl-version.c: Likewise.
17176         * elf/rtld.c: Likewise.
17177         * hurd/hurdsock.c: Likewise.
17178         * hurd/lookup-retry.c: Likewise.
17179         * malloc/malloc.c: Likewise.
17180         * malloc/mtrace.c: Likewise.
17181         * nscd/nscd_getgr_r.c: Likewise.
17182         * nscd/nscd_getpw_r.c: Likewise.
17183         * nscd/nscd_getserv_r.c: Likewise.
17184         * posix/getopt_init.c: Likewise.
17185         * posix/wordexp.c: Likewise.
17186         * stdio-common/_itoa.c: Likewise.
17187         * stdio-common/printf_fphex.c: Likewise.
17188         * stdio-common/vfprintf.c: Likewise.
17189         * string/_strerror.c: Likewise.
17190         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
17191         * sysdeps/i386/i686/hp-timing.h: Likewise.
17192         * sysdeps/mach/_strerror.c: Likewise.
17193         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
17194         * sysdeps/mach/hurd/sethostid.c: Likewise.
17195         * sysdeps/mach/hurd/xmknodat.c: Likewise.
17196         * sysdeps/mach/xpg-strerror.c: Likewise.
17197         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
17198         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
17199         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
17200         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
17201         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
17202         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
17203         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
17204         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
17205         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
17206         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
17207         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
17208         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
17209         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
17210         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
17211         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
17212         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
17213         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
17214         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
17215         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
17216         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
17217         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
17218
17219         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
17220
17221         * stdio-common/_itoa.h: Moved to ...
17222         * sysdeps/generic/_itoa.h: Here.
17223
17224         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
17225
17226         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
17227         instead of "_itoa.h" and "_itowa.h".
17228         * stdio-common/vfprintf.: Likewise.
17229
17230 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
17231
17232         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
17233         <bits/wordsize.h>.
17234         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
17235         (__signbit): Likwise.
17236         (llrintf): Likwise.
17237         (llrint): Likwise.
17238
17239 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
17240
17241         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
17242         __WORDSIZE != 64.
17243
17244 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
17245
17246         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
17247         OVERFLOW_EXCEPTION_OK.
17248         * math/libm-test.inc ("Philosophy"): Update comment about
17249         exception testing.
17250         (OVERFLOW_EXCEPTION): Define.
17251         (OVERFLOW_EXCEPTION_OK): Likewise.
17252         (INVALID_EXCEPTION_OK): Renumber.
17253         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
17254         (IGNORE_ZERO_INF_SIGN): Likewise.
17255         (test_exceptions): Handle FE_OVERFLOW.
17256         (exp10_test): Expect overflow exceptions.
17257         (exp2_test): Likewise.
17258         (expm1_test): Likewise.
17259         (nextafter_test): Likewise.
17260         (pow_test): Likewise.
17261         (scalbn_test): Likewise.
17262         (scalbln_test): Likewise.
17263
17264 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
17265
17266         * sysdeps/x86_64/bits/atomic.h
17267         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
17268         64bit integer.
17269         (atomic_exchange_acq): Likewise.
17270         (__arch_exchange_and_add_body): Likewise.
17271         (__arch_add_body): Likewise.
17272         (atomic_add_negative): Likewise.
17273         (atomic_add_zero): Likewise.
17274
17275 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
17276
17277         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
17278         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
17279
17280 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
17281
17282         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
17283         Check __x86_64__ instead of __WORDSIZE.
17284
17285 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
17286
17287         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
17288
17289 2012-03-19  David S. Miller  <davem@davemloft.net>
17290
17291         * sysdeps/sparc/fpu/libm-test-ulps: Update.
17292
17293         * sysdeps/sparc/fpu/fenv_private.h: New file.
17294         * sysdeps/sparc/fpu/math_private.h: Use it.
17295         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
17296         Remove.
17297         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
17298         (libc_feholdexcept_setroundl): Remove.
17299         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
17300         Remove.
17301         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
17302         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
17303
17304 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
17305
17306         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
17307         int64_t instead of long int.
17308         (INSERT_WORDS64): Likwise.
17309
17310 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
17311
17312         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
17313         _Unwind_GetCFA return to _Unwind_Ptr first.
17314
17315 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
17316
17317         [BZ #13629]
17318         * math/s_clog.c: Include <float.h>.
17319         (__clog): Scale large or subnormal inputs.
17320         * math/s_clogf.c: Likewise.
17321         * math/s_clogl.c: Likewise.
17322         * math/s_clog10.c: Include <float.h>.
17323         (M_LOG10_2): Define.
17324         (__clog10): Scale large or subnormal inputs.
17325         * math/s_clog10f.c: Likewise.
17326         * math/s_clog10l.c: Likewise.
17327         * math/libm-test.inc (clog_test): Add more tests.
17328         (clog10_test): Likewise.
17329         * sysdeps/i386/fpu/libm-test-ulps: Update.
17330         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17331
17332         [BZ #11451]
17333         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
17334         x and y.
17335         * math/libm-test.inc (atan2_test): Add another test.
17336
17337         * Makerules (common-objdir-compile): Remove.
17338         * sysdeps/unix/Makefile (config-generated): Do not add
17339         $(unix-generated) to variable.
17340         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
17341         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
17342         Remove rule.
17343         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
17344         Likewise.
17345         [generic bits/local_lim.h] (before-compile): Do not append to
17346         variable.
17347         [generic bits/local_lim.h] (common-generated): Likewise.
17348         [generic sys/param.h] (before-compile): Do not append to variable.
17349         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
17350         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
17351         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
17352         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
17353         include.
17354         [generic sys/param.h] (sys/param.h-includes): Remove variable.
17355         [generic sys/param.h] (sys/param.h-includes): Remove rule.
17356         [generic sys/param.h] ($(addprefix
17357         $(common-objpfx),$(sys/param.h-includes))): Likewise.
17358         [generic sys/param.h] (common-generated): Do not append to
17359         variable.
17360         [generic sys/param.h] (sysdep_headers): Likewise.
17361         [generic bits/errno.h] (before-compile): Do not append to
17362         variable.
17363         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
17364         rule.
17365         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
17366         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
17367         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
17368         [generic bits/errno.h] (common-generated): Do not append to
17369         variable.
17370         [generic bits/ioctls.h] (before-compile): Do not append to
17371         variable.
17372         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
17373         rule.
17374         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
17375         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
17376         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
17377         rule.
17378         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
17379         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
17380         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
17381         [generic bits/ioctls.h] (common-generated): Do not append to
17382         variable.
17383         [generic sys/syscall.h] (syscall.h): Remove variable.
17384         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
17385         rule.
17386         [generic sys/syscall.h] (before-compile): Do not append to
17387         variable.
17388         [generic sys/syscall.h] (common-generated): Likewise.
17389         * sysdeps/unix/errnos-tmpl.c: Remove file.
17390         * sysdeps/unix/errnos.awk: Likewise.
17391         * sysdeps/unix/ioctls-tmpl.c: Likewise.
17392         * sysdeps/unix/ioctls.awk: Likewise.
17393         * sysdeps/unix/mk-local_lim.c: Likewise.
17394         * sysdeps/unix/snarf-ioctls: Likewise.
17395
17396 2012-03-19  Richard Henderson  <rth@twiddle.net>
17397
17398         * sysdeps/i386/fpu/fenv_private.h: New file.
17399         * sysdeps/i386/fpu/math_private.h: Use it.
17400         (math_opt_barrier, math_force_eval): Remove.
17401         (libc_feholdexcept_setround_53bit): Remove.
17402         (libc_feupdateenv_53bit): Remove.
17403         * sysdeps/x86_64/fpu/math_private.h: Likewise.
17404         (math_opt_barrier, math_force_eval): Remove.
17405         (libc_feholdexcept): Remove.
17406         (libc_feholdexcept_setround): Remove.
17407         (libc_fetestexcept, libc_fesetenv): Remove.
17408         (libc_feupdateenv_test): Remove.
17409         (libc_feupdateenv, libc_feholdsetround): Remove.
17410         (libc_feresetround): Remove.
17411
17412         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
17413         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
17414
17415         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
17416         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
17417         (libc_feupdateenv_testl): New.
17418         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
17419         (libc_feupdateenv_testf): New.
17420         (libc_feupdateenv): Use libc_feupdateenv_test.
17421         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
17422         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
17423
17424         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
17425         (libc_feholdsetroundf, libc_feholdsetroundl): New.
17426         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
17427         (libc_feresetround_noex): New.
17428         (libc_feresetround_noexf): New.
17429         (libc_feresetround_noexl): New.
17430         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
17431         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
17432         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
17433         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
17434         SET_RESTORE_ROUND.
17435         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
17436         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
17437         (__cos): Likewise.
17438         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
17439         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
17440         SET_RESTORE_ROUND_NOEX.
17441         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
17442         SET_RESTORE_ROUND_NOEXF.
17443         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
17444         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
17445         (libc_feholdsetroundf): New.
17446         (libc_feresetround, libc_feresetroundf): New.
17447
17448         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
17449         (libc_feholdexcept_setround_53bit): Convert from macro to function.
17450         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
17451
17452         * sysdeps/generic/math_private.h: Include <fenv.h>.
17453         (default_libc_feholdexcept): New.
17454         (default_libc_feholdexcept_setround): New.
17455         (default_libc_fesetenv, default_libc_feupdateenv): New.
17456         (libc_feholdexcept): Only define if undefined.
17457         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
17458         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
17459         (libc_feholdexcept_setroundl): Likewise.
17460         (libc_feholdexcept_setround_53bit): Likewise.
17461         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
17462         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
17463         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
17464         (libc_feupdateenv_53bit): Likewise.
17465         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
17466         (libc_feholdexcept): Convert from macro to inline function.
17467         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
17468         (libc_fesetenv, libc_feupdateenv): Likewise.
17469
17470         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
17471         not previously defined.
17472         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
17473         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
17474         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
17475         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
17476         * sysdeps/ieee754/flt-32/math_private.h: New file.
17477         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
17478         math_private.h below SET_FLOAT_WORD.
17479         (__isnan, __isinf_ns, __finite): Remove.
17480         (__isnanf, __isinf_nsf, __finitef): Remove.
17481
17482 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
17483
17484         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17485
17486 2012-03-17  David S. Miller  <davem@davemloft.net>
17487
17488         [BZ #6471]
17489         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
17490         for 2.16.
17491
17492 2012-03-16  David S. Miller  <davem@davemloft.net>
17493
17494         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
17495         warnings.
17496
17497         [BZ #6471]
17498         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
17499         properly.
17500         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
17501         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
17502         sysdep_routines when subdir is sysvipc.
17503         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
17504         __getshmlba helper.
17505
17506         * sysdeps/sparc/fpu/libm-test/ulps: Update.
17507
17508 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
17509
17510         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
17511         [__LP64__].
17512
17513 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
17514
17515         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
17516         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
17517         (__lround): Renamed to ...
17518         (__llround): This.  Replace long int with long long int.
17519         Define lround functions as aliases of llround functions.
17520         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
17521
17522 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
17523
17524         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
17525         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
17526         adresses to uintptr_t.  Replace "long int" and "unsigned long
17527         int" with "greg_t" on va_arg.
17528
17529 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
17530
17531         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
17532         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
17533
17534         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
17535         Move e_machine check before EI_CLASS check.  Handle x32
17536         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
17537         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
17538         SKIP_EM_IA_64 and include
17539         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
17540
17541         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
17542         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
17543         (add_system_dir): New macro.
17544
17545         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
17546         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
17547
17548 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
17549
17550         [BZ #2551]
17551         [BZ #2552]
17552         [BZ #2553]
17553         [BZ #2554]
17554         [BZ #2562]
17555         [BZ #2563]
17556         [BZ #2565]
17557         [BZ #2566]
17558         [BZ #2576]
17559         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
17560         (y0): Likewise.
17561         * math/w_j0f.c (j0f): Likewise.
17562         (y0f): Likewise.
17563         * math/w_j0l.c (__j0l): Likewise.
17564         (__y0l): Likewise.
17565         * math/w_j1.c (j1): Likewise.
17566         (y1): Likewise.
17567         * math/w_j1f.c (j1f): Likewise.
17568         (y1f): Likewise.
17569         * math/w_j1l.c (__j1l): Likewise.
17570         (__y1l): Likewise.
17571         * math/w_jn.c (jn): Likewise.
17572         (yn): Likewise.
17573         * math/w_jnf.c (jnf): Likewise.
17574         (ynf): Likewise.
17575         * math/w_jnl.c (__jnl): Likewise.
17576         (__ynl): Likewise.
17577         * math/libm-test.inc (j0_test): Add more tests.
17578         (j1_test): Likewise.
17579         (jn_test): Likewise.  Add trailing semicolon to existing test.
17580         (y0_test): Likewise.
17581         (y1_test): Likewise.
17582         * sysdeps/i386/fpu/libm-test-ulps: Update.
17583         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17584
17585         [BZ #13851]
17586         [BZ #13854]
17587         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
17588         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
17589         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
17590         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
17591         (__tanl): Set errno for infinite argument.
17592         * sysdeps/i386/fpu/mptan.c: Remove.
17593         * sysdeps/i386/fpu/s_tan.S: Likewise.
17594         * sysdeps/i386/fpu/s_tanl.S: Likewise.
17595         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
17596         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
17597         * math/libm-test.inc (tan_test): Add more tests and enable more
17598         tests for double and long double.
17599         * sysdeps/i386/fpu/libm-test-ulps: Update.
17600         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17601
17602 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
17603
17604         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
17605         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
17606
17607 2012-03-16  Roland McGrath  <roland@hack.frob.com>
17608
17609         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
17610         * configure.in: Use it for both main tree and add-ons.
17611         * configure: Regenerated.
17612
17613 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
17614
17615         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
17616
17617 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
17618
17619         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
17620         in comment.
17621
17622         [BZ #13851]
17623         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
17624         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
17625         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
17626         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
17627         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
17628         infinite argument.
17629         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
17630         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
17631         != 0 for prec == 2.
17632         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
17633         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
17634         * sysdeps/i386/fpu/s_cosl.S: Likewise.
17635         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
17636         * sysdeps/i386/fpu/s_sinl.S: Likewise.
17637         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
17638         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
17639         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
17640         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
17641         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
17642         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
17643         * math/libm-test.inc (cos_test): Add more tests and enable more
17644         tests for long double.
17645         (sin_test): Likewise.
17646         (sincos_test): Likewise.
17647         * sysdeps/i386/fpu/libm-test-ulps: Update.
17648         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17649
17650 2012-03-16  David S. Miller  <davem@davemloft.net>
17651
17652         * sysdeps/sparc/fpu/math_private.h: New file.
17653
17654 2012-03-15  David S. Miller  <davem@davemloft.net>
17655
17656         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
17657         file.
17658         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
17659         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
17660         file.
17661         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
17662         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
17663         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
17664         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
17665         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
17666         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
17667         sysdep routines.
17668         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
17669
17670         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
17671         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
17672
17673         * sysdeps/sparc/sparc-ifunc.h: New file.
17674         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
17675         sparc-ifunc.h
17676         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
17677         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
17678         Likewise.
17679         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
17680         Likewise.
17681         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
17682         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
17683         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
17684         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
17685         Likewise.
17686         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
17687         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
17688         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
17689         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
17690         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
17691         Likewise.
17692         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
17693         Likewise.
17694         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
17695         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
17696         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
17697         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
17698         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
17699         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
17700         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
17701         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
17702         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
17703         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
17704         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
17705         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
17706         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
17707         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
17708         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
17709         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
17710         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
17711         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
17712         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
17713         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
17714         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
17715         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
17716         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
17717         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
17718
17719 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
17720
17721         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
17722         scaling.
17723         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17724
17725 2012-03-15  Andreas Jaeger  <aj@suse.de>
17726
17727         [BZ #13852]
17728         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
17729         ieee754/flt-32 implementation for sin, cos and sincos.
17730         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
17731         * sysdeps/i386/fpu/s_cosf.S: Likewise.
17732         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
17733         * sysdeps/i386/fpu/s_sinf.S: Likewise.
17734         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
17735         ieee754/flt-32 implementation for tan.
17736
17737         * math/libm-test.inc (cos_test): Enable some large input tests for
17738         float as well
17739         (sin_test): Likewise.
17740         (sincos_test): Likewise.
17741         (tan_test): Add tests for large input.
17742
17743         * sysdeps/i386/fpu/libm-test-ulps: Update.
17744
17745 2012-03-15  Andreas Jaeger  <aj@suse.de>
17746
17747         [BZ #13658]
17748         * math/libm-test.inc (cos_test): Add more test cases.
17749         (sin_test): Likewise.
17750         (sincos_test): Likewise.
17751
17752 2012-03-15  Andreas Jaeger  <aj@suse.de>
17753
17754         [BZ #13837]
17755         * math/libm-test.inc (cos_test): Add a test case for large input
17756         value.
17757         (sin_test): Likewise.
17758         (sincos_test): Likewise.
17759
17760 2012-03-15  Andreas Jaeger  <aj@suse.de>,
17761         Joseph Myers  <joseph@codesourcery.com>
17762
17763         [BZ #13658]
17764         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
17765         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
17766         * sysdeps/i386/fpu/branred.c: Likewise.
17767         * sysdeps/i386/fpu/dosincos.c: Likewise.
17768         * sysdeps/i386/fpu/mpa.c: Likewise.
17769         * sysdeps/i386/fpu/s_cos.S: Likewise.
17770         * sysdeps/i386/fpu/s_sin.S: Likewise.
17771         * sysdeps/i386/fpu/s_sincos.S: Likewise.
17772         * sysdeps/i386/fpu/sincos32.c: Likewise.
17773
17774         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
17775         Define.
17776         (libc_feupdateenv_53bit): Define.
17777         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
17778         Define.
17779         (libc_feupdateenv_53bit): Define.
17780
17781         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
17782         53 bit (without extend i386 double precision).
17783
17784         * math/libm-test.inc (sincos_test): Add tests for large input.
17785         (sin): Likewise.
17786         (cos): Likewise.
17787
17788         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
17789
17790 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
17791
17792         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17793
17794 2012-03-15  David S. Miller  <davem@davemloft.net>
17795
17796         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
17797         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
17798         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
17799         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
17800         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
17801         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
17802         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
17803         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
17804         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
17805         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
17806         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
17807         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
17808         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
17809         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
17810         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
17811         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
17812         file.
17813         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
17814         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
17815         file.
17816         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
17817         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
17818         file.
17819         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
17820         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
17821         file.
17822         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
17823         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
17824         fmin/fmax sysdep routines.
17825         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
17826
17827 2012-03-14  David S. Miller  <davem@davemloft.net>
17828
17829         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
17830         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
17831         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
17832         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
17833         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
17834         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
17835         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
17836         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
17837         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
17838         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
17839         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
17840         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
17841         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
17842         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
17843         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
17844         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
17845         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
17846         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
17847         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
17848         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
17849         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
17850         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
17851         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
17852         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
17853         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
17854         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
17855         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
17856         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
17857         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
17858         routines.
17859         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
17860         file.
17861         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
17862         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
17863         file.
17864         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
17865         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
17866         file.
17867         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
17868         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
17869         file.
17870         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
17871         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
17872         file.
17873         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
17874         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
17875         file.
17876         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
17877         file.
17878         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
17879         file.
17880         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
17881         file.
17882         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
17883         New file.
17884         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
17885         file.
17886         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
17887         file.
17888         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
17889         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
17890         file.
17891         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
17892         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
17893         file.
17894         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
17895         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
17896         file.
17897         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
17898         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
17899         VIS3 routines.
17900
17901         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
17902         New file.
17903
17904         * sysdeps/sparc/fpu/libm-test-ulps: Update.
17905
17906         * sysdeps/sparc/configure.in: New file.
17907         * sysdeps/sparc/configure: Generate.
17908         * configure.in (libc_cv_sparc_as_vis3): Substitute.
17909         * configure: Regenerate.
17910         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
17911         * config.make.in (have-as-vis3): New.
17912         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
17913         available use -Av9d instead of -Av9a.
17914         * sysdeps/sparc/sparc64/Makefile: Likewise.
17915         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
17916         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
17917         New file.
17918         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
17919         file.
17920         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
17921         New file.
17922         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
17923         file.
17924         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
17925         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
17926         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
17927         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
17928         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
17929
17930         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
17931         fzeros/fnegs to load 0x80000000 into a float register instead of
17932         using the stack.
17933         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
17934
17935 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
17936
17937         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17938         bits/syscall.h.
17939         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
17940         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
17941         ($(inst_includedir)/bits/syscall.h): Remove rule.
17942         ($(objpfx)bits/syscall.d): Include instead of
17943         $(objpfx)syscall-list.d.
17944         (generated): Change syscall-list.h and syscall-list.d to
17945         bits/syscall.h and bits/syscall.d.
17946
17947 2012-03-14  Roland McGrath  <roland@hack.frob.com>
17948
17949         [BZ #13846]
17950         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
17951
17952 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
17953
17954         [BZ #13841]
17955         * math/s_csqrt.c: Include <float.h>.
17956         (__csqrt): Scale large or subnormal inputs.
17957         * math/s_csqrtf.c: Likewise.
17958         * math/s_csqrtl.c: Likewise.
17959         * math/libm-test.inc (csqrt_test): Add more tests.
17960         * sysdeps/i386/fpu/libm-test-ulps: Update.
17961         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17962
17963         [BZ #13840]
17964         * math/libm-test.inc (hypot_test): Add more tests.
17965
17966 2012-03-13  David S. Miller  <davem@davemloft.net>
17967
17968         [BZ #13840]
17969         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
17970         double-precision for the calculation instead of scaling.
17971
17972 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
17973
17974         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
17975         manipulate bits before adding and subtracting TWO52[sx].
17976         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
17977         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
17978         Likewise.
17979         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
17980
17981 2012-03-13  David S. Miller  <davem@davemloft.net>
17982
17983         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
17984         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
17985         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
17986         rtld-global-offsets.h
17987         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
17988
17989         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
17990         large parameters.
17991
17992         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
17993
17994         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
17995         'err' in the ifdef scope in which it is actually used.
17996
17997         * nss/nss_db/db-init.c: Include string.h
17998
17999 2012-03-12  David S. Miller  <davem@davemloft.net>
18000
18001         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
18002         masking out of the most significant byte of random value used.
18003         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
18004         Fix coding style in previous change.
18005
18006         * sysdeps/unix/sysv/linux/kernel-features.h
18007         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
18008         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
18009         expression.
18010         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
18011         later.
18012
18013 2012-03-11  David S. Miller  <davem@davemloft.net>
18014
18015         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
18016         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
18017         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
18018         for 'resultvar' otherwise things get truncated on 64-bit.
18019
18020         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
18021         Fix masking out of the most significant byte of random value used.
18022
18023         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18024
18025 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
18026
18027         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18028
18029 2012-03-09  David S. Miller  <davem@davemloft.net>
18030
18031         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
18032         variables with appropriate CPP guards.
18033         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
18034         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
18035         on resulting framesize and the management of the outregs buffer for pltexit.
18036         Preserve floating point return values across _dl_call_pltexit call.
18037         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
18038         framesize and the management of the outregs buffer for pltexit.
18039         Preserve floating point return values across _dl_call_pltexit
18040         call.
18041         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
18042         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
18043         (print_exit): Fix format string for return register value.
18044
18045 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
18046
18047         * sunrpc/Makefile (others): Add rpcgen.
18048         ($(objpfx)rpcgen): Remove special build rule and dependency on
18049         libc.
18050         * sunrpc/rpcgen.c: New file.
18051
18052 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
18053
18054         [BZ #13673]
18055         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
18056         * stdio-common/bug-vfprintf-nargs.c: Likewise.
18057         * sysdeps/i386/crti.S: Likewise.
18058         * sysdeps/i386/crtn.S: Likewise.
18059         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
18060         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
18061         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
18062         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
18063         * sysdeps/sh/crti.S: Likewise.
18064         * sysdeps/sh/crtn.S: Likewise.
18065         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
18066
18067         [BZ #13673]
18068         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
18069         with URL.
18070         * locale/programs/locfile-kw.gperf: Likewise.
18071         * locale/programs/charmap-kw.h: Regenerated.
18072         * locale/programs/locfile-kw.h: Likewise.
18073
18074         [BZ #13673]
18075         * intl/plural.y: Replace FSF snail mail address with URL.
18076         * intl/plural.c: Regenerated.
18077
18078 2012-03-09  Richard Henderson  <rth@twiddle.net>
18079
18080         * include/math_private.h: Remove file.
18081         * math/math_private.h: Move file ...
18082         * sysdeps/generic/math_private.h: ... here.
18083
18084         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
18085         * sysdeps/powerpc/fpu/math_private.h: Likewise.
18086         * sysdeps/x86_64/fpu/math_private.h: Likewise.
18087
18088         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
18089         and <math_private.h>.
18090         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
18091         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
18092         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
18093         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
18094         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
18095         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
18096         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
18097         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
18098         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
18099         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
18100         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
18101         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
18102         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
18103         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
18104         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
18105         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
18106         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
18107         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
18108         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
18109         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
18110         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
18111         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
18112         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
18113         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
18114         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
18115         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
18116         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
18117         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
18118         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
18119         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
18120         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
18121         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
18122         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
18123         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
18124         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
18125         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
18126         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
18127         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
18128         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
18129         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
18130         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
18131         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
18132         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
18133         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
18134         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
18135         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
18136         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
18137         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
18138         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
18139         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
18140         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
18141         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
18142         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
18143         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
18144         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
18145         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
18146         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
18147         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
18148         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
18149         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
18150         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
18151         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
18152         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
18153         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
18154         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
18155         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
18156         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
18157         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
18158         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
18159         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
18160         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
18161         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
18162         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
18163         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
18164         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
18165         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
18166         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
18167         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
18168         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
18169         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
18170         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
18171         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
18172         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
18173         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
18174         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
18175         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
18176         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
18177         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
18178         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
18179         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
18180         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
18181         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
18182         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
18183         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
18184         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
18185         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
18186         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
18187         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
18188         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
18189         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
18190         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
18191         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
18192         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
18193         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
18194         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
18195         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
18196         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
18197         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
18198         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
18199         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
18200         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
18201         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
18202         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
18203         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
18204         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
18205         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
18206         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
18207         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
18208         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
18209         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
18210         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
18211         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
18212         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
18213         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
18214         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
18215         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
18216         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
18217         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
18218         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
18219         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
18220         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
18221         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
18222         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
18223         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
18224         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
18225         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
18226         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
18227         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
18228         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
18229         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
18230         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
18231         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
18232         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
18233         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
18234         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
18235         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
18236         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
18237         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
18238         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
18239         * sysdeps/ieee754/k_standard.c: Likewise.
18240         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
18241         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
18242         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
18243         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
18244         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
18245         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
18246         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
18247         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
18248         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
18249         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
18250         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
18251         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
18252         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
18253         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
18254         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
18255         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
18256         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
18257         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
18258         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
18259         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
18260         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
18261         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
18262         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
18263         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
18264         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
18265         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
18266         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
18267         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
18268         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
18269         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
18270         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
18271         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
18272         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
18273         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
18274         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
18275         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
18276         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
18277         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
18278         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
18279         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
18280         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
18281         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
18282         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
18283         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
18284         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
18285         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
18286         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
18287         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
18288         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
18289         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
18290         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
18291         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
18292         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
18293         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
18294         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
18295         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
18296         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
18297         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
18298         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
18299         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
18300         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
18301         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
18302         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
18303         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
18304         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
18305         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
18306         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
18307         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
18308         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
18309         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
18310         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
18311         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
18312         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
18313         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
18314         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
18315         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
18316         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
18317         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
18318         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
18319         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
18320         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
18321         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
18322         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
18323         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
18324         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
18325         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
18326         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
18327         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
18328         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
18329         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
18330         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
18331         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
18332         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
18333         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
18334         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
18335         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
18336         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
18337         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
18338         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
18339         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
18340         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
18341         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
18342         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
18343         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
18344         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
18345         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
18346         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
18347         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
18348         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
18349         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
18350         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
18351         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
18352         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
18353         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
18354         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
18355         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
18356         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
18357         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
18358         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
18359         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
18360         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
18361         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
18362         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
18363         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
18364         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
18365         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
18366         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
18367         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
18368         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
18369         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
18370         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
18371         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
18372         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
18373         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
18374         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
18375         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
18376         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
18377         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
18378         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
18379         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
18380         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
18381         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
18382         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
18383         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
18384         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
18385         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
18386         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
18387         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
18388         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
18389         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
18390         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
18391         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
18392         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
18393         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
18394         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
18395         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
18396         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
18397         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
18398         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
18399         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
18400         * sysdeps/ieee754/s_lib_version.c: Likewise.
18401         * sysdeps/ieee754/s_matherr.c: Likewise.
18402         * sysdeps/ieee754/s_signgam.c: Likewise.
18403         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
18404         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
18405         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
18406         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
18407         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
18408         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
18409         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
18410         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
18411         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
18412         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
18413         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
18414         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
18415         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
18416         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
18417         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
18418         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
18419         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
18420         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
18421         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
18422         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
18423         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
18424
18425 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
18426
18427         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
18428         * sunrpc/rpc_main.c: Likewise.
18429         * sunrpc/rpc_svcout.c: Likewise.
18430
18431 2012-03-09  David S. Miller  <davem@davemloft.net>
18432
18433         * include/math_private.h: New file.
18434
18435 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
18436
18437         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
18438         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
18439         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
18440         from <bits/socket_type.h>.
18441         (enum __socket_type): Don't define here.
18442         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
18443         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18444         bits/socket_type.h.
18445
18446         [BZ #13566]
18447         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
18448         checking __USE_GNU.
18449
18450         * Makerules ($(inst_includedir)/%.h): New rule.
18451         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
18452         (install-others): Remove variable setting.
18453         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
18454
18455 2012-03-08  Richard Henderson  <rth@twiddle.net>
18456
18457         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
18458         from macro to inline function; merge with the
18459         !__LIBC_INTERNAL_MATH_INLINES version.
18460         (__ieee754_sqrtf): Likewise.
18461
18462         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
18463         to inline function.
18464         (__rintf, __floor, __floorf): Likewise.
18465
18466         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
18467         macro to inline function.
18468         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
18469
18470         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
18471         not <math/math_private.h>.
18472
18473 2012-03-08  David S. Miller  <davem@davemloft.net>
18474
18475         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
18476         copyright year.
18477         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
18478
18479 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
18480
18481         * resolv/gai_misc.c (handle_requests): Fix struct timespec
18482         normalization.
18483         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
18484         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
18485
18486 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
18487
18488         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
18489         be defined individually, they must be defined as a block.  Define
18490         S for printing a string instead of hidint the different by using a
18491         macro for adding the 'l'.
18492         * stdio-common/tst-fphex-wide.c: Adjust.
18493
18494 2012-03-07  Marek Polacek  <polacek@redhat.com>
18495
18496         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
18497
18498 2012-03-08  Marek Polacek  <polacek@redhat.com>
18499
18500         [BZ #13806]
18501         * stdio-common/Makefile (tests): Add tst-fphex-wide.
18502         * stdio-common/tst-fphex.c: Define a few macros to make the
18503         test reusable.  Use them.
18504         * stdio-common/tst-fphex-wide.c: New file.
18505
18506 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
18507
18508         [BZ #6911]
18509         * manual/macros.texi (gnusystems): New macro.
18510         (nongnusystems): Likewise.
18511         (gnulinuxhurdsystems): Likewise.
18512         (gnuhurdsystems): Likewise..
18513         (gnulinuxsystems): Likewise.
18514         * manual/charset.texi: Use new macros or @theglibc{} to refer to
18515         variants of the GNU system, not "GNU system".
18516         * manual/conf.texi: Likewise.
18517         * manual/errno.texi: Likewise.  Update example of errno macro
18518         expansion.
18519         * manual/filesys.texi: Likewise.
18520         (getumask): Document as specific to GNU/Hurd.
18521         * manual/install.texi: Likewise.  Reword some references to
18522         GNU/Linux.
18523         * manual/intro.texi: Likewise.
18524         * manual/io.texi: Likewise.
18525         (File Name Portability): Detail which constraints are inapplicable
18526         to all GNU systems and which are only inapplicable to GNU/Hurd.
18527         * manual/job.texi: Likewise.
18528         * manual/llio.texi: Likewise.
18529         (O_NOCTTY): Document as present on GNU/Linux.
18530         * manual/maint.texi: Likewise.
18531         * manual/memory.texi: Likewise.
18532         * manual/pattern.texi: Likewise.
18533         * manual/pipe.texi: Likewise.
18534         * manual/process.texi: Likewise.
18535         * manual/resource.texi: Likewise.
18536         (RUSAGE_CHILDREN): Remove statement about specifying a particular
18537         child on GNU/Hurd.
18538         * manual/setjmp.texi: Likewise.
18539         * manual/signal.texi: Likewise.
18540         * manual/startup.texi: Likewise.
18541         * manual/stdio.texi: Likewise.
18542         * manual/terminal.texi: Likewise.
18543         (ONLCR): Document as POSIX.
18544         (OXTABS): Document availability on GNU/Linux as XTABS.
18545         (ONOEOT): Document availability separately from other bits.
18546         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
18547         * manual/time.texi: Likewise.
18548         * manual/users.texi: Likewise.
18549         * INSTALL: Regenerated.
18550         * sysdeps/gnu/errlist.c: Regenerated.
18551
18552         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
18553         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
18554         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
18555         puts.
18556         * configure: Regenerated.
18557
18558 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
18559
18560         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
18561         default includes instead of AC_HEADER_CHECK.
18562         * sysdeps/i386/configure: Regenerated.
18563
18564         [BZ #10716]
18565         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
18566         * math/s_cacoshf.c (__cacoshf): Likewise.
18567         * math/s_cacoshl.c (__cacoshl): Likewise.
18568         * math/s_casinh.c (__casinh): Set signs of result from argument.
18569         * math/s_casinhf.c (__casinhf): Likewise.
18570         * math/s_casinhl.c (__casinhl): Likewise.
18571         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
18572         (casinh_test): Add more tests.
18573         * sysdeps/i386/fpu/libm-test-ulps: Update.
18574         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18575
18576 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
18577
18578         * po/zh_TW.po: Update from translation team.
18579
18580         * login/Makefile (distribute): Remove variable.
18581         * catgets/Makefile: Likewise.
18582         * mach/Makefile: Likewise.
18583         * malloc/Makefile: Likewise.
18584         * misc/Makefile: Likewise.
18585         * iconv/Makefile: Likewise.
18586         * nscd/Makefile: Likewise.
18587         * hurd/Makefile: Likewise.
18588         * manual/Makefile: Likewise.
18589         * locale/Makefile: Likewise.
18590         * intl/Makefile: Likewise.
18591         * conform/Makefile: Likewise.
18592         * nss/Makefile: Likewise.
18593         * time/Makefile: Likewise.
18594         * soft-fp/Makefile: Likewise.
18595         * dirent/Makefile: Likewise.
18596         * gmon/Makefile: Likewise.
18597         * po/Makefile: Likewise.
18598         * rt/Makefile: Likewise.
18599         * socket/Makefile: Likewise.
18600         * math/Makefile: Likewise.
18601         * signal/Makefile: Likewise.
18602         * debug/Makefile: Likewise.
18603         * elf/Makefile: Likewise.
18604         * timezone/Makefile: Likewise.
18605         * stdlib/Makefile: Likewise.
18606         * iconvdata/Makefile: Likewise.
18607         * sunrpc/Makefile: Likewise.
18608         * io/Makefile: Likewise.
18609         * argp/Makefile: Likewise.
18610         * inet/Makefile: Likewise.
18611         * hesiod/Makefile: Likewise.
18612         * grp/Makefile: Likewise.
18613         * csu/Makefile: Likewise.
18614         * wctype/Makefile: Likewise.
18615         * crypt/Makefile: Likewise.
18616         * libio/Makefile: Likewise.
18617         * string/Makefile: Likewise.
18618         * nis/Makefile: Likewise.
18619         * resolv/Makefile: Likewise.
18620         * stdio-common/Makefile: Likewise.
18621         * wcsmbs/Makefile: Likewise.
18622         * dlfcn/Makefile: Likewise.
18623         * posix/Makefile: Likewise.
18624
18625         [BZ #6959]
18626         * timezone/Makefile: Don't install timezone files, just the programs
18627         and scripts.
18628
18629 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
18630
18631         * nss/databases.def: Add missing gshadow entry.
18632
18633         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
18634
18635 2012-03-06  Marek Polacek  <polacek@redhat.com>
18636
18637         [BZ #13726]
18638         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
18639         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
18640         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
18641         * stdio-common/tst-long-dbl-fphex.c: New file.
18642
18643 2012-03-06  David S. Miller  <davem@davemloft.net>
18644
18645         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
18646         (set_obp_int): New function.
18647         (get_obp_int): New function.
18648         (__get_clockfreq_via_dev_openprom): Likewise.
18649         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
18650         Avoid unused variable warnings on 'val' and use builtin_expect.
18651         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
18652         __builtin_expect.
18653         (INLINE_CLONE_SYSCALL): Likewise.
18654
18655 2012-03-05  David S. Miller  <davem@davemloft.net>
18656
18657         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18658
18659 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
18660
18661         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18662
18663         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
18664         only for |x| >= 40.
18665         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
18666
18667 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
18668
18669         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
18670         Replace gettimeofday with __vdso_gettimeofday.
18671
18672         * sysdeps/unix/sysv/linux/x86_64/init-first.c
18673         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
18674         __vdso_clock_gettime and __vdso_getcpu.
18675
18676         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
18677         time with __vdso_time.
18678
18679 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
18680
18681         * manual/lang.texi (size_t): Note types to which size_t may be
18682         equivalent with the GNU C Library, but do not describe when
18683         differences between them are significant.
18684
18685 2012-03-05  Andreas Jaeger  <aj@suse.de>
18686
18687         * sysdeps/i386/fpu/libm-test-ulps: Update.
18688
18689 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
18690
18691         [BZ #3976]
18692         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
18693         (__ieee754_pow): Save and restore rounding mode and use
18694         round-to-nearest for main computations.
18695         * math/libm-test.inc (pow_test_tonearest): New function.
18696         (pow_test_towardzero): Likewise.
18697         (pow_test_downward): Likewise.
18698         (pow_test_upward): Likewise.
18699         (main): Call the new functions.
18700         * sysdeps/i386/fpu/libm-test-ulps: Update.
18701         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18702
18703         [BZ #3976]
18704         * math/libm-test.inc (cosh_test_tonearest): New function.
18705         (cosh_test_towardzero): Likewise.
18706         (cosh_test_downward): Likewise.
18707         (cosh_test_upward): Likewise.
18708         (sinh_test_tonearest): Likewise.
18709         (sinh_test_towardzero): Likewise.
18710         (sinh_test_downward): Likewise.
18711         (sinh_test_upward): Likewise.
18712         (main): Call the new functions.
18713         * sysdeps/i386/fpu/libm-test-ulps: Update.
18714         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18715
18716 2012-03-05  Tom de Vries  <tom@codesourcery.com>
18717
18718         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
18719         default stack guard is set in last bytes.
18720         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
18721
18722 2012-03-05  Kees Cook  <keescook@chromium.org>
18723
18724         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
18725
18726         [BZ #13656]
18727         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
18728         possibly allocate from heap instead of stack.
18729         * stdio-common/bug-vfprintf-nargs.c: New file.
18730         * stdio-common/Makefile (tests): Add nargs overflow test.
18731
18732 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
18733
18734         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18735
18736 2012-03-03  Marek Polacek  <polacek@redhat.com>
18737
18738         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
18739         * math/math_private.h: Likewise.
18740         * stdlib/tst-strtod.c: Likewise.
18741         * sysdeps/i386/i486/bits/atomic.h: Likewise.
18742         * sysdeps/x86_64/bits/atomic.h: Likewise.
18743
18744 2012-03-02  David S. Miller  <davem@davemloft.net>
18745
18746         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
18747         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
18748         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
18749         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
18750         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
18751         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
18752         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
18753         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
18754
18755 2012-03-02  Roland McGrath  <roland@hack.frob.com>
18756
18757         [BZ #13792]
18758         * manual/examples/README: New file, says the example source files
18759         can be used under GPL>=2.
18760         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
18761         line containing just "*/".
18762         * manual/examples/add.c: Add copyright header (GPL>=2).
18763         * manual/examples/argp-ex1.c: Likewise.
18764         * manual/examples/argp-ex2.c: Likewise.
18765         * manual/examples/argp-ex3.c: Likewise.
18766         * manual/examples/argp-ex4.c: Likewise.
18767         * manual/examples/atexit.c: Likewise.
18768         * manual/examples/db.c: Likewise.
18769         * manual/examples/dir.c: Likewise.
18770         * manual/examples/dir2.c: Likewise.
18771         * manual/examples/execinfo.c: Likewise.
18772         * manual/examples/filecli.c: Likewise.
18773         * manual/examples/filesrv.c: Likewise.
18774         * manual/examples/fmtmsgexpl.c: Likewise.
18775         * manual/examples/genpass.c: Likewise.
18776         * manual/examples/inetcli.c: Likewise.
18777         * manual/examples/inetsrv.c: Likewise.
18778         * manual/examples/isockad.c: Likewise.
18779         * manual/examples/longopt.c: Likewise.
18780         * manual/examples/memopen.c: Likewise.
18781         * manual/examples/memstrm.c: Likewise.
18782         * manual/examples/mkfsock.c: Likewise.
18783         * manual/examples/mkisock.c: Likewise.
18784         * manual/examples/mygetpass.c: Likewise.
18785         * manual/examples/pipe.c: Likewise.
18786         * manual/examples/popen.c: Likewise.
18787         * manual/examples/rprintf.c: Likewise.
18788         * manual/examples/search.c: Likewise.
18789         * manual/examples/select.c: Likewise.
18790         * manual/examples/setjmp.c: Likewise.
18791         * manual/examples/sigh1.c: Likewise.
18792         * manual/examples/sigusr.c: Likewise.
18793         * manual/examples/stpcpy.c: Likewise.
18794         * manual/examples/strdupa.c: Likewise.
18795         * manual/examples/strftim.c: Likewise.
18796         * manual/examples/strncat.c: Likewise.
18797         * manual/examples/subopt.c: Likewise.
18798         * manual/examples/swapcontext.c: Likewise.
18799         * manual/examples/termios.c: Likewise.
18800         * manual/examples/testopt.c: Likewise.
18801         * manual/examples/testpass.c: Likewise.
18802         * manual/examples/timeval_subtract.c: Likewise.
18803
18804         [BZ #13792]
18805         * manual/time.texi (Elapsed Time): Move timeval_subtract example
18806         function to ...
18807         * manual/timeval_subtract.c.texi: ... here, new file.
18808
18809 2012-03-02  David S. Miller  <davem@davemloft.net>
18810
18811         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
18812
18813 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
18814
18815         [BZ #3976]
18816         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
18817         (__sin): Save and restore rounding mode and use round-to-nearest
18818         for all computations.
18819         (__cos): Save and restore rounding mode and use round-to-nearest
18820         for all computations.
18821         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
18822         <fenv.h>.
18823         (tan): Save and restore rounding mode and use round-to-nearest for
18824         all computations.
18825         * math/libm-test.inc (cos_test_tonearest): New function.
18826         (cos_test_towardzero): Likewise.
18827         (cos_test_downward): Likewise.
18828         (cos_test_upward): Likewise.
18829         (sin_test_tonearest): Likewise.
18830         (sin_test_towardzero): Likewise.
18831         (sin_test_downward): Likewise.
18832         (sin_test_upward): Likewise.
18833         (tan_test_tonearest): Likewise.
18834         (tan_test_towardzero): Likewise.
18835         (tan_test_downward): Likewise.
18836         (tan_test_upward): Likewise.
18837         (main): Call the new functions.
18838         * sysdeps/i386/fpu/libm-test-ulps: Update.
18839         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18840
18841         [BZ #10135]
18842         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
18843         small n, then large n, before computing and testing k+n.
18844         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
18845         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
18846         Likewise.
18847         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
18848         Likewise.
18849         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
18850         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
18851         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
18852         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
18853         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
18854         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
18855         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
18856         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
18857         * math/libm-test.inc (scalbn_test): Add more tests.
18858         (scalbln_test): Likewise.
18859
18860         * manual/filesys.texi (mode_t): Describe constraints on size and
18861         signedness, not exact equivalence to a particular type.
18862         (ino_t): Likewise.
18863         (ino64_t): Likewise.
18864         (dev_t): Likewise.
18865         (nlink_t): Likewise.
18866         (blkcnt_t): Likewise.
18867         (blkcnt64_t): Likewise.
18868         * manual/llio.texi (off_t): Likewise.
18869
18870         [BZ #3976]
18871         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
18872         (__ieee754_exp): Save and restore rounding mode and use
18873         round-to-nearest for all computations.
18874         * math/libm-test.inc (exp_test_tonearest): New function.
18875         (exp_test_towardzero): Likewise.
18876         (exp_test_downward): Likewise.
18877         (exp_test_upward): Likewise.
18878         (main): Call the new functions.
18879         * sysdeps/i386/fpu/libm-test-ulps: Update.
18880         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18881
18882 2012-03-01  Chris Demetriou  <cgd@google.com>
18883
18884         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
18885         have predictable order.
18886
18887 2012-03-01  David S. Miller  <davem@davemloft.net>
18888
18889         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
18890
18891         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
18892         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
18893         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
18894         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
18895
18896         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
18897         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
18898         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
18899         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
18900         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
18901         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
18902         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
18903         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
18904         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
18905
18906         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18907
18908         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
18909         * sysdeps/sparc/fpu/libm-test-ulps: to here.
18910         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
18911
18912         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
18913         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
18914         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
18915         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
18916         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
18917         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
18918         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
18919         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
18920         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
18921         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
18922         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
18923         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
18924         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
18925         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
18926         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
18927         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
18928         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
18929         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
18930         * sysdeps/sparc/elf/configure: Regenerated.
18931
18932 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
18933
18934         * configure.in (AS, LD): Require binutils 2.20 or later.
18935         * configure: Regenerated.
18936         * manual/install.texi (Tools for Compilation): Give binutils 2.20
18937         as required minimum version.
18938         * INSTALL: Regenerated.
18939
18940         [BZ #2541]
18941         [BZ #4108]
18942         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
18943         before squaring exponent.
18944         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
18945         bottom long double and 27 bits of top long double before squaring
18946         exponent.
18947         * math/libm-test.inc (erfc_test): Add more tests.
18948         * sysdeps/i386/fpu/libm-test-ulps: Update.
18949         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
18950         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18951
18952 2012-03-01  Kai Tietz  <ktietz@redhat.com>
18953
18954         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
18955         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
18956         containing bit-fields.
18957         * soft-fp/extended.h (_FP_UNION_E): Likewise.
18958         * soft-fp/single.h (_FP_UNION_S): Likewise.
18959         * soft-fp/double.h (_FP_UNION_D): Likewise.
18960
18961 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
18962
18963         [BZ #13786]
18964         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
18965         not include ../strcmp.S.
18966         [USE_AS_STRNCASECMP_L]: Likewise.
18967         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
18968         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
18969         * sysdeps/i386/i686/multiarch/strncase_l-c.c
18970         (__strncasecmp_l_ia32): Define as alias to
18971         __strncasecmp_l_nonascii.
18972
18973         [BZ #5794]
18974         * math/libm-test.inc (expm1_test): Add test for bug 5794.
18975         * sysdeps/i386/fpu/libm-test-ulps: Update.
18976         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18977
18978         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
18979         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18980
18981 2012-02-29  Jeff Law  <law@redhat.com>
18982
18983         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
18984         out of bounds read.
18985
18986 2012-02-29  Marek Polacek  <polacek@redhat.com>
18987
18988         [BZ #13706]
18989         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
18990         * elf/Makefile: Add rules to run tst-unused-dep.out.
18991
18992 2012-02-28  David S. Miller  <davem@davemloft.net>
18993
18994         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
18995         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
18996         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
18997         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
18998         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
18999         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
19000
19001 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
19002
19003         * math/libm-test.inc (llround_test): Move one test from
19004         lround_test.  Use TEST_f_L in moved test.
19005         (lround_test): Move misplaced test to llround_test.  Add testcase
19006         from bug 2561.
19007
19008 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
19009
19010         * sysdeps/x86_64/fpu/e_expf.S: New file.
19011         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
19012
19013 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
19014
19015         [BZ #13637]
19016         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
19017         of remain_len that may cause incomplete multi-byte character and
19018         false match.
19019         * posix/bug-regex33.c: New file.
19020         * posix/Makefile (tests): Add bug-regex33.
19021
19022 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
19023
19024         * manual/macros.texi: New file.
19025         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
19026         * manual/libc.texinfo: Include macros.texi.
19027         * manual/creatute.texi: Likewise.
19028         * manual/install.texi: Likewise.
19029         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
19030         @glibcadj{} in references to the GNU C Library.
19031         * manual/charset.texi: Likewise.
19032         * manual/conf.texi: Likewise.
19033         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
19034         when not using those macros.
19035         * manual/creature.texi: Likewise.
19036         * manual/crypt.texi: Likewise.
19037         * manual/errno.texi: Likewise.
19038         * manual/filesys.texi: Likewise.
19039         * manual/header.texi: Likewise.
19040         * manual/install.texi: Likewise.
19041         * manual/intro.texi: Likewise.
19042         * manual/io.texi: Likewise.
19043         * manual/job.texi: Likewise.
19044         * manual/lang.texi: Likewise.
19045         * manual/libc.texiinfo: Likewise.
19046         * manual/llio.texi: Likewise.
19047         * manual/locale.texi: Likewise.
19048         * manual/maint.texi: Likewise.
19049         * manual/math.texi: Likewise.
19050         * manual/memory.texi: Likewise.
19051         * manual/message.texi: Likewise.
19052         * manual/nss.texi: Likewise.
19053         * manual/pattern.texi: Likewise.
19054         * manual/process.texi: Likewise.
19055         * manual/resource.texi: Likewise.
19056         * manual/search.texi: Likewise.
19057         * manual/setjmp.texi: Likewise.
19058         * manual/signal.texi: Likewise.
19059         * manual/socket.texi: Likewise.
19060         * manual/startup.texi: Likewise.
19061         * manual/stdio.texi: Likewise.
19062         * manual/string.texi: Likewise.
19063         * manual/sysinfo.texi: Likewise.
19064         * manual/syslog.texi: Likewise.
19065         * manual/terminal.texi: Likewise.
19066         * manual/time.texi: Likewise.
19067         * manual/users.texi: Likewise.
19068         * INSTALL: Regenerated.
19069         * NOTES: Regenerated.
19070         * sysdeps/gnu/errlist.c: Regenerated.
19071
19072 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
19073
19074         * include/dirent.h: Include <dirstream.h> before
19075         <dirent/dirent.h>.
19076
19077 2012-02-28  David S. Miller  <davem@davemloft.net>
19078
19079         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
19080         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
19081         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
19082         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
19083
19084 2012-02-27  David S. Miller  <davem@davemloft.net>
19085
19086         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
19087         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
19088         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
19089         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
19090
19091         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
19092         frame pointer instead of stack pointer relative arg slot.
19093         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
19094         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
19095         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
19096
19097 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
19098
19099         [BZ #3992]
19100         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
19101
19102 2012-02-27  David S. Miller  <davem@davemloft.net>
19103
19104         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
19105         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
19106         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
19107         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
19108         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
19109         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
19110         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
19111         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
19112
19113 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
19114
19115         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
19116         later.  Allow versions 5-9.
19117         * configure: Regenerated.
19118         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
19119         required minimum version and 4.6 as recommended version.  Do not
19120         mention bugs in GCC 2.7 and 2.8.
19121         * INSTALL: Regenerated.
19122
19123 2012-02-27  David S. Miller  <davem@davemloft.net>
19124
19125         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
19126         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
19127         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
19128         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
19129         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
19130         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
19131         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
19132         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
19133
19134         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
19135         manipulate bits before adding and subtracting TWO112[sx].
19136         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
19137
19138 2012-02-27  Roland McGrath  <roland@hack.frob.com>
19139
19140         [BZ #13775]
19141         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
19142         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
19143         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
19144         being in POSIX, because they are in 1003.1-2008.
19145
19146         * rt/tst-aio.c: Include <fcntl.h>.
19147         * rt/tst-aio7.c: Likewise.
19148         * rt/tst-aio64.c: Likewise.
19149
19150         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
19151
19152 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
19153
19154         * manual/install.texi (--with-headers): Describe headers as
19155         interface headers, not private headers.
19156         (Specific advice for GNU/Linux systems): Describe use of headers
19157         from "make headers_install", not private headers from older
19158         kernels.
19159         * INSTALL: Regenerated.
19160         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
19161         Change to 2.6.19.
19162         * sysdeps/unix/sysv/linux/configure: Regenerated.
19163
19164         * manual/llio.texi (fclean): Remove documentation.
19165
19166         * manual/Makefile (libc-texi-generated): New variable.  Include
19167         version.texi.
19168         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
19169         $(libc-texi-generated), not duplicated list of files.
19170         (version.texi, stamp-version): New rules.
19171         (realclean): Remove $(libc-texi-generated), not individual files
19172         from that list.  Do not remove dir-add.texinfo.
19173         * manual/libc.texinfo: Comment out uses of edition numbers and
19174         references to printed manual.  Remove last-updated dates.
19175         (EDITION): Comment out.
19176         (ISBN): Likewise.
19177         (VERSION, UPDATED): Remove.
19178         (version.texi): Include.
19179
19180 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
19181
19182         * sysdeps/posix/spawni.c: Include <signal.h>.
19183         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
19184         * sysdeps/pthread/aio_fsync.c: Likewise.
19185
19186 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
19187
19188         * conform/Makefile (tests): Run only when not cross-compiling and
19189         when fast-check is not defined.
19190
19191         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
19192         * conform/data/limits.h-data: Fixes for POSIX2008.
19193         * conform/run-conformtest.sh: Run all tests.
19194         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
19195         headers.
19196         * include/bits/dlfcn.h: Likewise.
19197         * include/langinfo.h: Likewise.
19198         * include/monetary.h: Likewise.
19199         * include/sys/poll.h: Likewise.
19200
19201         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
19202         for __USE_GNU.
19203         * posix/spawn.h: Define __need_sigset_t.
19204         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
19205         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
19206         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
19207         to get sigevent_t only.
19208         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
19209         only for __USE_GNU.
19210         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
19211         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
19212         process_vm_writev only for __USE_GNU.
19213         * termios/termios.h: Declare tcgetsid also for POSIX2008.
19214
19215         * conform/Makefile: For now ignore errors from run-conformtest.
19216         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
19217         POSIX to avoid namespace pollution.  Don't prepend headers.
19218         * conform/data/aio.h-data: Fixes for POSIX testing.
19219         * conform/data/fcntl.h-data: Likewise.
19220         * conform/data/glob.h-data: Likewise.
19221         * conform/data/grp.h-data: Likewise.
19222         * conform/data/pthread.h-data: Likewise.
19223         * conform/data/pwd.h-data: Likewise.
19224         * conform/data/signal.h-data: Likewise.
19225         * conform/data/spawn.h-data: Likewise.
19226         * conform/data/stdio.h-data: Likewise.
19227         * conform/data/stdlib.h-data: Likewise.
19228         * conform/data/stropts.h-data: Likewise.
19229         * conform/data/sys/mman.h-data: Likewise.
19230         * conform/data/sys/stat.h-data: Likewise.
19231         * conform/data/sys/types.h-data: Likewise.
19232         * conform/data/sys/wait.h-data: Likewise.
19233         * conform/data/time.h-data: Likewise.
19234         * conform/data/unistd.h-data: Likewise.
19235         * conform/data/utime.h-data: Likewise.
19236
19237         * io/sys/stat.h: fchmod was always in POSIX.
19238         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
19239         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
19240         * rt/aio.h: Define __need_timespec before including <time.h>.
19241         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
19242         struct.  Add forward declaration of pthread_attr_t and use it in
19243         sigevent.
19244         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
19245         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
19246         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
19247         always remove CLK_TCK definition.
19248
19249 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
19250
19251         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
19252
19253 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
19254
19255         * conform/run-conformtest.sh: New file.
19256         * conform/Makefile: Run run-conformtest for tests.
19257         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
19258         support.
19259
19260         * conform/data/uchar.h-data: New file.
19261         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
19262         * conform/data/arpa/inet.h-data: Likewise.
19263         * conform/data/assert.h-data: Likewise.
19264         * conform/data/complex.h-data: Likewise.
19265         * conform/data/cpio.h-data: Likewise.
19266         * conform/data/ctype.h-data: Likewise.
19267         * conform/data/dirent.h-data: Likewise.
19268         * conform/data/dlfcn.h-data: Likewise.
19269         * conform/data/errno.h-data: Likewise.
19270         * conform/data/fcntl.h-data: Likewise.
19271         * conform/data/float.h-data: Likewise.
19272         * conform/data/fmtmsg.h-data: Likewise.
19273         * conform/data/fnmatch.h-data: Likewise.
19274         * conform/data/ftw.h-data: Likewise.
19275         * conform/data/glob.h-data: Likewise.
19276         * conform/data/grp.h-data: Likewise.
19277         * conform/data/iconv.h-data: Likewise.
19278         * conform/data/inttypes.h-data: Likewise.
19279         * conform/data/langinfo.h-data: Likewise.
19280         * conform/data/libgen.h-data: Likewise.
19281         * conform/data/limits.h-data: Likewise.
19282         * conform/data/locale.h-data: Likewise.
19283         * conform/data/math.h-data: Likewise.
19284         * conform/data/monetary.h-data: Likewise.
19285         * conform/data/mqueue.h-data: Likewise.
19286         * conform/data/ndbm.h-data: Likewise.
19287         * conform/data/net/if.h-data: Likewise.
19288         * conform/data/netdb.h-data: Likewise.
19289         * conform/data/netinet/in.h-data: Likewise.
19290         * conform/data/nl_types.h-data: Likewise.
19291         * conform/data/poll.h-data: Likewise.
19292         * conform/data/pthread.h-data: Likewise.
19293         * conform/data/pwd.h-data: Likewise.
19294         * conform/data/regex.h-data: Likewise.
19295         * conform/data/sched.h-data: Likewise.
19296         * conform/data/search.h-data: Likewise.
19297         * conform/data/semaphore.h-data: Likewise.
19298         * conform/data/setjmp.h-data: Likewise.
19299         * conform/data/signal.h-data: Likewise.
19300         * conform/data/spawn.h-data: Likewise.
19301         * conform/data/stdarg.h-data: Likewise.
19302         * conform/data/stdio.h-data: Likewise.
19303         * conform/data/stdlib.h-data: Likewise.
19304         * conform/data/string.h-data: Likewise.
19305         * conform/data/strings.h-data: Likewise.
19306         * conform/data/stropts.h-data: Likewise.
19307         * conform/data/sys/ipc.h-data: Likewise.
19308         * conform/data/sys/mman.h-data: Likewise.
19309         * conform/data/sys/msg.h-data: Likewise.
19310         * conform/data/sys/resource.h-data: Likewise.
19311         * conform/data/sys/select.h-data: Likewise.
19312         * conform/data/sys/sem.h-data: Likewise.
19313         * conform/data/sys/shm.h-data: Likewise.
19314         * conform/data/sys/socket.h-data: Likewise.
19315         * conform/data/sys/stat.h-data: Likewise.
19316         * conform/data/sys/statvfs.h-data: Likewise.
19317         * conform/data/sys/time.h-data: Likewise.
19318         * conform/data/sys/timeb.h-data: Likewise.
19319         * conform/data/sys/times.h-data: Likewise.
19320         * conform/data/sys/types.h-data: Likewise.
19321         * conform/data/sys/uio.h-data: Likewise.
19322         * conform/data/sys/un.h-data: Likewise.
19323         * conform/data/sys/utsname.h-data: Likewise.
19324         * conform/data/sys/wait.h-data: Likewise.
19325         * conform/data/syslog.h-data: Likewise.
19326         * conform/data/tar.h-data: Likewise.
19327         * conform/data/termios.h-data: Likewise.
19328         * conform/data/utime.h-data: Likewise.
19329         * conform/data/utmpx.h-data: Likewise.
19330         * conform/data/varargs.h-data: Likewise.
19331         * conform/data/wchar.h-data: Likewise.
19332         * conform/data/wctype.h-data: Likewise.
19333         * conform/data/wordexp.h-data: Likewise.
19334
19335         * include/stropts.h: New file.
19336         * include/uchar.h: New file.
19337         * include/aio.h: Changes to allow conformtest.pl to use the headers.
19338         * include/assert.h: Likewise.
19339         * include/ctype.h: Likewise.
19340         * include/dirent.h: Likewise.
19341         * include/dlfcn.h: Likewise.
19342         * include/fcntl.h: Likewise.
19343         * include/fnmatch.h: Likewise.
19344         * include/glob.h: Likewise.
19345         * include/grp.h: Likewise.
19346         * include/libio.h: Likewise.
19347         * include/locale.h: Likewise.
19348         * include/math.h: Likewise.
19349         * include/net/if.h: Likewise.
19350         * include/netdb.h: Likewise.
19351         * include/netinet/in.h: Likewise.
19352         * include/pthread.h: Likewise.
19353         * include/pwd.h: Likewise.
19354         * include/regex.h: Likewise.
19355         * include/sched.h: Likewise.
19356         * include/search.h: Likewise.
19357         * include/setjmp.h: Likewise.
19358         * include/signal.h: Likewise.
19359         * include/stdio.h: Likewise.
19360         * include/stdlib.h: Likewise.
19361         * include/string.h: Likewise.
19362         * include/sys/cdefs.h: Likewise.
19363         * include/sys/mman.h: Likewise.
19364         * include/sys/msg.h: Likewise.
19365         * include/sys/resource.h: Likewise.
19366         * include/sys/select.h: Likewise.
19367         * include/sys/socket.h: Likewise.
19368         * include/sys/stat.h: Likewise.
19369         * include/sys/statvfs.h: Likewise.
19370         * include/sys/time.h: Likewise.
19371         * include/sys/times.h: Likewise.
19372         * include/sys/uio.h: Likewise.
19373         * include/sys/utsname.h: Likewise.
19374         * include/sys/wait.h: Likewise.
19375         * include/termios.h: Likewise.
19376         * include/time.h: Likewise.
19377         * include/ulimit.h: Likewise.
19378         * include/unistd.h: Likewise.
19379         * include/utime.h: Likewise.
19380         * include/wchar.h: Likewise.
19381         * include/wctype.h: Likewise.
19382         * include/wordexp.h: Likewise.
19383
19384         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
19385
19386         * time/time.h: TIME_UTC must be a macro.
19387         Make timespec_get available for ISO C11 only as well.
19388
19389 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
19390
19391         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
19392         Reported by Peng Haitao <penght@cn.fujitsu.com>.
19393
19394 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
19395
19396         * configure.in: Use -o not -a in test for unsupported multi-arch.
19397
19398 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
19399
19400         * manual/texinfo.tex: Update to version 2012-01-19.16.
19401
19402 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
19403
19404         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
19405
19406 2012-02-24  Roland McGrath  <roland@hack.frob.com>
19407
19408         [BZ #13738]
19409         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
19410         * manual/fdl-1.3.texi: New file.
19411         * manual/fdl-1.1.texi: File removed.
19412
19413         [BZ #13738]
19414         * manual/libc.texinfo (FDL_VERSION): New @set.
19415         Use it for mention of FDL in cover text.
19416         (Documentation License): Use it in @include file name.
19417
19418 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
19419             Roland McGrath  <roland@hack.frob.com>
19420
19421         [BZ #5461]
19422         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
19423         not LONG_LONG_MAX and LONG_LONG_MIN.
19424         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
19425         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
19426         name.
19427         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
19428
19429 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
19430
19431         [BZ #2547]
19432         [BZ #11365]
19433         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
19434         manipulate bits before adding and subtracting TWO23[sx].
19435         * math/libm-test.inc (nearbyint_test): Add more tests.
19436
19437 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
19438
19439         [BZ #2548]
19440         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
19441         bits before adding and subtracting TWO23[sx].
19442         * math/libm-test.inc (rint_test): Add more tests.
19443         (rint_test_tonearest): Likewise.
19444         (rint_test_towardzero): Likewise.
19445         (rint_test_downward): Likewise.
19446         (rint_test_upward: Likewise.
19447
19448 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
19449
19450         [BZ #10110]
19451         * include/stdc-predef.h: New file.  Extracted from features.h.
19452         * include/features.h: Include stdc-predef.h.
19453         * Makefile (headers): Add stdc-predef.h.
19454         * CONFORMANCE (Compiler limitations): Update.
19455
19456 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
19457
19458         * manual/libc.texinfo (VERSION, UPDATED): Revert.
19459
19460 2012-02-21  David S. Miller  <davem@davemloft.net>
19461
19462         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
19463         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
19464
19465 2012-02-20  David S. Miller  <davem@davemloft.net>
19466
19467         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
19468         using a normal save/restore sequence, rather than allocating a
19469         dummy stack frame just to store a frame pointer and restore.
19470         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
19471
19472 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
19473
19474         * manual/install.texi: Fix stray word in line-wrapped comment.
19475
19476 2012-02-20  David S. Miller  <davem@davemloft.net>
19477
19478         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
19479         both binutils and gcc support GOTDATA.
19480
19481         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
19482         "rd %pc" in the PIC register setup sequences.
19483
19484         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
19485         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
19486         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
19487         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
19488         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
19489         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
19490         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
19491         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
19492         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
19493         (SYSCALL_ERROR_HANDLER): Likewise.
19494         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
19495         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
19496         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
19497         (SYSCALL_ERROR_HANDLER): Likewise.
19498
19499         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
19500         (HAVE_GCC_GOTDATA): New.
19501         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
19502         relocation support in both binutils and gcc.
19503         * sysdeps/sparc/elf/configure: Regenerate.
19504
19505         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
19506         * sysdeps/sparc/sparc32/elf/configure: Delete.
19507         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
19508         * sysdeps/sparc/sparc64/elf/configure: Delete.
19509         * sysdeps/sparc/elf/configure.in: New file.
19510         * sysdeps/sparc/elf/configure: Generate.
19511
19512         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
19513         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
19514         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
19515         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
19516         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
19517
19518 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
19519
19520         * manual/install.texi: Do not mention specific glibc version
19521         numbers.
19522         * manual/libc.texinfo (VERSION, UPDATED): Update.
19523         (@copying): Use @copyright{} and range of years.
19524
19525 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
19526
19527         [BZ #13695]
19528         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
19529         [crti.S not in sysdirs] (generated): Do not append.
19530         [crti.S not in sysdirs] (omit-deps): Likewise.
19531         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
19532         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
19533         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
19534         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
19535         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
19536         Likewise.
19537         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
19538         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
19539         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
19540         * csu/defs.awk: Remove file.
19541         * sysdeps/generic/initfini.c: Likewise.
19542         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
19543         variable.
19544         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
19545         Likewise.
19546
19547 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
19548
19549         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
19550         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
19551         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
19552         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
19553         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
19554         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
19555         <bits/epoll.h>.
19556         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
19557         (__EPOLL_PACKED): Define to empty if not defined by
19558         <bits/epoll.h>.
19559         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
19560         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
19561         bits/epoll.h.
19562
19563 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
19564
19565         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
19566         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
19567         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
19568         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
19569         <bits/timerfd.h>.
19570         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
19571         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
19572         bits/timerfd.h.
19573
19574 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
19575
19576         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
19577         in C locale.
19578         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
19579         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
19580         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
19581         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19582
19583 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
19584
19585         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
19586         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
19587
19588 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
19589
19590         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
19591         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
19592         defined.
19593         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
19594         Likewise.
19595         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
19596         entry for 2.16.
19597
19598 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
19599
19600         * math/w_acos.c: Use non-signaling floating-point comparisons.
19601         * math/w_acosf.c: Likewise.
19602         * math/w_acosh.c: Likewise.
19603         * math/w_acoshf.c: Likewise.
19604         * math/w_acoshl.c: Likewise.
19605         * math/w_acosl.c: Likewise.
19606         * math/w_asin.c: Likewise.
19607         * math/w_asinf.c: Likewise.
19608         * math/w_asinl.c: Likewise.
19609         * math/w_atanh.c: Likewise.
19610         * math/w_atanhf.c: Likewise.
19611         * math/w_atanhl.c: Likewise.
19612         * math/w_exp2.c: Likewise.
19613         * math/w_exp2f.c: Likewise.
19614         * math/w_exp2l.c: Likewise.
19615         * math/w_j0.c: Likewise.
19616         * math/w_j0f.c: Likewise.
19617         * math/w_j0l.c: Likewise.
19618         * math/w_j1.c: Likewise.
19619         * math/w_j1f.c: Likewise.
19620         * math/w_j1l.c: Likewise.
19621         * math/w_jn.c: Likewise.
19622         * math/w_jnf.c: Likewise.
19623         * math/w_log.c: Likewise.
19624         * math/w_log10.c: Likewise.
19625         * math/w_log10f.c: Likewise.
19626         * math/w_log10l.c: Likewise.
19627         * math/w_log2.c: Likewise.
19628         * math/w_log2f.c: Likewise.
19629         * math/w_log2l.c: Likewise.
19630         * math/w_logf.c: Likewise.
19631         * math/w_logl.c: Likewise.
19632         * math/w_sqrt.c: Likewise.
19633         * math/w_sqrtf.c: Likewise.
19634         * math/w_sqrtl.c: Likewise.
19635         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
19636         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
19637         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
19638         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
19639         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
19640
19641 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
19642
19643         [BZ #9739]
19644         * manual/string.texi (strnlen): Use correct parameter name in
19645         equivalent expression.
19646
19647 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
19648
19649         [BZ #11174]
19650         * manual/users.texi (seteuid): Consistently use neweuid for
19651         argument name.
19652
19653 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
19654
19655         [BZ #13704]
19656         * manual/nss.texi (Services in the NSS configuration): Correct
19657         list of services in example configuration file.
19658
19659 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
19660
19661         [BZ #11322]
19662         * manual/arith.texi: Remove statements about negative zero
19663         behaving identically to zero.
19664
19665 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
19666
19667         [BZ #5993]
19668         * manual/install.texi: Do not document upgrading from libc5.
19669
19670 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
19671
19672         [BZ #4596]
19673         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
19674
19675 2012-02-18  David S. Miller  <davem@davemloft.net>
19676
19677         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
19678         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
19679         %o7 across the call.
19680         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
19681         instead.
19682         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
19683         SETUP_PIC_REG_LEAF.
19684         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
19685         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
19686         * sysdeps/sparc/crtn.S: Likewise.
19687
19688 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
19689
19690         * aout/Makefile: Remove.
19691
19692 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
19693
19694         [BZ #13058]
19695         * manual/examples/argp-ex1.c (main): Format definition in GNU
19696         style.
19697         * manual/examples/argp-ex2.c (main): Likewise.
19698         * manual/examples/argp-ex3.c (main): Likewise.
19699         * manual/examples/argp-ex4.c (main): Likewise.
19700         * manual/examples/longopt.c (main): Use new-style prototype
19701         definition.
19702         * manual/examples/strncat.c (main): Specify return type and use
19703         (void) for arguments.
19704         * manual/examples/subopt.c (main): Use char **argv argument.
19705
19706 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
19707
19708         [BZ #5077]
19709         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
19710         rounding modes.
19711
19712 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
19713
19714         [BZ #6907]
19715         * manual/string.texi (strchr): Change when strchrnul is
19716         recommended.
19717
19718 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
19719
19720         [BZ #174]
19721         * manual/locale.texi (setlocale): Document LOCPATH.
19722
19723 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
19724
19725         [BZ #10210]
19726         * manual/process.texi (execle): Move @dots{} before last argument.
19727
19728 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
19729
19730         [BZ #12047]
19731         * manual/charset.texi (Generic Charset Conversion): Fix typo
19732         (LC_TYPE -> LC_CTYPE).
19733
19734 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
19735
19736         [BZ #5805]
19737         * manual/arith.texi (scalbn): Use @var{} on parameter names.
19738         (scalbnf): Likewise.
19739         (scalbnl): Likewise.
19740         (scalbln): Likewise.
19741         (scalblnf): Likewise.
19742         (scalblnl): Likewise.
19743         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
19744         (vwarnx): Likewise.
19745         (verr): Likewise.
19746         (verrx): Likewise.
19747         * manual/filesys.texi (telldir): Use braces around return type.
19748         * manual/llio.texi (mmap): Add space after comma.
19749         (mmap64): Likewise.
19750         * manual/math.texi (jn): Use @var{} on parameter names.
19751         (jnf): Likewise.
19752         (jnl): Likewise.
19753         (yn): Likewise.
19754         (ynf): Likewise.
19755         (ynl): Likewise.
19756         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
19757         line.
19758         * manual/resource.texi (ulimit): Use @dots{} instead of literal
19759         "...".
19760         (sched_get_priority_min): Remove semicolon on @deftypefun line.
19761         (sched_get_priority_max): Likewise.
19762         * manual/signal.texi (sigvec): Add space after comma.
19763         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
19764         names.
19765         (if_indextoname): Likewise.
19766         (if_freenameindex): Likewise.
19767         (sendto): Use ',' instead of '.' in prototype.
19768         * manual/startup.texi (syscall): Use @dots{} instead of literal
19769         "...".
19770         * manual/stdio.texi (__fpending): Separate initial words of
19771         paragraph from @deftypefun line.
19772         * manual/syslog.texi (syslog): Use @dots{} instead of literal
19773         "...".
19774         (vsyslog): Use @var{} on parameter names.
19775         * manual/terminal.texi (stty): Use @var{} on parameter names.
19776         * manual/users.texi (getutmp): Use @var{} on parameter names.
19777         (getutmpx): Likewise.
19778
19779 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
19780
19781         [BZ #6884]
19782         * manual/stdio.texi (fopen): Fix typos in description of
19783         ",ccs=STRING".
19784
19785 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
19786
19787         [BZ #4026]
19788         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
19789         get clock_id definition.
19790
19791 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
19792
19793         [BZ #4822]
19794         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
19795         (madvise): Cast every argument to void on its own.
19796
19797 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
19798
19799         [BZ #9902]
19800         * manual/startup.texi (Exit Status): Fix typo.
19801
19802 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
19803
19804         [BZ #10140]
19805         * manual/examples/argp-ex1.c: Include <stdlib.h>.
19806         * manual/examples/argp-ex2.c: Likewise.
19807         * manual/examples/argp-ex3.c: Likewise.
19808
19809 2012-02-16  Richard Henderson  <rth@redhat.com>
19810
19811         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
19812         * sysdeps/s390/s390-32/initfini.c: Remove.
19813         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
19814         * sysdeps/s390/s390-64/initfini.c: Remove.
19815
19816 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
19817
19818         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
19819         compiler output for sysdeps/generic/initfini.c.
19820         * sysdeps/sh/elf/initfini.c: Remove file.
19821
19822 2012-02-16  David S. Miller  <davem@davemloft.net>
19823
19824         [BZ #11494]
19825         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
19826
19827         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
19828         * sysdeps/sparc/crti.S: New file.
19829         * sysdeps/sparc/crtn.S: New file.
19830         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
19831         * sysdeps/sparc/sparc64/Makefile: Likewise.
19832
19833 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
19834
19835         [BZ #3335]
19836         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
19837
19838 2012-02-15  Roland McGrath  <roland@hack.frob.com>
19839
19840         [BZ #4822]
19841         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
19842
19843         * mach/devstream.c (cookie_io_functions_t): Macro removed.
19844         (write, read, close): Likewise.
19845         Patch by Aurelien Jarno <aurelien@aurel32.net>.
19846
19847 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
19848
19849         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
19850         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
19851         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
19852         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
19853         <bits/signalfd.h>.
19854         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
19855         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
19856         bits/signalfd.h.
19857
19858 2012-02-14  Marek Polacek  <polacek@redhat.com>
19859
19860         * sysdeps/x86_64/crti.S: New file.
19861         * sysdeps/x86_64/crtn.S: New file.
19862         * sysdeps/x86_64/elf/initfini.c: Remove file.
19863
19864 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
19865
19866         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
19867         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
19868         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
19869         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
19870         <bits/inotify.h>.
19871         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
19872         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
19873         bits/inotify.h.
19874
19875 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
19876
19877         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
19878         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
19879         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
19880         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
19881         <bits/eventfd.h>.
19882         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
19883         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
19884         bits/eventfd.h.
19885
19886 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
19887
19888         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
19889         __feraiseexcept instead of feraiseexcept.
19890
19891         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
19892         nanosleep invocations.
19893         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
19894         strings, and add error checking for a nanosleep invocations.
19895
19896 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
19897
19898         Replace FSF snail mail address with URLs, as per GNU coding standards.
19899         Most of the snail mail addresses were wrong anyway, and omitting
19900         them makes the source code easier to maintain.  Almost all of the
19901         changes are to license notices and to locale LC_IDENTIFICATION
19902         addresses, except for this one:
19903         * manual/libc.texinfo: In "Published by", give the FSF's URL,
19904         not its snail mail address.
19905
19906 2012-02-09  Richard Henderson  <rth@twiddle.net>
19907
19908         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
19909         of kernel-features.h.
19910
19911         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
19912
19913 2012-02-08  Marek Polacek  <polacek@redhat.com>
19914
19915         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
19916         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
19917         * sysdeps/gnu/_G_config.h: Likewise.
19918         * sysdeps/generic/_G_config.h: Likewise.
19919
19920 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
19921
19922         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
19923         tests.
19924         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19925
19926         * sysdeps/powerpc/powerpc32/crti.S: New file.
19927         * sysdeps/powerpc/powerpc32/crtn.S: New file.
19928         * sysdeps/powerpc/powerpc64/crti.S: New file.
19929         * sysdeps/powerpc/powerpc64/crtn.S: New file.
19930
19931         * Makeconfig (have-initfini): Don't set.
19932         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
19933         * configure.in (nopic_initfini): Don't substitute.
19934         * config.h.in (HAVE_INITFINI): Don't #undef.
19935         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
19936         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
19937
19938 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
19939
19940         Support crti.S and crtn.S provided directly by architectures.
19941         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
19942         [crti.S in sysdirs] (omit-deps): Likewise.
19943         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
19944         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
19945         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
19946         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
19947         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
19948         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
19949         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
19950         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
19951         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
19952         compiler output for sysdeps/generic/initfini.c.
19953         * sysdeps/i386/elf/Makefile: Remove file.
19954         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
19955
19956 2012-02-07  Marek Polacek  <polacek@redhat.com>
19957
19958         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
19959         * sysdeps/gnu/_G_config.h: Likewise.
19960         * sysdeps/mach/hurd/_G_config.h: Likewise.
19961
19962 2012-02-07  Marek Polacek  <polacek@redhat.com>
19963
19964         * math/Makefile (tests): Add tst-CMPLX2.
19965         * math/tst-CMPLX2.c: New file.
19966
19967 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
19968
19969         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
19970
19971         * math/libm-test.inc (jn_test): Add missing L suffix.
19972
19973 2012-02-06  Marek Polacek  <polacek@redhat.com>
19974
19975         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
19976         * sysdeps/i386/fpu/e_powf.S: Likewise.
19977         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
19978         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
19979         * sysdeps/i386/fpu/e_acosh.S: Likewise.
19980         * sysdeps/i386/fpu/e_pow.S: Likewise.
19981         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
19982         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
19983         * sysdeps/i386/fpu/s_expm1.S: Likewise.
19984         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
19985         * sysdeps/i386/fpu/e_log2.S: Likewise.
19986         * sysdeps/i386/fpu/e_log2l.S: Likewise.
19987         * sysdeps/i386/fpu/e_scalb.S: Likewise.
19988         * sysdeps/i386/fpu/e_powl.S: Likewise.
19989         * sysdeps/i386/fpu/s_log1p.S: Likewise.
19990         * sysdeps/i386/fpu/e_log10f.S: Likewise.
19991         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
19992         * sysdeps/i386/fpu/e_logl.S: Likewise.
19993         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
19994         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
19995         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
19996         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
19997         * sysdeps/i386/fpu/e_log2f.S: Likewise.
19998         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
19999         * sysdeps/i386/fpu/e_log.S: Likewise.
20000         * sysdeps/i386/fpu/s_cexp.S: Likewise.
20001         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
20002         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
20003         * sysdeps/i386/fpu/e_logf.S: Likewise.
20004         * sysdeps/i386/fpu/e_log10l.S: Likewise.
20005         * sysdeps/i386/fpu/e_atanh.S: Likewise.
20006         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
20007         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
20008         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
20009         * sysdeps/i386/fpu/e_log10.S: Likewise.
20010         * sysdeps/i386/fpu/s_frexp.S: Likewise.
20011         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
20012         * sysdeps/i386/fpu/s_asinh.S: Likewise.
20013         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
20014         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
20015         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
20016         * sysdeps/i386/asm-syntax.h: Likewise.
20017         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
20018         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
20019         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
20020         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
20021         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
20022         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
20023         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
20024         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
20025         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
20026         * sysdeps/powerpc/sysdep.h: Likewise.
20027         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
20028         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
20029
20030 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
20031
20032         [BZ #411]
20033         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
20034
20035 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
20036
20037         * sysdeps/i386/sysdep.h: Include <features.h>.
20038         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
20039         version.
20040
20041 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
20042
20043         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
20044         Define.
20045         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
20046         LOAD_PIC_REG_STR.
20047
20048 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
20049
20050         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
20051         (SETUP_PIC_REG): Use GET_PC_THUNK.
20052         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
20053         macro.
20054
20055 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
20056
20057         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
20058         for non-PIC compilation.
20059         (SETUP_PIC_REG): Add .p2align directive.
20060         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
20061         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
20062         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
20063         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
20064         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
20065         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
20066         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
20067         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
20068         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
20069         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
20070         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
20071         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
20072         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
20073         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
20074         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
20075         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
20076         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
20077         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
20078         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
20079         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
20080         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
20081         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
20082         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
20083         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
20084         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
20085         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
20086         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
20087         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
20088         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
20089         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
20090         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
20091         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
20092         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
20093         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
20094         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
20095         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
20096         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
20097         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
20098         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
20099         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
20100         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
20101
20102 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
20103
20104         * math/tst-CMPLX.c: Include <stdio.h>.
20105
20106 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
20107
20108         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
20109         float.
20110         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
20111         * sysdeps/sparc/bits/mathdef.h: Likewise.
20112
20113 2012-01-31  Marek Polacek  <polacek@redhat.com>
20114
20115         * libio/libio.h: Don't define _PARAMS.
20116         * locale/programs/config.h: Don't define PARAMS.
20117         * stdlib/strtol_l.c: Likewise.
20118         (__strtol_l): Remove PARAMS from the prototype.
20119
20120 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
20121
20122         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
20123         names.  Just use the correct names.  Remove unnecessary wrapper
20124         functions.
20125         * malloc/arena.c: Likewise.
20126         * malloc/hooks.c: Likewise.
20127
20128         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
20129         ARENA_TEST says not to.  Simplify test for creation of a new arena.
20130         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
20131
20132 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
20133
20134         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
20135         into tail calls.
20136         (update_get_addr): New function.
20137         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
20138         GET_ADDR_MODULE parameter.
20139
20140 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
20141
20142         * crypt/cert.c: Remove __STDC__ conditionals.
20143         * crypt/crypt-entry.c: Likewise.
20144         * crypt/crypt_util.c: Likewise.
20145         * libio/filedoalloc.c: Likewise.
20146         * libio/fileops.c: Likewise.
20147         * libio/genops.c: Likewise.
20148         * libio/iofclose.c: Likewise.
20149         * libio/iofdopen.c: Likewise.
20150         * libio/iofopen.c: Likewise.
20151         * libio/iofopen64.c: Likewise.
20152         * libio/iogetdelim.c: Likewise.
20153         * libio/iopopen.c: Likewise.
20154         * libio/obprintf.c: Likewise.
20155         * libio/oldfileops.c: Likewise.
20156         * libio/oldiofclose.c: Likewise.
20157         * libio/oldiofdopen.c: Likewise.
20158         * libio/oldiofopen.c: Likewise.
20159         * libio/oldiopopen.c: Likewise.
20160         * libio/wfiledoalloc.c: Likewise.
20161         * libio/wgenops.c: Likewise.
20162         * locale/programs/xmalloc.c: Likewise.
20163         * misc/syslog.c: Likewise.
20164         * stdio-common/xbug.c: Likewise.
20165         * string/memchr.c: Likewise.
20166         * string/memcmp.c: Likewise.
20167         * string/memrchr.c: Likewise.
20168         * string/rawmemchr.c: Likewise.
20169         * sysdeps/posix/getcwd.c: Likewise.
20170         * time/strftime_l.c: Likewise.
20171
20172 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
20173
20174         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
20175         * config.make.in (config-cflags-sse2avx): Define.
20176         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
20177         Fix typo.
20178
20179 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
20180
20181         * scripts/config.guess: Update from upstream config git repository.
20182         * scripts/config.sub: Likewise.
20183
20184 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
20185
20186         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
20187         (EM_NUM): Update.
20188         (R_TILEPRO_*, R_TILEGX_*): New macros.
20189
20190         * scripts/firstversions.awk: Fix bug in version range handling.
20191
20192         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
20193
20194         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
20195
20196         * include/sys/epoll.h: New file.
20197         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
20198         libc_hidden_def.
20199
20200 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
20201
20202         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
20203         Avoid unnecessary __WORDSIZE == 64 test.
20204         (fmaxf): Use VEX format if possible.
20205         (fmax): Likewise.
20206         (fminf): Likewise.
20207         (fmin): Likewise.
20208
20209         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
20210         * math/math_private.h: Remove libc_fegetround* and
20211         libc_fesetround*.
20212         * sysdeps/i386/configure.in: Check for -msse2avx.
20213         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
20214         also if SSE2AVX is defined.
20215         Remove libc_fegetround* and libc_fesetround*.
20216         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
20217         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
20218         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
20219         of HAS_YMM_USABLE.
20220         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
20221         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
20222         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
20223         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
20224         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
20225
20226         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
20227
20228 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20229
20230         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
20231         size is not set.
20232         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
20233
20234 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
20235
20236         [BZ #13618]
20237         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
20238         relocation.
20239         * Makeconfig (libm): Define.
20240         * elf/Makefile: Add rules to build and run tst-relsort1.
20241         * elf/tst-relsort1.c: New file.
20242         * elf/tst-relsort1mod1.c: New file.
20243         * elf/tst-relsort1mod2.c: New file.
20244
20245 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
20246
20247         * math/s_ldexp.c: Remove __STDC__ conditionals.
20248         * math/s_ldexpf.c: Likewise.
20249         * math/s_ldexpl.c: Likewise.
20250         * math/s_nextafter.c: Likewise.
20251         * math/s_nexttowardf.c: Likewise.
20252         * math/s_significand.c: Likewise.
20253         * math/s_significandf.c: Likewise.
20254         * math/s_significandl.c: Likewise.
20255         * math/w_jnl.c: Likewise.
20256         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
20257         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
20258         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
20259         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
20260         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
20261         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
20262         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
20263         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
20264         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
20265         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
20266         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
20267         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
20268         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
20269         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
20270         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
20271         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
20272         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
20273         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
20274         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
20275         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
20276         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
20277         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
20278         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
20279         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
20280         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
20281         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
20282         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
20283         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
20284         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
20285         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
20286         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
20287         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
20288         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
20289         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
20290         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
20291         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
20292         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
20293         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
20294         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
20295         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
20296         * sysdeps/ieee754/k_standard.c: Likewise.
20297         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
20298         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
20299         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
20300         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
20301         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
20302         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
20303         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
20304         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
20305         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
20306         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
20307         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
20308         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
20309         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
20310         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
20311         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
20312         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
20313         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
20314         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
20315         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
20316         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
20317         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
20318         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
20319         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
20320         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
20321         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
20322         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
20323         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
20324         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
20325         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
20326         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
20327         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
20328         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
20329         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
20330         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
20331         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
20332         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
20333         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
20334         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
20335         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
20336         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
20337         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
20338         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
20339         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
20340         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
20341         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
20342         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
20343         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
20344         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
20345         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
20346         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
20347         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
20348         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
20349         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
20350         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
20351         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
20352         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
20353         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
20354         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
20355         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
20356         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
20357         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
20358         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
20359         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
20360         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
20361         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
20362         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
20363         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
20364         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
20365         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
20366         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
20367         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
20368         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
20369         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
20370         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
20371         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
20372         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
20373         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
20374         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
20375         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
20376         * sysdeps/ieee754/s_matherr.c: Likewise.
20377         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
20378         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
20379         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
20380         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
20381
20382 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
20383
20384         * crypt/md5.h: Remove __STDC__ conditionals.
20385         * libio/libioP.h: Likewise.
20386         * locale/programs/config.h: Likewise.
20387         * sysdeps/generic/sysdep.h: Likewise.
20388         * sysdeps/i386/asm-syntax.h: Likewise.
20389         * sysdeps/s390/asm-syntax.h: Likewise.
20390         * sysdeps/unix/sysdep.h: Likewise.
20391         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
20392         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
20393
20394 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
20395
20396         * libio/libio.h: Remove __STDC__ conditionals.
20397         * malloc/obstack.h: Likewise.
20398         * math/complex.h: Likewise.
20399         * math/math.h: Likewise.
20400         * sysdeps/generic/_G_config.h: Likewise.
20401         * sysdeps/gnu/_G_config.h: Likewise.
20402         * sysdeps/mach/hurd/_G_config.h: Likewise.
20403         * sysdeps/powerpc/bits/mathdef.h: Likewise.
20404         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
20405         * sysdeps/sparc/bits/mathdef.h: Likewise.
20406
20407 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
20408
20409         [BZ #13583]
20410         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
20411         Clean up HAS_* macros.
20412         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
20413         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
20414         possible.
20415         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
20416         HAS_AVX.
20417         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
20418         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
20419         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
20420         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
20421         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
20422
20423 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
20424
20425         * elf/tst-unique3.cc (gets): Remove declaration.
20426         * elf/tst-unique3lib.cc (gets): Likewise.
20427         * elf/tst-unique3lib2.cc (gets): Likewise.
20428         * elf/tst-unique4.cc (gets): Likewise.
20429
20430 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
20431
20432         * include/stdio.h: Add C++ protection.  Add gets declarations and
20433         definitions.
20434         * debug/tst-chk1.c: Don't declare gets here.
20435         * stdio-common/tst-gets.c: Likewise.
20436
20437 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
20438
20439         * posix/glob: Remove directory.
20440
20441 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
20442
20443         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
20444
20445 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
20446
20447         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
20448         of the non-standard EPFNOSUPPORT.
20449
20450 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20451
20452         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
20453         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
20454         ANYWHERE set to 1 only on KERN_NO_SPACE error.
20455
20456 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
20457
20458         * wcsmbs/uchar.h: Test __STDC_VERSION__.
20459
20460 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
20461
20462         * nscd/aicache.c (addhstaiX): Do not cache negative results of
20463         transient errors.
20464         * nscd/grpcache.c (cache_addgr): Likewise.
20465         * nscd/hstcache.c (cache_addhst): Likewise.
20466         * nscd/initgrcache.c (addinitgroupsX): Likewise.
20467         * nscd/pwdcache.c (cache_addpw): Likewise.
20468         * nscd/servicescache.c (cache_addserv): Likewise.
20469
20470 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
20471
20472         * malloc/malloc.c: Various cleanups.
20473         * malloc/hooks.c: Likewise.
20474
20475         * stdlib/Makefile (tests): Add bug-fmtmsg1.
20476         * stdlib/bug-fmtmsg1.c: New file.
20477
20478         * stdlib/fmtmsg.c (init): Add missing unlock.
20479         Patch by Peng Haitao <penght@cn.fujitsu.com>.
20480
20481 2012-01-12  Marek Polacek  <polacek@redhat.com>
20482
20483         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
20484         and _GNU_SOURCE.
20485
20486 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
20487
20488         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
20489         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
20490         macro to ensure uniqueness of label name.
20491         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
20492         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
20493
20494 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
20495
20496         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
20497
20498         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
20499         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
20500         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
20501         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
20502
20503 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
20504
20505         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
20506
20507         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
20508         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
20509         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
20510
20511         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
20512
20513         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
20514         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
20515         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
20516         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
20517
20518         * math/bits/math-finite.h: Add ldexp support.
20519
20520 2012-01-10  Marek Polacek  <polacek@redhat.com>
20521
20522         * locale/programs/localedef.h (show_archive_content): Add noreturn
20523         attribute.
20524
20525 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
20526
20527         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
20528
20529 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
20530
20531         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
20532
20533         * io/Makefile (headers): Add bits/poll2.h.
20534
20535 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
20536
20537         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
20538         typo #include statement.
20539
20540 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
20541
20542         * include/sys/cdefs.h: Define __attribute_alloc_size.
20543         * catgets/gencat.c: Add alloc_size attribute and apply consistently
20544         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
20545         * elf/pldd.c: Likewise.
20546         * iconv/iconv_charmap.c: Likewise.
20547         * iconv/iconvconfig.c: Likewise.
20548         * iconv/strtab.c: Likewise.
20549         * locale/programs/locale.c: Likewise.
20550         * locale/programs/localedef.h: Likewise.
20551         * locale/programs/simple-hash.c: Likewise.
20552         * nscd/nscd.h: Likewise.
20553         * nss/makedb.c: Likewise.
20554         * sysdeps/generic/ldconfig.h: Likewise.
20555         * locale/programs/localedef.c: Remove xmalloc prototype.
20556         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
20557
20558 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
20559
20560         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
20561         appropriate.
20562
20563 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
20564
20565         * math/Makefile (tests): Add tst-CMPLX.
20566         * math/tst-CMPLX.c: New file.
20567
20568         * math/complex.h (CMPLXL): Fix typo.
20569
20570         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
20571         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
20572         GLIBC_2.16.
20573         * debug/tst-chk1.c: Add poll and ppoll tests.
20574         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
20575         * include/sys/poll.h: Add hidden proto for ppoll.
20576         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
20577         * sysdeps/mach/hurd/ppoll.c: Likewise.
20578         * io/ppoll.c: Likewise.
20579         * debug/poll_chk.c: New file.
20580         * debug/ppoll_chk.c: New file.
20581         * include/bits/poll2.h: New file.
20582         * io/bits/poll2.h: New file.
20583
20584         [BZ #1350]
20585         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
20586
20587         * configure.in: static is always set to yes.  Remove.
20588         * config.make.in: Don't set build-static.
20589         * Makeconfig: Remove use of build-static.
20590         * dlfcn/Makefile: Likewise.
20591         * elf/Makefile: Likewise.
20592         * math/Makefile: Likewise.
20593         * misc/Makefile: Likewise.
20594         * nptl/Makefile: Likewise.
20595         * sysdeps/mach/hurd/Makefile: Likewise.
20596
20597         * configure.in: PWD_P is not used anymore.
20598         * config.make.in: Remove PWD_P entry.
20599
20600         * configure.in: Remove last remnants of RANLIB.
20601         No need to check for signed size_t anymore.
20602         Don't set libc_commonpagesize and libc_relro_required here for Alpha
20603         and IA-64.
20604         Remove __builtin_expect test because we require at least gcc 3.4.
20605         * aclocal.m4: Likewise.
20606
20607         * wcsmbs/mbrtoc16.c: Implement using towc function.
20608         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
20609         * wcsmbs/wcsmbsload.c: Likewise.
20610         * iconv/gconv_simple.c: Likewise.
20611         * iconv/gconv_int.h: Likewise.
20612         * iconv/gconv_builtin.h: Likewise.
20613         * iconv/iconv_prog.c: Remove CHAR16 handling.
20614
20615         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
20616
20617         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
20618
20619         * configure.in: Remove --with-elf and --enable-bounded options.
20620         Dont set base_machine for ia64.  More non-ELF conditions removed.
20621         Remove testing and setting of leading underscore information.
20622         * config.make.in (build-bounded): Set to no.
20623         * config.h.in: Remove NO_UNDERSCORES entry.
20624         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
20625         them.
20626         * csu/start.c: Remove !NO_UNDERSCORE code.
20627         * locale/localeinfo.h: Likewise.
20628         * sysdeps/generic/machine-gmon.h: Likewise.
20629         * sysdeps/generic/sysdep.h: Likewise.
20630         * sysdeps/i386/sysdep.h: Likewise.
20631         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
20632         * sysdeps/mach/sysdep.h: Likewise.
20633         * sysdeps/s390/s390-32/sysdep.h: Likewise.
20634         * sysdeps/s390/s390-64/sysdep.h: Likewise.
20635         * sysdeps/sh/sysdep.h: Likewise.
20636         * sysdeps/sparc/sparc32/alloca.S: Likewise.
20637         * sysdeps/unix/i386/sysdep.S: Likewise.
20638         * sysdeps/unix/sparc/start.c: Likewise.
20639         * sysdeps/unix/sparc/sysdep.S: Likewise.
20640         * sysdeps/unix/sparc/sysdep.h: Likewise.
20641         * sysdeps/unix/start.c: Likewise.
20642         * sysdeps/unix/x86_64/sysdep.S: Likewise.
20643         * sysdeps/x86_64/sysdep.h: Likewise.
20644
20645 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
20646
20647         [BZ #13553]
20648         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
20649         for non-gcc.
20650         * argp/argp-fmtstream.h: Use const instead __const.
20651         * argp/argp.h: Likewise.
20652         * assert/assert.h: Likewise.
20653         * bits/fenv.h: Likewise.
20654         * bits/sched.h: Likewise.
20655         * bits/sigset.h: Likewise.
20656         * bits/sigthread.h: Likewise.
20657         * catgets/nl_types.h: Likewise.
20658         * conform/data/pthread.h-data: Likewise.
20659         * crypt/crypt-private.h: Likewise.
20660         * crypt/crypt.h: Likewise.
20661         * crypt/crypt_util.c: Likewise.
20662         * ctype/ctype.h: Likewise.
20663         * debug/execinfo.h: Likewise.
20664         * debug/mbsnrtowcs_chk.c: Likewise.
20665         * debug/mbsrtowcs_chk.c: Likewise.
20666         * debug/wcsnrtombs_chk.c: Likewise.
20667         * debug/wcsrtombs_chk.c: Likewise.
20668         * debug/wcstombs_chk.c: Likewise.
20669         * dirent/dirent.h: Likewise.
20670         * dlfcn/dlfcn.h: Likewise.
20671         * elf/neededtest4.c: Likewise.
20672         * grp/grp.h: Likewise.
20673         * gshadow/gshadow.h: Likewise.
20674         * iconv/gconv.h: Likewise.
20675         * iconv/gconv_int.h: Likewise.
20676         * iconv/gconv_simple.c: Likewise.
20677         * iconv/iconv.h: Likewise.
20678         * iconv/loop.c: Likewise.
20679         * iconv/skeleton.c: Likewise.
20680         * include/aio.h: Likewise.
20681         * include/aliases.h: Likewise.
20682         * include/argz.h: Likewise.
20683         * include/arpa/inet.h: Likewise.
20684         * include/assert.h: Likewise.
20685         * include/dirent.h: Likewise.
20686         * include/dlfcn.h: Likewise.
20687         * include/execinfo.h: Likewise.
20688         * include/fcntl.h: Likewise.
20689         * include/fenv.h: Likewise.
20690         * include/glob.h: Likewise.
20691         * include/grp.h: Likewise.
20692         * include/libintl.h: Likewise.
20693         * include/mntent.h: Likewise.
20694         * include/netdb.h: Likewise.
20695         * include/pwd.h: Likewise.
20696         * include/rpc/netdb.h: Likewise.
20697         * include/sched.h: Likewise.
20698         * include/search.h: Likewise.
20699         * include/shadow.h: Likewise.
20700         * include/signal.h: Likewise.
20701         * include/stdio.h: Likewise.
20702         * include/stdlib.h: Likewise.
20703         * include/string.h: Likewise.
20704         * include/sys/socket.h: Likewise.
20705         * include/sys/stat.h: Likewise.
20706         * include/sys/statfs.h: Likewise.
20707         * include/sys/statvfs.h: Likewise.
20708         * include/sys/syslog.h: Likewise.
20709         * include/sys/time.h: Likewise.
20710         * include/sys/uio.h: Likewise.
20711         * include/time.h: Likewise.
20712         * include/unistd.h: Likewise.
20713         * include/utmp.h: Likewise.
20714         * include/wchar.h: Likewise.
20715         * include/wctype.h: Likewise.
20716         * inet/aliases.h: Likewise.
20717         * inet/arpa/inet.h: Likewise.
20718         * inet/netinet/ether.h: Likewise.
20719         * inet/netinet/in.h: Likewise.
20720         * intl/libintl.h: Likewise.
20721         * io/bits/fcntl2.h: Likewise.
20722         * io/fcntl.h: Likewise.
20723         * io/ftw.h: Likewise.
20724         * io/sys/poll.h: Likewise.
20725         * io/sys/stat.h: Likewise.
20726         * io/sys/statfs.h: Likewise.
20727         * io/sys/statvfs.h: Likewise.
20728         * io/utime.h: Likewise.
20729         * libio/bits/stdio.h: Likewise.
20730         * libio/bits/stdio2.h: Likewise.
20731         * libio/libio.h: Likewise.
20732         * libio/libioP.h: Likewise.
20733         * libio/stdio.h: Likewise.
20734         * locale/lc-ctype.c: Likewise.
20735         * locale/locale.h: Likewise.
20736         * login/utmp.h: Likewise.
20737         * malloc/arena.c: Likewise.
20738         * malloc/malloc.c: Likewise.
20739         * malloc/malloc.h: Likewise.
20740         * malloc/mcheck.c: Likewise.
20741         * malloc/mtrace.c: Likewise.
20742         * math/bits/mathcalls.h: Likewise.
20743         * math/fenv.h: Likewise.
20744         * math/math_private.h: Likewise.
20745         * misc/bits/error.h: Likewise.
20746         * misc/bits/syslog.h: Likewise.
20747         * misc/err.h: Likewise.
20748         * misc/error.h: Likewise.
20749         * misc/fstab.h: Likewise.
20750         * misc/mntent.h: Likewise.
20751         * misc/regexp.h: Likewise.
20752         * misc/search.h: Likewise.
20753         * misc/sgtty.h: Likewise.
20754         * misc/sys/mman.h: Likewise.
20755         * misc/sys/syslog.h: Likewise.
20756         * misc/sys/uio.h: Likewise.
20757         * misc/sys/xattr.h: Likewise.
20758         * misc/ttyent.h: Likewise.
20759         * nis/rpcsvc/ypclnt.h: Likewise.
20760         * nss/nss.h: Likewise.
20761         * posix/bits/unistd.h: Likewise.
20762         * posix/fnmatch.h: Likewise.
20763         * posix/glob.h: Likewise.
20764         * posix/sched.h: Likewise.
20765         * posix/spawn.h: Likewise.
20766         * posix/sys/wait.h: Likewise.
20767         * posix/unistd.h: Likewise.
20768         * posix/wordexp.h: Likewise.
20769         * pwd/pwd.h: Likewise.
20770         * resolv/netdb.h: Likewise.
20771         * resource/sys/resource.h: Likewise.
20772         * rt/aio.h: Likewise.
20773         * rt/bits/mqueue2.h: Likewise.
20774         * rt/mqueue.h: Likewise.
20775         * shadow/shadow.h: Likewise.
20776         * signal/signal.h: Likewise.
20777         * socket/send.c: Likewise.
20778         * socket/sendto.c: Likewise.
20779         * socket/sys/socket.h: Likewise.
20780         * stdio-common/printf.h: Likewise.
20781         * stdlib/bits/stdlib.h: Likewise.
20782         * stdlib/fmtmsg.h: Likewise.
20783         * stdlib/monetary.h: Likewise.
20784         * stdlib/stdlib.h: Likewise.
20785         * stdlib/ucontext.h: Likewise.
20786         * streams/stropts.h: Likewise.
20787         * string/argz.h: Likewise.
20788         * string/bits/string2.h: Likewise.
20789         * string/string.h: Likewise.
20790         * string/strings.h: Likewise.
20791         * sunrpc/rpc/auth.h: Likewise.
20792         * sunrpc/rpc/auth_des.h: Likewise.
20793         * sunrpc/rpc/clnt.h: Likewise.
20794         * sunrpc/rpc/netdb.h: Likewise.
20795         * sunrpc/rpc/pmap_clnt.h: Likewise.
20796         * sunrpc/rpc/xdr.h: Likewise.
20797         * sysdeps/generic/inttypes.h: Likewise.
20798         * sysdeps/generic/net/if.h: Likewise.
20799         * sysdeps/generic/sys/swap.h: Likewise.
20800         * sysdeps/gnu/net/if.h: Likewise.
20801         * sysdeps/gnu/utmpx.h: Likewise.
20802         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
20803         * sysdeps/i386/i486/bits/string.h: Likewise.
20804         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
20805         * sysdeps/s390/bits/string.h: Likewise.
20806         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
20807         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
20808         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
20809         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
20810         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
20811         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
20812         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
20813         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
20814         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
20815         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
20816         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
20817         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
20818         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
20819         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
20820         * sysdeps/unix/sysv/linux/readv.c: Likewise.
20821         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
20822         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
20823         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
20824         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
20825         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
20826         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
20827         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
20828         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
20829         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
20830         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
20831         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
20832         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
20833         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
20834         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
20835         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
20836         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
20837         * sysvipc/sys/ipc.h: Likewise.
20838         * sysvipc/sys/msg.h: Likewise.
20839         * sysvipc/sys/sem.h: Likewise.
20840         * sysvipc/sys/shm.h: Likewise.
20841         * termios/termios.h: Likewise.
20842         * time/sys/time.h: Likewise.
20843         * time/time.h: Likewise.
20844         * wcsmbs/bits/wchar2.h: Likewise.
20845         * wcsmbs/uchar.h: Likewise.
20846         * wcsmbs/wchar.h: Likewise.
20847         * wctype/wctype.h: Likewise.
20848
20849         [BZ #13551]
20850         * Makeconfig: Remove all but ELF support including AIX support.
20851         * Makerules: Likewise.
20852         * config.h.in: Likewise.
20853         * config.make.in: Likewise.
20854         * configure: Likewise.
20855         * configure.in: Likewise.
20856         * csu/Makefile: Likewise.
20857         * csu/version.c: Likewise.
20858         * debug/Makefile: Likewise.
20859         * dlfcn/Makefile: Likewise.
20860         * elf/Makefile: Likewise.
20861         * extra-lib.mk: Likewise.
20862         * iconv/Makefile: Likewise.
20863         * include/libc-symbols.h: Likewise.
20864         * include/shlib-compat.h: Likewise.
20865         * resolv/Makefile: Likewise.
20866         * resolv/res_libc.c: Likewise.
20867         * rt/Makefile: Likewise.
20868         * sysdeps/i386/asm-syntax.h: Likewise.
20869         * sysdeps/i386/sysdep.h: Likewise.
20870         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
20871         * sysdeps/mach/sysdep.h: Likewise.
20872         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
20873         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
20874         * sysdeps/s390/asm-syntax.h: Likewise.
20875         * sysdeps/s390/s390-32/sysdep.h: Likewise.
20876         * sysdeps/s390/s390-64/sysdep.h: Likewise.
20877         * sysdeps/sh/sysdep.h: Likewise.
20878         * sysdeps/unix/sparc/sysdep.h: Likewise.
20879         * sysdeps/wordsize-32/divdi3.c: Likewise.
20880         * sysdeps/x86_64/sysdep.h: Likewise.
20881
20882         * argp/Versions: Remove _argp_unlock_xxx.
20883
20884         [BZ #13559]
20885         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
20886         * abilist/libBrokenLocale.abilist: Likewise.
20887         * abilist/libanl.abilist: Likewise.
20888         * abilist/libc.abilist: Likewise.
20889         * abilist/libcrypt.abilist: Likewise.
20890         * abilist/libdl.abilist: Likewise.
20891         * abilist/libm.abilist: Likewise.
20892         * abilist/libnsl.abilist: Likewise.
20893         * abilist/libpthread.abilist: Likewise.
20894         * abilist/libresolv.abilist: Likewise.
20895         * abilist/librt.abilist: Likewise.
20896         * abilist/libthread_db.abilist: Likewise.
20897         * abilist/libutil.abilist: Likewise.
20898         * abilist/libnss_db.abilist: New file.
20899
20900         * scripts/abilist.awk: Add support for indirect functions.
20901
20902         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
20903
20904         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
20905
20906         * shlib-versions: Remove entries for ports architectures.
20907
20908         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
20909         files in ports.
20910         * elf/stackguard-macros.h: Remove support for IA-64.
20911         * elf/tst-auditmod1.c: Likewise.
20912         * sysdeps/generic/ldsodefs.h: Likewise.
20913
20914         * sysdeps/unix/sysv/linux/configure.in: Ports should define
20915         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
20916         configure files.
20917
20918         [BZ #13552]
20919         * configure.in: Remove --enable-omitfp support.
20920         * FAQ.in: Adjust.
20921         * config.make.in: Likewise.
20922         * Makeconfig: Likewise.
20923         * manual/install.texi: Likewise.
20924
20925         In case anyone cares, the IA-64 architecture could move to ports.
20926         * sysdeps/ia64/*: Removed.
20927         * sysdeps/unix/sysv/linux/ia64/*: Removed.
20928         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
20929
20930         [BZ #13555]
20931         * configure.in: Remove entries for unsupported architectures.
20932
20933         [BZ #13533]
20934         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
20935         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
20936         routines.
20937         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
20938         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
20939         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
20940         fall back to using wcrtomb.
20941         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
20942         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
20943         renaming.
20944         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
20945         * wcsmbs/tst-c16c32-1.c: New file.
20946
20947         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
20948         local variable.
20949
20950         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
20951
20952         * elf/tst-unique3.cc: Add explicit declaration of gets.
20953         * elf/tst-unique3lib.cc: Likewise.
20954         * elf/tst-unique3lib2.cc: Likewise.
20955         * elf/tst-unique4.cc: Likewise.
20956
20957         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
20958
20959 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
20960
20961         [BZ #13566]
20962         * assert/assert.h (static_assert): Don't define for C++.
20963         * libio/stdio.h (gets): Do declare for C++ <= C++11.
20964         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
20965
20966 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
20967
20968         * iconv/loop.c (single loop): Fix assertion in storing of
20969         remaining bytes.
20970
20971         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
20972
20973 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
20974
20975         * posix/getconf.c: Update copyright year.
20976         * nss/getent.c: Likewise.
20977         * nss/makedb.c: Likewise.
20978         * iconv/iconvconfig.c: Likewise.
20979         * iconv/iconv_prog.c: Likewise.
20980         * elf/ldconfig.c: Likewise.
20981         * elf/pldd.c: Likewise.
20982         * elf/sotruss.ksh: Likewise.
20983         * catgets/gencat.c: Likewise.
20984         * csu/version.c: Likewise.
20985         * elf/ldd.bash.in: Likewise.
20986         * elf/sprof.c (print_version): Likewise.
20987         * locale/programs/locale.c: Likewise.
20988         * locale/programs/localedef.c: Likewise.
20989         * login/programs/pt_chown.c: Likewise.
20990         * nscd/nscd.c (print_version): Likewise.
20991         * debug/xtrace.sh: Likewise.
20992         * malloc/memusage.sh: Likewise.
20993         * malloc/mtrace.pl: Likewise.
20994         * debug/catchsegv.sh: Likewise.
20995
20996 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
20997
20998         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
20999         pure attribute.
21000
21001 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
21002
21003         [BZ #13533]
21004         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
21005         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
21006         transformations.
21007         * iconv/gconv_int.h: Likewise.
21008         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
21009         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
21010         from libc for GLIBC_2.16.
21011         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
21012         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
21013         * wcsmbs/uchar.h: Really define mbstate_t.
21014         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
21015         * wcsmbs/c16rtomb.c: New file.
21016         * wcsmbs/mbrtoc16.c: New file.
21017         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
21018         for C/POSIX locale.
21019         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
21020         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
21021
21022         * wcsmbs/wchar.h: Add missing __restrict.
21023
21024 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
21025
21026         [BZ #13532]
21027         * time/Makefile (routines): Add timespec_get.
21028         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
21029         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
21030         timespec for ISO C11.
21031         * time/timespec_get.c: New file.
21032         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
21033         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
21034
21035         [BZ #13531]
21036         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
21037         * stdlib/stdlib.h: Declare aligned_alloc.
21038         * Versions.def: Add GLIBC_2.16 for libc.
21039         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
21040
21041         [BZ 13527]
21042         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
21043         ISO C11.
21044
21045         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
21046         code.
21047
21048         [BZ #13528]
21049         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
21050
21051         [BZ #13529]
21052         * assert/assert.h (static_assert): Define.
21053
21054         * version.h: Update for 2.16 development version.
21055
21056         [BZ #13526]
21057         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
21058         _ISOC11_SOURCE.
21059
21060         * version.h (RELEASE): Bump for 2.15 release.
21061         * include/features.h (__GLIBC_MINOR__): Bump to 15.
21062
21063         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
21064         Patch by Marek Polacek <mpolacek@redhat.com>.
21065
21066         * bits/byteswap.h: Protect long long constants with __extension__.
21067         * sysdeps/i386/bits/byteswap.h: Likewise.
21068         * sysdeps/ia64/bits/byteswap.h: Likewise.
21069         * sysdeps/s390/bits/byteswap.h: Likewise.
21070         * sysdeps/x86_64/bits/byteswap.h: Likewise.
21071
21072 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
21073
21074         [BZ #13540]
21075         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
21076         destination buffer.
21077         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
21078
21079 2011-12-23  Marek Polacek  <polacek@redhat.com>
21080
21081         * elf/dl-addr.c (determine_info): Add inline keyword.
21082         * elf/tst-auditmod4b.c (check_avx): Likewise.
21083         * elf/tst-auditmod6b.c (check_avx): Likewise.
21084         * elf/tst-auditmod6c.c (check_avx): Likewise.
21085         * elf/tst-auditmod7b.c (check_avx): Likewise.
21086
21087 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
21088
21089         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
21090         !__SSE_MATH__.
21091
21092 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
21093
21094         [BZ #13540]
21095         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
21096         processing for last bytes.
21097
21098 2011-08-06  Bruno Haible  <bruno@clisp.org>
21099
21100         [BZ #13061]
21101         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
21102         U+0385, not to U+1FEE.
21103
21104         [BZ #13062]
21105         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
21106         entry for U+00A5 U+0301.
21107
21108 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
21109
21110         [BZ #13166]
21111         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
21112         buffer for the output is too small.
21113
21114         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
21115         optimization.
21116
21117         [BZ #13185]
21118         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
21119         SSE flags if possible.
21120
21121 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
21122
21123         [BZ #13540]
21124         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
21125         processing for last bytes.
21126
21127 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
21128
21129         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
21130         (syscall-list-default-options, syscall-list-default-condition)
21131         (syscall-list-includes): Define.
21132         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
21133         list of ABIs and options and #if conditions for each ABI.  Do not
21134         handle common syscalls between ABIs specially.
21135         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
21136         Remove.
21137         (syscall-list-variants, syscall-list-32bit-options)
21138         (syscall-list-32bit-condition, syscall-list-64bit-options)
21139         (syscall-list-64bit-condition): Define.
21140         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
21141         (syscall-list-variants, syscall-list-32bit-options)
21142         (syscall-list-32bit-condition, syscall-list-64bit-options)
21143         (syscall-list-64bit-condition): Define.
21144         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
21145         Remove.
21146         (syscall-list-variants, syscall-list-32bit-options)
21147         (syscall-list-32bit-condition, syscall-list-64bit-options)
21148         (syscall-list-64bit-condition): Define.
21149         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
21150         Remove.
21151         (syscall-list-variants, syscall-list-32bit-options)
21152         (syscall-list-32bit-condition, syscall-list-64bit-options)
21153         (syscall-list-64bit-condition): Define.
21154
21155 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
21156
21157         * locale/iso-639.def: Add brx entry.
21158
21159         [BZ #13328]
21160         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
21161         Proposed by Mariusz_Cukr <marcukr@op.pl>.
21162
21163         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
21164         __feraiseexcept_renamed.
21165
21166 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
21167
21168         [BZ #13538]
21169         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
21170         EPOLLET with unsigned values.
21171         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
21172         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
21173
21174         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
21175         to large cancellation.
21176         * math/s_cacoshf.c: Likewise.
21177         * math/s_cacoshl.c: Likewise.
21178
21179 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
21180
21181         [BZ #13305]
21182         [BZ #12786]
21183         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
21184         * math/s_cacoshf.c: Likewise.
21185         * math/s_cacoshl.c: Likewise.
21186
21187 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
21188
21189         [BZ #13439]
21190         * iconv/gconv.h: Define __GCONV_SWAP.
21191         * iconvdata/unicode.c: The swap bit must be stored in __flags.
21192         * iconvdata/utf-16.c: Likewise.
21193         * iconvdata/utf-32.c: Likewise.
21194
21195 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
21196
21197         [BZ #13524]
21198         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
21199         numerator after shifting it by one limb.
21200
21201 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
21202
21203         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
21204         under [__USE_EXTERN_INLINES].
21205
21206 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
21207
21208         [BZ #13446]
21209         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
21210
21211 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21212
21213         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
21214         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
21215         optimized code.
21216         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
21217         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
21218         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
21219         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
21220         for strncasecmp/strncasecmp_l compilation.
21221         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
21222         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
21223
21224 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
21225
21226         [BZ #13484]
21227         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
21228         of __asm__.
21229
21230 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
21231
21232         [BZ #13506]
21233         * time/tzfile.c (__tzfile_read): Check values from file header.
21234
21235 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
21236
21237         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
21238         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
21239         * powerpc/powerpc32/dl-start.S: Likewise.
21240         * powerpc/powerpc32/elf/start.S: Likewise.
21241         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
21242         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
21243         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
21244         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
21245         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
21246         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
21247         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
21248         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
21249         * powerpc/powerpc32/fpu/s_round.S: Likewise.
21250         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
21251         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
21252         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
21253         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
21254         * powerpc/powerpc32/memset.S: Likewise.
21255         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
21256         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
21257         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
21258         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
21259         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
21260         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
21261         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
21262         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
21263         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
21264         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
21265         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
21266         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
21267         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
21268
21269 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21270
21271         * math/libm-test.inc: Added more nearbyint tests.
21272         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
21273         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
21274         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
21275         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
21276
21277 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
21278
21279         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
21280         FD_CLOEXEC.
21281
21282 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
21283
21284         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
21285         Add wcscpy-ssse3 wcscpy-c.
21286         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
21287         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
21288         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
21289         * sysdeps/x86_64/wcschr.S: New file.
21290         * sysdeps/x86_64/wcsrchr.S: New file.
21291         * string/test-strcmp.c: Remove checking of wcscmp function for
21292         wrong alignments.
21293         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
21294         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
21295         wcsrchr-sse2 wcsrchr-c.
21296         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
21297         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
21298         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
21299         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
21300         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
21301         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
21302         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
21303         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
21304         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
21305         * wcsmbc/wcschr.c (WCSCHR): New macro.
21306
21307 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
21308
21309         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
21310         * wcsmbs/test-wcsrchr.c: New file.
21311         * string/test-strrchr.c: Add wcsrchr support.
21312         (WIDE): New macro.
21313         * wcsmbs/test-wcscpy.c: New file.
21314         * string/test-strcpy.c: Add wcscpy support.
21315         (WIDE): New macro.
21316
21317 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
21318
21319         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
21320         the inner loop.
21321
21322 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
21323
21324         [BZ #13472]
21325         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
21326
21327 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
21328
21329         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
21330         Minor optimizations.
21331
21332         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
21333         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
21334         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
21335
21336 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
21337
21338         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
21339         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
21340         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
21341         for gcc to avoid warnings.
21342         * inet/Makefile (tests): Add tst-checks.
21343         * inet/tst-checks.c: New file.
21344
21345         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
21346         warning.
21347
21348         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
21349         __wmemcmp_sse2.
21350
21351         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
21352         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
21353
21354         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
21355
21356 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
21357
21358         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
21359         problem.
21360
21361         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
21362
21363 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
21364
21365         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
21366         conditional on GCC version.
21367         (__arch_compare_and_exchange_val_8_acq)
21368         (__arch_compare_and_exchange_val_16_acq)
21369         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
21370         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
21371         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
21372
21373 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
21374
21375         * sysdeps/sh/backtrace.c: New file.
21376
21377 2011-12-02  Andreas Schwab  <schwab@redhat.com>
21378
21379         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
21380         parenthesis.
21381
21382 2011-12-01  Andreas Schwab  <schwab@redhat.com>
21383
21384         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
21385         falling back to utime.
21386
21387 2011-11-30  Andreas Schwab  <schwab@redhat.com>
21388
21389         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
21390         expectations for float.
21391
21392 2011-11-29  Andreas Schwab  <schwab@redhat.com>
21393
21394         * locale/weight.h (findidx): Add parameter len.
21395         * locale/weightwc.h (findidx): Likewise.
21396         * posix/fnmatch_loop.c (FCT): Adjust caller.
21397         * posix/regcomp.c (build_equiv_class): Likewise.
21398         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
21399         * posix/regexec.c (check_node_accept_bytes): Likewise.
21400         * string/strcoll_l.c (STRCOLL): Likewise.
21401         * string/strxfrm_l.c (STRXFRM): Likewise.
21402
21403 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
21404
21405         * Makefile.in: Remove CVSOPT handling.
21406         * configure.in: Remove use of AC_REVISION.
21407         * iconvdata/Makefile (distribute): No need to filter out CVS.
21408         * scripts/list-sources.sh: Remove CVS, subversion and monotone
21409         handling.
21410
21411 2011-11-16  Andreas Schwab  <schwab@redhat.com>
21412
21413         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
21414         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
21415         [USE_AS_STRNCASECMP_L]: Likewise.
21416         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
21417         NO_TLS_DIRECT_SEG_REFS.
21418         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
21419         Fix argument offsets for non-PIC.
21420         [USE_AS_STRNCASECMP_L]: Likewise.
21421         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
21422         NO_TLS_DIRECT_SEG_REFS.
21423
21424 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
21425
21426         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
21427         O_CLOEXEC.
21428         * locale/loadlocale.c (_nl_load_locale): Likewise.
21429
21430 2011-11-15  Andreas Schwab  <schwab@redhat.com>
21431
21432         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
21433         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
21434         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
21435         (SYSCALL_GETTIME): Set errno on error.
21436
21437         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
21438         count references to noai6ai_cached.
21439
21440 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
21441
21442         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
21443
21444         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
21445         FD_CLOEXEC for /proc/self/maps.
21446
21447         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
21448         FD_CLOEXEC for /proc/meminfo.
21449
21450         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
21451         gai.conf.
21452
21453         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
21454         FD_CLOEXEC for given file.
21455
21456         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
21457
21458         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
21459         FD_CLOEXEC for /etc/hosts.
21460         (_gethtent): Likewise.
21461
21462         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
21463
21464         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
21465         cancellation and set FD_CLOEXEC for /etc/netgroup.
21466
21467         * nss/nss_files/files-key.c (search): Don't allow cancellation when
21468         reading /etc/publickey.
21469
21470         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
21471         allow cancellation when reading /etc/group.
21472
21473         * nss/nss_files/files-alias.c (internal_setent): Don't allow
21474         cancellation.
21475         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
21476
21477         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
21478         when using data file.
21479
21480         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
21481
21482         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
21483         (write_nis_obj): Use "c" and "e" in fopen.
21484
21485         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
21486
21487         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
21488
21489         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
21490
21491         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
21492
21493         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
21494         locale.alias.
21495
21496         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
21497
21498         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
21499
21500         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
21501
21502         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
21503         file parsing and set FD_CLOEXEC.
21504
21505 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
21506
21507         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
21508
21509 2011-11-14  Andreas Schwab  <schwab@redhat.com>
21510
21511         * malloc/arena.c (arena_get2): Don't call reused_arena when
21512         _int_new_arena failed.
21513
21514 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
21515
21516         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
21517         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
21518         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
21519         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
21520         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
21521         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
21522         to compile strcasecmp and strncasecmp.
21523         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
21524         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
21525
21526         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
21527
21528 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
21529
21530         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
21531         locale-defines.sym to gen-as-const-headers.
21532         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
21533         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
21534         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
21535         to compile strcasecmp and strncasecmp.
21536         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
21537         strcasecmp_l and strncasecmp_l.
21538         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
21539         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
21540         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
21541         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
21542         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
21543         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
21544         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
21545         * sysdeps/i386/i686/multiarch/strncase.S: New file.
21546         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
21547         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
21548         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
21549
21550 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
21551
21552         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
21553         result of SYSDEP_GETTIME_CPU to retval.
21554         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
21555         parameter list to macro.  Remove trailing semicolon.  Adjust users.
21556
21557         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
21558         variable.
21559
21560         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
21561         mantissa words.
21562         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
21563
21564         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
21565         from unused variable.
21566
21567         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
21568         DWARF definitions.
21569         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
21570         for assembling.
21571
21572         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
21573         over namespaces.
21574
21575         * sunrpc/rpc_prot.c (rejected): Fix case value.
21576
21577         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
21578         unsigned long long int to avoid warnings in shift.
21579
21580         * posix/regex_internal.c (re_string_reconstruct): Actually use result
21581         of use of trans.
21582         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
21583         variable tmp.
21584
21585         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
21586         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
21587         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
21588
21589         * nis/nis_table.c (nis_list): Use variable of correct type for
21590         result of __follow_path call.
21591
21592 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21593
21594         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
21595         of math functions ceil, trunc, floor, round, and sqrt, when
21596         avaliable on the platform.
21597         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
21598         name clash.
21599         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
21600         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
21601         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
21602
21603 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
21604
21605         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
21606         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
21607
21608 2011-11-11  Roland McGrath  <roland@hack.frob.com>
21609
21610         * include/unistd.h: Fix __readlink return type.
21611         Reported by Chris Metcalf <cmetcalf@tilera.com>.
21612
21613 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
21614
21615         * stdlib/ucontext.h: Undo last change for makecontext.
21616
21617 2011-11-11  Andreas Schwab  <schwab@redhat.com>
21618
21619         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
21620
21621         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
21622         * setjmp/setjmp.h: Mark functions as non-leaf.
21623         * setjmp/bits/setjmp2.h: Likewise.
21624         * stdlib/ucontext.h: Likewise.
21625
21626 2011-11-10  Andreas Schwab  <schwab@redhat.com>
21627
21628         * malloc/arena.c (_int_new_arena): Don't increment narenas.
21629         (reused_arena): Don't check arena limit.
21630         (arena_get2): Atomically check arena limit.
21631
21632 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
21633
21634         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
21635         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
21636
21637         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
21638         instructions.
21639
21640 2011-11-07  Andreas Schwab  <schwab@redhat.com>
21641
21642         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
21643         handler when locking.
21644
21645         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
21646         Fix size of allocated buffer.
21647
21648 2011-11-04  Andreas Schwab  <schwab@redhat.com>
21649
21650         [BZ #10103]
21651         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
21652         declarations for long double functions.
21653         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
21654
21655         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
21656
21657 2011-11-03  Andreas Schwab  <schwab@redhat.com>
21658
21659         * nscd/nscd.c (main): Don't start AVC thread until credentials are
21660         installed.
21661
21662         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
21663         is disabled.
21664
21665 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21666
21667         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
21668
21669 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
21670
21671         * include/alloca.h (stackinfo_alloca_round): Define.
21672         (extend_alloca): Use it.
21673         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
21674         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
21675         here.
21676
21677         * scripts/check-local-headers.sh: Ignore libaudit.h.
21678
21679         * nscd/Makefile (extra-objs): Make recursively expanded.
21680
21681 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
21682
21683         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
21684         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
21685
21686         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
21687         * posix/tst-rfc3484-2.c: Likewise.
21688         * posix/tst-rfc3484-3.c: Likewise.
21689
21690         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
21691         process_vm_writev.
21692         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
21693         process_vm_writev.
21694         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
21695         process_vm_writev from libc using GLIBC_2.15 version.
21696
21697         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
21698
21699 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
21700
21701         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
21702         stack usage.
21703
21704 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
21705
21706         [BZ #13367]
21707         * nss/getent.c (initgroups_keys): Show error message in case no group
21708         names are given.
21709
21710         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
21711         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
21712         __bump_nl_timestamp.
21713         * nscd/connections (nscd_init): When host database is served open
21714         netlink socket and request notification about configuration changes.
21715         (main_loop_poll): Track netlink file descriptor and bump timestamp
21716         in case data becomes available.
21717         (main_loop_epoll): Likewise.
21718         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
21719         (database_pers_head): Add extra_data fileds.
21720         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
21721         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
21722         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
21723         Adjust caller.
21724         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
21725         in6ai data, call __free_in6ai.
21726         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
21727         Add -DHAVE_NETLINK.
21728         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
21729         interface information.  Reuse previous data if netlink timestamp
21730         is not changed.
21731         (__bump_nl_timestamp): New function.
21732         (__free_in6ai): New function.
21733
21734 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
21735
21736         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
21737         close_not_cancel_no_status here.
21738         (__check_pf): Reorganize code a bit to not call close twice if OOM.
21739
21740 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
21741
21742         [BZ #13276]
21743         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
21744         return value.
21745
21746         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
21747         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
21748         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
21749
21750 2011-07-03  Andreas Jaeger  <aj@suse.de>
21751
21752         [BZ #10709]
21753         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
21754         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
21755         * math/libm-test.inc (sin_test): Add test case.
21756
21757 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
21758
21759         [BZ #13337]
21760         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
21761         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
21762
21763         * elf/chroot_canon.c (chroot_canon): Cleanups.
21764
21765         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
21766
21767         [BZ #13335]
21768         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
21769         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
21770
21771         * string/test-strchr.c: Make usable for strchrnul testing.
21772         * string/test-strchrnul.c: New file.
21773         * string/Makefile (strop-tests): Add strchrnul.
21774
21775         * po/it.po: Update from translation team.
21776         * po/es.po: Likewise.
21777
21778 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
21779
21780         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
21781         the three constants needed as parameters.  Drop the others.
21782         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
21783         __m128i_strloadu_tolower.
21784         Create and initialize variable zero and use it in all the places
21785         where _mm_setzero_si128 was used.
21786
21787         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
21788         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
21789         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
21790         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
21791         anymore.
21792         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
21793         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
21794         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
21795         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
21796         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
21797         __mpranred, __mptan.
21798         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
21799         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
21800         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
21801         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
21802         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
21803         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
21804         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
21805         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
21806         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
21807
21808 2011-10-28  Andreas Schwab  <schwab@redhat.com>
21809
21810         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
21811         redefine if SHARED.
21812         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
21813
21814         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
21815         wide char related routines to wcsmbs subdir.
21816
21817 2011-10-27  Andreas Schwab  <schwab@redhat.com>
21818
21819         [BZ #13344]
21820         * misc/sys/cdefs.h (__THROWNL): Define.
21821         * posix/unistd.h: Use __THREADNL instead of __THREAD
21822         for memory synchronization functions.
21823
21824 2011-10-26  Roland McGrath  <roland@hack.frob.com>
21825
21826         [BZ #13349]
21827         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
21828         doesn't exist.
21829         * manual/stdio.texi (Obstack Streams): Node removed.
21830
21831 2011-10-26  Andreas Schwab  <schwab@redhat.com>
21832
21833         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
21834         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
21835         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
21836
21837         * math/math_private.h (math_force_eval): Allow non-addressable
21838         arguments.
21839         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
21840
21841 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
21842
21843         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
21844         file is not needed.
21845
21846         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
21847         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
21848         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
21849         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
21850         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
21851         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
21852         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
21853         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
21854         Add AVX variants.
21855         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
21856         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
21857         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
21858         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
21859         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
21860         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
21861         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
21862         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
21863         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
21864         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
21865         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
21866         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
21867         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
21868         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
21869         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
21870         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
21871         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
21872         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
21873         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
21874
21875         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
21876         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
21877
21878         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
21879         place.  Use VEX encoding when compiling for AVX.
21880
21881 2011-10-25  Andreas Schwab  <schwab@redhat.com>
21882
21883         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
21884         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
21885
21886         * string/test-strchr.c (do_test): Don't generate NUL bytes.
21887
21888 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
21889
21890         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
21891         useless if() expression.
21892         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
21893         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
21894         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
21895         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
21896         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
21897         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
21898         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
21899         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
21900         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
21901         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
21902         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
21903         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
21904         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
21905         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
21906         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
21907         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
21908         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
21909         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
21910         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
21911
21912         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
21913
21914 2011-10-25  Andreas Schwab  <schwab@redhat.com>
21915
21916         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
21917         condition.
21918         * elf/dl-fini.c (_dl_sort_fini): Likewise.
21919
21920 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
21921
21922         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
21923         .text section.  Avoid duplicate constants.
21924         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
21925         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
21926         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
21927         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
21928         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
21929         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
21930         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
21931         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
21932         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
21933         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
21934         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
21935         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
21936         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
21937         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
21938         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
21939         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
21940         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
21941         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
21942         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
21943         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
21944         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
21945         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
21946         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
21947         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
21948         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
21949         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
21950         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
21951         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
21952         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
21953         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
21954         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
21955         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
21956         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
21957         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
21958         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
21959         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
21960         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
21961         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
21962         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
21963         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
21964         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
21965         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
21966         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
21967         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
21968         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
21969
21970 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
21971
21972         * sysdeps/x86_64/dla.h: Move to ...
21973         * sysdeps/x86_64/fpu/dla.h: ...here.
21974         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
21975         situations.  Use __builtin_fma only for gcc 4.6 and up.
21976
21977         * config.make.in: Add have-mfma4 entry.
21978         * configure.in: Substitute libc_cv_cc_fma4.
21979         * math/Makefile (dbl-only-routines): Add sincostab.
21980         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
21981         Use __sincostab not sincos.
21982         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
21983         name is a macro.
21984         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
21985         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
21986         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
21987         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
21988         using __copysign.
21989         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
21990         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
21991         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
21992         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
21993         and __inv.
21994         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
21995         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
21996         __copysign.
21997         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
21998         define aliases when function name is a macro.
21999         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
22000         sysdeps/ieee754/dbl-64/sincos.tbl.
22001         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
22002         fma4-enabled routines.
22003         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
22004         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
22005         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
22006         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
22007         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
22008         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
22009         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
22010         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
22011         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
22012         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
22013         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
22014         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
22015         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
22016         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
22017         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
22018         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
22019         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
22020         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
22021         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
22022         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
22023         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
22024         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
22025         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
22026         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
22027         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
22028         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
22029         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
22030         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
22031         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
22032         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
22033
22034         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
22035         rename.
22036         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
22037         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
22038         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
22039         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
22040         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
22041         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
22042         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
22043         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
22044
22045 2011-10-24  Andreas Schwab  <schwab@redhat.com>
22046
22047         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
22048
22049 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
22050
22051         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
22052
22053         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
22054         prediction.
22055         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
22056
22057         * string/strnlen.c: Don't define STRNLEN, reverse logic.
22058         Remove unused variable magic_bits.
22059         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
22060
22061         * string/strnlen.c: Define and use STRNLEN macro.
22062         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
22063         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
22064         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
22065         * wcsmbs/wcslen.c: Define and use WCSLEN.
22066         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
22067         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
22068         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
22069         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
22070         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
22071         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
22072         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
22073
22074 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22075
22076         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
22077         strnlen-sse2-no-bsf.
22078         Rename strlen-no-bsf to strlen-sse2-no-bsf.
22079         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
22080         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
22081         Add strnlen support.
22082         (USE_AS_STRNLEN): New macro.
22083         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
22084         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
22085         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
22086         * sysdeps/x86_64/wcslen.S: New file.
22087
22088 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
22089
22090         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
22091         XMM-moves are used for copying on small sizes.
22092
22093 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22094
22095         * wcsmbs/Makefile (strop-tests): Add wcschr.
22096         * wcsmbs/test-wcschr.c: New file.
22097         * string/test-strchr.c: Update.
22098         Add wcschr support.
22099         (WIDE): New macro.
22100
22101 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22102
22103         * wcsmbs/Makefile (strop-tests): Add wcslen.
22104         * wcsmbs/test-wcslen.c: New file.
22105         * string/test-strlen.c: Update.
22106         Add wcslen support.
22107         (WIDE): New macro.
22108
22109 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
22110
22111         * po/it.po: Update from translation team.
22112
22113 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22114
22115         * sysdeps/x86_64/wcscmp.S: Update.
22116         Fix wrong comparison semantics.
22117         wcscmp shall use signed comparison not unsigned.
22118         Don't use substraction to avoid overflow bug.
22119         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
22120         * wcsmbc/wcscmp.c: Likewise.
22121         * string/test-strcmp.c: Likewise.
22122         Add new tests to check cases with negative values.
22123
22124 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
22125
22126         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
22127         * sysdeps/x86_64/dla.h: ...here.  New file.
22128         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
22129         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
22130         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
22131         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
22132         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
22133         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
22134         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
22135         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
22136         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
22137
22138 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
22139
22140         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
22141         __ynl_finite aliases.
22142
22143 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
22144
22145         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
22146
22147         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
22148         define DLA_FMA.
22149         [DLA_FMA] (EMULV): Use DLA_FMA.
22150         [DLA_FMA] (MUL12): Use EMULV.
22151         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
22152         that are not needed.
22153         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
22154         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
22155         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
22156         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
22157         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
22158         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
22159         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
22160
22161 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
22162
22163         * math/s_nan.c: Undef __nan.
22164         * math/s_nanf.c: Undef __nanf.
22165         * math/s_nanl.c: Undef __nanl.
22166         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
22167         "math_private.h".
22168
22169 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
22170
22171         * math/s_catan.c: Add branch predictions.
22172         * math/s_catanf.c: Likewise.
22173         * math/s_catanh.c: Likewise.
22174         * math/s_catanhf.c: Likewise.
22175         * math/s_catanhl.c: Likewise.
22176         * math/s_catanl.c: Likewise.
22177         * math/s_cexp.c: Likewise.
22178         * math/s_cexpf.c: Likewise.
22179         * math/s_cexpl.c: Likewise.
22180         * math/s_clog.c: Likewise.
22181         * math/s_clog10.c: Likewise.
22182         * math/s_clog10f.c: Likewise.
22183         * math/s_clog10l.c: Likewise.
22184         * math/s_clogf.c: Likewise.
22185         * math/s_clogl.c: Likewise.
22186         * math/s_csqrt.c: Likewise.
22187         * math/s_csqrtf.c: Likewise.
22188         * math/s_csqrtl.c: Likewise.
22189         * math/s_ctanf.c: Likewise.
22190         * math/s_ctanh.c: Likewise.
22191         * math/s_ctanhf.c: Likewise.
22192         * math/s_ctanhl.c: Likewise.
22193         * math/s_ctanl.c: Likewise.
22194
22195         * math/math_private.h: Define __nan, __nanf, __nanl.
22196         * math/s_cacosh.c: Include <math_private.h>.
22197         * math/s_cacoshl.c: Likewise.
22198         * math/s_casinh.c: Likewise.
22199         * math/s_casinhf.c: Likewise.
22200         * math/s_casinhl.c: Likewise.
22201         * math/s_ccos.c: Rely entire on ccosh.
22202         * math/s_ccosf.c: Rely entire on ccoshf.
22203         * math/s_ccosl.c: Rely entirely on ccoshl.
22204         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
22205         Remove tests for FE_INVALID.
22206         * math/s_ccoshf.c: Likewise.
22207         * math/s_ccoshl.c: Likewise.
22208         * math/s_csin.c: Likewise.
22209         * math/s_csinf.c: Likewise.
22210         * math/s_csinh.c Likewise.
22211         * math/s_csinhf.c: Likewise.
22212         * math/s_csinhl.c: Likewise.
22213         * math/s_csinl.c: Likewise.
22214         * math/s_ctan.c: Likewise.
22215         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
22216         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
22217         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
22218
22219 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
22220
22221         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
22222         compilation problems.
22223
22224         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
22225         __builtin_expect.
22226
22227 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
22228
22229         * sysdeps/i386/configure.in: Test for -mfma4 option.
22230         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
22231         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
22232         COMMON_CPUID_INDEX_80000001.
22233         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
22234         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
22235         use it if FMA3 is not supported.
22236         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
22237
22238         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
22239         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
22240
22241 2011-10-20  Andreas Schwab  <schwab@redhat.com>
22242
22243         [BZ #12892]
22244         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
22245         it would create a cycle with a link time dependency.
22246
22247 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
22248
22249         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
22250         instruction.
22251         * string/Makefile (strop-tests): Add rawmemchr.
22252         * string/test-rawmemchr.c: New file.
22253
22254         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
22255         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
22256         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
22257         when compiling str{,n}casecmp and when AVX is available.  Hook up
22258         new optimized code in initializers.
22259
22260 2011-10-19  Andreas Schwab  <schwab@redhat.com>
22261
22262         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
22263         __feraiseexcept instead of feraiseexcept.
22264
22265 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
22266
22267         * math/math_private.h: Define defaults for libc_fetestexcept and
22268         libc_feupdateenv.
22269         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
22270         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
22271         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
22272         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
22273         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
22274         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
22275         libc_fetestexcept and libc_feupdateenv.
22276
22277         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
22278         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
22279         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
22280         * sysdeps/x86_64/fpu/math_private.h: Define special version of
22281         libc_feholdexcept_setround.
22282
22283         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
22284         Add s_nearbyint-c and s_nearbyintf-c.
22285         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
22286         nearbyintf inlines.
22287         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
22288         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
22289         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
22290         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
22291
22292         * math/math_private.h: Define defaults for libc_fegetround,
22293         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
22294         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
22295         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
22296         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
22297         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
22298         standard functions.
22299         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
22300         Remove comments and hacks for old compiler versions.
22301         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
22302         libc_fegetround, libc_fesetround, libc_feholdexcept, and
22303         libc_feholdexceptl.
22304
22305 2011-10-18  Andreas Schwab  <schwab@redhat.com>
22306
22307         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
22308         (__feraiseexcept_renamed): Add __NTH.
22309         (feraiseexcept): Add __NTH.  Rename local variables to fix
22310         namespace violations.
22311
22312 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
22313
22314         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
22315
22316         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
22317
22318         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
22319         recently added interfaces.
22320         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
22321
22322         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
22323         about macro parameter expansion.
22324
22325         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
22326         __NO_MATH_INLINES is defined.  Cleanups.
22327
22328         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
22329         and __floorf is target has SSE4.1.
22330         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
22331         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
22332         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
22333         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
22334
22335         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
22336         name.
22337         (floorf): Likewise.
22338
22339         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
22340
22341 2011-10-17  Andreas Schwab  <schwab@redhat.com>
22342
22343         * misc/sys/cdefs.h: Fix last change.
22344
22345         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
22346         database lookup.
22347
22348 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
22349
22350         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
22351
22352         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
22353         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
22354         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
22355         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
22356         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
22357         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
22358         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
22359         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
22360         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
22361         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
22362         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
22363         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
22364         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
22365         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
22366         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
22367         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
22368         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
22369         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
22370         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
22371         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
22372         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
22373         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
22374
22375         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
22376         ceil, ceilf, floor, floorf.
22377
22378         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
22379         Perform IRELATIVE relocations last.
22380
22381         * elf/do-rel.h: Add another parameter nrelative, replacing the
22382         local variable with the same name.  Change name of the function
22383         to end in Rel or Rela (uppercase).
22384         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
22385         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
22386         elf_dynamic_do_##reloc function.
22387
22388 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
22389
22390         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
22391         is sufficient, at least on modern CPUs.
22392
22393         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
22394
22395         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
22396         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
22397
22398         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
22399         __expl_finite.
22400         * math/bits/math-finite.h: Add entries for exp.
22401         * math/e_expl.c: Add __*_finite alias.
22402         * sysdeps/i386/fpu/e_exp.S: Likewise.
22403         * sysdeps/i386/fpu/e_expf.S: Likewise.
22404         * sysdeps/i386/fpu/e_expl.c: Likewise.
22405         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
22406         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
22407         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
22408         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
22409         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
22410         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
22411         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
22412
22413         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
22414         is sufficient, at least on modern CPUs.
22415
22416         * ctype/ctype-info.c (__ctype_init): Define.
22417         * include/ctype.h (__ctype_init): Declare.
22418         (__ctype_b_loc): The variable is always initialized.
22419         (__ctype_toupper_loc): Likewise.
22420         (__ctype_tolower_loc): Likewise.
22421         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
22422         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
22423
22424 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
22425
22426         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
22427
22428         * configure.in: Also look in $cxxmachine/include for C++ system
22429         headers.
22430
22431 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22432
22433         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
22434         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
22435         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
22436         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
22437         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
22438         (USE_AS_WMEMCMP): New macro.
22439         Fixing indents.
22440         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
22441         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
22442         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
22443         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
22444         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
22445         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
22446         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
22447         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
22448         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
22449         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
22450         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
22451         (USE_AS_WMEMCMP): New macro.
22452         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
22453         * sysdeps/string/test-memcmp.c: Update.
22454         Fix simple_wmemcmp.
22455         Add new tests.
22456         * wcsmbs/wmemcmp.c: Update.
22457         (WMEMCMP): New macro.
22458         Fix overflow bug.
22459
22460 2011-10-12  Andreas Jaeger  <aj@suse.de>
22461
22462         [BZ #13268]
22463         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
22464
22465 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
22466
22467         * libio/iofwide.c (do_length): Avoid warning.
22468
22469         * ctype/ctype.h (__isctype_f): Add missing __THROW.
22470
22471 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
22472
22473         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
22474
22475         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
22476         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
22477         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
22478         * sysdeps/i386/i686/fpu/e_log.S: New file.
22479         * sysdeps/i386/i686/fpu/e_logf.S: New file.
22480         * sysdeps/i386/i686/fpu/e_logl.S: New file.
22481
22482         * ctype/ctype.h: Add support for inlined isXXX functions when
22483         compiling C++ code.
22484
22485 2011-10-14  Andreas Schwab  <schwab@redhat.com>
22486
22487         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
22488
22489         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
22490
22491 2011-10-13  Roland McGrath  <roland@hack.frob.com>
22492
22493         [BZ #13291]
22494         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
22495
22496 2011-10-13  Andreas Schwab  <schwab@redhat.com>
22497
22498         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
22499         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
22500         feraiseexcept.
22501
22502         * sysdeps/x86_64/memrchr.S: Check for zero size.
22503
22504         * string/stratcliff.c: Add memrchr tests.
22505
22506 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22507
22508         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
22509         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
22510         rawmemchr-sse2 rawmemchr-sse2-bsf.
22511         * sysdeps/i386/i686/multiarch/memchr.S: New file.
22512         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
22513         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
22514         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
22515         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
22516         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
22517         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
22518         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
22519         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
22520         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
22521         * string/memrchr.c (MEMRCHR): New macro.
22522
22523 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
22524
22525         Add integration with gcc's -ffinite-math-only and optimize wrapper
22526         functions in libm.
22527         * Versions.def: Define GLIBC_2.15 version for libm.
22528         * math/Makefile (headers): Add bits/math-finite.h.
22529         * math/bits/math-finite.h: New file.
22530         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
22531         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
22532         * math/e_acoshl.c: Add __*_finite alias.
22533         * math/e_acosl.c: Likewise.
22534         * math/e_asinl.c: Likewise.
22535         * math/e_atan2l.c: Likewise.
22536         * math/e_atanhl.c: Likewise.
22537         * math/e_coshl.c: Likewise.
22538         * math/e_exp10.c: Likewise.
22539         * math/e_exp10f.c: Likewise.
22540         * math/e_exp10l.c: Likewise.
22541         * math/e_exp2l.c: Likewise.
22542         * math/e_fmodl.c: Likewise.
22543         * math/e_gammal_r.c: Likewise.
22544         * math/e_hypotl.c: Likewise.
22545         * math/e_j0l.c: Likewise.
22546         * math/e_j1l.c: Likewise.
22547         * math/e_jnl.c: Likewise.
22548         * math/e_lgammal_r.c: Likewise.
22549         * math/e_log10l.c: Likewise.
22550         * math/e_log2l.c: Likewise.
22551         * math/e_logl.c: Likewise.
22552         * math/e_powl.c: Likewise.
22553         * math/e_sinhl.c: Likewise.
22554         * math/e_sqrtl.c: Likewise.
22555         * math/e_scalb.c: Completely rewritten and optimized.
22556         * math/e_scalbf.c: Likewise.
22557         * math/e_scalbl.c: Likewise.
22558         * math/w_acos.c: Likewise.
22559         * math/w_acosf.c: Likewise.
22560         * math/w_acosl.c: Likewise.
22561         * math/w_acosh.c: Likewise.
22562         * math/w_acoshf.c: Likewise.
22563         * math/w_acoshl.c: Likewise.
22564         * math/w_asin.c: Likewise.
22565         * math/w_asinf.c: Likewise.
22566         * math/w_asinl.c: Likewise.
22567         * math/w_atan2.c: Likewise.
22568         * math/w_atan2f.c: Likewise.
22569         * math/w_atan2l.c: Likewise.
22570         * math/w_atanh.c: Likewise.
22571         * math/w_atanhf.c: Likewise.
22572         * math/w_atanhl.c: Likewise.
22573         * math/w_exp10.c: Likewise.
22574         * math/w_exp10f.c: Likewise.
22575         * math/w_exp10l.c: Likewise.
22576         * math/w_fmod.c: Likewise.
22577         * math/w_fmodf.c: Likewise.
22578         * math/w_fmodl.c: Likewise.
22579         * math/w_j0.c: Likewise.
22580         * math/w_j0f.c: Likewise.
22581         * math/w_j0l.c: Likewise.
22582         * math/w_j1.c: Likewise.
22583         * math/w_j1f.c: Likewise.
22584         * math/w_j1l.c: Likewise.
22585         * math/w_jn.c: Likewise.
22586         * math/w_jnf.c: Likewise.
22587         * math/w_log.c: Likewise.
22588         * math/w_logf.c: Likewise.
22589         * math/w_logl.c: Likewise.
22590         * math/w_log10.c: Likewise.
22591         * math/w_log10f.c: Likewise.
22592         * math/w_log10l.c: Likewise.
22593         * math/w_log2.c: Likewise.
22594         * math/w_log2f.c: Likewise.
22595         * math/w_log2l.c: Likewise.
22596         * math/w_pow.c: Likewise.
22597         * math/w_powf.c: Likewise.
22598         * math/w_powl.c: Likewise.
22599         * math/w_remainder.c: Likewise.
22600         * math/w_remainderf.c: Likewise.
22601         * math/w_remainderl.c: Likewise.
22602         * math/w_scalb.c: Likewise.
22603         * math/w_scalbf.c: Likewise.
22604         * math/w_scalbl.c: Likewise.
22605         * math/w_sqrt.c: Likewise.
22606         * math/w_sqrtf.c: Likewise.
22607         * math/w_sqrtl.c: Likewise.
22608         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
22609         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
22610         used.
22611         * math/math_private.h: Declare __kernel_standard_f.
22612         * math/w_cosh.c: Remove cruft and optimize a bit.
22613         * math/w_coshf.c: Likewise.
22614         * math/w_coshl.c: Likewise.
22615         * math/w_exp2.c: Likewise.
22616         * math/w_exp2f.c: Likewise.
22617         * math/w_exp2l.c: Likewise.
22618         * math/w_hypot.c: Likewise.
22619         * math/w_hypotf.c: Likewise.
22620         * math/w_hypotl.c: Likewise.
22621         * math/w_lgamma.c: Likewise.
22622         * math/w_lgamma_r.c: Likewise.
22623         * math/w_lgammaf.c: Likewise.
22624         * math/w_lgammaf_r.c: Likewise.
22625         * math/w_lgammal.c: Likewise.
22626         * math/w_lgammal_r.c: Likewise.
22627         * math/w_sinh.c: Likewise.
22628         * math/w_sinhf.c: Likewise.
22629         * math/w_sinhl.c: Likewise.
22630         * math/w_tgamma.c: Likewise.
22631         * math/w_tgammaf.c: Likewise.
22632         * math/w_tgammal.c: Likewise.
22633         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
22634         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
22635         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
22636         Minor optimizations.  Pretty printing.  Remove cruft.
22637         * sysdeps/i386/fpu/e_acosf.S: Likewise.
22638         * sysdeps/i386/fpu/e_acosh.S: Likewise.
22639         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
22640         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
22641         * sysdeps/i386/fpu/e_acosl.c: Likewise.
22642         * sysdeps/i386/fpu/e_asin.S: Likewise.
22643         * sysdeps/i386/fpu/e_asinf.S: Likewise.
22644         * sysdeps/i386/fpu/e_atan2.S: Likewise.
22645         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
22646         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
22647         * sysdeps/i386/fpu/e_atanh.S: Likewise.
22648         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
22649         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
22650         * sysdeps/i386/fpu/e_exp10.S: Likewise.
22651         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
22652         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
22653         * sysdeps/i386/fpu/e_exp2.S: Likewise.
22654         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
22655         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
22656         * sysdeps/i386/fpu/e_fmod.S: Likewise.
22657         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
22658         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
22659         * sysdeps/i386/fpu/e_hypot.S: Likewise.
22660         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
22661         * sysdeps/i386/fpu/e_log.S: Likewise.
22662         * sysdeps/i386/fpu/e_log10.S: Likewise.
22663         * sysdeps/i386/fpu/e_log10f.S: Likewise.
22664         * sysdeps/i386/fpu/e_log10l.S: Likewise.
22665         * sysdeps/i386/fpu/e_log2.S: Likewise.
22666         * sysdeps/i386/fpu/e_log2f.S: Likewise.
22667         * sysdeps/i386/fpu/e_log2l.S: Likewise.
22668         * sysdeps/i386/fpu/e_logf.S: Likewise.
22669         * sysdeps/i386/fpu/e_logl.S: Likewise.
22670         * sysdeps/i386/fpu/e_pow.S: Likewise.
22671         * sysdeps/i386/fpu/e_powf.S: Likewise.
22672         * sysdeps/i386/fpu/e_powl.S: Likewise.
22673         * sysdeps/i386/fpu/e_remainder.S: Likewise.
22674         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
22675         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
22676         * sysdeps/i386/fpu/e_scalb.S: Likewise.
22677         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
22678         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
22679         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
22680         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
22681         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
22682         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
22683         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
22684         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
22685         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
22686         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
22687         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
22688         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
22689         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
22690         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
22691         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
22692         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
22693         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
22694         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
22695         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
22696         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
22697         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
22698         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
22699         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
22700         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
22701         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
22702         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
22703         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
22704         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
22705         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
22706         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
22707         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
22708         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
22709         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
22710         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
22711         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
22712         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
22713         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
22714         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
22715         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
22716         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
22717         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
22718         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
22719         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
22720         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
22721         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
22722         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
22723         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
22724         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
22725         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
22726         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
22727         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
22728         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
22729         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
22730         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
22731         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
22732         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
22733         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
22734         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
22735         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
22736         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
22737         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
22738         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
22739         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
22740         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
22741         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
22742         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
22743         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
22744         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
22745         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
22746         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
22747         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
22748         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
22749         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
22750         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
22751         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
22752         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
22753         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
22754         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
22755         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
22756         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
22757         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
22758         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
22759         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
22760         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
22761         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
22762         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
22763         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
22764         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
22765         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
22766         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
22767         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
22768         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
22769         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
22770         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
22771         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
22772         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
22773         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
22774         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
22775         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
22776         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
22777         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
22778         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
22779         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
22780         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
22781         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
22782         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
22783         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
22784         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
22785         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
22786         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
22787         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
22788         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
22789         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
22790         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
22791         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
22792         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
22793         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
22794         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
22795         (__isnanf): Likewise.
22796         (__isinf_ns): Likewise.
22797         (__isinf_nsf): Likewise.
22798         (__finite): Likewise.
22799         (__finitef): Likewise.
22800         (__ieee754_sqrt): Define as macro.
22801         (__ieee754_sqrtf): Define as macro.
22802         (__ieee754_sqrtl): Define as macro.
22803         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
22804         inlined copy.
22805         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
22806         __FINITE_MATH_ONLY__ consistent.
22807         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
22808
22809 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
22810
22811         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
22812         of rawmemchr.
22813
22814         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
22815
22816 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
22817
22818         * po/ja.po: Update from translation team.
22819
22820 2011-10-08  Roland McGrath  <roland@hack.frob.com>
22821
22822         * locale/programs/locarchive.c (prepare_address_space): New function.
22823         (create_archive, enlarge_archive, open_archive): Use it.
22824
22825         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
22826         inside [SHARED], where it is used.
22827
22828         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
22829
22830         * nss/getent.c (netgroup_keys): Remove unused variable.
22831         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
22832
22833 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
22834
22835         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
22836         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
22837         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
22838         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
22839         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
22840         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
22841         * math/Makefile (libm-calls): Add s_isinf_ns.
22842         * math/divtc3.c: Use __isinf_nsl instead of isinf.
22843         * math/multc3.c: Likewise.
22844         * math/s_casin.c: Likewise.
22845         * math/s_casinf.c: Likewise.
22846         * math/s_casinl.c: Likewise.
22847         * math/s_ccos.c: Likewise.
22848         * math/s_ccosf.c: Likewise.
22849         * math/s_ccosl.c: Likewise.
22850         * math/s_ctan.c: Likewise.
22851         * math/s_ctanf.c: Likewise.
22852         * math/s_ctanh.c: Likewise.
22853         * math/s_ctanhf.c: Likewise.
22854         * math/s_ctanhl.c: Likewise.
22855         * math/s_ctanl.c: Likewise.
22856         * math/w_fmod.c: Likewise.
22857         * math/w_fmodf.c: Likewise.
22858         * math/w_fmodl.c: Likewise.
22859         * math/w_remainder.c: Likewise.
22860         * math/w_remainderf.c: Likewise.
22861         * math/w_remainderl.c: Likewise.
22862         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
22863         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
22864         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
22865         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
22866         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
22867         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
22868         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
22869         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
22870
22871         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
22872         of the number.
22873         * stdio-common/printf_fphex.c: Likewise.
22874         * stdio-common/printf_size.c: Likewise.
22875
22876         * math/e_exp10.c: Include math_private.h using <...> not "...".
22877         * math/e_exp10f.c: Likewise.
22878         * math/e_exp10l.c: Likewise.
22879         * math/e_exp2l.c: Likewise.
22880         * math/e_j0l.c: Likewise.
22881         * math/e_j1l.c: Likewise.
22882         * math/e_jnl.c: Likewise.
22883         * math/e_lgammal_r.c: Likewise.
22884         * math/e_rem_pio2l.c: Likewise.
22885         * math/e_scalb.c: Likewise.
22886         * math/e_scalbf.c: Likewise.
22887         * math/e_scalbl.c: Likewise.
22888         * math/k_cosl.c: Likewise.
22889         * math/k_sinl.c: Likewise.
22890         * math/k_tanl.c: Likewise.
22891         * math/s_cacoshf.c: Likewise.
22892         * math/s_catan.c: Likewise.
22893         * math/s_catanf.c: Likewise.
22894         * math/s_catanh.c: Likewise.
22895         * math/s_catanhf.c: Likewise.
22896         * math/s_catanhl.c: Likewise.
22897         * math/s_catanl.c: Likewise.
22898         * math/s_ccosh.c: Likewise.
22899         * math/s_ccoshf.c: Likewise.
22900         * math/s_ccoshl.c: Likewise.
22901         * math/s_cexp.c: Likewise.
22902         * math/s_cexpf.c: Likewise.
22903         * math/s_cexpl.c: Likewise.
22904         * math/s_clog.c: Likewise.
22905         * math/s_clog10.c: Likewise.
22906         * math/s_clog10f.c: Likewise.
22907         * math/s_clog10l.c: Likewise.
22908         * math/s_clogf.c: Likewise.
22909         * math/s_clogl.c: Likewise.
22910         * math/s_csin.c: Likewise.
22911         * math/s_csinf.c: Likewise.
22912         * math/s_csinh.c: Likewise.
22913         * math/s_csinhf.c: Likewise.
22914         * math/s_csinhl.c: Likewise.
22915         * math/s_csinl.c: Likewise.
22916         * math/s_csqrt.c: Likewise.
22917         * math/s_csqrtf.c: Likewise.
22918         * math/s_csqrtl.c: Likewise.
22919         * math/s_ctan.c: Likewise.
22920         * math/s_ctanf.c: Likewise.
22921         * math/s_ctanh.c: Likewise.
22922         * math/s_ctanhf.c: Likewise.
22923         * math/s_ctanhl.c: Likewise.
22924         * math/s_ctanl.c: Likewise.
22925         * math/s_ldexp.c: Likewise.
22926         * math/s_ldexpf.c: Likewise.
22927         * math/s_ldexpl.c: Likewise.
22928         * math/s_significand.c: Likewise.
22929         * math/s_significandf.c: Likewise.
22930         * math/s_significandl.c: Likewise.
22931         * math/w_acos.c: Likewise.
22932         * math/w_acosf.c: Likewise.
22933         * math/w_acosh.c: Likewise.
22934         * math/w_acoshf.c: Likewise.
22935         * math/w_acoshl.c: Likewise.
22936         * math/w_acosl.c: Likewise.
22937         * math/w_asin.c: Likewise.
22938         * math/w_asinf.c: Likewise.
22939         * math/w_asinl.c: Likewise.
22940         * math/w_atan2.c: Likewise.
22941         * math/w_atan2f.c: Likewise.
22942         * math/w_atan2l.c: Likewise.
22943         * math/w_atanh.c: Likewise.
22944         * math/w_atanhf.c: Likewise.
22945         * math/w_atanhl.c: Likewise.
22946         * math/w_cosh.c: Likewise.
22947         * math/w_coshf.c: Likewise.
22948         * math/w_coshl.c: Likewise.
22949         * math/w_dremf.c: Likewise.
22950         * math/w_exp10.c: Likewise.
22951         * math/w_exp10f.c: Likewise.
22952         * math/w_exp10l.c: Likewise.
22953         * math/w_exp2.c: Likewise.
22954         * math/w_exp2f.c: Likewise.
22955         * math/w_fmod.c: Likewise.
22956         * math/w_fmodf.c: Likewise.
22957         * math/w_fmodl.c: Likewise.
22958         * math/w_hypot.c: Likewise.
22959         * math/w_hypotf.c: Likewise.
22960         * math/w_hypotl.c: Likewise.
22961         * math/w_j0.c: Likewise.
22962         * math/w_j0f.c: Likewise.
22963         * math/w_j0l.c: Likewise.
22964         * math/w_j1.c: Likewise.
22965         * math/w_j1f.c: Likewise.
22966         * math/w_j1l.c: Likewise.
22967         * math/w_jn.c: Likewise.
22968         * math/w_jnf.c: Likewise.
22969         * math/w_jnl.c: Likewise.
22970         * math/w_lgamma.c: Likewise.
22971         * math/w_lgamma_r.c: Likewise.
22972         * math/w_lgammaf.c: Likewise.
22973         * math/w_lgammaf_r.c: Likewise.
22974         * math/w_lgammal.c: Likewise.
22975         * math/w_lgammal_r.c: Likewise.
22976         * math/w_log.c: Likewise.
22977         * math/w_log10.c: Likewise.
22978         * math/w_log10f.c: Likewise.
22979         * math/w_log10l.c: Likewise.
22980         * math/w_log2.c: Likewise.
22981         * math/w_log2f.c: Likewise.
22982         * math/w_log2l.c: Likewise.
22983         * math/w_logf.c: Likewise.
22984         * math/w_logl.c: Likewise.
22985         * math/w_pow.c: Likewise.
22986         * math/w_powf.c: Likewise.
22987         * math/w_powl.c: Likewise.
22988         * math/w_remainder.c: Likewise.
22989         * math/w_remainderf.c: Likewise.
22990         * math/w_remainderl.c: Likewise.
22991         * math/w_scalb.c: Likewise.
22992         * math/w_scalbf.c: Likewise.
22993         * math/w_scalbl.c: Likewise.
22994         * math/w_sinh.c: Likewise.
22995         * math/w_sinhf.c: Likewise.
22996         * math/w_sinhl.c: Likewise.
22997         * math/w_sqrt.c: Likewise.
22998         * math/w_sqrtf.c: Likewise.
22999         * math/w_sqrtl.c: Likewise.
23000         * math/w_tgamma.c: Likewise.
23001         * math/w_tgammaf.c: Likewise.
23002         * math/w_tgammal.c: Likewise.
23003
23004         * po/ja.po: Update from translation team.
23005
23006 2011-09-29  Andreas Jaeger  <aj@suse.de>
23007
23008         [BZ #13179]
23009         * sunrpc/netname.c (netname2host): Fix logic.
23010
23011         [BZ #6779]
23012         [BZ #6783]
23013         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
23014         correctly.
23015         * math/w_remainder.c (__remainder): Likewise.
23016         * math/w_remainderf.c (__remainderf): Likewise.
23017         * math/libm-test.inc (remainder_test): Add test cases.
23018
23019 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23020
23021         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
23022         sdiv_qrnnd.
23023
23024 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
23025
23026         * string/test-memcmp.c: Avoid unncessary #defines.
23027         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
23028
23029 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23030
23031         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
23032         Use new sse2 version for core i3 - i7 as it's faster
23033         than sse42 version.
23034         (bit_Prefer_PMINUB_for_stringop): New.
23035         * sysdeps/x86_64/rawmemchr.S: Update.
23036         Replace with faster SSE2 version.
23037         * sysdeps/x86_64/memrchr.S: New file.
23038         * sysdeps/x86_64/memchr.S: Update.
23039         Replace with faster SSE2 version.
23040
23041 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
23042
23043         * elf/dl-load.c (lose): Add cast to avoid warning.
23044
23045 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
23046
23047         * po/ca.po: Update from translation team.
23048
23049         * inet/getnetgrent_r.c: Hook up nscd.
23050         * nscd/Makefile (routines): Add nscd_netgroup.
23051         (nscd-modules): Add netgroupcache.
23052         (CFLAGS-netgroupcache.c): Define.
23053         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
23054         (cache_search): Add const to second parameter.
23055         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
23056         INNETGR.
23057         (dbs): Add netgrdb entry.
23058         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
23059         (verify_persistent_db): Handle netgrdb.
23060         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
23061         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
23062         GETFDNETGR.
23063         (netgroup_response_header): Define.
23064         (innetgroup_response_header): Define.
23065         (datahead): Add netgroup_response_header and innetgroup_response_header
23066         elements.
23067         * nscd/nscd.conf: Add entries for netgroup cache.
23068         * nscd/nscd.h (dbtype): Add netgrdb.
23069         (_PATH_NSCD_NETGROUP_DB): Define.
23070         (netgroup_iov_disabled): Declare.
23071         (xmalloc, xcalloc, xrealloc): Move declarations here.
23072         (cache_search): Adjust prototype.
23073         Add netgroup-related prototypes.
23074         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
23075         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
23076         (__nscd_innetgr): Declare.
23077         * nscd/selinux.c (perms): Use access_vector_t as element type and
23078         add netgroup-related initializers.
23079         * nscd/netgroupcache.c: New file.
23080         * nscd/nscd_netgroup.c: New file.
23081         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
23082         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
23083         For four parameters use innetgr.
23084         * nss/nss_files/files-init.c: Add definition and callback for netgr.
23085         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
23086         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
23087         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
23088
23089         * nscd/connections.c (register_traced_file): Don't register file
23090         for disabled databases.
23091
23092 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
23093
23094         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
23095
23096         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
23097         from tree and freeing node.
23098
23099 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
23100
23101         * nss/nsswitch.c (__nss_database_lookup): Handle
23102         nss_parse_service_list out of memory case.
23103
23104 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
23105
23106         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
23107         out of memory case.
23108
23109 2011-10-04  Andreas Schwab  <schwab@redhat.com>
23110
23111         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
23112         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
23113         pass it down.
23114         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
23115         elf_machine_rela, elf_machine_lazy_rel.
23116         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
23117         (ELF_DYNAMIC_DO_REL): Likewise.
23118         (ELF_DYNAMIC_DO_RELA): Likewise.
23119         (ELF_DYNAMIC_RELOCATE): Likewise.
23120         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
23121         to ELF_DYNAMIC_DO_REL.
23122         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
23123         (dl_main): In trace mode always set __RTLD_NOIFUNC.
23124         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
23125         elf_machine_rela.
23126         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
23127         skip_ifunc, don't call ifunc function if non-zero.
23128         (elf_machine_rela): Likewise.
23129         (elf_machine_lazy_rel): Likewise.
23130         (elf_machine_lazy_rela): Likewise.
23131         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
23132         (elf_machine_lazy_rel): Likewise.
23133         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
23134         Likewise.
23135         (elf_machine_lazy_rel): Likewise.
23136         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
23137         Likewise.
23138         (elf_machine_lazy_rel): Likewise.
23139         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
23140         (elf_machine_lazy_rel): Likewise.
23141         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
23142         (elf_machine_lazy_rel): Likewise.
23143         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
23144         (elf_machine_lazy_rel): Likewise.
23145         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
23146         (elf_machine_lazy_rel): Likewise.
23147         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
23148         (elf_machine_lazy_rel): Likewise.
23149         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
23150         (elf_machine_lazy_rel): Likewise.
23151
23152 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
23153
23154         * nss/nss_files/files-init.c (_nss_files_init): Use static
23155         initialization for all the *_traced_file variables.
23156
23157 2011-09-28  Andreas Schwab  <schwab@redhat.com>
23158
23159         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
23160
23161 2011-09-27  Roland McGrath  <roland@hack.frob.com>
23162
23163         [BZ #13226]
23164         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
23165
23166 2011-09-27  Andreas Schwab  <schwab@redhat.com>
23167
23168         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
23169         Reread the line before reparsing it.
23170
23171 2011-09-26  Andreas Schwab  <schwab@redhat.com>
23172
23173         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
23174
23175 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
23176             Maxim Kuvyrkov  <maxim@codesourcery.com>
23177             Joseph Myers  <joseph@codesourcery.com>
23178
23179         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
23180         if needed for __stack_chk_guard.
23181
23182 2011-09-19  Roland McGrath  <roland@hack.frob.com>
23183
23184         * sysdeps/posix/spawni.c (script_execute): Always define it.
23185         It will be optimized away if unused.
23186         (maybe_script_execute): New function.
23187         (__spawni): Call it.
23188
23189         * Makerules: Don't include tls.make.
23190         (config-tls): Always set to thread.
23191         * tls.make.c: File removed.
23192
23193 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
23194
23195         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
23196         * config.make.in (CPPFLAGS-config): New substituted variable.
23197
23198 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
23199
23200         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
23201
23202         [BZ #13192]
23203         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
23204         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
23205
23206 2011-09-15  Roland McGrath  <roland@hack.frob.com>
23207
23208         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
23209         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
23210         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
23211         (CALL_FAIL): Likewise.
23212         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
23213         (CALL_FAIL): Macro removed.
23214         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
23215
23216 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
23217
23218         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
23219         for __FINITE_MATH_ONLY__ == 1.
23220
23221 2011-09-15  Andreas Schwab  <schwab@redhat.com>
23222
23223         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
23224         __ieee754_sqrt instead of sqrt.
23225         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
23226         __ieee754_sqrtf instead of sqrtf.
23227         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
23228         __floorf instead of floorf.
23229         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
23230         __floorf, __truncf instead of floorf, truncf.
23231
23232 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
23233
23234         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
23235
23236         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
23237         __extern_always_inline.
23238         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
23239         32-bit.
23240
23241 2011-09-14  Andreas Schwab  <schwab@redhat.com>
23242
23243         * elf/rtld.c (dl_main): Also relocate in dependency order when
23244         doing symbol dependency testing.
23245
23246 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
23247
23248         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
23249         Always define `refsym'.
23250
23251 2011-09-13  Andreas Schwab  <schwab@redhat.com>
23252
23253         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
23254         (__FD_ELT): Renamed from __FDELT.
23255         * misc/bits/select2.h (__FD_ELT): Likewise.
23256         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
23257         __FD_MASK instead of __FDELT, __FDMASK.
23258         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
23259         Likewise.
23260         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
23261         Likewise.
23262
23263         * elf/Makefile (gen-ldd): Fix pattern.
23264
23265         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
23266         (init_tls): Likewise.
23267
23268 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
23269
23270         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
23271
23272 2011-09-12  Andreas Schwab  <schwab@redhat.com>
23273
23274         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
23275         `struct cmsghdr *' instead of `void *'.
23276         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
23277         Likewise.
23278
23279 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
23280
23281         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
23282         if non-absolute.
23283         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
23284         ldd_rewrite_script.
23285
23286 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
23287
23288         * configure.in: Remove --with-tls option.
23289         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
23290         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
23291         out in case it is missing.
23292         * sysdeps/ia64/elf/configure.in: Likewise.
23293         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
23294         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
23295         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
23296         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
23297         * sysdeps/sh/elf/configure.in: Likewise.
23298         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
23299         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
23300         * sysdeps/x86_64/elf/configure.in: Likewise.
23301         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
23302         * sysdeps/mach/hurd/tls.h: Likewise.
23303
23304         [BZ #13067]
23305         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
23306
23307         [BZ #13090]
23308         * configure.in: Fix use of AC_INIT.
23309
23310         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
23311
23312 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
23313
23314         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
23315         __set_errno.
23316         * malloc/hooks.c: Likewise.
23317
23318         [BZ #11929]
23319         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
23320         variables statically.
23321         (narenas): Initialize.
23322         (list_lock): Initialize.
23323         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
23324         initializtion of main_arena and list_lock.  Small cleanups.
23325         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
23326         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
23327         Add initializers to main_arena and mp_.
23328         (malloc_state): Remove pagesize member.  Change all users to use
23329         GLRO(dl_pagesize).
23330
23331         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
23332         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
23333         is always initialized.
23334
23335         * malloc/malloc.c: Removed unused configurations and dead code.
23336         * malloc/arena.c: Likewise.
23337         * malloc/hooks.c: Likewise.
23338         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
23339
23340         * include/tls.h: Removed.  USE___THREAD must always be defined.
23341         * bits/libc-tsd.h: Don't handle !USE___THREAD.
23342         * elf/dl-libc.c: Likewise.
23343         * elf/dl-tsd.c: Likewise.
23344         * include/errno.h: Likewise.
23345         * include/netdb.h: Likewise.
23346         * include/resolv.h: Likewise.
23347         * inet/herrno-loc.c: Likewise.
23348         * inet/herrno.c: Likewise.
23349         * malloc/arena.c: Likewise.
23350         * malloc/hooks.c: Likewise.
23351         * malloc/malloc.c: Likewise.
23352         * resolv/res-state.c: Likewise.
23353         * resolv/res_libc.c: Likewise.
23354         * sysdeps/i386/dl-machine.h: Likewise.
23355         * sysdeps/ia64/dl-machine.h: Likewise.
23356         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
23357         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
23358         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
23359         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
23360         * sysdeps/sh/dl-machine.h: Likewise.
23361         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
23362         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
23363         * sysdeps/unix/i386/sysdep.S: Likewise.
23364         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
23365         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
23366         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
23367         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
23368         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
23369         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
23370         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
23371         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
23372         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
23373         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
23374         * sysdeps/unix/x86_64/sysdep.S: Likewise.
23375         * sysdeps/x86_64/dl-machine.h: Likewise.
23376         * tls.make.c: Likewise.
23377
23378         * configure.in: Remove --with-__thread option.  Make tests for
23379         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
23380         tls_model attribute fail if no support is available.  Remove
23381         USE_IN_LIBIO.
23382         * Makeconfig: Adjust for dropped configure option.  All features are
23383         now mandatory.
23384         * Makerules: Likewise.
23385         * Versions.def: Likewise.
23386         * argp/argp-fmtstream.c: Likewise.
23387         * argp/argp-fmtstream.h: Likewise.
23388         * argp/argp-help.c: Likewise.
23389         * assert/assert.c: Likewise.
23390         * config.h.in: Likewise.
23391         * config.make.in: Likewise.
23392         * configure: Likewise.
23393         * configure.in: Likewise.
23394         * csu/Versions: Likewise.
23395         * csu/init.c: Likewise.
23396         * elf/tst-audit2.c: Likewise.
23397         * elf/tst-tls10.c: Likewise.
23398         * elf/tst-tls10.h: Likewise.
23399         * elf/tst-tls11.c: Likewise.
23400         * elf/tst-tls12.c: Likewise.
23401         * elf/tst-tls14.c: Likewise.
23402         * elf/tst-tlsmod11.c: Likewise.
23403         * elf/tst-tlsmod12.c: Likewise.
23404         * elf/tst-tlsmod13.c: Likewise.
23405         * elf/tst-tlsmod13a.c: Likewise.
23406         * elf/tst-tlsmod14a.c: Likewise.
23407         * elf/tst-tlsmod15b.c: Likewise.
23408         * elf/tst-tlsmod16a.c: Likewise.
23409         * elf/tst-tlsmod16b.c: Likewise.
23410         * elf/tst-tlsmod7.c: Likewise.
23411         * elf/tst-tlsmod8.c: Likewise.
23412         * elf/tst-tlsmod9.c: Likewise.
23413         * gmon/gmon.c: Likewise.
23414         * grp/fgetgrent_r.c: Likewise.
23415         * grp/putgrent.c: Likewise.
23416         * hurd/fopenport.c: Likewise.
23417         * include/libc-symbols.h: Likewise.
23418         * include/tls.h: Likewise.
23419         * intl/gettextP.h: Likewise.
23420         * intl/loadinfo.h: Likewise.
23421         * locale/global-locale.c: Likewise.
23422         * locale/localeinfo.h: Likewise.
23423         * mach/devstream.c: Likewise.
23424         * malloc/arena.c: Likewise.
23425         * malloc/set-freeres.c: Likewise.
23426         * misc/err.c: Likewise.
23427         * misc/getttyent.c: Likewise.
23428         * misc/mntent_r.c: Likewise.
23429         * posix/getopt.c: Likewise.
23430         * posix/wordexp.c: Likewise.
23431         * pwd/fgetpwent_r.c: Likewise.
23432         * resolv/Versions: Likewise.
23433         * resolv/res_hconf.c: Likewise.
23434         * shadow/fgetspent_r.c: Likewise.
23435         * shadow/putspent.c: Likewise.
23436         * stdio-common/printf_fphex.c: Likewise.
23437         * stdio-common/tmpfile.c: Likewise.
23438         * stdlib/abort.c: Likewise.
23439         * stdlib/fmtmsg.c: Likewise.
23440         * sunrpc/auth_unix.c: Likewise.
23441         * sunrpc/clnt_perr.c: Likewise.
23442         * sunrpc/clnt_tcp.c: Likewise.
23443         * sunrpc/clnt_udp.c: Likewise.
23444         * sunrpc/clnt_unix.c: Likewise.
23445         * sunrpc/openchild.c: Likewise.
23446         * sunrpc/svc_simple.c: Likewise.
23447         * sunrpc/svc_tcp.c: Likewise.
23448         * sunrpc/svc_udp.c: Likewise.
23449         * sunrpc/svc_unix.c: Likewise.
23450         * sunrpc/xdr.c: Likewise.
23451         * sunrpc/xdr_array.c: Likewise.
23452         * sunrpc/xdr_rec.c: Likewise.
23453         * sunrpc/xdr_ref.c: Likewise.
23454         * sunrpc/xdr_stdio.c: Likewise.
23455
23456 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
23457
23458         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
23459
23460 2011-07-03  Andreas Jaeger  <aj@suse.de>
23461
23462         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
23463         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
23464         regenerate with gen-libm-tests.pl.
23465
23466 2010-05-12  Petr Baudis  <pasky@suse.cz>
23467
23468         [BZ #11589]
23469         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
23470         around j0() zero points by switching to j1().
23471         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
23472         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
23473         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
23474         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
23475
23476 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
23477
23478         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
23479         instead of 0.
23480         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
23481         instead of 0.
23482         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
23483         Patch in part by Pavel Roskin <proski@gnu.org>.
23484
23485         [BZ #13138]
23486         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
23487         realloc.
23488         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
23489         Free memory block if necessary.
23490
23491         [BZ #12847]
23492         * libio/genops.c (INTDEF): For string streams the _lock pointer can
23493         be NULL.  Don't lock in this case.
23494
23495 2011-09-09  Roland McGrath  <roland@hack.frob.com>
23496
23497         * elf/elf.h (ELFOSABI_GNU): New macro.
23498         (ELFOSABI_LINUX): Define to that.
23499
23500 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
23501
23502         * string/strncat.c (strncat): Undef the symbol in case it has been
23503         defined in bits/string.h.
23504
23505 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
23506
23507         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
23508
23509         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
23510         link map.
23511
23512 2011-08-17  Andreas Jaeger  <aj@suse.de>
23513
23514         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
23515
23516 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
23517             Ian Lance Taylor  <iant@google.com>
23518
23519         * math/libm-test.inc (lround_test): New testcase.
23520         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
23521
23522 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
23523
23524         * Makefile: Remove support for automatic cvs check-ins.
23525         * Makerules: Likewise.
23526         * config.make.in: Likewise.
23527         * configure.in: Likewise.
23528         * intl/Makefile: Likewise.
23529         * locale/Makefile: Likewise.
23530         * po/Makefile: Likewise.
23531         * posix/Makefile: Likewise.
23532         * sysdeps/gnu/Makefile: Likewise.
23533         * sysdeps/mach/hurd/Makefile: Likewise.
23534         * sysdeps/sparc/sparc32/Makefile: Likewise.
23535
23536         [BZ #13118]
23537         * posix/Makefile (bug-regex32-ENV): Define.
23538         Patch by John Stanley <jpsinthemix@verizon.net>.
23539
23540         * misc/Makefile (headers): Add bits/select2.h.
23541         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
23542         * misc/bits/select2.h: New file.
23543         * include/bits/select2.h: New file.
23544         * debug/Makefile (routines): Add fdelt_chk.
23545         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
23546         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
23547         FD_ISSET.
23548         * debug/fdelt_chk.c: New file.
23549
23550         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
23551         * wcsmbs/test-wmemcmp.c: Likewise.
23552         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
23553         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
23554
23555 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23556
23557         * string/Makefile (strop-tests): Add memcmp.
23558         * string/test-wmemcmp.c: New file.
23559         * string/test-memcmp.c: Add wmemcmp support.
23560
23561 2011-09-08  Roland McGrath  <roland@hack.frob.com>
23562
23563         [BZ #13153]
23564         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
23565         2011-07-19 change.
23566
23567         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
23568         garbage value in a __mach_port_mod_refs call in the cases of the
23569         task-self and thread-self ports.
23570
23571 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23572
23573         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
23574
23575 2011-09-08  Andreas Schwab  <schwab@redhat.com>
23576
23577         * elf/dl-load.c (lose): Check for non-null L.
23578
23579 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
23580
23581         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
23582
23583         * elf/dl-libc.c (dlerror_run): Pass back error code from
23584         dl_catch_error.
23585
23586         [BZ #13123]
23587         * elf/dl-load.c (lose): Free l_origin if it is valid.
23588
23589         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
23590         names.
23591         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
23592         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
23593         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
23594         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
23595         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
23596         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
23597
23598 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23599
23600         * sysdeps/powerpc/fpu/e_hypot.c: New file.
23601         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
23602         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
23603         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
23604         * sysdeps/powerpc/fpu/k_cosf.c: New file.
23605         * sysdeps/powerpc/fpu/k_sinf.c: New file.
23606         * sysdeps/powerpc/fpu/s_cosf.c: New file.
23607         * sysdeps/powerpc/fpu/s_sinf.c: New file.
23608         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
23609         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
23610
23611 2011-08-15  Alan Modra  <amodra@gmail.com>
23612
23613         [BZ #13092]
23614         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
23615         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
23616         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
23617         ppc_mcount to static-only-routines.
23618         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
23619         __mcount_internal.
23620         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
23621         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
23622
23623 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
23624
23625         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
23626         for finite and infinity parameters.
23627
23628 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
23629
23630         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
23631         and add nop instructions for throughput optimization.
23632         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
23633
23634 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
23635
23636         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
23637         aligned copy for power7 with vector-scalar instructions.
23638         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
23639
23640 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
23641
23642         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
23643         AVX check.
23644
23645 2011-09-07  Andreas Schwab  <schwab@redhat.com>
23646
23647         [BZ #13144]
23648         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
23649         last change.
23650
23651 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
23652
23653         * sysdeps/unix/sysv/linux/x86_64/init-first.c
23654         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
23655         syscall wrapper around clock_gettime in __vdso_clock_gettime.
23656         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
23657         clock_gettime.
23658
23659 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
23660
23661         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
23662         Forgot to demangle the pointer.
23663
23664         * sysdeps/i386/sysdep.h: Define atom_text_section.
23665         * sysdeps/x86_64/sysdep.h: Likewise.
23666         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
23667         section with atom_text_section.
23668         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
23669         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
23670         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
23671         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
23672         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
23673
23674         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
23675         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
23676         already be defined.  Change to take two parameters and don't assign
23677         result to variable.  Adjust all users.
23678         Define INTERNAL_GETTIME if not already defined.
23679         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
23680         call.
23681         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
23682         HAVE_CLOCK_GETTIME_VSYSCALL.
23683         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
23684
23685         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
23686         gettimeofday vsyscall, just use time.
23687
23688 2011-09-06  Andreas Schwab  <schwab@redhat.com>
23689
23690         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
23691         <errno.h>.
23692
23693 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
23694
23695         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
23696         syscall on x86-64.
23697         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
23698         syscall.
23699         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
23700         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
23701         syscall if possible.
23702
23703 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
23704
23705         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
23706         e_ident.  Don't pass to find_mapsXX.
23707         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
23708
23709 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
23710
23711         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
23712         strchr-sse2-no-bsf strrchr-sse2-no-bsf
23713         * sysdeps/x86_64/multiarch/strchr.S: Update.
23714         Check bit_slow_BSF bit.
23715         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
23716         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
23717         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
23718
23719 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
23720
23721         [BZ #13134]
23722         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
23723         before glibc 2.15.
23724         (tryshell): Define.
23725         (__spawni): Change last parameter to be flag.  Test
23726         SPAWN_XFLAGS_USE_PATH flag to use path or not.
23727         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
23728         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
23729         * posix/spawni.c: Likewise.
23730         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
23731         * posix/spawnp.c: Likewise.  Change normal version to use
23732         SPAWN_XFLAGS_USE_PATH.
23733         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
23734         SPAWN_XFLAGS_TRY_SHELL.
23735
23736         [BZ #13150]
23737         * posix/glob.h: Remove gcc 1.x support.
23738
23739         [BZ #13068]
23740         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
23741
23742 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
23743
23744         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
23745         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
23746         strrchr-sse2-bsf
23747         * sysdeps/i386/i686/multiarch/strchr.S: New file.
23748         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
23749         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
23750         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
23751         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
23752         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
23753
23754 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23755
23756         * sysdeps/x86_64/wcscmp.S: New file.
23757
23758         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
23759         wcscmp-c wcscmp-sse2
23760         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
23761         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
23762         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
23763         * wcsmbs/wcscmp.c: Allow renaming.
23764
23765 2011-09-05  David S. Miller  <davem@davemloft.net>
23766
23767         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
23768         stack slot, rather than the struct return pointer slot.
23769         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
23770         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
23771         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
23772         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
23773
23774 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
23775
23776         * po/ja.po: Update from translation team.
23777
23778         [BZ #13144]
23779         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
23780         kernel in 64-bit binaries.
23781
23782 2011-09-01  David S. Miller  <davem@davemloft.net>
23783
23784         * elf/elf.h (HWCAP_SPARC_*): Move to..
23785         * sysdeps/sparc/sysdep.h: this new file and add new values.
23786         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
23787         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
23788         _DL_HWCAP_COUNT to 24.
23789         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
23790         entries.
23791         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
23792         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
23793         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
23794         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
23795         instead of magic constants.
23796         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
23797
23798 2011-08-31  David S. Miller  <davem@davemloft.net>
23799
23800         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
23801         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
23802         Reimplement to do errno handling inline.
23803         (SYSCALL_ERROR_HANDLER): New macro.
23804         (__SYSCALL_STRING): Do not do errno handling in asm.
23805         (__CLONE_SYSCALL_STRING): Delete.
23806         (__INTERNAL_SYSCALL_STRING): Delete.
23807         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
23808         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
23809         (PSEUDO): Reimplement to do errno handling inline.
23810         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
23811         (SYSCALL_ERROR_HANDLER): New macro.
23812         (__SYSCALL_STRING): Do not do errno handling in asm.
23813         (__CLONE_SYSCALL_STRING): Delete.
23814         (__INTERNAL_SYSCALL_STRING): Delete.
23815         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
23816         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
23817         i386.
23818         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
23819         (inline_syscall*): Add 'err' argument.
23820         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
23821         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
23822         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
23823         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
23824
23825         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
23826         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
23827
23828 2011-08-30  Andreas Schwab  <schwab@redhat.com>
23829
23830         * elf/rtld.c (dl_main): Relocate objects in dependency order.
23831
23832 2011-08-29  Jiri Olsa <jolsa@redhat.com>
23833
23834         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
23835         directive.
23836
23837 2011-08-24  David S. Miller  <davem@davemloft.net>
23838
23839         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
23840
23841 2011-08-24  Andreas Schwab  <schwab@redhat.com>
23842
23843         * elf/Makefile: Add rules to build and run unload8 test.
23844         * elf/unload8.c: New file.
23845         * elf/unload8mod1.c: New file.
23846         * elf/unload8mod1x.c: New file.
23847         * elf/unload8mod2.c: New file.
23848         * elf/unload8mod3.c: New file.
23849
23850         * elf/dl-close.c (_dl_close_worker): Reset private search list if
23851         it wasn't used.
23852
23853 2011-08-23  David S. Miller  <davem@davemloft.net>
23854
23855         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
23856         subtract stack bias.
23857         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
23858         %sp not %fp in calculations.
23859         (_JMPBUF_UNWINDS_ADJ): Likewise.
23860
23861         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
23862         (aio_suspend): Call it to force an exception region around the
23863         AIO_MISC_WAIT() invocation.
23864
23865 2011-08-23  Andreas Schwab  <schwab@redhat.com>
23866
23867         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
23868         backslash.
23869
23870 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
23871
23872         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
23873         protection macro.
23874         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
23875         and <dl-machine.h>.
23876         (Elf64_FuncDesc): Remove.
23877
23878 2011-08-22  David S. Miller  <davem@davemloft.net>
23879
23880         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
23881         sigaltstack check, add missing cfi directives.
23882         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
23883         missing cfi directives, and sigaltstack handling.
23884
23885 2011-08-16  Andreas Schwab  <schwab@redhat.com>
23886
23887         [BZ #11724]
23888         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
23889         object is seen twice.
23890         * elf/dl-fini.c (_dl_sort_fini): Likewise.
23891
23892         * elf/Makefile (distribute): Add tst-initorder2.c.
23893         (tests): Add tst-initorder2.
23894         (modules-names): Add tst-initorder2a tst-initorder2b
23895         tst-initorder2c tst-initorder2d.  Add rules to build them.
23896         ($(objpfx)tst-initorder2.out): New rule.
23897         * elf/tst-initorder2.c: New file.
23898         * elf/tst-initorder2.exp: New file.
23899
23900 2011-08-22  Andreas Schwab  <schwab@redhat.com>
23901
23902         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
23903
23904         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
23905         dependencies back to end of function.
23906
23907         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
23908         $(elfobjdir)/ld.so.
23909
23910 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
23911
23912         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
23913         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
23914         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
23915         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
23916         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
23917         of __vdso_gettimeofday.
23918         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
23919         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
23920         attribute_hidden.
23921         (_libc_vdso_platform_setup): Remove initialization of
23922         __vdso_gettimeofday and __vdso_time.
23923
23924 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
23925
23926         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
23927         and fgetc_unlocked.
23928         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
23929         getc_unlocked.
23930
23931         * elf/dl-open.c (add_to_global): Report additions to the global scope
23932         for LD_DEBUG=scopes.
23933         (dl_open_worker): Also print scope of newly loaded dependencies.
23934         (_dl_show_scope): Indicate if there is no scope.
23935
23936         [BZ #13114]
23937         * stdio-common/Makefile (tests): Add bug24.
23938         * stdio-common/bug24.c: New file.
23939
23940 2011-08-19  Andreas Jaeger  <aj@suse.de>
23941
23942         [BZ #13114]
23943         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
23944         non-existant file when using close-on-exec mode.
23945
23946 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
23947
23948         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
23949         the very first instruction.
23950
23951         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
23952         the CFI state in the end.
23953         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
23954         inclusion of dl-trampoline.h.
23955         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
23956
23957 2011-08-19  Andreas Schwab  <schwab@redhat.com>
23958
23959         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
23960         expectations for long double.
23961
23962         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
23963         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
23964
23965 2011-08-14  David S. Miller  <davem@davemloft.net>
23966
23967         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
23968         artificual limit depends upon the system page size.
23969
23970 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
23971
23972         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
23973         * resolv/Makefile: Define CFLAGS-libresolv.
23974
23975 2011-08-17  Andreas Schwab  <schwab@redhat.com>
23976
23977         * nss/makedb.c (compute_tables): Make variables used in nested
23978         function static.
23979
23980 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
23981
23982         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
23983         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
23984         if buffer was too small.
23985
23986         * elf/pldd.c (main): Attach to all threads in the process.
23987         Rewrite /proc handling to use *at functions.
23988
23989 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
23990
23991         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
23992         specifies first scope to show.
23993         (dl_open_worker): Update callers.  Move printing scope of new
23994         object to before the relocation.
23995         * elf/rtld.c (dl_main): Update _dl_show_scope call.
23996         * sysdeps/generic/ldsodefs.h: Update declaration.
23997
23998         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
23999         string for the scope number.
24000
24001 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
24002
24003         * nscd/servicescache.c (cache_addserv): Make sure written is always
24004         initialized.
24005
24006 2011-08-14  Roland McGrath  <roland@hack.frob.com>
24007
24008         * sysdeps/i386/i486/bits/atomic.h
24009         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
24010         statement expression, so as to suppress "set but not used" warning.
24011         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
24012
24013         * string/strncat.c (STRNCAT): Use prototype definition.
24014
24015         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
24016         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
24017         -Iprograms here.
24018         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
24019         (localedef-modules): Add localedef.
24020         (locale-modules): Add locale.
24021
24022         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
24023         * elf/rtld.c (dl_main): Invert order of assignment in last change,
24024         to avoid a warning.
24025
24026 2011-08-14  David S. Miller  <davem@davemloft.net>
24027
24028         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
24029         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
24030
24031 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
24032
24033         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
24034         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
24035         * elf/rtld.c (dl_main): Set l_name of vDSO.
24036         Call _dl_show_scope when DL_DEBUG_SCOPES.
24037         (process_dl_debug): Recognize scopes flag and also set it for all.
24038         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
24039         Declare _dl_show_scope.
24040
24041         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
24042         (do_dlopen): Pass caller_dlopen to dl_open.
24043         (__libc_dlopen_mode): Initialize caller_dlopen.
24044
24045         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
24046         of libc.  Make tolower call locale-independent.  Optimize a bit by
24047         using isdigit instead of isalnum.
24048         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
24049
24050 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
24051
24052         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
24053         was a dependency or dynamically loaded.
24054
24055 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
24056
24057         * intl/l10nflist.c: Allow architecture-specific pop function.
24058         * sysdeps/x86_64/l10nflist.c: New file.
24059
24060         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
24061         classification.
24062
24063 2011-08-10  Andreas Schwab  <schwab@redhat.com>
24064
24065         * include/dirent.h: Add libc_hidden_proto for scandirat and
24066         scandirat64.  Don't declare __scandirat64.
24067         * dirent/scandirat.c: Add libc_hidden_def.
24068         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
24069         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
24070
24071 2011-08-10  David S. Miller  <davem@davemloft.net>
24072
24073         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
24074         enum.
24075         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
24076         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
24077         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
24078
24079 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
24080
24081         * Versions.def [libc]: Add GLIBC_2.15.
24082         * dirent/Makefile (routines): Add scandirat and scandirat64.
24083         * dirent/Versions [libc]: Export scandirat and scandirat64 for
24084         GLIBC_2.15.
24085         * dirent/dirent.h: Declare scandirat and scandirat64.
24086         * dirent/scandirat.c: New file.
24087         * dirent/scandirat64.c: New file.
24088         * sysdeps/wordsize-64/scandirat.c: New file.
24089         * sysdeps/wordsize-64/scandirat64.c: New file.
24090         * dirent/opendir.c: Define opendirat.
24091         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
24092         using scandirat.
24093         * dirent/scandir64.c: Adjust for scandir.c change.
24094         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
24095         __scandirat64, and __scandir_cancel_handler.
24096         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
24097         additional parameter and use openat instead of open (outside of ld.so).
24098         Add new __opendir as wrapper around __opendirat.
24099         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
24100         here without requiring old scandirat implementation.
24101
24102 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
24103
24104         * dirent/scandir.c (cancel_handler): Renamed to
24105         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
24106         defined.  Adjust users.
24107         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
24108         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
24109
24110 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
24111
24112         * string/test-string.h (IMPL): Use __STRING to expand name and then
24113         stringify it.
24114
24115         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
24116         of cleanups.
24117
24118 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
24119
24120         * string/Makefile: Update.
24121         (strop-tests): Append strncat.
24122         * string/test-wcscmp.c: New file.
24123         New comprehensive test for wcscmp.
24124         * string/test-strcmp.c: Update.
24125         (WIDE): New define.
24126
24127 2011-07-22  Andreas Schwab  <schwab@redhat.com>
24128
24129         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
24130         line.
24131
24132 2011-07-26  Andreas Schwab  <schwab@redhat.com>
24133
24134         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
24135         encoding to ACE if AI_IDN.
24136
24137 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
24138
24139         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
24140         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
24141
24142 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
24143
24144         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
24145         Fix overflow bug in strncat.
24146         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
24147
24148         * string/test-strncat.c: Update.
24149         Add new tests for checking overflow bugs.
24150
24151 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
24152
24153         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
24154         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
24155         * sysdeps/i386/i686/multiarch/strcat.S: New file.
24156         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
24157         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
24158         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
24159         * sysdeps/i386/i686/multiarch/strncat.S: New file.
24160         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
24161         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
24162
24163         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
24164         (USE_AS_STRCAT): Define.
24165         Add strcat and strncat support.
24166         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
24167
24168 2011-07-25  Andreas Schwab  <schwab@redhat.com>
24169
24170         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
24171         __n bigger than INT_MAX+1.
24172         (__strncmp_g): Likewise.
24173
24174 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
24175
24176         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
24177         * libio/stido.h: Likewise.
24178
24179         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
24180         (AF_NFC): Define.
24181         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
24182         (AF_NFC): Define.
24183
24184         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
24185         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
24186         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
24187         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
24188         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
24189
24190         [BZ #13021]
24191         * scripts/test-installation.pl: Don't expect libnss_test1 to be
24192         installed.
24193
24194         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
24195         typo.
24196         (_dl_x86_64_save_sse): Likewise.
24197
24198 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
24199
24200         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
24201         OSXSAVE.
24202         (_dl_x86_64_save_sse): Likewise.
24203
24204         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
24205
24206         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
24207
24208 2011-07-21  Andreas Schwab  <schwab@redhat.com>
24209
24210         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
24211         change.
24212         (_dl_x86_64_save_sse): Use correct AVX check.
24213
24214 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
24215
24216         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
24217         bug in strncpy/strncat.
24218         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
24219
24220 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
24221
24222         * string/tester.c (test_strcat): Add tests for different alignments
24223         of source and destination.
24224         (test_strncat): Likewise.
24225
24226 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
24227
24228         [BZ #12852]
24229         * posix/glob.c (glob): Check passed in values before using them in
24230         expressions to avoid some overflows.
24231         (glob_in_dir): Likewise.
24232
24233         [BZ #13007]
24234         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
24235         check for AVX enablement so that we don't crash with old kernels and
24236         new hardware.
24237         * elf/tst-audit4.c: Add same checks here.
24238         * elf/tst-audit6.c: Likewise.
24239
24240         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
24241
24242 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
24243
24244         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
24245
24246 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
24247
24248         * po/cs.po: Update from translation team.
24249         * po/bg.po: Likewise.
24250
24251 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
24252
24253         * misc/sys/cdefs.h: Add support for const attribute.
24254         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
24255         to gnu_dev_{major,minor,makedev} functions.
24256
24257 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
24258
24259         * intl/dcigettext.c (get_output_charset): Add missing bracket.
24260
24261 2011-07-20  Andreas Schwab  <schwab@redhat.com>
24262
24263         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
24264         strlen results.
24265
24266 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24267
24268         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
24269         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
24270         register in order to avoid conflicts with the soft frame pointer
24271         being held in r11 when necessary.
24272         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
24273         (INTERNAL_VSYSCALL_NCS): Likewise.
24274
24275 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
24276
24277         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
24278         * elf/dl-fini.c (_dl_fini): Adjust caller.
24279         * elf/dl-close.c (_dl_close_worker): Likewise.
24280         * sysdeps/generic/ldsodefs.h: Adjust declaration.
24281
24282 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
24283
24284         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
24285         "aux_cache->nlibs < 0".
24286
24287         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
24288         in the reload-count case.
24289
24290 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
24291
24292         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
24293         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
24294         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
24295         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
24296         * sysdeps/x86_64/multiarch/strcat.S: New file.
24297         * sysdeps/x86_64/multiarch/strncat.S: New file.
24298         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
24299         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
24300         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
24301         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
24302         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
24303         (USE_AS_STRCAT): Define.
24304         Add strcat and strncat support.
24305         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
24306         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
24307         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
24308         * string/strncat.c: Update.
24309         (USE_AS_STRNCAT): Define.
24310         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
24311         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
24312         and i7.
24313         * sysdeps/x86_64/multiarch/init-arch.h
24314         (bit_Prefer_PMINUB_for_stringop): New.
24315         (index_Prefer_PMINUB_for_stringop): Likewise.
24316         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
24317         bit_Prefer_PMINUB_for_stringop.
24318
24319 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
24320
24321         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
24322         buffer64.
24323         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
24324         of casting of buffer.
24325         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
24326         buffer32 and buffer64.
24327         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
24328         writes instead of casting of buffer.
24329         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
24330         buffer32.
24331         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
24332         casting of buffer.
24333
24334 2011-07-19  Andreas Schwab  <schwab@redhat.com>
24335
24336         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
24337
24338 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
24339
24340         * nscd/nscd.c (termination_handler): Don't do anything for a database
24341         if it has not yet been initialized.
24342
24343 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
24344
24345         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
24346
24347 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
24348
24349         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
24350
24351 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
24352
24353         * po/nl.po: Update from translation team.
24354         * po/sv.po: Likewise.
24355
24356 2011-07-16  Roland McGrath  <roland@hack.frob.com>
24357
24358         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
24359         now disallowed by GCC.
24360
24361         * configure.in (use-default-link): Default to yes if a test -shared
24362         link meets our qualifications.
24363         * configure: Regenerated.
24364
24365         * config.make.in (output-format): New variable.
24366         * configure.in: Check for ld --print-output-format support.
24367         * configure: Regenerated.
24368         * Makerules ($(common-objpfx)format.lds)
24369         [$(output-format) != unknown]: Just use $(output-format),
24370         instead of the linker-script munging.
24371
24372 2011-07-14  Roland McGrath  <roland@hack.frob.com>
24373
24374         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
24375         of $(common-objpfx)shlib.lds.
24376         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
24377
24378         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
24379         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
24380
24381         * configure.in (-z relro check): Adjust test code to add a large
24382         writable data section after it.
24383         * configure: Regenerated.
24384
24385 2011-07-11  Roland McGrath  <roland@hack.frob.com>
24386
24387         * configure.in (-z relro check): Fix test code to make the variable
24388         truly const.
24389         * configure: Regenerated.
24390
24391 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
24392
24393         * nscd/nscd.h (struct traced_file): Define.
24394         (struct database_dyn): Remove inotify_descr, reset_res, and filename
24395         elements.  Add traced_files.
24396         (inotify_fd): Declare.
24397         (register_traced_file): Declare.
24398         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
24399         (inotify_fd): Export.
24400         (resolv_conf_descr): Remove.
24401         (nscd_init): Move inotify descriptor creation to main.
24402         Don't register files for notification here.
24403         (register_traced_file): New function.
24404         (invalidate_cache): Don't use reset_res to determine whether to call
24405         res_init, go through the list of registered files.
24406         (main_loop_poll): The inotify descriptors are now stored in the
24407         structures for the traced files.
24408         (main_loop_epoll): Likewise
24409         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
24410         to __nss_disable_nscd.
24411         * nscd/cache.c (prune_cache): There is no single inotify descriptor
24412         for a database anymore.  Check the records for all the registered
24413         files instead.
24414         * nss/Makefile (libnss_files-routines): Add files-init.
24415         (libnss_db-routines): Add db-init.
24416         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
24417         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
24418         * nss/nss_db/db-init.c: New file.
24419         * nss/nss_files/files-init.c: New file.
24420         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
24421         __nss_lookup_function.
24422         (__nss_lookup_function): Call nss_load_library.
24423         (nss_load_all_libraries): New function.
24424         (__nss_disable_nscd): Take parameter with callback function for files
24425         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
24426         used for the cached services.
24427         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
24428         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
24429         options for features to all the files in nscd.
24430
24431         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
24432
24433 2011-07-10  Roland McGrath  <roland@hack.frob.com>
24434
24435         * csu/elf-init.c (__libc_csu_init): Comment typo.
24436
24437 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
24438
24439         * po/pl.po: Update from translation team.
24440         * po/ja.po: Likewise.
24441         * po/ru.po: Likewise.
24442         * po/ko.po: Likewise.
24443         * po/fr.po: Likewise.
24444
24445 2011-07-09  Roland McGrath  <roland@hack.frob.com>
24446
24447         * configure.in (.ctors/.dtors header and trailer check):
24448         Use an empirical test on a built program.
24449         * configure: Regenerated.
24450
24451         * configure.in (-z relro check): Use an empirical test on a built DSO.
24452         Detect, but do not require, on ia64.
24453         * configure: Regenerated.
24454
24455         * configure.in (READELF): Find it with AC_CHECK_TOOL.
24456         Update tests that use readelf to use $READELF instead.
24457         * configure: Regenerated.
24458
24459 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
24460
24461         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
24462         if the result is not used.
24463
24464 2011-07-05  Andreas Jaeger  <aj@suse.de>
24465
24466         [BZ#9696]
24467         * stdlib/tst-strtod.c: Add testcase.
24468
24469 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
24470
24471         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
24472         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
24473         The latter has a higher limit.  Take additional parameter to pass to
24474         the new function.
24475         (__pathconf): Pass file to __statfs_link_max.
24476         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
24477         __statfs_link_max.
24478         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
24479         __statfs_link_max.
24480
24481         [BZ #12868]
24482         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
24483         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
24484         Handle Lustre.
24485         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
24486         (__statfs_filesize_max): Likewise.
24487         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
24488
24489 2011-07-05  Andreas Jaeger  <aj@suse.de>
24490
24491         * resolv/res_comp.c (dn_skipname): Remove unused variable.
24492
24493 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
24494
24495         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
24496         `status' variable.
24497         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
24498         Likewise.
24499
24500 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
24501
24502         * Makefile (strop-tests): Add strncat.
24503         * string/test-strncat.c: New file.
24504
24505 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
24506
24507         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
24508
24509 2011-06-21  Andreas Jaeger  <aj@suse.de>
24510
24511         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
24512         Copy rule from iconvdata/Makefile.
24513
24514 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
24515
24516         [BZ #12922]
24517         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
24518         but no long options are defined, just return 'W'.
24519
24520 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
24521
24522         [BZ #9696]
24523         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
24524
24525 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
24526
24527         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
24528         netgroups to read.
24529         (innetgr): Likewise.
24530
24531 2011-07-05  Roland McGrath  <roland@hack.frob.com>
24532
24533         * config.make.in (install_root): Default to $(DESTDIR).
24534
24535 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
24536
24537         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
24538
24539 2011-07-02  Roland McGrath  <roland@hack.frob.com>
24540
24541         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
24542
24543         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
24544         containing directory rather than embedding absolute directory names.
24545
24546         * scripts/check-local-headers.sh: Rewritten using awk.
24547         Match by word, not by line.  Print error messages for matches.
24548         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
24549
24550         * Makerules [shlib-lds-flags empty]:
24551         ($(common-objpfx)libc_pic.opts): New target.
24552         ($(common-objpfx)libc_pic.os.clean): New target.
24553         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
24554
24555         * config.make.in (OBJCOPY): New variable.
24556         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
24557         * configure: Regenerated.
24558
24559         * config.make.in (use-default-link): New variable.
24560         * configure.in (use_default_link): Grok --with-default-link to set it.
24561         * configure: Regenerated.
24562         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
24563         (shlib-lds, shlib-lds-flags): Define to empty.
24564
24565         * Makerules (shlib-lds): New variable.
24566         (shlib-lds-flags): New variable.
24567         (build-shlib, build-moduile, build-module-asneeded): Use it.
24568         ($(common-objpfx)libc.so): Use $(shlib-lds).
24569         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
24570         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
24571
24572         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
24573         DT_FLAGS/DT_FLAGS_1 with zero flags.
24574
24575         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
24576         linker script munging.
24577
24578 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
24579
24580         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
24581         as 128-bit value.
24582         * crypt/sha512.c (sha512_process_block): Perform total addition using
24583         128-bit if possible.
24584         (__sha512_finish_ctx): Likewise.
24585         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
24586         as 64-bit value.
24587         * crypt/sha256.c (SWAP64): Define.
24588         (sha256_process_block): Perform total addition using 64-bit if
24589         possible.
24590         (__sha256_finish_ctx): Likewise.
24591
24592 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
24593
24594         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
24595         * nscd/initgrcache.c (addinitgroupsX): Likewise.
24596         * nscd/hstcache.c (cache_addhst): Likewise.
24597         * nscd/grpcache.c (cache_addgr): Likewise.
24598         * nscd/aicache.c (addhstaiX): Likewise
24599         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
24600
24601 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
24602
24603         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
24604         * nscd/initgrcache.c (addinitgroupsX): Likewise.
24605         * nscd/hstcache.c (cache_addhst): Likewise.
24606         * nscd/grpcache.c (cache_addgr): Likewise.
24607         * nscd/aicache.c (addhstaiX): Likewise
24608
24609 2011-07-01  Andreas Schwab  <schwab@redhat.com>
24610
24611         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
24612         domain only when needed.
24613
24614 2011-06-30  Andreas Schwab  <schwab@redhat.com>
24615
24616         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
24617         is always restored.
24618
24619 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
24620
24621         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
24622         are re-adding the entry.
24623         * nscd/servicescache.c (cache_addserv): Likewise.
24624
24625 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
24626
24627         * sysdeps/generic/dl-irel.h: fix protection against multiple
24628         inclusions.
24629         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
24630
24631 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
24632
24633         [BZ #12935]
24634         * malloc/memusage.sh: Fix quoting in message.
24635         * debug/xtrace.sh: Likewise.
24636
24637         * configure.in: Remove support for --experimental-malloc option, make
24638         it the default.
24639         * config.make.in: Likewise.
24640         * malloc/Makefile: Likewise.
24641
24642 2011-06-27  Andreas Schwab  <schwab@redhat.com>
24643
24644         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
24645         two-byte characters.
24646
24647 2011-06-27  Roland McGrath  <roland@hack.frob.com>
24648
24649         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
24650         AC_CACHE_CHECK invocation.
24651         * configure: Regenerated.
24652
24653         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
24654
24655 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
24656
24657         [BZ #12350]
24658         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
24659         bit from old_res_options.
24660
24661         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
24662
24663         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
24664         value type for setfct.
24665
24666 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
24667
24668         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
24669         __gettimeofday instead of gettimeofday.
24670
24671 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
24672
24673         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
24674
24675 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
24676
24677         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
24678
24679         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
24680         info.
24681
24682 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
24683
24684         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
24685         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
24686         strcpy-sse2-unaligned strncpy-sse2-unaligned
24687         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
24688         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
24689         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
24690         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
24691         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
24692         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
24693         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
24694         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
24695         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
24696         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
24697         (STRCPY): Support SSE2 and SSSE3 versions.
24698
24699 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
24700
24701         [BZ #12874]
24702         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
24703         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
24704         kernels which artificially limit size of requests.
24705
24706 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
24707
24708         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
24709         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
24710         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
24711         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
24712         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
24713         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
24714         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
24715         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
24716         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
24717         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
24718         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
24719         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
24720         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
24721         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
24722         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
24723         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
24724         Enable unaligned load optimization for Intel Core i3, i5 and i7
24725         processors.
24726         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
24727         Define.
24728         (index_Fast_Unaligned_Load): Define.
24729         (HAS_FAST_UNALIGNED_LOAD): Define.
24730
24731 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
24732
24733         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
24734
24735 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
24736
24737         [BZ #12907]
24738         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
24739         until it is clear that the information is realy needed.
24740         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
24741
24742 2011-06-22  Andreas Schwab  <schwab@redhat.com>
24743
24744         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
24745
24746 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
24747
24748         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
24749         /sys/devices/system/cpu/online if it is usable.
24750
24751         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
24752         reading the information from the /proc filesystem to once a second.
24753
24754 2011-06-21  Andreas Jaeger  <aj@suse.de>
24755
24756         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
24757         NULL after inclusion of kernel headers.
24758
24759 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
24760
24761         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
24762         calls to internal_setent.
24763
24764         [BZ #12885]
24765         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
24766         addresses using gethostbyname4_r ignore IPv4 addresses.
24767
24768         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
24769         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
24770
24771         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
24772
24773 2011-06-20  David S. Miller  <davem@davemloft.net>
24774
24775         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
24776         inclusions.
24777         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
24778
24779         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
24780         (elf_irel): Use it.
24781         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
24782         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
24783         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
24784         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
24785         * sysdeps/x86_64/dl-irel.h: Likewise.
24786
24787         * elf/dl-runtime.c: Use elf_ifunc_invoke.
24788         * elf/dl-sym.c: Likewise.
24789
24790 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
24791
24792         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
24793         need to dereference resplen2.
24794
24795 2011-06-14  Andreas Schwab  <schwab@redhat.com>
24796
24797         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
24798
24799 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
24800
24801         * Makeconfig: Define vardbdir and inst_vardbdir.
24802         * nss/Makefile: Add rules to install db-Makefile.
24803
24804         * nss/nss_db/db-XXX.c: Cleanup.
24805
24806         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
24807         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
24808         GLIBC_PRIVATE.
24809         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
24810         * nss/makedb.c: Implement -g option to specify that value strings
24811         are generated and should not be added to table iterated over for
24812         get*ent calls.
24813         * nss/nss_db/db-initgroups.c: New file.
24814
24815         * nss/getent.c: Add support for initgroups lookups through getgrouplist
24816         interface.
24817
24818         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
24819         (internal_getgrouplist): Adjust to name change.
24820         Update use_initgroups_entry if this is not the first call.
24821         * nss/databases.def: Add initgroups entry.
24822
24823         * nss/makedb.c (compute_tables): Check result of multiple hash table
24824         sizes to minimize maximum chain length.
24825
24826 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
24827
24828         * Versions.def: Add entry for libnss_db.
24829         * shlib-versions: Likewise.
24830         * nss/Makefile: Add rules to build libnss_db.
24831         * nss/Versions: Add libnss_db information.  Organize libnss_files
24832         entries better.
24833         * nss/db-Makefile: Add gshadow support.  Change rules for the new
24834         makedb progra.  Some minor improvements to generate smaller files.
24835         * nss/nss_db/nss_db.h: Move NSS database header data structures to
24836         here from...
24837         * nss/makedb.c: ...here.
24838         Improve database format to be smaller and require less memory at
24839         runtime.
24840         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
24841         db anymore.
24842         * nss/nss_db/db-netgrp.c: Likewise.
24843         * nss/nss_db/db-open.c: Likewise.
24844         * nss/nss_files/flies-XXX.x: Adjust comments.
24845         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
24846         * nss/nss_files/files-grp.c: Likewise.
24847         * nss/nss_files/files-hosts.c: Likewise.
24848         * nss/nss_files/files-network.c: Likewise.
24849         * nss/nss_files/files-proto.c: Likewise.
24850         * nss/nss_files/files-pwd.c: Likewise.
24851         * nss/nss_files/files-rpc.c: Likewise.
24852         * nss/nss_files/files-service.c: Likewise.
24853         * nss/nss_files/files-sgrp.c: Likewise.
24854         * nss/nss_files/files-spwd.c: Likewise.
24855         * nss/nss_db/db-alias.c: Removed.
24856         * nss/nss_db/dummy-db.h: Removed.
24857
24858 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
24859
24860         * nss/makedb.c: Rewritten to not use database library.
24861         * nss/Makefile: Update to build new makedb program.
24862
24863 2011-06-14  Andreas Jaeger  <aj@suse.de>
24864
24865         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
24866         memset declaration.
24867
24868 2011-06-10  Andreas Schwab  <schwab@redhat.com>
24869
24870         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
24871         tmpbuf.
24872
24873 2011-06-10  Roland McGrath  <roland@hack.frob.com>
24874
24875         * Makerules (shlib.lds): Fail if the linker script comes out empty.
24876         * elf/Makefile ($(objpfx)ld.so): Likewise.
24877
24878         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
24879         Don't list ld.so twice in dependencies.
24880
24881         * posix/bug-regex31.c: Include <stdlib.h>.
24882
24883         * nscd/hstcache.c (cache_addhst): Remove unused variable.
24884
24885         * nis/nss_compat/compat-spwd.c
24886         (getspent_next_nss_netgr): Remove unused variable.
24887         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
24888
24889         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
24890         nonmembers" output to use the right array.
24891
24892         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
24893
24894         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
24895
24896         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
24897         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
24898         * catgets/gencat.c (read_input_file): Likewise.
24899         * locale/programs/locarchive.c (enlarge_archive): Likewise.
24900
24901         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
24902         variable definition inside #if's controlling its use.
24903
24904         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
24905
24906         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
24907
24908         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
24909
24910         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
24911         unreachable code.
24912
24913         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
24914
24915         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
24916         * configure: Regenerated.
24917
24918         * Makerules: Revert last change.
24919         * elf/Makefile: Likewise.
24920
24921 2011-06-09  Roland McGrath  <roland@hack.frob.com>
24922
24923         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
24924         * elf/Makefile ($(objpfx)librtld.os): Likewise.
24925         (reloc-link): Likewise.
24926
24927 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
24928
24929         * elf/Makefile: Add rules to build pldd.
24930         * elf/pldd.c: New file.
24931         * elf/pldd-xx.c: New file.
24932
24933 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
24934
24935         * version.h: Update for 2.15 development version.
24936
24937 2011-06-07  David S. Miller  <davem@davemloft.net>
24938
24939         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
24940         ifuncs.
24941         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
24942         elf_machine_lazy_rel): Likewise.
24943         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
24944         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
24945         elf_machine_lazy_rel): Likewise.
24946         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
24947         dl_hwcap via passed in argument.
24948         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
24949         Likewise.
24950
24951 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24952
24953         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
24954
24955 2011-06-06  Roland McGrath  <roland@hack.frob.com>
24956
24957         [BZ #12849]
24958         * manual/fdl-1.1.texi: New file, verbatim from:
24959         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
24960         * manual/lgpl-2.1.texi: New file, verbatim from:
24961         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
24962         * manual/Makefile (licenses): New variable, list those new file names.
24963         (texis): Use it.
24964         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
24965
24966         * manual/fdl.texi: File removed.
24967         * manual/lesser.texi: File removed.
24968         * manual/libc.texinfo (Copying, Documentation License):
24969         Use new @include file names, put @appendix directive before @include.
24970
24971 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
24972
24973         [BZ #12841]
24974         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
24975         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
24976         (mq_open): Add __NTH.
24977
24978 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
24979
24980         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
24981         Assume Intel Core i3/i5/i7 processor if AVX is available.
24982
24983 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
24984
24985         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
24986         typo.
24987
24988 2011-05-31  Andreas Schwab  <schwab@redhat.com>
24989
24990         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
24991         memory.  Use alloca_account.  Fix memory leak when retrying.
24992
24993 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
24994
24995         * version.h (RELEASE): Bump for 2.14 release.
24996         * include/features.h (__GLIBC_MINOR__): Bump to 14.
24997
24998         * config.make.in (RANLIB): Remove entry.
24999
25000 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
25001
25002         * po/Makefile (po-sed-cmd): Add ksh to extensions.
25003         (libc.pot): Work around missing support for .ksh extension in xgettext.
25004
25005         [BZ #12684]
25006         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
25007         if both request failed.
25008         (send_dg): In case of server errors clear resplen or *resplen2.
25009
25010         [BZ #12454]
25011         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
25012         when there are multiple maps.
25013         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
25014         (_dl_fini): Remove test here.
25015
25016         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
25017
25018 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
25019
25020         [BZ #12350]
25021         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
25022         bit from old_res_options.
25023         (gaih_inet): Likewise.
25024
25025         [BZ #11099]
25026         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
25027         as signed.
25028
25029         * resolv/res_init.c (res_setoptions): Make the code more compact.
25030
25031         [BZ #11558]
25032         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
25033         set RES_USEVC.
25034
25035         [BZ #11634]
25036         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
25037
25038         * malloc/malloc.h: Mark malloc hook variables as deprecated.
25039
25040         [BZ #11781]
25041         * malloc/malloc.h: Declare malloc hook variables as volatile.
25042
25043         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
25044         in last patch.
25045
25046         [BZ #11799]
25047         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
25048         raise in the comment.
25049         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
25050         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
25051         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
25052
25053 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
25054
25055         [BZ #12811]
25056         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
25057         grow the buffers more if it already has to be sufficient.
25058         (build_wcs_upper_buffer): Likewise.
25059         * posix/regexec.c (check_matching): Likewise.
25060         (clean_state_log_if_needed): Likewise.
25061         (extend_buffers): Don't enlarge buffers beyond size of the input
25062         buffer.
25063         Patches mostly by Emil Wojak <emil@wojak.eu>.
25064         * posix/bug-regex32.c: New file.
25065         * posix/Makefile (tests): Add bug-regex32.
25066
25067         * locale/findlocale.c (_nl_find_locale): Return right away if
25068         _nl_explode_name failed.
25069         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
25070
25071         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
25072
25073         * debug/xtrace.sh: Unify messages.
25074         * malloc/memusage.sh: Likewise.
25075
25076         [BZ #12813]
25077         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
25078         time symbol from vDSO.  Substitute with vsyscall if not available.
25079         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
25080         __vdso_time.
25081
25082         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
25083         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
25084         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
25085         Add sendmmsg and internal_sendmmsg.
25086         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
25087         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
25088         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
25089
25090         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
25091         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
25092         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
25093
25094 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
25095
25096         [BZ #12813]
25097         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
25098         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
25099         available.
25100         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
25101         __vdso_getcpu.
25102
25103         [BZ #12814]
25104         * iconvdata/Makefile (tests): Add bug-iconv9.
25105         * iconvdata/bug-iconv9.c: New file.
25106
25107 2011-05-27  Andreas Schwab  <schwab@redhat.com>
25108
25109         [BZ #12814]
25110         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
25111
25112 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
25113
25114         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
25115         (struct user_regs_struct): Change intcs field back to cs.
25116
25117 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
25118
25119         * po/ja.po: Update from translation team.
25120
25121 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
25122
25123         [BZ #12795]
25124         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
25125         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
25126
25127 2011-05-20  Andreas Schwab  <schwab@redhat.com>
25128
25129         * stdlib/longlong.h: Update from GCC.
25130
25131 2011-05-23  Andreas Schwab  <schwab@redhat.com>
25132
25133         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
25134         parameter name.
25135         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
25136         Add parameter name.
25137         (__sysconf): Pass it down.
25138
25139 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
25140
25141         [BZ #12671]
25142         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
25143         some situations.
25144         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
25145         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
25146         add in in __libc_use_alloca calls.  Adjust callers.
25147         (glob): Use malloc in some situations.
25148
25149         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
25150         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
25151         pltexit.
25152
25153 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
25154
25155         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
25156         and CLOCK_BOOTTIME_ALARM.
25157
25158         [BZ #12782]
25159         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
25160         is returned.
25161
25162         * string/_strerror.c (__strerror_r): Print negative errors as signed
25163         numbers.
25164
25165         [BZ #12777]
25166         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
25167         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
25168         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
25169
25170         * configure.in: Fix typo in redirection and correct removal of test
25171         files in two cases.
25172
25173         [BZ #12788]
25174         * locale/setlocale.c (new_composite_name): Fix test to check for
25175         identical name of all categories.
25176
25177         [BZ #12792]
25178         * libio/filedoalloc.c (local_isatty): New function.
25179         (_IO_file_doallocate): Use local_isatty.
25180         * stdio-common/perror.c (perror): In case a new stream is used
25181         forward the stream error.
25182         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
25183         error flag.
25184
25185 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
25186
25187         [BZ #11869]
25188         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
25189         alloca.
25190         * include/alloca.h (extend_alloca_account): Define.
25191
25192         [BZ #11857]
25193         * posix/regex.h: Fix comments with documentation of user-accessible
25194         fields after compilation and describe correct free'ing of pattern
25195         after re_compile_pattern.
25196         Patch by Reuben Thomas <rrt@sc3d.org>.
25197
25198 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
25199
25200         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
25201         and -mno-altivec to prevent the compiler from using Altivec and/or
25202         VSX instructions when the corresponding registers are not available.
25203
25204 2011-05-19  Andreas Schwab  <schwab@redhat.com>
25205
25206         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
25207
25208 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
25209
25210         * libio/freopen.c (freopen): Use __dup2, not dup2.
25211         * libio/freopen64.c (freopen64): Likewise.
25212
25213 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
25214
25215         [BZ #12775]
25216         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
25217         * math/Makefile (tests): Add test-powl.
25218         (CFLAGS-test-powl.c): Define.
25219         * math/test-powl.c: New file.
25220
25221 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
25222
25223         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
25224
25225 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
25226
25227         [BZ #11837]
25228         * iconvdata/gb18030.c: Update to GB18020-2005.
25229
25230 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
25231
25232         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
25233         RE_SYNTAX_POSIX_AWK): Update to match recent development.
25234         Patch by Aharon Robbins <arnold@skeeve.com>.
25235
25236         [BZ #11892]
25237         * stdlib/putenv.c (putenv): Don't always create copy of the variable
25238         on the stack.
25239
25240         [BZ #11895]
25241         * misc/pselect.c (__pselect): Handle timeout value errors hidden
25242         through underflows.
25243
25244         [BZ #12766]
25245         * misc/error.c (error_at_line): Ensure file_name and old_file_name
25246         point to strings before performing equality test for error_one_per_line
25247         mode.
25248
25249         [BZ #11697]
25250         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
25251
25252         [BZ #11820]
25253         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
25254         (struct user_fpregs_struct): Avoid __uint*_t types.
25255
25256         [BZ #6420]
25257         * malloc/mtrace.c (tr_where): Add additional parameter to point to
25258         symbol info.  Use it instead of calling _dl_addr locally.
25259         (lock_and_info): New function.
25260         (tr_freehook): Call lock_and_info and pass symbol info as additional
25261         parameter to tr_where.
25262         (tr_mallochook): Likewise.
25263         (tr_reallochook): Likewise.
25264         (tr_memalignhook): Likewise.
25265
25266         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
25267         used and couldn't be at all thread-safe.
25268
25269 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
25270
25271         * libio/freopen.c (freopen): Don't close old file descriptor
25272         before the new one is opened.  Instead dup the new file descriptor
25273         to the old one after the new stream is created.
25274         * libio/freopen64.c (freopen64): Likewise.
25275         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
25276         * libio/fileops.c (_IO_new_file_close_it): Handle new
25277         _IO_FLAGS2_NOCLOSE flag.
25278         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
25279         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
25280         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
25281         _IO_FLAGS2_NOCLOSE flag.
25282         * include/unistd.h: Add hidden_proto for dup3.
25283         Define __have_dup3.
25284         * io/dup3.c: Define hidden symbol.
25285         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
25286
25287         [BZ #7101]
25288         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
25289         when an incomplete long option is used.
25290         * posix/tst-getopt_long1.c: New file.
25291         * posix/Makefile (tests): Add tst-getopt_long1.
25292
25293         [BZ #10138]
25294         * scripts/config.guess: Update from autoconf-2.68.
25295         * scripts/config.sub: Likewise.
25296
25297         [BZ #10157]
25298         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
25299         tests into ...
25300         (has_cpuclock): ...this.  New function.
25301         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
25302         macro here based on has_cpuclock code.
25303
25304         [BZ #10149]
25305         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
25306         First byte (not low byte) is now always NUL.
25307         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
25308
25309         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
25310         Use non-cancelable interfaces.
25311
25312         [BZ #9809]
25313         * locale/iso-639.def: Add entry for Sorani.
25314
25315         [BZ #11901]
25316         * include/stdlib.h: Move include protection to the right place.
25317         Define abort_msg_s.  Declare __abort_msg with it.
25318         * stdlib/abort.c (__abort_msg): Adjust type.
25319         * assert/assert.c (__assert_fail_base): New function.  Majority
25320         of code from __assert_fail.  Allocate memory for __abort_msg with
25321         mmap.
25322         (__assert_fail): Now call __assert_fail_base.
25323         * assert/assert-perr.c: Remove bulk of implementation.  Use
25324         __assert_fail_base.
25325         * include/assert.hL Declare __assert_fail_base.
25326         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
25327         mmap.
25328         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
25329
25330 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
25331
25332         [BZ #11952]
25333         [BZ #12453]
25334         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
25335         until all modules are registered in the DTV.
25336         * elf/Makefile: Add rules to build and run tst-tls19.
25337         * elf/tst-tls19.c: New file.
25338         * elf/tst-tls19mod1.c: New file.
25339         * elf/tst-tls19mod2.c: New file.
25340         * elf/tst-tls19mod3.c: New file.
25341         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
25342
25343         [BZ #12083]
25344         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
25345         correctly.
25346
25347         [BZ #12601]
25348         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
25349         two-byte sequence errors.
25350         * iconvdata/Makefile (tests): Add bug-iconv8.
25351         * iconvdata/bug-iconv8.c: New file.
25352
25353         [BZ #12626]
25354         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
25355         buf2 definition.
25356
25357         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
25358
25359         [BZ #12432]
25360         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
25361         (dummy_getcfa): New function.
25362         (init): Get _Unwind_GetCFA address, use dummy if not found.
25363         (backtrace_helper): In recursion check, also check whether CFA changes.
25364         (__backtrace): Completely initialize arg.
25365
25366         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
25367         storing incomplete byte sequence in state object.  Avoid testing for
25368         guaranteed too small input if we know there is enough data available.
25369
25370 2011-05-11  Andreas Schwab  <schwab@redhat.com>
25371
25372         * Makeconfig (+link-pie): Indent.
25373         * Rules (binaries-pie): Define if $(have-fpie) and
25374         $(build-shared).
25375         (binaries-shared): Also filter out $(binaries-pie).
25376         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
25377         * nscd/Makefile (others-pie): Add nscd.
25378         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
25379         ($(objpfx)nscd): Remove command override.
25380         * login/Makefile (others-pie): Add pt_chown.
25381         ($(objpfx)pt_chown): Remove command override.
25382         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
25383         remove command overrides.
25384
25385 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
25386
25387         * libio/tst_putwc.c: Fix error messages.
25388
25389         [BZ #12724]
25390         * libio/fileops.c (_IO_new_file_close_it): Always flush when
25391         currently writing and seek to current position when not.
25392         * libio/Makefile (tests): Add bug-fclose1.
25393         * libio/bug-fclose1.c: New file.
25394
25395 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
25396
25397         [BZ #12511]
25398         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
25399         don't set DF_1_NODELETE here.
25400         (do_lookup_x): When entering new entry test for copy relocation
25401         and if necessary set DF_1_NODELETE flag.
25402         * elf/tst-unique4.cc: New file.
25403         * elf/tst-unique4.h: New file.
25404         * elf/tst-unique4lib.cc: New file.
25405         * elf/Makefile: Add rules to build and run tst-unique4.
25406         Patch by Piotr Bury <pbury@goahead.com>.
25407
25408 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
25409
25410         [BZ #12052]
25411         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
25412
25413         [BZ #12625]
25414         * misc/mntent_r.c (addmntent): Flush the stream after the output
25415
25416         [BZ #12393]
25417         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
25418         (is_trusted_path_normalize): Skip initial colon.  Append slash
25419         to empty buffer.  Duplicate is_trusted_path code but allow
25420         constructed patch to be prefix.
25421         (is_dst): Allow $ORIGIN followed by /.
25422         (_dl_dst_substitute): Correct clearing of check_for_trusted.
25423         Correct testing of result of is_trusted_path_normalize
25424         (decompose_rpath): Fix warning.
25425
25426 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
25427
25428         [BZ #11257]
25429         * grp/initgroups.c (internal_getgrouplist): When we found the service
25430         list through the initgroups entry in nsswitch.conf do not always
25431         continue on a successful lookup.  Don't always use the
25432         __nss_group_database value if it is set.
25433         * nss/nsswitch.conf (initgroups): Change action for successful db
25434         lookup to continue for compatibility.
25435
25436 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
25437
25438         [BZ #11532]
25439         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
25440         and CP774 modules.
25441         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
25442         and CP774 modules.
25443         * iconvdata/tst-tables.sh: Likewise.
25444         * iconvdata/cp770.c: New file.
25445         * iconvdata/cp771.c: New file.
25446         * iconvdata/cp772.c: New file.
25447         * iconvdata/cp773.c: New file.
25448         * iconvdata/cp774.c: New file.
25449         * iconvdata/testdata/CP770: New file.
25450         * iconvdata/testdata/CP770..UTF8: New file.
25451         * iconvdata/testdata/CP771: New file.
25452         * iconvdata/testdata/CP771..UTF8: New file.
25453         * iconvdata/testdata/CP772: New file.
25454         * iconvdata/testdata/CP772..UTF8: New file.
25455         * iconvdata/testdata/CP773: New file.
25456         * iconvdata/testdata/CP773..UTF8: New file.
25457         * iconvdata/testdata/CP774: New file.
25458         * iconvdata/testdata/CP774..UTF8: New file.
25459
25460         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
25461         END CHARMAP line.
25462         * iconvdata/gen-8bit-gap.sh: Likewise.
25463         * iconvdata/gen-8bit.sh: Likewise.
25464
25465         * locale/iso-639.def: Add ary entry.
25466
25467         [BZ #11258]
25468         * locale/C-translit.h.in: Add U20A1 transliteration.
25469
25470         [BZ #12178]
25471         * locale/iso-639.def: Add wae entry.
25472         Patch by Kevin Bortis <bortis@translate-wae.ch>.
25473
25474         [BZ #12545]
25475         * locale/programs/localedef.c (construct_output_path): Use ssize_t
25476         for n.
25477
25478         [BZ #12711]
25479         * locale/C-translit.h.in: Add entry for U20B9.
25480         Patch by pravin.d.s@gmail.com.
25481
25482 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
25483
25484         [BZ #12713]
25485         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
25486         ENAMETOOLONG use generic getcwd.
25487         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
25488         in rtld.  Use *stat64.
25489         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
25490         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
25491         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
25492         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
25493         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
25494         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
25495         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
25496         __fstatat64 macros.
25497         * include/dirent.h: Add libc_hidden_proto for rewinddir.
25498         * dirent/rewinddir.c: Add libc_hidden_def.
25499         * sysdeps/mach/hurd/rewinddir.c: Likewise.
25500         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
25501
25502         * include/dirent.h (__alloc_dir): Add flags parameter.
25503         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
25504         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
25505         __alloc_dir.
25506         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
25507         from fdopendir if O_CLOEXEC is already set.
25508
25509 2011-03-15  Alan Modra  <amodra@gmail.com>
25510
25511         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
25512         l_tls_firstbyte_offset non-zero.  Save padding offset in
25513         l_tls_firstbyte_offset for later use.
25514         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
25515         freeing static tls block.
25516
25517 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
25518
25519         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
25520         where #ifdef was intended.  The intent is to prevent ARG_MAX from
25521         being defined by the kernel headers.
25522
25523 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
25524
25525         [BZ #12734]
25526         * resolv/resolv.h: Define RES_NOTLDQUERY.
25527         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
25528         no-tld-query and set RES_NOTLDQUERY.
25529         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
25530         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
25531         modern BIND to search name as TLD unless forbidden.
25532
25533 2011-05-07  Petr Baudis  <pasky@suse.cz>
25534             Ulrich Drepper  <drepper@gmail.com>
25535
25536         [BZ #12393]
25537         * elf/dl-load.c (fillin_rpath): Move trusted path check...
25538         (is_trusted_path): ...to here.
25539         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
25540         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
25541         using is_trusted_path_normalize() in setuid scripts.
25542
25543 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
25544
25545         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
25546         __BEGIN/__END_DECLS.
25547
25548 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
25549
25550         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
25551         NSS_STATUS_NOTFOUND if no record was found.
25552
25553 2011-05-05  Andreas Schwab  <schwab@redhat.com>
25554
25555         * sunrpc/Makefile (headers): Add rpc/netdb.h.
25556         (headers-not-in-tirpc): Remove rpc/netdb.h
25557         * resolv/netdb.h: Revert last change.
25558
25559 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
25560
25561         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
25562         circular dependency between libgcc.a and libc.a.
25563
25564 2011-05-05  Andreas Schwab  <schwab@redhat.com>
25565
25566         * resolv/netdb.h: Don't include <rpc/netdb.h>.
25567         * nis/Makefile: Don't install rpcsvc/*.
25568         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
25569         instead of <rpc/types.h>.
25570         (MAXHOSTNAMELEN): Define.
25571
25572 2011-05-03  Andreas Schwab  <schwab@redhat.com>
25573
25574         * elf/ldconfig.c (add_dir): Don't crash on empty path.
25575
25576 2011-04-28  Maciej Babinski  <mbabinski@google.com>
25577
25578         [BZ #12714]
25579         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
25580         gethostbyname4_r when IPv6 results are possible.
25581
25582 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
25583
25584         [BZ #12723]
25585         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
25586         _PC_PIPE_BUF handling.
25587
25588 2011-04-30  Bruno Haible  <bruno@clisp.org>
25589
25590         [BZ #12717]
25591         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
25592         * resolv/netdb.h (getnameinfo): Change type of flags parameter
25593         to 'int'.
25594         * inet/getnameinfo.c (getnameinfo): Likewise.
25595
25596 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
25597
25598         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
25599         to groups setting in database lookup.
25600         * nss/nsswitch.conf: Add initgroups entry.
25601
25602 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
25603
25604         [BZ #12685]
25605         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
25606         mode string.
25607         Patch by Eric Blake <eblake@redhat.com>.
25608
25609 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
25610
25611         * sunrpc/Makefile (need-export-routines): Add svc_run.
25612         (routines): Remove svc_run.
25613         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
25614         * sunrpc/clnt_perr.c (clnt_perrno): Export.
25615         * sunrpc/svc_run.c (svc_run): Likewise.
25616         * sunrpc/svc_udp.c (svcudp_create): Likewise.
25617
25618 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
25619
25620         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
25621         problem in reallocation in last patch.
25622
25623 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
25624
25625         * sunrpc/Makefile: Move inclusion of Rules.
25626
25627 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
25628
25629         * nss/nss_files/files-initgroups.c: New file.
25630         * nss/Makefile (libnss_files-routines): Add files-initgroups.
25631         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
25632         _nss_files_initgroups_dyn.
25633
25634 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
25635
25636         * elf/elf.h (R_ARM_IRELATIVE): Define.
25637
25638 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
25639
25640         * po/ru.po: Update from translation team.
25641
25642 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
25643
25644         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
25645         dependencies.
25646
25647 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
25648
25649         [BZ #12653]
25650         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
25651         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
25652         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
25653         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
25654         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
25655
25656 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
25657
25658         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
25659         differing bytes.
25660         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
25661         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
25662         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
25663
25664 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
25665
25666         [BZ #12420]
25667         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
25668         storing it.
25669         * stdlib/bug-getcontext.c: New file.
25670         * stdlib/Makefile: Add rules to build and run bug-getcontext.
25671
25672 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25673
25674         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
25675         instructions into .machine "z9-109".
25676         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
25677         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
25678
25679 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25680
25681         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
25682         between environment variables and auxiliary vector.
25683
25684 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
25685
25686         * Makefile: Add rules to build linkobj/libc.so.
25687         * include/libc-symbols.h: Define libc_hidden_nolink.
25688         * include/rpc/auth.h: Mark functions which are to be hidden.
25689         * include/rpc/auth_des.h: Likewise.
25690         * include/rpc/auth_unix.h: Likewise.
25691         * include/rpc/clnt.h: Likewise.
25692         * include/rpc/des_crypt.h: Likewise.
25693         * include/rpc/key_prot.h: Likewise.
25694         * include/rpc/pmap_clnt.h: Likewise.
25695         * include/rpc/pmap_prot.h: Likewise.
25696         * include/rpc/pmap_rmt.h: Likewise.
25697         * include/rpc/rpc_msg.h: Likewise.
25698         * include/rpc/svc.h: Likewise.
25699         * include/rpc/svc_auth.h: Likewise.
25700         * include/rpc/xdr.h: Likewise.
25701         * nis/Makefile: Link all DSOs against linkobj/libc.so.
25702         * nss/Makefile: Likewise.
25703         * sunrpc/Makefile: Don't install headers.  Build library with normal
25704         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
25705         * sunrpc/auth_des.c: Hide exported symbols by default, export some
25706         for the compat linking library.  Remove use of INTDEF/INTUSE.
25707         * sunrpc/auth_none.c: Likewise.
25708         * sunrpc/auth_unix.c: Likewise.
25709         * sunrpc/authdes_prot.c: Likewise.
25710         * sunrpc/authuxprot.c: Likewise.
25711         * sunrpc/clnt_gen.c: Likewise.
25712         * sunrpc/clnt_perr.c: Likewise.
25713         * sunrpc/clnt_raw.c: Likewise.
25714         * sunrpc/clnt_simp.c: Likewise.
25715         * sunrpc/clnt_tcp.c: Likewise.
25716         * sunrpc/clnt_udp.c: Likewise.
25717         * sunrpc/clnt_unix.c: Likewise.
25718         * sunrpc/des_crypt.c: Likewise.
25719         * sunrpc/des_soft.c: Likewise.
25720         * sunrpc/get_myaddr.c: Likewise.
25721         * sunrpc/key_call.c: Likewise.
25722         * sunrpc/key_prot.c: Likewise.
25723         * sunrpc/netname.c: Likewise.
25724         * sunrpc/pm_getmaps.c: Likewise.
25725         * sunrpc/pm_getport.c: Likewise.
25726         * sunrpc/pmap_clnt.c: Likewise.
25727         * sunrpc/pmap_prot.c: Likewise.
25728         * sunrpc/pmap_prot2.c: Likewise.
25729         * sunrpc/pmap_rmt.c: Likewise.
25730         * sunrpc/publickey.c: Likewise.
25731         * sunrpc/rpc_cmsg.c: Likewise.
25732         * sunrpc/rpc_common.c: Likewise.
25733         * sunrpc/rpc_dtable.c: Likewise.
25734         * sunrpc/rpc_prot.c: Likewise.
25735         * sunrpc/rpc_thread.c: Likewise.
25736         * sunrpc/rtime.c: Likewise.
25737         * sunrpc/svc.c: Likewise.
25738         * sunrpc/svc_auth.c: Likewise.
25739         * sunrpc/svc_authux.c: Likewise.
25740         * sunrpc/svc_raw.c: Likewise.
25741         * sunrpc/svc_run.c: Likewise.
25742         * sunrpc/svc_simple.c: Likewise.
25743         * sunrpc/svc_tcp.c: Likewise.
25744         * sunrpc/svc_udp.c: Likewise.
25745         * sunrpc/svc_unix.c: Likewise.
25746         * sunrpc/svcauth_des.c: Likewise.
25747         * sunrpc/xcrypt.c: Likewise.
25748         * sunrpc/xdr.c: Likewise.
25749         * sunrpc/xdr_array.c: Likewise.
25750         * sunrpc/xdr_float.c: Likewise.
25751         * sunrpc/xdr_intXX_t.c: Likewise.
25752         * sunrpc/xdr_mem.c: Likewise.
25753         * sunrpc/xdr_rec.c: Likewise.
25754         * sunrpc/xdr_ref.c: Likewise.
25755         * sunrpc/xdr_sizeof.c: Likewise.
25756         * sunrpc/xdr_stdio.c: Likewise.
25757
25758 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
25759
25760         [BZ #12650]
25761         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
25762         * sysdeps/ia64/dl-tls.h: Likewise.
25763         * sysdeps/powerpc/dl-tls.h: Likewise.
25764         * sysdeps/s390/dl-tls.h: Likewise.
25765         * sysdeps/sh/dl-tls.h: Likewise.
25766         * sysdeps/sparc/dl-tls.h: Likewise.
25767         * sysdeps/x86_64/dl-tls.h: Likewise.
25768         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
25769
25770 2011-03-14  Andreas Schwab  <schwab@redhat.com>
25771
25772         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
25773         rpath element also skip the following colon.
25774         (expand_dynamic_string_token): Add is_path parameter and pass
25775         down to DL_DST_REQUIRED and _dl_dst_substitute.
25776         (decompose_rpath): Call expand_dynamic_string_token with
25777         non-zero is_path.  Ignore empty rpaths.
25778         (_dl_map_object_from_fd): Call expand_dynamic_string_token
25779         with zero is_path.
25780
25781 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
25782
25783         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
25784         Make cancelable.
25785
25786 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
25787
25788         [BZ #12655]
25789         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
25790         Patch by Filipe David Manana <fdmanana@apache.org>.
25791
25792 2011-04-07  Andreas Schwab  <schwab@redhat.com>
25793
25794         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
25795         Maintain aligned stack.
25796         (CHECK_RSP): Remove unused macro.
25797
25798 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
25799
25800         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
25801         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
25802
25803 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
25804
25805         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
25806
25807         * include/features.h: Mention __USE_XOPEN2K8 in comment.
25808
25809 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
25810
25811         [BZ #12518]
25812         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
25813         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
25814         * sysdeps/x86_64/memmove.c: New file.
25815         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
25816         (memcpy): Renamed to ...
25817         (__new_memcpy): This.
25818         (memcpy): Provide GLIBC_2_14 memcpy.
25819         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
25820         (memcpy): Provide GLIBC_2_2_5 memcpy.
25821
25822 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
25823
25824         [BZ #12631]
25825         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
25826
25827 2011-03-30  Andreas Schwab  <schwab@redhat.com>
25828
25829         * misc/syncfs.c: New file.
25830         * misc/Makefile (routines): Add syncfs.
25831         * posix/unistd.h: Declare syncfs.
25832         * sysdeps/unix/syscalls.list: Add syncfs.
25833
25834 2011-04-01  Andreas Schwab  <schwab@redhat.com>
25835
25836         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
25837         open_by_handle_at.
25838         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
25839         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
25840         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
25841         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
25842         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
25843         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
25844         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
25845
25846 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
25847
25848         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
25849         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
25850         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
25851         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
25852         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
25853         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
25854         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
25855
25856         * io/Makefile: Compile fallocate.c, fallocate64.c, and
25857         sync_file_range.c with -fexceptions.
25858         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
25859         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
25860         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
25861         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
25862         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
25863         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
25864         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
25865         sync_file_range as cancellation point
25866         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
25867         now a wrapper around __call_sync_file_range with cancellation handling.
25868         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
25869         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
25870         function name to __call_sync_file_range.
25871         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
25872         Add call_sync_file_range.
25873
25874 2011-04-01  Andreas Schwab  <schwab@redhat.com>
25875
25876         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
25877         bits/timex.h.
25878
25879 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
25880
25881         * iconv/iconv.h: Fix typo in comment.
25882         * io/fcntl.h: Likewise.
25883         * libio/stdio.h: Likewise.
25884         * posix/spawn.h: Likewise.
25885         * posix/unistd.h: Likewise.
25886         * stdlib/stdlib.h: Likewise.
25887         * time/time.h: Likewise.
25888         * wcsmbs/wchar.h: Likewise.
25889
25890         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
25891         open_by_handle): Add.
25892         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
25893         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
25894         Augment a few comments.
25895         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
25896         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
25897         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
25898         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
25899         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
25900         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
25901         open_by_handle.
25902
25903         * io/fcntl.h (AT_EMPTY_PATH): Define.
25904
25905 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
25906
25907         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
25908         * sysdeps/unix/sysv/linux/bits/time.h: New file.
25909         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
25910         to...
25911         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
25912         * Versions.def: Add GLIBC_2.14.
25913         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
25914         Export.
25915
25916 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
25917
25918         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
25919         round counter.
25920         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
25921
25922 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
25923
25924         [BZ #12597]
25925         * string/test-strncmp.c (do_page_test): New function.
25926         (check2): Likewise.
25927         (test_main): Call check2.
25928         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
25929
25930 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
25931
25932         [BZ #12587]
25933         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
25934         Handle cache information in CPU leaf 4.
25935         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
25936
25937 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
25938
25939         [BZ #12583]
25940         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
25941         character representation.
25942         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
25943
25944 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
25945
25946         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
25947         END(__isnan) to END(__isnanf) to match function entry point/label
25948         EALIGN(__isnanf,...).
25949
25950 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
25951
25952         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
25953
25954 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
25955
25956         [BZ #12510]
25957         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
25958         copy from the symbol referenced in the relocation to initialize the
25959         used variable.
25960         Patch by Piotr Bury <pbury@goahead.com>.
25961         * elf/Makefile: Add rules to build and tst-unique3.
25962         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
25963         * elf/tst-unique3.cc: New file.
25964         * elf/tst-unique3.h: New file.
25965         * elf/tst-unique3lib.cc: New file.
25966         * elf/tst-unique3lib2.cc: New file.
25967
25968         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
25969
25970 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
25971
25972         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
25973         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
25974         to _start.
25975
25976 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
25977
25978         * elf/dl-load.c (_dl_map_object): If we are looking for the first
25979         to-be-loaded object along a path to loader is ld.so.
25980
25981 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
25982             Ulrich Drepper  <drepper@gmail.com>
25983
25984         * sysdeps/x86_64/memset.S: After aligning destination, code
25985         branches to different locations depending on the value of
25986         misalignment, when multiarch is enabled. Fix this.
25987
25988 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
25989
25990         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
25991         Set _x86_64_preferred_memory_instruction for AMD processsors.
25992         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
25993         Set bit_Prefer_SSE_for_memop for AMD processors.
25994
25995 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
25996
25997         * libio/fmemopen.c (fmemopen): Optimize a bit.
25998
25999 2011-03-03  Andreas Schwab  <schwab@redhat.com>
26000
26001         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
26002
26003 2011-03-03  Roland McGrath  <roland@redhat.com>
26004
26005         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
26006
26007 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
26008
26009         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
26010         __bzero_ultra1 instead of __memset_ultra1.
26011
26012 2011-02-23  Andreas Schwab  <schwab@redhat.com>
26013             Ulrich Drepper  <drepper@gmail.com>
26014
26015         [BZ #12509]
26016         * include/link.h (struct link_map): Add l_orig_initfini.
26017         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
26018         returning unsuccessfully.
26019         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
26020         close of a file loaded at startup, restore the original l_initfini
26021         list.
26022         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
26023         list, store the pointer.
26024         * elf/Makefile ($(objpfx)noload-mem): New rule.
26025         (noload-ENV): Define.
26026         (tests): Add $(objpfx)noload-mem.
26027         * elf/noload.c: Include <memcheck.h>.
26028         (main): Call mtrace.  Close all opened handles.
26029
26030 2011-02-17  Andreas Schwab  <schwab@redhat.com>
26031
26032         [BZ #12454]
26033         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
26034         dependencies are missing.
26035
26036 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26037
26038         Fix __if_freereq crash: Unlike the generic version which uses free,
26039         Hurd needs munmap.
26040         * sysdeps/mach/hurd/ifreq.h: New file.
26041
26042 2011-01-27  Petr Baudis  <pasky@suse.cz>
26043             Ulrich Drepper  <drepper@gmail.com>
26044
26045         [BZ 12445]#
26046         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
26047         to extend_alloca().
26048         * stdio-common/bug23.c: New file.
26049         * stdio-common/Makefile (tests): Add bug23.
26050
26051 2010-09-28  Andreas Schwab  <schwab@redhat.com>
26052             Ulrich Drepper  <drepper@gmail.com>
26053
26054         [BZ #12489]
26055         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
26056         before performing relro protection.  At old place add assertion
26057         to make sure nothing changed.
26058
26059 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
26060             Glauber de Oliveira Costa  <glommer@gmail.com>
26061
26062         * elf/elf.h: Add new ARM TLS relocs.
26063
26064 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
26065
26066         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
26067         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
26068         cast from r3.
26069         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
26070         'tests' variable.
26071         * sysdeps/wordsize-64/tst-writev.c: New file.
26072
26073 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
26074
26075         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
26076         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
26077         insns in _dl_start to prevent a TOC reference before relocs are
26078         resolved.
26079
26080 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
26081
26082         [BZ #12469]
26083         * Makeconfig: Remove RANLIB definition.
26084         * Makerules: Don't use RANLIB.
26085         * aclocal.m4: Remove ranlib test.
26086         * configure.in: No need to check for ranlib.
26087         * elf/rtld-Rules: Don't use RANLIB.
26088
26089 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26090
26091         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
26092         protection macro.
26093         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
26094         inclusion protection macro.
26095
26096         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
26097         SIGRTMIN and SIGRTMAX and print information in that case only when
26098         SIGRTMIN is defined.
26099
26100 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
26101
26102         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
26103         arginfo fn returning -1.
26104
26105         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
26106         and thousands string is zero terminated.
26107
26108 2011-02-03  Andreas Schwab  <schwab@redhat.com>
26109
26110         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
26111         sysdeps/unix/sysv/linux/bits/socket.h.
26112
26113 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26114
26115         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
26116         (__CPU_COUNT): Remove old macros.
26117         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
26118         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
26119         (__CPU_ALLOC, __CPU_FREE): Add macros.
26120         (__sched_cpualloc, __sched_cpufree): Add declarations.
26121
26122 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
26123
26124         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
26125         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
26126         * nscd/aicache.c (addhstaiX): Return timeout of added value.
26127         (readdhstai): Return value of addhstaiX call.
26128         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
26129         (addgrbyX): Return value returned by cache_addgr.
26130         (readdgrbyname): Return value returned by addgrbyX.
26131         (readdgrbygid): Likewise.
26132         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
26133         (addpwbyX): Return value returned by cache_addpw.
26134         (readdpwbyname): Return value returned by addhstbyX.
26135         (readdpwbyuid): Likewise.
26136         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
26137         (addservbyX): Return value returned by cache_addserv.
26138         (readdservbyname): Return value returned by addservbyX:
26139         (readdservbyport): Likewise.
26140         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
26141         (addhstbyX): Return value returned by cache_addhst.
26142         (readdhstbyname): Return value returned by addhstbyX.
26143         (readdhstbyaddr): Likewise.
26144         (readdhstbynamev6): Likewise.
26145         (readdhstbyaddrv6): Likewise.
26146         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
26147         (readdinitgroups): Return value returned by addinitgroupsX.
26148         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
26149         (prune_cache): Keep track of timeout value of re-added entries.
26150         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
26151         * nscd/nscd.h: Adjust prototypes of readd* functions.
26152
26153 2011-02-04  Roland McGrath  <roland@redhat.com>
26154
26155         * nis/nis_server.c (nis_servstate): Use the right name for 0.
26156         (nis_stats): Likewise.
26157         * nis/nis_modify.c (nis_modify): Likewise.
26158         * nis/nis_remove.c (nis_remove): Likewise.
26159         * nis/nis_add.c (nis_add): Likewise.
26160
26161         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
26162
26163         * posix/fnmatch_loop.c: Add some consts.
26164
26165         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
26166
26167 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
26168
26169         [BZ #12460]
26170         * config.make.in (config-cflags-novzeroupper): Define.
26171         * configure.in: Substitute libc_cv_cc_novzeroupper.
26172         * elf/Makefile (AVX-CFLAGS): Define.
26173         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
26174         (CFLAGS-tst-auditmod4a.c): Likewise.
26175         (CFLAGS-tst-auditmod4b.c): Likewise.
26176         (CFLAGS-tst-auditmod6b.c): Likewise.
26177         (CFLAGS-tst-auditmod6c.c): Likewise.
26178         (CFLAGS-tst-auditmod7b.c): Likewise.
26179         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
26180
26181 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
26182
26183         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
26184         function to the callback.
26185         Patch partly by Jiri Olsa <jolsa@redhat.com>.
26186
26187 2011-02-02  Andreas Schwab  <schwab@redhat.com>
26188
26189         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
26190         of errno.
26191
26192 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
26193
26194         [BZ #11724]
26195         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
26196         of constructors.
26197         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
26198         of destructors.
26199         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
26200
26201         [BZ #11724]
26202         * elf/Makefile: Add rules to build and run new test.
26203         * elf/tst-initorder.c: New file.
26204         * elf/tst-initorder.exp: New file.
26205         * elf/tst-initordera1.c: New file.
26206         * elf/tst-initordera2.c: New file.
26207         * elf/tst-initordera3.c: New file.
26208         * elf/tst-initordera4.c: New file.
26209         * elf/tst-initorderb1.c: New file.
26210         * elf/tst-initorderb2.c: New file.
26211         * elf/tst-order-a1.c: New file.
26212         * elf/tst-order-a2.c: New file.
26213         * elf/tst-order-a3.c: New file.
26214         * elf/tst-order-a4.c: New file.
26215         * elf/tst-order-b1.c: New file.
26216         * elf/tst-order-b2.c: New file.
26217         * elf/tst-order-main.c: New file.
26218         New test case by George Gensure <werkt0@gmail.com>.
26219
26220 2010-10-01  Andreas Schwab  <schwab@redhat.com>
26221
26222         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
26223         decoding ACE if AI_CANONIDN.
26224
26225 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
26226
26227         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
26228
26229 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
26230
26231         * version.h (RELEASE): Bump for 2.13 release.
26232         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
26233
26234         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
26235
26236         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
26237         MADV_NOHUGEPAGE.
26238         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
26239         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
26240         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
26241         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
26242         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
26243         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
26244
26245         * posix/getconf.c: Update copyright year.
26246         * catgets/gencat.c: Likewise.
26247         * csu/version.c: Likewise.
26248         * debug/catchsegv.sh: Likewise.
26249         * debug/xtrace.sh: Likewise.
26250         * elf/ldconfig.c: Likewise.
26251         * elf/ldd.bash.in: Likewise.
26252         * elf/sprof.c (print_version): Likewise.
26253         * iconv/iconv_prog.c: Likewise.
26254         * iconv/iconvconfig.c: Likewise.
26255         * locale/programs/locale.c: Likewise.
26256         * locale/programs/localedef.c: Likewise.
26257         * malloc/memusage.sh: Likewise.
26258         * malloc/mtrace.pl: Likewise.
26259         * nscd/nscd.c (print_version): Likewise.
26260         * nss/getent.c: Likewise.
26261
26262         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
26263         PF_CAIF, and PF_ALG.
26264         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
26265
26266 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
26267
26268         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
26269         (modules-names): Use them.
26270         (ifunc-test-modules, ifunc-pie-tests): Define.
26271         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
26272         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
26273         (test-extras): Likewise.
26274         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
26275         $(compile-command.c).
26276         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
26277         (all-built-dso): Define.
26278         (check-textrel.out, check-execstack.out): Depend on it.
26279
26280         * configure.in: Don't override --enable-multi-arch.
26281
26282 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
26283
26284         [BZ #6812]
26285         * nscd/hstcache.c (tryagain): Define.
26286         (cache_addhst): Return tryagain not notfound for temporary errors.
26287         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
26288         failed.
26289
26290 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
26291
26292         [BZ #10563]
26293         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
26294         to make the syscall.
26295         * sysdeps/unix/sysv/linux/setgroups.c: New file.
26296
26297         [BZ #12378]
26298         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
26299         and fall back to matching as normal character if the string ends before
26300         the matching ']' is found.  This is what POSIX requires.
26301         * posix/testfnm.c: Adjust test result.
26302         * posix/globtest.sh: Adjust test result.  Add new test.
26303         * posix/tst-fnmatch.input: Likewise.
26304         * posix/tst-fnmatch2.c: Add new test.
26305
26306 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
26307
26308         * elf/Makefile (check-execstack): Revert last change.  Depend on
26309         check-execstack.h.
26310         (check-execstack.h): New target.
26311         (generated): Add check-execstack.h.
26312         * elf/check-execstack.c: Include "check-execstack.h".
26313         (main): Revert last change.
26314         (handle_file): Return zero if GNU_STACK is absent and
26315         DEFAULT_STACK_PERMS doesn't include PF_X.
26316
26317 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
26318
26319         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
26320         in child fails because the descriptor is already closed.
26321         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
26322         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
26323         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
26324
26325         [BZ #12397]
26326         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
26327         syscall.
26328
26329         [BZ #10484]
26330         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
26331         temporary buffer used to handle multi lookups locally.
26332         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
26333
26334 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
26335
26336         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
26337         loader is ld.so.
26338
26339 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
26340
26341         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
26342         alignment for SSE2.
26343
26344 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
26345
26346         [BZ #12394]
26347         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
26348         characters.  When rounding increased number of integer digits recompute
26349         number of groups.
26350         * stdio-common/tst-grouping.c: New file.
26351         * stdio-common/Makefile: Add rules to build and run tst-grouping.
26352
26353 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
26354
26355         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
26356         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
26357
26358         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
26359         void.
26360         * bits/select.h: Likewise.
26361
26362 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
26363
26364         * po/ja.po: Update from translation team.
26365
26366 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
26367
26368         [BZ #11155]
26369         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
26370         implementation just like for lxstat, fxstatat, et al.
26371
26372 2010-12-27  Jim Meyering  <meyering@redhat.com>
26373
26374         [BZ #12348]
26375         * posix/regexec.c (build_trtable): Return failure indication upon
26376         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
26377
26378 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
26379
26380         [BZ #12201]
26381         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
26382         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
26383         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
26384         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
26385
26386         [BZ #12207]
26387         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
26388
26389         [BZ #12204]
26390         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
26391         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
26392
26393 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
26394
26395         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
26396         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
26397         script has SORT_BY_INIT_PRIORITY.
26398         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
26399         NO_CTORS_DTORS_SECTIONS is defined.
26400         * elf/soinit.c: Likewise.
26401         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
26402         NO_CTORS_DTORS_SECTIONS is defined.
26403         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
26404         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
26405         * sysdeps/sh/init-first.c: Likewise.
26406         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
26407
26408 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
26409
26410         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
26411         always use the slow path.
26412
26413 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
26414
26415         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
26416         similar rule which adds the sysdep directories to the header search in
26417         order to pick up the correct platform stackinfo.h.
26418         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
26419         perform test if it is, otherwise return successfully without testing.
26420         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
26421         DEFAULT_STACK_PERMS define in stackinfo.h.
26422         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
26423         defined in stackinfo.h.
26424         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
26425         DEFAULT_STACK_PERMS defined in stackinfo.h.
26426         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
26427         * sysdeps/ia64/stackinfo.h: Likewise.
26428         * sysdeps/s390/stackinfo.h: Likewise.
26429         * sysdeps/sh/stackinfo.h: Likewise.
26430         * sysdeps/sparc/stackinfo.h: Likewise.
26431         * sysdeps/x86_64/stackinfo.h: Likewise.
26432         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
26433         PF_X for powerpc64.  Retain PF_X for powerpc32.
26434
26435 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
26436
26437         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
26438         accurately.
26439         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
26440         GETDENTS_64BIT_ALIGNED.
26441
26442 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
26443
26444         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
26445
26446 2010-12-10  Andreas Schwab  <schwab@redhat.com>
26447
26448         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
26449         _GNU_SOURCE.
26450
26451         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
26452         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
26453         Remove __restrict.
26454         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
26455         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
26456
26457 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
26458
26459         [BZ #11655]
26460         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
26461         are initialized.
26462
26463 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
26464
26465         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
26466
26467 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
26468
26469         * po/it.po: Update from translation team.
26470
26471 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
26472
26473         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
26474         unused codes.
26475
26476 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
26477
26478         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
26479
26480 2010-11-24  Andreas Schwab  <schwab@redhat.com>
26481
26482         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
26483         specially.
26484         (gaih_getanswer_slice): Likewise.
26485
26486 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
26487
26488         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
26489
26490 2010-05-31  Petr Baudis  <pasky@suse.cz>
26491
26492         [BZ #11149]
26493         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
26494         silently even in the chroot mode.
26495
26496 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
26497
26498         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
26499         last patch a bit.  Pretty printing
26500
26501 2010-05-31  Petr Baudis <pasky@suse.cz>
26502
26503         [BZ #10085]
26504         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
26505         initialization of skip_initgroups_dyn.
26506
26507 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
26508
26509         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
26510         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
26511
26512 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
26513
26514         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
26515
26516 2010-11-11  Andreas Schwab  <schwab@redhat.com>
26517
26518         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
26519         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
26520         (tst-fnmatch-ENV): Set MALLOC_TRACE.
26521         ($(objpfx)tst-fnmatch-mem): New rule.
26522         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
26523         * posix/tst-fnmatch.c (main): Call mtrace.
26524
26525 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
26526
26527         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
26528         Support Intel processor model 6 and model 0x2c.
26529
26530 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
26531
26532         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
26533           signed comparison.
26534
26535 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
26536
26537         [BZ #12205]
26538         * string/test-strncasecmp.c (check_result): New function.
26539         (do_one_test): Use it.
26540         (check1): New function.
26541         (test_main): Use it.
26542         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
26543         Support strcasecmp and strncasecmp.
26544
26545 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
26546
26547         [BZ #12194]
26548         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
26549         * sysdeps/x86_64/bits/byteswap.h: Likewise.
26550
26551 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
26552
26553         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
26554         IFUNC support.
26555         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
26556         memset-x86-64.
26557         * sysdeps/x86_64/multiarch/bzero.S: New file.
26558         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
26559         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
26560         * sysdeps/x86_64/multiarch/memset.S: New file.
26561         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
26562         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
26563         Set bit_Prefer_SSE_for_memop for Intel processors.
26564         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
26565         Define.
26566         (index_Prefer_SSE_for_memop): Define.
26567         (HAS_PREFER_SSE_FOR_MEMOP): Define.
26568
26569 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
26570
26571         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
26572         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
26573
26574 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
26575
26576         [BZ #12191]
26577         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
26578         (__x86_64_raw_data_cache_size_half): Likewise.
26579         (__x86_64_raw_shared_cache_size): Likewise.
26580         (__x86_64_raw_shared_cache_size_half): Likewise.
26581
26582         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
26583         (__x86_64_raw_data_cache_size_half): Likewise.
26584         (__x86_64_raw_shared_cache_size): Likewise.
26585         (__x86_64_raw_shared_cache_size_half): Likewise.
26586         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
26587         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
26588         and __x86_64_raw_shared_cache_size_half.  Round
26589         __x86_64_data_cache_size_half, __x86_64_data_cache_size
26590         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
26591         to multiple of 256 bytes.
26592
26593 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
26594
26595         [BZ #12167]
26596         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
26597         of inacessible symlinks.  Verify result of symlink before returning it.
26598         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
26599         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
26600
26601 2010-10-28  Erich Ritz  <erichritz@gmail.com>
26602
26603         * math/math.h (isinf): Fix typo in comment.
26604
26605 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
26606
26607         * po/da.po: Update from translation team.
26608
26609 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
26610
26611         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
26612         is added to the list.
26613
26614 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26615             Ulrich Drepper  <drepper@gmail.com>
26616
26617         * elf/dl-object.c (_dl_new_object): Don't append the new object to
26618         the global list here.  Move code to...
26619         (_dl_add_to_namespace_list): ...here.  New function.
26620         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
26621         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
26622         * elf/dl-load.c (lose): Don't remove the element from the list.
26623         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
26624         (_dl_map_object): Likewise.
26625
26626 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
26627
26628         [BZ #12159]
26629         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
26630         into all bytes of SSE register.
26631         Patch by Richard Li <richardpku@gmail.com>.
26632
26633 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
26634
26635         [BZ #12140]
26636         * malloc/malloc.c (_int_free): Fill correct number of bytes when
26637         perturbing.
26638
26639 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
26640
26641         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
26642         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
26643         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
26644         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
26645         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
26646         submachine.
26647         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
26648
26649 2010-10-22  Andreas Schwab  <schwab@redhat.com>
26650
26651         * include/dlfcn.h (__RTLD_SECURE): Define.
26652         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
26653         mode & __RTLD_SECURE instead.
26654         (open_path): Rename preloaded parameter to secure.
26655         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
26656         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
26657         * elf/dl-deps.c (openaux): Likewise.
26658         * elf/rtld.c (struct map_args): Remove is_preloaded.
26659         (map_doit): Don't use it.
26660         (dl_main): Likewise.
26661         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
26662         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
26663
26664 2010-09-09  Andreas Schwab  <schwab@redhat.com>
26665
26666         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
26667         (sysd-rules-targets): Remove duplicates.
26668         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
26669         rtld-%.$o dependency.
26670
26671 2010-10-18  Andreas Schwab  <schwab@redhat.com>
26672
26673         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
26674         _dl_map_object do it.
26675
26676 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
26677
26678         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
26679         fast fma builtins, define the macros in the C99 standard.
26680         (FP_FAST_FMAF): Likewise.
26681         (FP_FAST_FMAL): Likewise.
26682         * sysdeps/x86_64/bits/mathdef.h: Likewise.
26683
26684         * bits/mathdef.h: Update copyright year.
26685         * sysdeps/powerpc/bits/mathdef.h: Likewise.
26686
26687 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
26688
26689         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
26690         builtins, define the macros in the C99 standard.
26691         (FP_FAST_FMAF): Likewise.
26692         (FP_FAST_FMAL): Likewise.
26693         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
26694         multiply/add.
26695         (FP_FAST_FMAF): Likewise.
26696
26697 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
26698
26699         [BZ #3268]
26700         * math/libm-test.inc (fma_test): Some new testcases.
26701         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
26702         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
26703         y and infinite z.  Do multiplication by C already in long double.
26704         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
26705         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
26706         y and infinite z.  Do bitwise or of inexact bit into u.d.
26707         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
26708         * sysdeps/i386/fpu/s_fmaf.S: Removed.
26709         * sysdeps/i386/fpu/s_fma.S: Removed.
26710         * sysdeps/i386/fpu/s_fmal.S: Removed.
26711
26712 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
26713
26714         [BZ #3268]
26715         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
26716         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
26717         computation is not scheduled after fetestexcept.  Fix value
26718         of minimum denormal long double.
26719
26720 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
26721
26722         [BZ #3268]
26723         * math/libm-test.inc (fma_test): Add some more tests.
26724         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
26725         correctly.
26726
26727 2010-10-15  Andreas Schwab  <schwab@redhat.com>
26728
26729         * scripts/data/localplt-s390-linux-gnu.data: New file.
26730         * scripts/data/localplt-s390x-linux-gnu.data: New file.
26731
26732 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
26733
26734         [BZ #3268]
26735         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
26736         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
26737         instead of dbl-64.
26738         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
26739         inlines.
26740         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
26741         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
26742         if one of x and y is very large and the other is subnormal.
26743         * sysdeps/s390/fpu/s_fmaf.c: New file.
26744         * sysdeps/s390/fpu/s_fma.c: New file.
26745         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
26746         * sysdeps/powerpc/fpu/s_fma.S: New file.
26747         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
26748         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
26749         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
26750
26751 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
26752
26753         [BZ #3268]
26754         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
26755         fma tests.
26756         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
26757         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
26758         * sysdeps/i386/i686/multiarch/s_fma.c: Include
26759         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
26760         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
26761         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
26762         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
26763
26764 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
26765
26766         [BZ #12078]
26767         * posix/regcomp.c (parse_branch): One more memory leak plugged.
26768         * posix/bug-regex31.input: Add test case.
26769
26770 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
26771
26772         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
26773         * posix/bug-regex31.input: New file.
26774
26775         [BZ #12078]
26776         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
26777         (parse_sub_exp): Fix last change, use postorder.
26778
26779         * posix/bug-regex31.c: New file.
26780         * posix/Makefile: Add rules to build and run bug-regex31.
26781
26782         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
26783
26784         [BZ #12078]
26785         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
26786
26787         [BZ #12108]
26788         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
26789         to have entries in sys_siglist.
26790
26791         [BZ #12093]
26792         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
26793         be NULL.
26794
26795 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
26796
26797         [BZ #3268]
26798         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
26799         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
26800         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
26801         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
26802         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
26803         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
26804         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
26805         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
26806         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
26807         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
26808         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
26809         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
26810         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
26811         * math/ftestexcept.c (fetestexcept): Likewise.
26812         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
26813         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
26814         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
26815         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
26816         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
26817         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
26818         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
26819
26820 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
26821
26822         [BZ #12107]
26823         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
26824         newline.
26825
26826 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
26827
26828         * string/bug-strstr1.c: New file.
26829         * string/Makefile: Add rules to build and run bug-strstr1.
26830
26831 2010-10-05  Eric Blake  <eblake@redhat.com>
26832
26833         [BZ #12092]
26834         * string/str-two-way.h (two_way_long_needle): Always clear memory
26835         when skipping input due to the shift table.
26836
26837 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
26838
26839         [BZ #12005]
26840         * malloc/mcheck.c: Handle large requests.
26841
26842         [BZ #12077]
26843         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
26844         for strncmp and strncasecmp.
26845         * string/stratcliff.c: Add tests for strcmp and strncmp.
26846         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
26847
26848 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
26849
26850         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
26851         __set_fpscr.
26852
26853 2010-09-30  Andreas Jaeger  <aj@suse.de>
26854
26855         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
26856         (CGROUP_SUPER_MAGIC): Define.
26857         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
26858         Handle btrfs and cgroup file systems.
26859         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
26860         Likewise.
26861
26862 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
26863
26864         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
26865         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
26866
26867 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26868
26869         [BZ #12067]
26870         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
26871         trying to locate the ELF header.
26872
26873 2010-09-27  Andreas Schwab  <schwab@redhat.com>
26874
26875         [BZ #11611]
26876         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
26877         Mask out sign-bit copies when constructing f_fsid.
26878
26879 2010-09-24  Petr Baudis <pasky@suse.cz>
26880
26881         * debug/stack_chk_fail_local.c: Add missing licence exception.
26882         * debug/warning-nop.c: Likewise.
26883
26884 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
26885
26886         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
26887         implementing getdents64 using getdents syscall, set d_type if
26888         __ASSUME_GETDENTS32_D_TYPE.
26889
26890 2010-09-16  Andreas Schwab  <schwab@redhat.com>
26891
26892         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
26893         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
26894
26895 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
26896
26897         [BZ #12037]
26898         * posix/unistd.h: Undo change of feature selection for ftruncate from
26899         2010-01-11.
26900
26901 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
26902
26903         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
26904         detection.
26905
26906 2010-09-20  Andreas Schwab  <schwab@redhat.com>
26907
26908         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
26909         fanotify_mark.
26910         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
26911
26912 2010-09-14  Andreas Schwab  <schwab@redhat.com>
26913
26914         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
26915         variables after CHECK_SP call.
26916         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
26917
26918 2010-09-13  Andreas Schwab  <schwab@redhat.com>
26919             Ulrich Drepper  <drepper@redhat.com>
26920
26921         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
26922         re-relocationg ld.so.
26923         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
26924         _dl_init_paths call.
26925         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
26926         here anymore.
26927
26928 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
26929
26930         * resolv/res_init.c (__res_vinit): Count the default server we added.
26931
26932 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
26933             Ulrich Drepper  <drepper@redhat.com>
26934
26935         [BZ #11968]
26936         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
26937         (____longjmp_chk): Use %ebx for saving value across system call.
26938         Add unwind info.
26939
26940 2010-09-06  Andreas Schwab  <schwab@redhat.com>
26941
26942         * manual/Makefile: Don't mix pattern rules with normal rules.
26943
26944 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
26945
26946         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
26947         operation.
26948         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
26949         * libio/iofopncook.c (_IO_cookie_init): Likewise.
26950         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
26951         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
26952         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
26953         Likewise.
26954
26955 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
26956
26957         [BZ #11979]
26958         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
26959         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
26960
26961 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
26962
26963         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
26964         * sysdeps/x86_64/addmul_1.S: Likewise.
26965         * sysdeps/x86_64/lshift.S: Likewise.
26966         * sysdeps/x86_64/mul_1.S: Likewise.
26967         * sysdeps/x86_64/rshift.S: Likewise.
26968         * sysdeps/x86_64/sub_n.S: Likewise.
26969         * sysdeps/x86_64/submul_1.S: Likewise.
26970
26971 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26972
26973         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
26974         Define __sched_param instead of SCHED_* and sched_param when
26975         <bits/sched.h> is included with __need_schedparam defined.
26976         * bits/sched.h [__need_schedparam]
26977         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
26978         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
26979         (__defined_schedparam): Define to 1.
26980         (__sched_param): New structure, identical to sched_param.
26981         (__need_schedparam): Undefine.
26982
26983 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
26984
26985         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
26986         (epoll_create1): Declare.
26987
26988         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
26989
26990 2010-08-31  Andreas Schwab  <schwab@redhat.com>
26991
26992         [BZ #7066]
26993         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
26994         shifting retval into place.
26995
26996 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
26997
26998         * nis/rpcsvc/nis.h: Update copyright notice.
26999         * nis/rpcsvc/nis.x: Likewise.
27000         * nis/rpcsvc/nis_callback.h: Likewise.
27001         * nis/rpcsvc/nis_callback.x: Likewise.
27002         * nis/rpcsvc/nis_object.x: Likewise.
27003         * nis/rpcsvc/nis_tags.h: Likewise.
27004         * nis/rpcsvc/yp.h: Likewise.
27005         * nis/rpcsvc/yp.x: Likewise.
27006         * nis/rpcsvc/ypupd.h: Likewise.
27007         * nis/yp_xdr.c: Likewise.
27008         * nis/ypupdate_xdr.c: Likewise.
27009
27010         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
27011         mainly the body of pmap_getport.  Add parameters to specify timeouts.
27012         (pmap_getport): Use __libc_rpc_getport.
27013         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
27014         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
27015         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
27016
27017 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
27018
27019         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
27020         fanotify_mark.
27021
27022 2010-08-27  Roland McGrath  <roland@redhat.com>
27023
27024         * sysdeps/i386/i686/multiarch/Makefile
27025         (CFLAGS-varshift.c): New variable.
27026
27027 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
27028
27029         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
27030         * sysdeps/i386/i686/multiarch/varshift.c: New file.
27031
27032         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
27033
27034         * sysdeps/x86_64/strlen.S: Minimal code improvement.
27035
27036 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
27037
27038         * sysdeps/x86_64/strlen.S: Unroll the loop.
27039         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
27040         strlen-sse2 strlen-sse2-bsf.
27041         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
27042         __strlen_no_bsf if bit_Slow_BSF is set.
27043         (__strlen_sse42): Removed.
27044         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
27045         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
27046
27047 2010-08-25  Roland McGrath  <roland@redhat.com>
27048
27049         * sysdeps/x86_64/multiarch/varshift.S: File removed.
27050         * sysdeps/x86_64/multiarch/varshift.c: New file.
27051         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
27052         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
27053         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
27054         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
27055
27056 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
27057
27058         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
27059         strlen-sse2 strlen-sse2-bsf.
27060         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
27061         __strlen_sse2_bsf if bit_Slow_BSF is unset.
27062         (__strlen_sse2): Removed.
27063         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
27064         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
27065         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
27066         bit_Slow_BSF for Atom.
27067         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
27068         (index_Slow_BSF): Define.
27069         (HAS_SLOW_BSF): Define.
27070
27071 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
27072
27073         [BZ #10851]
27074         * resolv/res_init.c (__res_vinit): When no server address at all
27075         is given default to loopback.
27076
27077 2010-08-24  Roland McGrath  <roland@redhat.com>
27078
27079         * configure.in: Remove config-name.h generation.
27080         * configure: Regenerated.
27081         * config-name.in: File removed.
27082         * scripts/config-uname.sh: New file.
27083         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
27084         ($(objdir)config-name.h): New target.
27085
27086         * sunrpc/rpc_parse.h: Avoid nested comment.
27087
27088 2010-08-24  Richard Henderson  <rth@redhat.com>
27089             Ulrich Drepper  <drepper@redhat.com>
27090             H.J. Lu  <hongjiu.lu@intel.com>
27091
27092         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
27093         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
27094         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
27095         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
27096         _mm_alignr_epi8 with _mm_loadu_si128.
27097         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
27098         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
27099         (__m128i_shift_right): Removed.
27100         * sysdeps/i386/i686/multiarch/varshift.h: New file.
27101         * sysdeps/i386/i686/multiarch/varshift.S: New file.
27102         * sysdeps/x86_64/multiarch/varshift.h: New file.
27103         * sysdeps/x86_64/multiarch/varshift.S: New file.
27104
27105 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
27106
27107         * configure.in: Move assembler checks to before sysdep dir checking.
27108
27109 2010-08-20  Petr Baudis  <pasky@suse.cz>
27110
27111         * LICENSES: Sync the sunrpc license.
27112
27113 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
27114
27115         * sunrpc/auth_des.c: Update copyright notice once again.
27116         * sunrpc/auth_none.c: Likewise.
27117         * sunrpc/auth_unix.c: Likewise.
27118         * sunrpc/authdes_prot.c: Likewise.
27119         * sunrpc/authuxprot.c: Likewise.
27120         * sunrpc/bindrsvprt.c: Likewise.
27121         * sunrpc/clnt_gen.c: Likewise.
27122         * sunrpc/clnt_perr.c: Likewise.
27123         * sunrpc/clnt_raw.c: Likewise.
27124         * sunrpc/clnt_simp.c: Likewise.
27125         * sunrpc/clnt_tcp.c: Likewise.
27126         * sunrpc/clnt_udp.c: Likewise.
27127         * sunrpc/clnt_unix.c: Likewise.
27128         * sunrpc/des_crypt.c: Likewise.
27129         * sunrpc/des_soft.c: Likewise.
27130         * sunrpc/get_myaddr.c: Likewise.
27131         * sunrpc/getrpcport.c: Likewise.
27132         * sunrpc/key_call.c: Likewise.
27133         * sunrpc/key_prot.c: Likewise.
27134         * sunrpc/openchild.c: Likewise.
27135         * sunrpc/pm_getmaps.c: Likewise.
27136         * sunrpc/pm_getport.c: Likewise.
27137         * sunrpc/pmap_clnt.c: Likewise.
27138         * sunrpc/pmap_prot.c: Likewise.
27139         * sunrpc/pmap_prot2.c: Likewise.
27140         * sunrpc/pmap_rmt.c: Likewise.
27141         * sunrpc/rpc/auth.h: Likewise.
27142         * sunrpc/rpc/auth_unix.h: Likewise.
27143         * sunrpc/rpc/clnt.h: Likewise.
27144         * sunrpc/rpc/des_crypt.h: Likewise.
27145         * sunrpc/rpc/key_prot.h: Likewise.
27146         * sunrpc/rpc/netdb.h: Likewise.
27147         * sunrpc/rpc/pmap_clnt.h: Likewise.
27148         * sunrpc/rpc/pmap_prot.h: Likewise.
27149         * sunrpc/rpc/pmap_rmt.h: Likewise.
27150         * sunrpc/rpc/rpc.h: Likewise.
27151         * sunrpc/rpc/rpc_des.h: Likewise.
27152         * sunrpc/rpc/rpc_msg.h: Likewise.
27153         * sunrpc/rpc/svc.h: Likewise.
27154         * sunrpc/rpc/svc_auth.h: Likewise.
27155         * sunrpc/rpc/types.h: Likewise.
27156         * sunrpc/rpc/xdr.h: Likewise.
27157         * sunrpc/rpc_clntout.c: Likewise.
27158         * sunrpc/rpc_cmsg.c: Likewise.
27159         * sunrpc/rpc_common.c: Likewise.
27160         * sunrpc/rpc_cout.c: Likewise.
27161         * sunrpc/rpc_dtable.c: Likewise.
27162         * sunrpc/rpc_hout.c: Likewise.
27163         * sunrpc/rpc_main.c: Likewise.
27164         * sunrpc/rpc_parse.c: Likewise.
27165         * sunrpc/rpc_parse.h: Likewise.
27166         * sunrpc/rpc_prot.c: Likewise.
27167         * sunrpc/rpc_sample.c: Likewise.
27168         * sunrpc/rpc_scan.c: Likewise.
27169         * sunrpc/rpc_scan.h: Likewise.
27170         * sunrpc/rpc_svcout.c: Likewise.
27171         * sunrpc/rpc_tblout.c: Likewise.
27172         * sunrpc/rpc_util.c: Likewise.
27173         * sunrpc/rpc_util.h: Likewise.
27174         * sunrpc/rpcinfo.c: Likewise.
27175         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
27176         * sunrpc/rpcsvc/key_prot.x: Likewise.
27177         * sunrpc/rpcsvc/klm_prot.x: Likewise.
27178         * sunrpc/rpcsvc/mount.x: Likewise.
27179         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
27180         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
27181         * sunrpc/rpcsvc/rex.x: Likewise.
27182         * sunrpc/rpcsvc/rstat.x: Likewise.
27183         * sunrpc/rpcsvc/rusers.x: Likewise.
27184         * sunrpc/rpcsvc/sm_inter.x: Likewise.
27185         * sunrpc/rpcsvc/spray.x: Likewise.
27186         * sunrpc/rpcsvc/yppasswd.x: Likewise.
27187         * sunrpc/rtime.c: Likewise.
27188         * sunrpc/svc.c: Likewise.
27189         * sunrpc/svc_auth.c: Likewise.
27190         * sunrpc/svc_authux.c: Likewise.
27191         * sunrpc/svc_raw.c: Likewise.
27192         * sunrpc/svc_run.c: Likewise.
27193         * sunrpc/svc_simple.c: Likewise.
27194         * sunrpc/svc_tcp.c: Likewise.
27195         * sunrpc/svc_udp.c: Likewise.
27196         * sunrpc/svc_unix.c: Likewise.
27197         * sunrpc/svcauth_des.c: Likewise.
27198         * sunrpc/xcrypt.c: Likewise.
27199         * sunrpc/xdr.c: Likewise.
27200         * sunrpc/xdr_array.c: Likewise.
27201         * sunrpc/xdr_float.c: Likewise.
27202         * sunrpc/xdr_mem.c: Likewise.
27203         * sunrpc/xdr_rec.c: Likewise.
27204         * sunrpc/xdr_ref.c: Likewise.
27205         * sunrpc/xdr_sizeof.c: Likewise.
27206         * sunrpc/xdr_stdio.c: Likewise.
27207
27208         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
27209         handling.
27210
27211 2010-08-19  Andreas Schwab  <schwab@redhat.com>
27212
27213         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
27214
27215 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
27216
27217         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
27218         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
27219         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
27220         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
27221         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
27222         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
27223         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
27224         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
27225         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
27226         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
27227         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
27228         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
27229         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
27230         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
27231
27232 2010-07-26  Anton Blanchard  <anton@samba.org>
27233
27234         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
27235         * malloc/arena.c (heap_trim): Likewise.
27236
27237 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
27238
27239         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
27240         here.  Not...
27241         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
27242         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
27243
27244 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
27245
27246         * sysdeps/i386/elf/Makefile: New file.
27247
27248 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
27249
27250         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
27251         from fanotify_init.
27252         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
27253         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
27254
27255 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
27256
27257         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
27258         of strncasecmp_l.
27259         * sysdeps/multiarch/strcmp.S: Likewise.
27260
27261 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
27262
27263         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
27264         strncase_l-nonascii.
27265         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
27266         Add strncase_l-ssse3.
27267         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
27268         * sysdeps/x86_64/strcmp.S: Likewise.
27269         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
27270         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
27271         * sysdeps/x86_64/strncase.S: New file.
27272         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
27273         * sysdeps/x86_64/strncase_l.S: New file.
27274         * string/Makefile (strop-tests): Add strncasecmp.
27275         * string/test-strncasecmp.c: New file.
27276
27277         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
27278         warning.
27279
27280         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
27281         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
27282
27283 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
27284
27285         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
27286
27287 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
27288
27289         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
27290         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
27291         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
27292
27293 2010-05-01  Alan Modra  <amodra@gmail.com>
27294
27295         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
27296         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
27297         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
27298         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
27299         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
27300         tidying.  Don't tail-call __sigjmp_save for static lib.
27301         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
27302         save location.
27303         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
27304         (CALL_MCOUNT): Add eh info, and nop after bl.
27305         (TAIL_CALL_SYSCALL_ERROR): New macro.
27306         (PSEUDO_RET): Use it.
27307         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
27308         Correct save location of integer regs and cr.
27309         (_dl_profile_resolve): Correct cr save location.  Delete nops
27310         after bl when SHARED.  Reduce cfi size a little by better
27311         placement of cfi directives.
27312         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
27313         make a stack frame.  Instead use parm save area as a temp.
27314         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
27315         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
27316         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
27317         Don't make a stack frame for parent, use parm save area.
27318         Increase child stack frame to 112 bytes.  Don't save unused reg,
27319         and adjust reg usage.  Set up cfi on error recovery and
27320         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
27321         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
27322         (__makecontext): Add dummy nop after jump to exit.
27323         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
27324         Use correct parm save area and cr save, reduce stack frame.
27325         Correct cfi for possible PSEUDO_RET frame setup.
27326         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
27327         Branch to local label emitted by PSEUDO_RET rather than
27328         __syscall_error.
27329
27330 2010-08-12  Andreas Schwab  <schwab@redhat.com>
27331
27332         [BZ #11904]
27333         * locale/programs/locale.c (print_assignment): New function.
27334         (show_locale_vars): Use it.
27335
27336 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
27337
27338         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
27339         field.
27340         (struct statfs64): Likewise.
27341         (_STATFS_F_FLAGS): Define.
27342         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
27343         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
27344         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
27345         (ST_VALID): Define locally.
27346         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
27347         __statvfs_getflags, use the provided value.
27348         * sysdeps/unix/sysv/linux/kernel-features.h: Define
27349         __ASSUME_STATFS_F_FLAGS.
27350
27351         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
27352
27353         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
27354         Add sys/fanotify.h.
27355         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
27356         fanotify_mask for GLIBC_2.13.
27357         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
27358         fanotify_init and fanotify_mark.
27359         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
27360         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
27361
27362         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
27363         Add prlimit.
27364         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
27365         prlimit64 for GLIBC_2.13.
27366         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
27367         prlimit64.
27368         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
27369         syscall.
27370         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
27371         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
27372         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
27373         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
27374         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
27375         add prlimit alias.
27376         * sysdeps/unix/sysv/linux/prlimit.c: New file.
27377
27378         [BZ #11903]
27379         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
27380         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
27381
27382         * nss/Makefile: Add rules to build and run tst-nss-test1.
27383         * shlib-versions: Add entry for libnss_test1.
27384         * nss/nss_test1.c: New file.
27385         * nss/tst-nss-test1.c: New file.
27386
27387         * nss/nsswitch.c (__nss_database_custom): Define new variable.
27388         (__nss_configure_lookup): Set appropriate entry in
27389         __nss_configure_lookup to true.
27390         * nss/nsswitch.h: Define enum with indeces of databases in
27391         databases and __nss_database_custom arrays.  Declare
27392         __nss_database_custom.
27393         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
27394         to avoid using nscd when custom rules are installed.
27395         * nss/getXXbyYY_r.c: Likewise.
27396         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
27397
27398         * nss/nss_files/files-parse.c: Whitespace fixes.
27399
27400 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
27401
27402         [BZ #11883]
27403         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
27404         * posix/fnmatch_loop.c: Likewise.
27405
27406 2010-07-17  Andi Kleen  <ak@linux.intel.com>
27407
27408         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
27409         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
27410         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
27411         * Versions.def [GLIBC_2.13]: Add.
27412
27413 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
27414
27415         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
27416         Also fail if tpwd after pwuid call is NULL.
27417
27418 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27419
27420         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
27421         when converting to ms.
27422
27423 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27424
27425         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
27426         EOPNOTSUPP errors with ENOTTY.
27427         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
27428         EOPNOTSUPP errors with ENOTTY.
27429
27430 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
27431
27432         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
27433         Add strcasecmp_l-ssse3.
27434         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
27435         strcasecmp.
27436         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
27437         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
27438         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
27439
27440 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
27441
27442         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
27443
27444         * string/Makefile (strop-tests): Add strcasecmp.
27445         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
27446         strcasecmp_l-nonascii.
27447         (gen-as-const-headers): Add locale-defines.sym.
27448         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
27449         * sysdeps/x86_64/strcasecmp.S: New file.
27450         * sysdeps/x86_64/strcasecmp_l.S: New file.
27451         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
27452         * sysdeps/x86_64/locale-defines.sym: New file.
27453         * string/test-strcasecmp.c: New file.
27454
27455         * string/test-strcasestr.c: Test both ends of the range of characters.
27456         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
27457
27458 2010-07-29  Roland McGrath  <roland@redhat.com>
27459
27460         [BZ #11856]
27461         * manual/locale.texi (Yes-or-No Questions): Fix example code.
27462
27463 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
27464
27465         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
27466         for ld.so.
27467
27468 2010-07-27  Andreas Schwab  <schwab@redhat.com>
27469
27470         * manual/memory.texi (Malloc Tunable Parameters): Document
27471         M_PERTURB.
27472
27473 2010-07-26  Roland McGrath  <roland@redhat.com>
27474
27475         [BZ #11840]
27476         * configure.in (-fgnu89-inline check): Set and substitute
27477         gnu89_inline, not libc_cv_gnu89_inline.
27478         * configure: Regenerated.
27479         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
27480
27481 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
27482
27483         * string/test-strnlen.c: New file.
27484         * string/Makefile (strop-tests): Add strnlen.
27485         * string/tester.c (test_strnlen): Add a few more test cases.
27486         * string/tst-strlen.c: Better error reporting.
27487
27488         * sysdeps/x86_64/strnlen.S: New file.
27489
27490 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
27491
27492         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
27493         lower-latency instructions.
27494
27495 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
27496
27497         * string/test-strcasestr.c: New file.
27498         * string/test-strstr.c: New file.
27499         * string/Makefile (strop-tests): Add strstr and strcasestr.
27500         * string/str-two-way.h: Don't undefine MAX.
27501         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
27502
27503 2010-07-21  Andreas Schwab  <schwab@redhat.com>
27504
27505         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
27506         strcasestr-nonascii.
27507         (CFLAGS-strcasestr-nonascii.c): Define.
27508         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
27509         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
27510         Remove unused attribute.
27511
27512 2010-07-20  Roland McGrath  <roland@redhat.com>
27513
27514         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
27515         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
27516         ld.so.cache was broken.  With it, there is no way to disable dsocaps
27517         like LD_HWCAP_MASK can disable hwcaps.
27518
27519 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
27520
27521         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
27522
27523 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
27524
27525         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
27526         call in strcasestr.
27527         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
27528         __strcasestr_sse42_nonascii.
27529         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
27530         strcasestr-nonascii.c.
27531         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
27532
27533 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
27534
27535         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
27536         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
27537         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
27538         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
27539
27540 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
27541
27542         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
27543         fcntl.
27544
27545 2010-07-06  Andreas Schwab  <schwab@redhat.com>
27546
27547         [BZ #11577]
27548         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
27549         dl_signal_cerror.
27550
27551 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
27552
27553         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
27554         _PC_PIPE_BUF using F_GETPIPE_SZ.
27555
27556 2010-07-05  Roland McGrath  <roland@redhat.com>
27557
27558         * manual/arith.texi (Rounding Functions): Fix rint description
27559         implicit in round description.
27560
27561 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
27562
27563         * elf/Makefile: Fix linking for a few tests to make recent linker
27564         happy.
27565
27566 2010-06-30  Andreas Schwab  <schwab@redhat.com>
27567
27568         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
27569         $(common-objpfx)libc_nonshared.a.
27570
27571 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
27572
27573         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
27574         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
27575         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
27576         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
27577         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
27578         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
27579         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
27580         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
27581         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
27582         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
27583         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
27584         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
27585         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
27586         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
27587         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
27588         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
27589         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
27590         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
27591         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
27592         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
27593         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
27594         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
27595         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
27596         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
27597         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
27598         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
27599         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
27600         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
27601         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
27602         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
27603         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
27604         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
27605         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
27606         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
27607         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
27608         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
27609         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
27610         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
27611         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
27612         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
27613         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
27614         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
27615         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
27616         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
27617         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
27618         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
27619         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
27620         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
27621
27622 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
27623
27624         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
27625         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
27626         * string/memmove.c (memmove): Renamed to ...
27627         (MEMMOVE): ...this.  Default to memmove.
27628         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
27629         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
27630         (END_CHK): Define.
27631         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
27632         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
27633         mempcpy-ssse3-back memmove-ssse3-back.
27634         * sysdeps/x86_64/multiarch/bcopy.S: New file .
27635         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
27636         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
27637         * sysdeps/x86_64/multiarch/memcpy.S: New file.
27638         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
27639         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
27640         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
27641         * sysdeps/x86_64/multiarch/memmove.c: New file.
27642         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
27643         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
27644         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
27645         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
27646         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
27647         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
27648         Define.
27649         (index_Fast_Copy_Backward): Define.
27650         (HAS_ARCH_FEATURE): Define.
27651         (HAS_FAST_REP_STRING): Define.
27652         (HAS_FAST_COPY_BACKWARD): Define.
27653
27654 2010-06-21  Andreas Schwab  <schwab@redhat.com>
27655
27656         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
27657         Restore proper fallback handling.
27658
27659 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
27660
27661         [BZ #11701]
27662         * posix/group_member.c (__group_member): Correct checking loop.
27663
27664         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
27665         OOM in getpwuid_r correctly.  Return error number when the caller
27666         should return, otherwise -1.
27667         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
27668         call returning > 0 value.
27669         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
27670
27671 2010-06-07  Andreas Schwab  <schwab@redhat.com>
27672
27673         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
27674         libc_nonshared.a from targets in modules-names.
27675
27676 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
27677
27678         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
27679         requires it.
27680
27681 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
27682
27683         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
27684         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
27685         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
27686         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
27687
27688 2010-06-02  Andreas Schwab  <schwab@redhat.com>
27689
27690         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
27691
27692 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
27693
27694         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
27695         and F_GETPIPE_SZ.
27696         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
27697         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
27698         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
27699         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
27700         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
27701         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
27702
27703 2010-06-14  Roland McGrath  <roland@redhat.com>
27704
27705         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
27706
27707 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
27708
27709         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
27710         __REDIRECT followed by __THROW.
27711         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
27712         * posix/getopt.h (getopt): Likewise.
27713
27714 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
27715
27716         * hurd/lookup-at.c (__file_name_lookup_at): Accept
27717         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
27718         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
27719         in AT_FLAGS.
27720         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
27721         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
27722
27723 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
27724
27725         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
27726
27727 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
27728
27729         [BZ #11640]
27730         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
27731         Properly check family and model.
27732
27733 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
27734
27735         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
27736
27737 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
27738
27739         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
27740
27741 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
27742
27743         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
27744         symbol reference.
27745
27746 2010-05-19  Andreas Schwab  <schwab@redhat.com>
27747
27748         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
27749         symbol reference.
27750
27751 2010-05-21  Andreas Schwab  <schwab@redhat.com>
27752
27753         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
27754         and internal_recvmmsg.
27755         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
27756         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
27757         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
27758         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
27759
27760         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
27761         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
27762         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
27763
27764 2010-05-20  Andreas Schwab  <schwab@redhat.com>
27765
27766         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
27767
27768 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
27769
27770         POWER7 optimizations.
27771         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
27772         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
27773
27774 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
27775
27776         * version.h: Update for 2.13 development version.
27777
27778 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
27779
27780         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
27781         exceptions.  Return 0.
27782
27783 2010-05-07  Roland McGrath  <roland@redhat.com>
27784
27785         * elf/ldconfig.c (main): Add a const.
27786
27787 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
27788
27789         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
27790         (args_options): Add no-idn option.
27791         (ahosts_keys_int): Add idn_flags to ai_flags.
27792         (parse_option): Handle 'i' option to clear idn_flags.
27793
27794         * malloc/malloc.c (_int_free): Possible race in the most recently
27795         added check.  Only act on the data if no current modification
27796         happened.
27797
27798 See ChangeLog.17 for earlier changes.